diff --git a/.env.example b/.env.example index c909b2a..a81671f 100644 --- a/.env.example +++ b/.env.example @@ -2,3 +2,4 @@ WALLET_CONNECT_PROJECT_ID= DEFAULT_GAS_PRICE=0.025 # Reference: https://github.com/cosmos/cosmos-sdk/issues/16020 DEFAULT_GAS_ADJUSTMENT=2 +LACONICD_RPC_URL=https://laconicd.laconic.com diff --git a/react-native-config.d.ts b/react-native-config.d.ts index 1dd6ba9..949e517 100644 --- a/react-native-config.d.ts +++ b/react-native-config.d.ts @@ -4,6 +4,7 @@ declare module 'react-native-config' { WALLET_CONNECT_PROJECT_ID: string; DEFAULT_GAS_PRICE: string; DEFAULT_GAS_ADJUSTMENT: string; + LACONICD_RPC_URL: string; } export const Config: NativeConfig; diff --git a/src/utils/constants.ts b/src/utils/constants.ts index c4956fc..ded570f 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -1,9 +1,22 @@ +import Config from 'react-native-config'; import { COSMOS_TESTNET_CHAINS } from './wallet-connect/COSMOSData'; import { EIP155_CHAINS } from './wallet-connect/EIP155Data'; export const EIP155 = 'eip155'; export const COSMOS = 'cosmos'; export const DEFAULT_NETWORKS = [ + { + chainId: 'laconic_9000-1', + networkName: 'laconicd', + namespace: COSMOS, + rpcUrl: Config.LACONICD_RPC_URL, + blockExplorerUrl: '', + nativeDenom: 'photon', + addressPrefix: 'laconic', + coinType: '118', + gasPrice: '0.01', + isDefault: true, + }, { chainId: '1', networkName: EIP155_CHAINS['eip155:1'].name,