Add laconicd as a default network in wallet (#9)

Part of [laconicd testnet validator enrollment
](https://www.notion.so/laconicd-testnet-validator-enrollment-6fc1d3cafcc64fef8c5ed3affa27c675)

Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
Reviewed-on: cerc-io/laconic-wallet#9
This commit is contained in:
nabarun 2024-07-29 12:55:50 +00:00
parent 361b79b696
commit eab4fd425a
3 changed files with 15 additions and 0 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,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,