-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #122 from XLabs/sepolia-support
Sepolia support
- Loading branch information
Showing
6 changed files
with
64 additions
and
62 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { CosmosDefaultConfigs } from "."; | ||
|
||
const WORMCHAIN_MAINNET = "wormchain-mainnet-0"; | ||
const WORMCHAIN_TESTNET = "wormchain-testnet-0"; | ||
const WORMCHAIN_CURRENCY_SYMBOL = "WORM"; | ||
const WORMCHAIN_NATIVE_DENOM = "uworm"; | ||
const WORMCHAIN_ADDRESS_PREFIX = "wormhole"; | ||
const WORMCHAIN_DEFAULT_DECIMALS = 6; | ||
|
||
const WORMCHAIN_MIN_GAS_PRICE = "0utest"; | ||
|
||
export const WORMCHAIN = "wormchain"; | ||
export const WORMCHAIN_NETWORKS = { | ||
[WORMCHAIN_MAINNET]: 1, | ||
[WORMCHAIN_TESTNET]: 2, | ||
}; | ||
|
||
export const WORMCHAIN_KNOWN_TOKENS = { | ||
[WORMCHAIN_MAINNET]: {}, | ||
[WORMCHAIN_TESTNET]: {}, | ||
}; | ||
|
||
const WORMCHAIN_DEFAULT_TOKEN_POLL_CONCURRENCY = 10; | ||
|
||
export const WORMCHAIN_DEFAULT_CONFIGS: CosmosDefaultConfigs = { | ||
[WORMCHAIN_MAINNET]: { | ||
nodeUrl: "https://wormchain-mainnet.jumpisolated.com:443", | ||
tokenPollConcurrency: WORMCHAIN_DEFAULT_TOKEN_POLL_CONCURRENCY, | ||
nativeDenom: WORMCHAIN_NATIVE_DENOM, | ||
addressPrefix: WORMCHAIN_ADDRESS_PREFIX, | ||
defaultDecimals: WORMCHAIN_DEFAULT_DECIMALS, | ||
minGasPrice: WORMCHAIN_MIN_GAS_PRICE, | ||
}, | ||
[WORMCHAIN_TESTNET]: { | ||
nodeUrl: "https://wormchain-testnet.jumpisolated.com:443", | ||
tokenPollConcurrency: WORMCHAIN_DEFAULT_TOKEN_POLL_CONCURRENCY, | ||
nativeDenom: WORMCHAIN_NATIVE_DENOM, | ||
addressPrefix: WORMCHAIN_ADDRESS_PREFIX, | ||
defaultDecimals: WORMCHAIN_DEFAULT_DECIMALS, | ||
minGasPrice: WORMCHAIN_MIN_GAS_PRICE, | ||
}, | ||
}; | ||
|
||
export const WORMCHAIN_CHAIN_CONFIG = { | ||
chainName: WORMCHAIN, | ||
networks: WORMCHAIN_NETWORKS, | ||
knownTokens: WORMCHAIN_KNOWN_TOKENS, | ||
defaultConfigs: WORMCHAIN_DEFAULT_CONFIGS, | ||
nativeCurrencySymbol: WORMCHAIN_CURRENCY_SYMBOL, | ||
defaultNetwork: WORMCHAIN_MAINNET, | ||
}; | ||
|
||
export type WormchainNetwork = keyof typeof WORMCHAIN_NETWORKS; |