From 87a8fb5c17c201153af25768837a7485e6cddb99 Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Tue, 30 Jul 2024 11:41:51 +0530 Subject: [PATCH 1/6] Replace photon with alnt --- src/utils/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 85331f4..b98aacb 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -10,7 +10,7 @@ export const DEFAULT_NETWORKS = [ namespace: COSMOS, rpcUrl: process.env.REACT_APP_LACONICD_RPC_URL!, blockExplorerUrl: '', - nativeDenom: 'photon', + nativeDenom: 'alnt', addressPrefix: 'laconic', coinType: '118', gasPrice: '0.01', -- 2.45.2 From 45638bc0319d13a71e69ab88487d1fdb900698d3 Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Tue, 30 Jul 2024 11:51:24 +0530 Subject: [PATCH 2/6] Update laconicd gas price --- src/utils/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/constants.ts b/src/utils/constants.ts index b98aacb..d106d61 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -13,7 +13,7 @@ export const DEFAULT_NETWORKS = [ nativeDenom: 'alnt', addressPrefix: 'laconic', coinType: '118', - gasPrice: '0.01', + gasPrice: '1', isDefault: true, }, { -- 2.45.2 From cb1e0a283a5f9854304b66f29002bc65b2b5b5d0 Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Tue, 30 Jul 2024 12:24:35 +0530 Subject: [PATCH 3/6] Use MUI dialog component for tx error --- src/components/TxErrorDialog.tsx | 22 ++++++++++------------ src/styles/stylesheet.js | 1 + 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/components/TxErrorDialog.tsx b/src/components/TxErrorDialog.tsx index 8b757b4..898eb4d 100644 --- a/src/components/TxErrorDialog.tsx +++ b/src/components/TxErrorDialog.tsx @@ -1,5 +1,5 @@ import React from 'react'; -import { Button, Dialog, Portal, Text } from 'react-native-paper'; +import { Dialog, DialogTitle, DialogContent, DialogActions, Button, Typography } from '@mui/material'; const TxErrorDialog = ({ error, @@ -11,17 +11,15 @@ const TxErrorDialog = ({ hideDialog: () => void; }) => { return ( - - - Transaction Error - - {error} - - - - - - + + Transaction Error + + {error} + + + + + ); }; diff --git a/src/styles/stylesheet.js b/src/styles/stylesheet.js index 5c0b5f4..a6153db 100644 --- a/src/styles/stylesheet.js +++ b/src/styles/stylesheet.js @@ -143,6 +143,7 @@ const styles = StyleSheet.create({ buttonContainer: { flexDirection: 'row', marginLeft: 20, + marginTop: 10, marginBottom: 10, justifyContent: 'space-evenly', }, -- 2.45.2 From 27a56175a89f90decb2c6571c0b0d38d1de65405 Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Tue, 30 Jul 2024 15:35:01 +0530 Subject: [PATCH 4/6] Fix padding --- src/screens/AddNetwork.tsx | 1 + src/screens/EditNetwork.tsx | 1 + src/styles/stylesheet.js | 35 +++++++++++++++++++++++++++++------ 3 files changed, 31 insertions(+), 6 deletions(-) diff --git a/src/screens/AddNetwork.tsx b/src/screens/AddNetwork.tsx index e1ff217..37fd0e9 100644 --- a/src/screens/AddNetwork.tsx +++ b/src/screens/AddNetwork.tsx @@ -409,6 +409,7 @@ const AddNetwork = () => { mode="contained" loading={isSubmitting} disabled={isSubmitting} + style={styles.networksButton} onPress={handleSubmit(submit)}> {isSubmitting ? 'Adding' : 'Submit'} diff --git a/src/screens/EditNetwork.tsx b/src/screens/EditNetwork.tsx index f6f90be..c721208 100644 --- a/src/screens/EditNetwork.tsx +++ b/src/screens/EditNetwork.tsx @@ -187,6 +187,7 @@ const EditNetwork = ({ route }: EditNetworkProps) => { mode="contained" loading={isSubmitting} disabled={isSubmitting} + style={styles.networksButton} onPress={handleSubmit(submit)}> {isSubmitting ? 'Adding' : 'Submit'} diff --git a/src/styles/stylesheet.js b/src/styles/stylesheet.js index a6153db..7e9cf8c 100644 --- a/src/styles/stylesheet.js +++ b/src/styles/stylesheet.js @@ -42,6 +42,7 @@ const styles = StyleSheet.create({ }, signButton: { marginTop: 20, + marginBottom: 20, width: 150, alignSelf: 'center', }, @@ -205,9 +206,9 @@ const styles = StyleSheet.create({ }, subHeading: { textAlign: 'center', - fontWeight: 'bold', marginBottom: 10, marginTop: 10, + fontSize: 20 }, centerText: { textAlign: 'center', @@ -254,12 +255,30 @@ const styles = StyleSheet.create({ balancePadding: { padding: 8, }, - noActiveSessions: { display: 'flex', alignItems: 'center', marginTop: 12 }, - disconnectSession: { display: 'flex', justifyContent: 'center' }, - sessionItem: { paddingLeft: 12, borderBottomWidth: 0.5 }, - sessionsContainer: { paddingLeft: 12, borderBottomWidth: 0.5 }, + noActiveSessions: { + display: 'flex', + alignItems: 'center', + marginTop: 20, + marginBottom: 20 + }, + disconnectSession: { + display: 'flex', + justifyContent: 'center' + }, + sessionItem: { + paddingLeft: 12, + borderBottomWidth: 0.5 + }, + sessionsContainer: { + paddingLeft: 12, + borderBottomWidth: 0.5 + }, walletConnectUriText: { padding: 10 }, - walletConnectLogo: { width: 24, height: 15, margin: 0 }, + walletConnectLogo: { + width: 24, + height: 15, + margin: 0 + }, selectNetworkText: { fontWeight: 'bold', marginVertical: 10, @@ -277,6 +296,10 @@ const styles = StyleSheet.create({ }, linkContainer: { paddingBottom: 72 + }, + networksButton: { + marginTop: 12, + marginBottom: 20 } }); -- 2.45.2 From 98d3a03a12c129c71ed2906e630929a74de63d62 Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Tue, 30 Jul 2024 16:09:09 +0530 Subject: [PATCH 5/6] Add padding to create wallet button --- src/styles/stylesheet.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/styles/stylesheet.js b/src/styles/stylesheet.js index 7e9cf8c..017d59e 100644 --- a/src/styles/stylesheet.js +++ b/src/styles/stylesheet.js @@ -5,6 +5,7 @@ const styles = StyleSheet.create({ marginTop: 20, width: 150, alignSelf: 'center', + marginBottom: 40 }, signLink: { alignItems: 'flex-end', @@ -259,25 +260,25 @@ const styles = StyleSheet.create({ display: 'flex', alignItems: 'center', marginTop: 20, - marginBottom: 20 + marginBottom: 20, }, disconnectSession: { display: 'flex', - justifyContent: 'center' + justifyContent: 'center', }, sessionItem: { paddingLeft: 12, - borderBottomWidth: 0.5 + borderBottomWidth: 0.5, }, sessionsContainer: { paddingLeft: 12, - borderBottomWidth: 0.5 + borderBottomWidth: 0.5, }, walletConnectUriText: { padding: 10 }, walletConnectLogo: { width: 24, height: 15, - margin: 0 + margin: 0, }, selectNetworkText: { fontWeight: 'bold', @@ -295,11 +296,11 @@ const styles = StyleSheet.create({ padding: 8, }, linkContainer: { - paddingBottom: 72 + paddingBottom: 72, }, networksButton: { marginTop: 12, - marginBottom: 20 + marginBottom: 20, } }); -- 2.45.2 From b0e06cb0f8e81258ba2e8f586fae6f773ed25553 Mon Sep 17 00:00:00 2001 From: Shreerang Kale Date: Tue, 30 Jul 2024 17:36:30 +0530 Subject: [PATCH 6/6] Upgrade registry-sdk version to v0.2.5 --- package.json | 2 +- yarn.lock | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index ea6a8a7..6574ed6 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "@cerc-io/registry-sdk": "^0.2.4", + "@cerc-io/registry-sdk": "^0.2.5", "@cosmjs/amino": "^0.32.3", "@cosmjs/crypto": "^0.32.3", "@cosmjs/proto-signing": "^0.32.3", diff --git a/yarn.lock b/yarn.lock index e768c89..f03785b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1263,10 +1263,10 @@ deepmerge "^3.2.0" hoist-non-react-statics "^3.3.0" -"@cerc-io/registry-sdk@^0.2.4": - version "0.2.4" - resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fregistry-sdk/-/0.2.4/registry-sdk-0.2.4.tgz#60e4e75b1e6a957cf2b97490af4fda4af07b105f" - integrity sha512-hRZJP+s+uBvfrqtmQ38pmf74SyfFDC65AVwvWigJGxc6uKJG4jyuMyhsoD1P4XkjwAQSnFO89TuDC5JGkdXyrA== +"@cerc-io/registry-sdk@^0.2.5": + version "0.2.5" + resolved "https://git.vdb.to/api/packages/cerc-io/npm/%40cerc-io%2Fregistry-sdk/-/0.2.5/registry-sdk-0.2.5.tgz#9ca19fecb2923520dd6a19946c309ecb2ec780a2" + integrity sha512-/KXAYf9gStaX/rRBMCEeDCexEIpTOFHeHzMK9B3xfCT+SyYZE9WC9GpX299LzBYJKKPsb0/JvnDfip9S1igJtA== dependencies: "@cosmjs/amino" "^0.28.1" "@cosmjs/crypto" "^0.28.1" @@ -13626,6 +13626,8 @@ tr46@^1.0.1: version "1.0.1" resolved "https://registry.yarnpkg.com/tr46/-/tr46-1.0.1.tgz#a8b13fd6bfd2489519674ccde55ba3693b706d09" integrity sha512-dTpowEjclQ7Kgx5SdBkqRzVhERQXov8/l9Ft9dVM9fmg0W0KQSVaXX9T4i6twCPNtYiZM53lpSSUAwJbFPOHxA== + dependencies: + punycode "^2.1.0" tr46@^2.1.0: version "2.1.0" -- 2.45.2