From 709a41459e4d698027d9b704386978a4287472c7 Mon Sep 17 00:00:00 2001 From: Shreerang Kale Date: Mon, 28 Oct 2024 10:05:32 +0530 Subject: [PATCH 1/3] Add laconicd testnet-2 as default network --- .env.example | 1 + src/utils/constants.ts | 14 +++++++++++++- stack/stack-orchestrator/config/app/run.sh | 1 + 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 51a1596..f6c712d 100644 --- a/.env.example +++ b/.env.example @@ -3,3 +3,4 @@ REACT_APP_DEFAULT_GAS_PRICE=0.025 # Reference: https://github.com/cosmos/cosmos-sdk/issues/16020 REACT_APP_GAS_ADJUSTMENT=2 REACT_APP_LACONICD_RPC_URL=https://laconicd.laconic.com +REACT_APP_LACONICD_TESTNET_2_RPC_URL= \ No newline at end of file diff --git a/src/utils/constants.ts b/src/utils/constants.ts index 13f9f6b..f439429 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -4,6 +4,18 @@ import { EIP155_CHAINS } from './wallet-connect/EIP155Data'; export const EIP155 = 'eip155'; export const COSMOS = 'cosmos'; export const DEFAULT_NETWORKS = [ + { + chainId: 'laconic-testnet-2', + networkName: 'laconicd testnet-2', + namespace: COSMOS, + rpcUrl: process.env.REACT_APP_LACONICD_TESTNET_2_RPC_URL!, + blockExplorerUrl: '', + nativeDenom: 'alnt', + addressPrefix: 'laconic', + coinType: '118', + gasPrice: '1', + isDefault: true, + }, { chainId: 'laconic_9000-1', networkName: 'laconicd', @@ -14,7 +26,7 @@ export const DEFAULT_NETWORKS = [ addressPrefix: 'laconic', coinType: '118', gasPrice: '1', - isDefault: true, + isDefault: false, }, { chainId: '1', diff --git a/stack/stack-orchestrator/config/app/run.sh b/stack/stack-orchestrator/config/app/run.sh index 77696fe..929beec 100755 --- a/stack/stack-orchestrator/config/app/run.sh +++ b/stack/stack-orchestrator/config/app/run.sh @@ -16,6 +16,7 @@ REACT_APP_WALLET_CONNECT_PROJECT_ID=$WALLET_CONNECT_ID \ REACT_APP_DEFAULT_GAS_PRICE=$CERC_DEFAULT_GAS_PRICE \ REACT_APP_GAS_ADJUSTMENT=$CERC_GAS_ADJUSTMENT \ REACT_APP_LACONICD_RPC_URL=$CERC_LACONICD_RPC_URL \ +REACT_APP_LACONICD_TESTNET_2_RPC_URL=$CERC_LACONICD_TESTNET_2_RPC_URL \ yarn build # Define the directory and file path -- 2.45.2 From c95c7dd992ad8e060a035de06df28cc3dfa8587e Mon Sep 17 00:00:00 2001 From: Shreerang Kale Date: Mon, 28 Oct 2024 15:22:05 +0530 Subject: [PATCH 2/3] Replace color black with white for data box label --- src/styles/stylesheet.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/styles/stylesheet.js b/src/styles/stylesheet.js index 52bd51f..a71df18 100644 --- a/src/styles/stylesheet.js +++ b/src/styles/stylesheet.js @@ -288,7 +288,7 @@ const styles = StyleSheet.create({ fontSize: 18, fontWeight: "bold", marginBottom: 3, - color: "black", + color: "white", }, dataBox: { borderWidth: 1, -- 2.45.2 From 112a01d72d5f8c4b7b055d42c22afce43055bf08 Mon Sep 17 00:00:00 2001 From: Shreerang Kale Date: Mon, 28 Oct 2024 17:09:46 +0530 Subject: [PATCH 3/3] Use existing env variable for laconic-testnet-2 chain RPC URL --- .env.example | 3 +-- src/utils/constants.ts | 6 +++--- stack/stack-orchestrator/config/app/run.sh | 1 - 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.env.example b/.env.example index f6c712d..b76d155 100644 --- a/.env.example +++ b/.env.example @@ -2,5 +2,4 @@ REACT_APP_WALLET_CONNECT_PROJECT_ID= REACT_APP_DEFAULT_GAS_PRICE=0.025 # Reference: https://github.com/cosmos/cosmos-sdk/issues/16020 REACT_APP_GAS_ADJUSTMENT=2 -REACT_APP_LACONICD_RPC_URL=https://laconicd.laconic.com -REACT_APP_LACONICD_TESTNET_2_RPC_URL= \ No newline at end of file +REACT_APP_LACONICD_RPC_URL=https://laconicd-sapo.laconic.com diff --git a/src/utils/constants.ts b/src/utils/constants.ts index f439429..8269e8e 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -8,19 +8,19 @@ export const DEFAULT_NETWORKS = [ chainId: 'laconic-testnet-2', networkName: 'laconicd testnet-2', namespace: COSMOS, - rpcUrl: process.env.REACT_APP_LACONICD_TESTNET_2_RPC_URL!, + rpcUrl: process.env.REACT_APP_LACONICD_RPC_URL!, blockExplorerUrl: '', nativeDenom: 'alnt', addressPrefix: 'laconic', coinType: '118', - gasPrice: '1', + gasPrice: '0.001', isDefault: true, }, { chainId: 'laconic_9000-1', networkName: 'laconicd', namespace: COSMOS, - rpcUrl: process.env.REACT_APP_LACONICD_RPC_URL!, + rpcUrl: "https://laconicd.laconic.com", blockExplorerUrl: '', nativeDenom: 'alnt', addressPrefix: 'laconic', diff --git a/stack/stack-orchestrator/config/app/run.sh b/stack/stack-orchestrator/config/app/run.sh index 929beec..77696fe 100755 --- a/stack/stack-orchestrator/config/app/run.sh +++ b/stack/stack-orchestrator/config/app/run.sh @@ -16,7 +16,6 @@ REACT_APP_WALLET_CONNECT_PROJECT_ID=$WALLET_CONNECT_ID \ REACT_APP_DEFAULT_GAS_PRICE=$CERC_DEFAULT_GAS_PRICE \ REACT_APP_GAS_ADJUSTMENT=$CERC_GAS_ADJUSTMENT \ REACT_APP_LACONICD_RPC_URL=$CERC_LACONICD_RPC_URL \ -REACT_APP_LACONICD_TESTNET_2_RPC_URL=$CERC_LACONICD_TESTNET_2_RPC_URL \ yarn build # Define the directory and file path -- 2.45.2