Skip to content

Commit

Permalink
Deploy Snaxchain mainnet
Browse files Browse the repository at this point in the history
  • Loading branch information
bruce-riley authored and evan-gray committed Aug 16, 2024
1 parent 61c44ca commit 092cbfc
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 12 deletions.
10 changes: 5 additions & 5 deletions clients/js/src/consts/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ const Mainnet = {
chain_id: undefined,
},
Snaxchain: {
rpc: undefined,
key: undefined,
chain_id: undefined,
rpc: "https://mainnet.snaxchain.io",
key: getEnvVar("ETH_KEY"),
chain_id: 2192,
},
Seievm: {
rpc: undefined,
Expand Down Expand Up @@ -420,9 +420,9 @@ const Testnet = {
chain_id: 80084,
},
Snaxchain: {
rpc: "https://rpc-snaxchain-s50q0kjngn.t.conduit.xyz/",
rpc: "https://testnet.snaxchain.io",
key: getEnvVar("ETH_KEY_TESTNET"),
chain_id: 2192,
chain_id: 13001,
},
Seievm: {
rpc: "https://evm-rpc-arctic-1.sei-apis.com/",
Expand Down
2 changes: 1 addition & 1 deletion ethereum/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ ethereum$ MNEMONIC= ./sh/upgrade.sh testnet TokenBridge blast
#### Registering Other Chains on a New TokenBridge

```shell
ethereum$ MNEMONIC= ./sh/registerAllChainsOnTokenBridge.sh.sh testnet blast
ethereum$ MNEMONIC= ./sh/registerAllChainsOnTokenBridge.sh testnet blast
```

### Deploying using Truffle (deprecated)
Expand Down
6 changes: 3 additions & 3 deletions ethereum/env/.env.snaxchain.testnet
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@
# Rename to .env

# Common config for forge deployment
RPC_URL="https://rpc-snaxchain-s50q0kjngn.t.conduit.xyz/"
RPC_URL="https://testnet.snaxchain.io"
FORGE_ARGS="--legacy"

# Wormhole Core Migrations
INIT_SIGNERS=["0x13947Bd48b18E53fdAeEe77F3473391aC727C638"]
INIT_CHAIN_ID=43
INIT_GOV_CHAIN_ID=0x1
INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004
INIT_EVM_CHAIN_ID=2192
INIT_EVM_CHAIN_ID=13001

# Bridge Migrations
BRIDGE_INIT_CHAIN_ID=43
BRIDGE_INIT_GOV_CHAIN_ID=0x1
BRIDGE_INIT_GOV_CONTRACT=0x0000000000000000000000000000000000000000000000000000000000000004
BRIDGE_INIT_FINALITY=1
# TODO: This exists. Is this what we should use?
# I think this is right. It’s what we use on Optimism, and it exists on Snax. . .
BRIDGE_INIT_WETH=0x4200000000000000000000000000000000000006
2 changes: 1 addition & 1 deletion node/cmd/guardiand/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -663,7 +663,7 @@ func runNode(cmd *cobra.Command, args []string) {
*blastContract = checkEvmArgs(logger, *blastRPC, *blastContract, "blast", true)
*xlayerContract = checkEvmArgs(logger, *xlayerRPC, *xlayerContract, "xlayer", true)
*berachainContract = checkEvmArgs(logger, *berachainRPC, *berachainContract, "berachain", false)
*snaxchainContract = checkEvmArgs(logger, *snaxchainRPC, *snaxchainContract, "snaxchain", false)
*snaxchainContract = checkEvmArgs(logger, *snaxchainRPC, *snaxchainContract, "snaxchain", true)

// These chains will only ever be testnet / devnet.
*sepoliaContract = checkEvmArgs(logger, *sepoliaRPC, *sepoliaContract, "sepolia", false)
Expand Down
1 change: 1 addition & 0 deletions node/pkg/governor/mainnet_chains.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,6 @@ func chainList() []chainConfigEntry {
{emitterChainID: vaa.ChainIDBlast, dailyLimit: 500_000, bigTransactionSize: 50_000},
{emitterChainID: vaa.ChainIDXLayer, dailyLimit: 500_000, bigTransactionSize: 50_000},
{emitterChainID: vaa.ChainIDWormchain, dailyLimit: 500_000, bigTransactionSize: 50_000},
{emitterChainID: vaa.ChainIDSnaxchain, dailyLimit: 500_000, bigTransactionSize: 50_000},
}
}
4 changes: 2 additions & 2 deletions sdk/js/src/utils/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,8 @@ const MAINNET = {
nft_bridge: undefined,
},
snaxchain: {
core: undefined,
token_bridge: undefined,
core: "0xc1BA3CC4bFE724A08FbbFbF64F8db196738665f4",
token_bridge: "0x8B94bfE456B48a6025b92E11Be393BAa86e68410",
nft_bridge: undefined,
},
wormchain: {
Expand Down
2 changes: 2 additions & 0 deletions sdk/mainnet_consts.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ var knownTokenbridgeEmitters = map[vaa.ChainID]string{
vaa.ChainIDMantle: "00000000000000000000000024850c6f61C438823F01B7A3BF2B89B72174Fa9d",
vaa.ChainIDBlast: "00000000000000000000000024850c6f61C438823F01B7A3BF2B89B72174Fa9d",
vaa.ChainIDXLayer: "0000000000000000000000005537857664B0f9eFe38C9f320F75fEf23234D904",
vaa.ChainIDSnaxchain: "0000000000000000000000008B94bfE456B48a6025b92E11Be393BAa86e68410",
vaa.ChainIDInjective: "00000000000000000000000045dbea4617971d93188eda21530bc6503d153313",
vaa.ChainIDSui: "ccceeb29348f71bdd22ffef43a2a19c1f5b5e17c5cca5411529120182672ade5",
vaa.ChainIDSei: "86c5fd957e2db8389553e1728f9c27964b22a8154091ccba54d75f4b10c61f5e",
Expand Down Expand Up @@ -189,4 +190,5 @@ var KnownAutomaticRelayerEmitters = []struct {
{ChainId: vaa.ChainIDBlast, Addr: "00000000000000000000000027428DD2d3DD32A4D7f7C497eAaa23130d894911"},
{ChainId: vaa.ChainIDMantle, Addr: "00000000000000000000000027428dd2d3dd32a4d7f7c497eaaa23130d894911"},
{ChainId: vaa.ChainIDXLayer, Addr: "00000000000000000000000027428dd2d3dd32a4d7f7c497eaaa23130d894911"},
{ChainId: vaa.ChainIDSnaxchain, Addr: "00000000000000000000000027428DD2d3DD32A4D7f7C497eAaa23130d894911"},
}

0 comments on commit 092cbfc

Please sign in to comment.