2022-07-13 13:56:36 +00:00
|
|
|
import type { AppConfig } from './app'
|
|
|
|
|
|
|
|
export const mainnetConfig: AppConfig = {
|
|
|
|
chainId: 'stargaze-1',
|
|
|
|
chainName: 'Stargaze',
|
|
|
|
addressPrefix: 'stars',
|
|
|
|
rpcUrl: 'https://rpc.stargaze-apis.com/',
|
2023-12-08 06:41:13 +00:00
|
|
|
httpUrl: 'https://rest.stargaze-apis.com/',
|
2022-07-13 13:56:36 +00:00
|
|
|
feeToken: 'ustars',
|
|
|
|
stakingToken: 'ustars',
|
|
|
|
coinMap: {
|
|
|
|
ustars: { denom: 'STARS', fractionalDigits: 6 },
|
|
|
|
},
|
|
|
|
gasPrice: 0.025,
|
|
|
|
fees: {
|
|
|
|
upload: 1500000,
|
|
|
|
init: 500000,
|
|
|
|
exec: 200000,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
export const testnetConfig: AppConfig = {
|
2022-07-29 07:39:03 +00:00
|
|
|
chainId: 'elgafar-1',
|
2022-07-28 13:38:43 +00:00
|
|
|
chainName: 'elgafar-1',
|
2022-07-13 13:56:36 +00:00
|
|
|
addressPrefix: 'stars',
|
2022-07-29 07:39:03 +00:00
|
|
|
rpcUrl: 'https://rpc.elgafar-1.stargaze-apis.com/',
|
2022-08-07 09:50:48 +00:00
|
|
|
httpUrl: 'https://rest.elgafar-1.stargaze-apis.com/',
|
2022-07-13 13:56:36 +00:00
|
|
|
feeToken: 'ustars',
|
|
|
|
stakingToken: 'ustars',
|
|
|
|
coinMap: {
|
|
|
|
ustars: { denom: 'STARS', fractionalDigits: 6 },
|
|
|
|
},
|
|
|
|
gasPrice: 0.025,
|
|
|
|
fees: {
|
|
|
|
upload: 1500000,
|
|
|
|
init: 500000,
|
|
|
|
exec: 200000,
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
|
|
|
export const getConfig = (network: string): AppConfig => {
|
|
|
|
if (network === 'mainnet') return mainnetConfig
|
|
|
|
return testnetConfig
|
|
|
|
}
|