Skip to content

Commit

Permalink
feat: add sepolia, arbitrum, centrifuge to stagenet (#115)
Browse files Browse the repository at this point in the history
* feat: deploy ConstAddressDeployer/Create3Deployer to stagenet chains

* gateway improvements

* explorer stub

* fix cli

* fix test

* add url

* fix usage

* deploy gateway

* sepolia deployment

* gas service

* update lock file

* api field
  • Loading branch information
milapsheth authored Nov 10, 2023
1 parent d0c520b commit 0e39a9f
Show file tree
Hide file tree
Showing 10 changed files with 294 additions and 42 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:
run: node evm/deploy-contract.js -c Create3Deployer -m create2 -y

- name: Deploy AxelarGateway
run: node evm/deploy-gateway-v6.2.x.js -m create3 -s "AxelarGateway v6.2" -g 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 -m 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --keyID 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 -y
run: node evm/deploy-gateway-v6.2.x.js -m create3 -s "AxelarGateway v6.2" --governance 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --mintLimiter 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 --keyID 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 -y

- name: Call Method on Gateway
run: node evm/gateway.js --action callContract --destinationChain test2 -y
Expand Down
6 changes: 5 additions & 1 deletion axelar-chains-config/info/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@
"deployer": "0xd55cd98cdE61c3CcE1286F9aF50cDbF16f5dba5b"
},
"ConstAddressDeployer": {
"address": "0x98B2920D53612483F91F12Ed7754E51b4A77919e"
"address": "0x98B2920D53612483F91F12Ed7754E51b4A77919e",
"deployer": "0xE86375704CDb8491a5Ed82D90DceCE02Ee0ac25F",
"deploymentMethod": "create",
"codehash": "0x8fda47a596dfba923270da84e0c32a2d0312f1c03389f83e16f2b5a35ed37fbe",
"predeployCodehash": "0x8fda47a596dfba923270da84e0c32a2d0312f1c03389f83e16f2b5a35ed37fbe"
},
"Create3Deployer": {
"address": "0x6513Aedb4D1593BA12e50644401D976aebDc90d8",
Expand Down
209 changes: 207 additions & 2 deletions axelar-chains-config/info/stagenet.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@
"refundIssuer": "0x2517bA7a3E2cef54c1CD8618e7B0B661A7623817"
},
"ConstAddressDeployer": {
"address": "0x98B2920D53612483F91F12Ed7754E51b4A77919e"
"address": "0x98B2920D53612483F91F12Ed7754E51b4A77919e",
"deployer": "0xE86375704CDb8491a5Ed82D90DceCE02Ee0ac25F",
"deploymentMethod": "create",
"codehash": "0x8fda47a596dfba923270da84e0c32a2d0312f1c03389f83e16f2b5a35ed37fbe",
"predeployCodehash": "0x8fda47a596dfba923270da84e0c32a2d0312f1c03389f83e16f2b5a35ed37fbe"
},
"Create3Deployer": {
"salt": "Create3Deployer",
Expand Down Expand Up @@ -647,7 +651,8 @@
}
},
"explorer": {
"url": "https://explorer.evm-alpha.kava.io"
"url": "https://explorer.evm-alpha.kava.io",
"api": ""
}
},
"optimism": {
Expand Down Expand Up @@ -906,6 +911,206 @@
"predeployCodehash": "0xe2de43b29f2387b6f3575a1b50d566908fc00e03a8d88ad6be74b674a70874d2",
"salt": "InterchainGovernance v5.5"
}
},
"explorer": {
"url": "",
"api": ""
}
},
"ethereum-sepolia": {
"name": "Ethereum-Sepolia",
"id": "ethereum-sepolia",
"chainId": 11155111,
"rpc": "https://1rpc.io/sepolia",
"tokenSymbol": "ETH",
"confirmations": 2,
"contracts": {
"ConstAddressDeployer": {
"address": "0x98B2920D53612483F91F12Ed7754E51b4A77919e",
"deployer": "0xE86375704CDb8491a5Ed82D90DceCE02Ee0ac25F",
"deploymentMethod": "create",
"codehash": "0x8fda47a596dfba923270da84e0c32a2d0312f1c03389f83e16f2b5a35ed37fbe",
"predeployCodehash": "0x8fda47a596dfba923270da84e0c32a2d0312f1c03389f83e16f2b5a35ed37fbe"
},
"Create3Deployer": {
"address": "0x6513Aedb4D1593BA12e50644401D976aebDc90d8",
"deployer": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"deploymentMethod": "create2",
"codehash": "0xf0ad66defbe082df243d4d274e626f557f97579c5c9e19f33d8093d6160808b7",
"predeployCodehash": "0x73fc31262c4bad113c79439fd231281201c7c7d45b50328bd86bccf37684bf92",
"salt": "Create3Deployer"
},
"AxelarGateway": {
"startingKeyIDs": [
"evm-ethereum-sepolia-genesis"
],
"authModule": "0x68681A28772177ceEd5519A5f52Bf965c3e112E3",
"tokenDeployer": "0x42dBF20686794C1a82A95A629373ed2E8CFb5fEb",
"deployer": "0x9D97cf3AC20b73c81d8A5233d9FBe09618d4F8bd",
"address": "0x6aF9C075d8C11b9A2CD66bbA801481b3c7A96488",
"implementation": "0x21BB37D5e02Ef479E34f6806C36a506c63741cc1",
"implementationCodehash": "0xd598b518b39d1ff405642adf3da87ba9b6bbdf26b2dbcecc013beaa360ed2874",
"deploymentMethod": "create3",
"salt": "AxelarGateway v6.2"
},
"InterchainGovernance": {
"address": "0x9D97cf3AC20b73c81d8A5233d9FBe09618d4F8bd"
},
"Multisig": {
"address": "0x9D97cf3AC20b73c81d8A5233d9FBe09618d4F8bd"
},
"Operators": {
"owner": "0x9D97cf3AC20b73c81d8A5233d9FBe09618d4F8bd",
"address": "0xB77A61a241a756E4817c845BEDE7e213a319b1DD",
"deployer": "0x9D97cf3AC20b73c81d8A5233d9FBe09618d4F8bd",
"deploymentMethod": "create2",
"codehash": "0xc561dc32ef670c929db9d7fbf6b5f6c074a62a30602481ba3b88912ca6d79feb",
"predeployCodehash": "0xc561dc32ef670c929db9d7fbf6b5f6c074a62a30602481ba3b88912ca6d79feb",
"salt": "Operators"
},
"AxelarGasService": {
"collector": "0xB77A61a241a756E4817c845BEDE7e213a319b1DD",
"salt": "AxelarGasService",
"address": "0x47E840B35e0eca3E7C0577835DD78d95574873e7",
"implementation": "0x488E54121f7995feF259d15bE688C68142F9a146",
"deployer": "0x9D97cf3AC20b73c81d8A5233d9FBe09618d4F8bd"
}
},
"explorer": {
"url": "https://sepolia.etherscan.io",
"api": "https://api-sepolia.etherscan.io/api"
},
"gasOptions": {
"maxFeePerGas": 110000000,
"maxPriorityFeePerGas": 100000000
}
},
"arbitrum-sepolia": {
"name": "Arbitrum-Sepolia",
"id": "arbitrum-sepolia",
"chainId": 421614,
"rpc": "https://sepolia-rollup.arbitrum.io/rpc",
"tokenSymbol": "ETH",
"confirmations": 2,
"contracts": {
"AxelarGateway": {
"startingKeyIDs": [
"evm-arbitrum-sepolia-genesis"
],
"address": "0x6aF9C075d8C11b9A2CD66bbA801481b3c7A96488",
"authModule": "0x027A6E4fF748109FFB6F7BC93774e733cA75Faae",
"tokenDeployer": "0x42dBF20686794C1a82A95A629373ed2E8CFb5fEb",
"implementation": "0x21BB37D5e02Ef479E34f6806C36a506c63741cc1",
"deployer": "0x9D97cf3AC20b73c81d8A5233d9FBe09618d4F8bd",
"implementationCodehash": "0x3bc4c63fa8e285249f882b5b0b3d567a9d8c9c4b8efbb624f59ddcb074e908e2",
"deploymentMethod": "create3",
"salt": "AxelarGateway v6.2"
},
"ConstAddressDeployer": {
"address": "0x98B2920D53612483F91F12Ed7754E51b4A77919e",
"deployer": "0xE86375704CDb8491a5Ed82D90DceCE02Ee0ac25F",
"deploymentMethod": "create",
"codehash": "0x8fda47a596dfba923270da84e0c32a2d0312f1c03389f83e16f2b5a35ed37fbe",
"predeployCodehash": "0x8fda47a596dfba923270da84e0c32a2d0312f1c03389f83e16f2b5a35ed37fbe"
},
"Create3Deployer": {
"address": "0x6513Aedb4D1593BA12e50644401D976aebDc90d8",
"deployer": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"deploymentMethod": "create2",
"codehash": "0xf0ad66defbe082df243d4d274e626f557f97579c5c9e19f33d8093d6160808b7",
"predeployCodehash": "0x73fc31262c4bad113c79439fd231281201c7c7d45b50328bd86bccf37684bf92",
"salt": "Create3Deployer"
},
"InterchainGovernance": {
"address": "0x9D97cf3AC20b73c81d8A5233d9FBe09618d4F8bd"
},
"Multisig": {
"address": "0x9D97cf3AC20b73c81d8A5233d9FBe09618d4F8bd"
},
"Operators": {
"owner": "0x9D97cf3AC20b73c81d8A5233d9FBe09618d4F8bd",
"address": "0xB77A61a241a756E4817c845BEDE7e213a319b1DD",
"deployer": "0x9D97cf3AC20b73c81d8A5233d9FBe09618d4F8bd",
"deploymentMethod": "create2",
"codehash": "0xc561dc32ef670c929db9d7fbf6b5f6c074a62a30602481ba3b88912ca6d79feb",
"predeployCodehash": "0xc561dc32ef670c929db9d7fbf6b5f6c074a62a30602481ba3b88912ca6d79feb",
"salt": "Operators"
},
"AxelarGasService": {
"collector": "0xB77A61a241a756E4817c845BEDE7e213a319b1DD",
"salt": "AxelarGasService",
"address": "0x47E840B35e0eca3E7C0577835DD78d95574873e7",
"implementation": "0xe0Ad88660B5B09fE9FF8bA6f1dba1A826b1C7583",
"deployer": "0x9D97cf3AC20b73c81d8A5233d9FBe09618d4F8bd"
}
},
"explorer": {
"url": "https://sepolia.arbiscan.io",
"api": "https://api-sepolia.arbiscan.io/api"
}
},
"centrifuge": {
"name": "Centrifuge",
"id": "centrifuge-2",
"chainId": 2090,
"rpc": "https://node-7118620155331796992.gx.onfinality.io/rpc?apikey=00538f2d-6297-44e3-8812-4b9d579524b2",
"tokenSymbol": "CFG",
"confirmations": 1,
"contracts": {
"ConstAddressDeployer": {
"address": "0x98B2920D53612483F91F12Ed7754E51b4A77919e",
"deployer": "0xE86375704CDb8491a5Ed82D90DceCE02Ee0ac25F",
"deploymentMethod": "create",
"codehash": "0x8fda47a596dfba923270da84e0c32a2d0312f1c03389f83e16f2b5a35ed37fbe",
"predeployCodehash": "0x8fda47a596dfba923270da84e0c32a2d0312f1c03389f83e16f2b5a35ed37fbe"
},
"Create3Deployer": {
"address": "0x6513Aedb4D1593BA12e50644401D976aebDc90d8",
"deployer": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"deploymentMethod": "create2",
"codehash": "0xf0ad66defbe082df243d4d274e626f557f97579c5c9e19f33d8093d6160808b7",
"predeployCodehash": "0x73fc31262c4bad113c79439fd231281201c7c7d45b50328bd86bccf37684bf92",
"salt": "Create3Deployer"
},
"AxelarGateway": {
"deployer": "0x9D97cf3AC20b73c81d8A5233d9FBe09618d4F8bd",
"startingKeyIDs": [
"evm-centrifuge-2-genesis"
],
"address": "0x6aF9C075d8C11b9A2CD66bbA801481b3c7A96488",
"implementation": "0x21BB37D5e02Ef479E34f6806C36a506c63741cc1",
"implementationCodehash": "0x3bc4c63fa8e285249f882b5b0b3d567a9d8c9c4b8efbb624f59ddcb074e908e2",
"authModule": "0x027A6E4fF748109FFB6F7BC93774e733cA75Faae",
"tokenDeployer": "0x42dBF20686794C1a82A95A629373ed2E8CFb5fEb",
"deploymentMethod": "create3",
"salt": "AxelarGateway v6.2"
},
"InterchainGovernance": {
"address": "0x9D97cf3AC20b73c81d8A5233d9FBe09618d4F8bd"
},
"Multisig": {
"address": "0x9D97cf3AC20b73c81d8A5233d9FBe09618d4F8bd"
},
"Operators": {
"owner": "0x9D97cf3AC20b73c81d8A5233d9FBe09618d4F8bd",
"address": "0xB77A61a241a756E4817c845BEDE7e213a319b1DD",
"deployer": "0x9D97cf3AC20b73c81d8A5233d9FBe09618d4F8bd",
"deploymentMethod": "create2",
"codehash": "0xc561dc32ef670c929db9d7fbf6b5f6c074a62a30602481ba3b88912ca6d79feb",
"predeployCodehash": "0xc561dc32ef670c929db9d7fbf6b5f6c074a62a30602481ba3b88912ca6d79feb",
"salt": "Operators"
},
"AxelarGasService": {
"collector": "0xB77A61a241a756E4817c845BEDE7e213a319b1DD",
"salt": "AxelarGasService",
"address": "0x47E840B35e0eca3E7C0577835DD78d95574873e7",
"implementation": "0x488E54121f7995feF259d15bE688C68142F9a146",
"deployer": "0x9D97cf3AC20b73c81d8A5233d9FBe09618d4F8bd"
}
},
"explorer": {
"url": "",
"api": ""
}
}
},
Expand Down
6 changes: 5 additions & 1 deletion axelar-chains-config/info/testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@
"refundIssuer": "0x4f671f34d2d23fec3eE3087E3A0221f8D314D9dF"
},
"ConstAddressDeployer": {
"address": "0x98B2920D53612483F91F12Ed7754E51b4A77919e"
"address": "0x98B2920D53612483F91F12Ed7754E51b4A77919e",
"deployer": "0xE86375704CDb8491a5Ed82D90DceCE02Ee0ac25F",
"deploymentMethod": "create",
"codehash": "0x8fda47a596dfba923270da84e0c32a2d0312f1c03389f83e16f2b5a35ed37fbe",
"predeployCodehash": "0x8fda47a596dfba923270da84e0c32a2d0312f1c03389f83e16f2b5a35ed37fbe"
},
"Create3Deployer": {
"salt": "Create3Deployer",
Expand Down
12 changes: 6 additions & 6 deletions axelar-chains-config/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion evm/deploy-contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,18 @@ async function processCommand(config, chain, options) {
const existingAddress = config.chains.ethereum?.contracts?.[contractName]?.address;

if (existingAddress !== undefined && predictedAddress !== existingAddress) {
printWarn(`Predicted address ${predictedAddress} does not match existing deployment ${existingAddress} on chain ${chain.name}.`);
printWarn(
`Predicted address ${predictedAddress} does not match existing deployment ${existingAddress} on chain ${config.chains.ethereum.name}.`,
);

const existingCodeHash = config.chains.ethereum.contracts[contractName].predeployCodehash;

if (predeployCodehash !== existingCodeHash) {
printWarn(
`Pre-deploy bytecode hash ${predeployCodehash} does not match existing deployment's predeployCodehash ${existingCodeHash} on chain ${config.chains.ethereum.name}.`,
);
}

printWarn('For official deployment, recheck the deployer, salt, args, or contract bytecode.');
}

Expand Down
Loading

0 comments on commit 0e39a9f

Please sign in to comment.