Skip to content

Commit

Permalink
feat(evm): deploy ITS contracts to immutable
Browse files Browse the repository at this point in the history
  • Loading branch information
milapsheth committed Jul 22, 2024
1 parent bb9c89c commit 6747008
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 18 deletions.
25 changes: 20 additions & 5 deletions axelar-chains-config/info/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@
"id": "binance",
"axelarId": "binance",
"chainId": 56,
"rpc": "https://1rpc.io/bnb",
"rpc": "https://bscrpc.com",
"tokenSymbol": "BNB",
"wrappedSymbol": "WBNB",
"contracts": {
Expand Down Expand Up @@ -2040,9 +2040,6 @@
"implementation": "0x5aE753f0A558617133bd1ccd98374E222e015763",
"deployer": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC"
},
"InterchainTokenService": {
"skip": true
},
"InterchainGovernance": {
"address": "0x35dFacdE7B4b80e156e69b1291D12EA51ce123BD",
"minimumTimeDelay": 604800,
Expand Down Expand Up @@ -2091,6 +2088,25 @@
"codehash": "0xf0ad66defbe082df243d4d274e626f557f97579c5c9e19f33d8093d6160808b7",
"predeployCodehash": "0x73fc31262c4bad113c79439fd231281201c7c7d45b50328bd86bccf37684bf92",
"salt": "Create3Deployer"
},
"InterchainTokenService": {
"salt": "ITS v1.2.4",
"deployer": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"proxySalt": "ITS v1.0.0",
"tokenManagerDeployer": "0x44dDBDD2c6CC9c5e0F4555620c06b1411F99Dc03",
"interchainToken": "0x2f8102DeA2caaee1Ec5Fe67754F828353C4c180F",
"interchainTokenDeployer": "0xCE014b2DCB26d77d4e8206A7EF5e33985E442d38",
"tokenManager": "0x81a0545091864617E7037171FdfcBbdCFE3aeb23",
"tokenHandler": "0x07715674F74c560200c7C95430673180812fCE73",
"implementation": "0x6d59D9360BDAe406614b7E61c53F43a03198A4ef",
"predeployCodehash": "0x08a4a556c4db879b4f24104d13a8baf86915d58b12c81b382dfea2a82d2856cf",
"address": "0xB5FB4BE02232B1bBA4dC8f81dc24C26980dE9e3C"
},
"InterchainTokenFactory": {
"deployer": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"salt": "ITS Factory v1.0.0",
"implementation": "0xA852412D2d91fE05d790934B6E64C3C351fAB54f",
"address": "0x83a93500d23Fbc3e82B410aD07A6a9F7A0670D66"
}
},
"gasOptions": {
Expand Down Expand Up @@ -2370,4 +2386,3 @@
"axelarscanApi": "https://api.axelarscan.io"
}
}

27 changes: 22 additions & 5 deletions axelar-chains-config/info/testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,23 @@
"deployer": "0x5b593E7b1725dc6FcbbFe80b2415B19153F94A85"
},
"InterchainTokenService": {
"skip": true
"salt": "ITS v1.2.4",
"deployer": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"proxySalt": "ITS v1.0.0",
"tokenManagerDeployer": "0x44dDBDD2c6CC9c5e0F4555620c06b1411F99Dc03",
"interchainToken": "0x2f8102DeA2caaee1Ec5Fe67754F828353C4c180F",
"interchainTokenDeployer": "0xCE014b2DCB26d77d4e8206A7EF5e33985E442d38",
"tokenManager": "0x81a0545091864617E7037171FdfcBbdCFE3aeb23",
"tokenHandler": "0x07715674F74c560200c7C95430673180812fCE73",
"implementation": "0x6d59D9360BDAe406614b7E61c53F43a03198A4ef",
"predeployCodehash": "0x08a4a556c4db879b4f24104d13a8baf86915d58b12c81b382dfea2a82d2856cf",
"address": "0xB5FB4BE02232B1bBA4dC8f81dc24C26980dE9e3C"
},
"InterchainTokenFactory": {
"deployer": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"salt": "ITS Factory v1.0.0",
"implementation": "0xA852412D2d91fE05d790934B6E64C3C351fAB54f",
"address": "0x83a93500d23Fbc3e82B410aD07A6a9F7A0670D66"
}
},
"gasOptions": {
Expand Down Expand Up @@ -1899,7 +1915,7 @@
"id": "polygon-sepolia",
"axelarId": "polygon-sepolia",
"chainId": 80002,
"rpc": "https://polygon-amoy.blockpi.network/v1/rpc/public",
"rpc": "https://rpc-amoy.polygon.technology",
"tokenSymbol": "MATIC",
"confirmations": 2,
"contracts": {
Expand Down Expand Up @@ -1997,7 +2013,8 @@
"api": "https://api-amoy.polygonscan.com/api"
},
"gasOptions": {
"gasLimit": 6000000
"gasLimit": 6000000,
"gasPriceAdjustment": 1.5
},
"finality": "finalized",
"approxFinalityWaitTime": 1
Expand Down Expand Up @@ -2104,7 +2121,8 @@
"api": "https://api-sepolia.lineascan.build/api"
},
"gasOptions": {
"gasLimit": 7000000
"gasLimit": 7000000,
"gasPriceAdjustment": 1.4
},
"confirmations": 1,
"finality": "400",
Expand Down Expand Up @@ -2146,4 +2164,3 @@
"axelarscanApi": "https://testnet.api.axelarscan.io"
}
}

5 changes: 2 additions & 3 deletions axelar-chains-config/package-lock.json

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

2 changes: 1 addition & 1 deletion axelar-chains-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@axelar-network/axelar-chains-config",
"version": "1.3.0",
"version": "1.4.0",
"description": "A utility to get chain information from Axelar",
"main": "src/index.js",
"types": "dist/index.d.ts",
Expand Down
2 changes: 1 addition & 1 deletion axelar-chains-config/src/utils/verifyContract.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const verifyContract = (env, chain, contract, args, options = {}) => {
execSync(cmd, { stdio: ['inherit', 'pipe', 'pipe'] });
console.log('Verified!');
} catch (error) {
if (error.message.includes('Reason: Already Verified')) {
if (error.message.toLowerCase().includes('already verified')) {
console.log(`Contract ${contract} is already verified on ${chain.toLowerCase()}.`);
} else {
throw new Error(`An error occurred while trying to verify ${contract} on ${chain.toLowerCase()}:\n${error}`);
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@axelar-network/axelar-contract-deployments",
"version": "1.3.0",
"version": "1.4.0",
"description": "Axelar contract deployment scripts",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 6747008

Please sign in to comment.