Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(appconst): Add chain IDs ending in "3" to the "knownEthChainIDMap". This makes it possible to use devnet 3 and testnet 3. #1973

Merged
merged 4 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- [#1968](https://github.com/NibiruChain/nibiru/pull/1968) - refactor(evm): funtoken events, cli commands and queries
- [#1970](https://github.com/NibiruChain/nibiru/pull/1970) - refactor(evm): move evm antehandlers to separate package. Remove "gosdk/sequence_test.go", which causes a race condition in CI.
- [#1971](https://github.com/NibiruChain/nibiru/pull/1971) - feat(evm): typed events for contract creation, contract execution and transfer
- [#1973](https://github.com/NibiruChain/nibiru/pull/1973) - chore(appconst): Add chain IDs ending in "3" to the "knownEthChainIDMap". This makes it possible to use devnet 3 and testnet 3.

#### Dapp modules: perp, spot, oracle, etc

Expand Down
20 changes: 13 additions & 7 deletions app/appconst/appconst.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,16 +53,22 @@ const (
)

var knownEthChainIDMap = map[string]int64{
"cataclysm-1": ETH_CHAIN_ID_MAINNET,
"cataclysm-1": ETH_CHAIN_ID_MAINNET,

"nibiru-localnet-0": ETH_CHAIN_ID_LOCAL,
"nibiru-localnet-1": ETH_CHAIN_ID_LOCAL,
"nibiru-localnet-2": ETH_CHAIN_ID_LOCAL,
"nibiru-testnet-0": ETH_CHAIN_ID_DEVNET,
"nibiru-testnet-1": ETH_CHAIN_ID_DEVNET,
"nibiru-testnet-2": ETH_CHAIN_ID_DEVNET,
"nibiru-devnet-0": ETH_CHAIN_ID_DEVNET,
"nibiru-devnet-1": ETH_CHAIN_ID_DEVNET,
"nibiru-devnet-2": ETH_CHAIN_ID_DEVNET,
"nibiru-localnet-3": ETH_CHAIN_ID_LOCAL,

"nibiru-testnet-0": ETH_CHAIN_ID_DEVNET,
"nibiru-testnet-1": ETH_CHAIN_ID_DEVNET,
"nibiru-testnet-2": ETH_CHAIN_ID_DEVNET,
"nibiru-testnet-3": ETH_CHAIN_ID_DEVNET,

"nibiru-devnet-0": ETH_CHAIN_ID_DEVNET,
"nibiru-devnet-1": ETH_CHAIN_ID_DEVNET,
"nibiru-devnet-2": ETH_CHAIN_ID_DEVNET,
"nibiru-devnet-3": ETH_CHAIN_ID_DEVNET,
}

// GetEthChainID: Maps the given chain ID from the block's `sdk.Context` to an
Expand Down
Loading