Take RPC URL from env

This commit is contained in:
IshaVenikar 2024-07-29 18:09:59 +05:30 committed by Shreerang Kale
parent 0fff771e8b
commit 5ddfdc2d15
3 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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;

View File

@ -1,3 +1,4 @@
import Config from 'react-native-config';
import { COSMOS_TESTNET_CHAINS } from './wallet-connect/COSMOSData';
import { EIP155_CHAINS } from './wallet-connect/EIP155Data';
@ -8,7 +9,7 @@ export const DEFAULT_NETWORKS = [
chainId: 'laconic_9000-1',
networkName: 'laconicd',
namespace: COSMOS,
rpcUrl: 'http://127.0.0.1:26657',
rpcUrl: Config.LACONICD_RPC_URL,
blockExplorerUrl: '',
nativeDenom: 'photon',
addressPrefix: 'laconic',