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(evm): transfer ownership of testnet operators #318

Merged
merged 3 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from 2 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: 0 additions & 1 deletion axelar-chains-config/info/devnet-amplifier.json
Original file line number Diff line number Diff line change
Expand Up @@ -455,4 +455,3 @@
"gasLimit": "auto"
}
}

1 change: 0 additions & 1 deletion axelar-chains-config/info/devnet-verifiers.json
Original file line number Diff line number Diff line change
Expand Up @@ -549,4 +549,3 @@
"gasLimit": "auto"
}
}

1 change: 0 additions & 1 deletion axelar-chains-config/info/mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -2386,4 +2386,3 @@
"axelarscanApi": "https://api.axelarscan.io"
}
}

1 change: 0 additions & 1 deletion axelar-chains-config/info/stagenet.json
Original file line number Diff line number Diff line change
Expand Up @@ -641,4 +641,3 @@
"axelarscanApi": "https://testnet.api.axelarscan.io"
}
}

39 changes: 19 additions & 20 deletions axelar-chains-config/info/testnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"salt": "Multisig v5.5"
},
"Operators": {
"owner": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"owner": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"address": "0x7F83F5cA2AE4206AbFf8a3C3668e88ce5F11C0B5",
"deployer": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"deploymentMethod": "create2",
Expand Down Expand Up @@ -191,7 +191,7 @@
"salt": "InterchainProposalSender v1.2"
},
"Operators": {
"owner": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"owner": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"address": "0x7F83F5cA2AE4206AbFf8a3C3668e88ce5F11C0B5",
"deployer": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"deploymentMethod": "create2",
Expand Down Expand Up @@ -307,7 +307,7 @@
"salt": "InterchainProposalSender v1.2"
},
"Operators": {
"owner": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"owner": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"address": "0x7F83F5cA2AE4206AbFf8a3C3668e88ce5F11C0B5",
"deployer": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"deploymentMethod": "create2",
Expand Down Expand Up @@ -404,7 +404,7 @@
"salt": "InterchainProposalSender v1.2"
},
"Operators": {
"owner": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"owner": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"address": "0x7F83F5cA2AE4206AbFf8a3C3668e88ce5F11C0B5",
"deployer": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"deploymentMethod": "create2",
Expand Down Expand Up @@ -520,7 +520,7 @@
"salt": "InterchainProposalSender v1.2"
},
"Operators": {
"owner": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"owner": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"address": "0x7F83F5cA2AE4206AbFf8a3C3668e88ce5F11C0B5",
"deployer": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"deploymentMethod": "create2",
Expand Down Expand Up @@ -658,7 +658,7 @@
"salt": "InterchainProposalSender v1.2"
},
"Operators": {
"owner": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"owner": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"address": "0x7F83F5cA2AE4206AbFf8a3C3668e88ce5F11C0B5",
"deployer": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"deploymentMethod": "create2",
Expand Down Expand Up @@ -753,7 +753,7 @@
"salt": "InterchainProposalSender v1.2"
},
"Operators": {
"owner": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"owner": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"address": "0x7F83F5cA2AE4206AbFf8a3C3668e88ce5F11C0B5",
"deployer": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"deploymentMethod": "create2",
Expand Down Expand Up @@ -861,7 +861,7 @@
"salt": "InterchainProposalSender v1.2"
},
"Operators": {
"owner": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"owner": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"address": "0x7F83F5cA2AE4206AbFf8a3C3668e88ce5F11C0B5",
"deployer": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"deploymentMethod": "create2",
Expand Down Expand Up @@ -962,7 +962,7 @@
"address": "0x98B2920D53612483F91F12Ed7754E51b4A77919e"
},
"Operators": {
"owner": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"owner": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"address": "0x7F83F5cA2AE4206AbFf8a3C3668e88ce5F11C0B5",
"deployer": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"deploymentMethod": "create2",
Expand Down Expand Up @@ -1102,7 +1102,7 @@
"salt": "Multisig v5.5"
},
"Operators": {
"owner": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"owner": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"address": "0x7F83F5cA2AE4206AbFf8a3C3668e88ce5F11C0B5",
"deployer": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"deploymentMethod": "create2",
Expand Down Expand Up @@ -1212,7 +1212,7 @@
"salt": "Multisig v5.5"
},
"Operators": {
"owner": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"owner": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"address": "0x7F83F5cA2AE4206AbFf8a3C3668e88ce5F11C0B5",
"deployer": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"deploymentMethod": "create2",
Expand Down Expand Up @@ -1321,7 +1321,7 @@
"salt": "Multisig v5.5"
},
"Operators": {
"owner": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"owner": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"address": "0x7F83F5cA2AE4206AbFf8a3C3668e88ce5F11C0B5",
"deployer": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"deploymentMethod": "create2",
Expand Down Expand Up @@ -1425,7 +1425,7 @@
"deployer": "0x5b593E7b1725dc6FcbbFe80b2415B19153F94A85"
},
"Operators": {
"owner": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"owner": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"address": "0x7F83F5cA2AE4206AbFf8a3C3668e88ce5F11C0B5",
"deployer": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"deploymentMethod": "create2",
Expand Down Expand Up @@ -1537,7 +1537,7 @@
"salt": "Multisig v5.5"
},
"Operators": {
"owner": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"owner": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"address": "0x7F83F5cA2AE4206AbFf8a3C3668e88ce5F11C0B5",
"deployer": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"deploymentMethod": "create2",
Expand Down Expand Up @@ -1650,7 +1650,7 @@
"salt": "Multisig v5.5"
},
"Operators": {
"owner": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"owner": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"address": "0x7F83F5cA2AE4206AbFf8a3C3668e88ce5F11C0B5",
"deployer": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"deploymentMethod": "create2",
Expand Down Expand Up @@ -1763,7 +1763,7 @@
"salt": "Multisig v5.5"
},
"Operators": {
"owner": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"owner": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"address": "0x7F83F5cA2AE4206AbFf8a3C3668e88ce5F11C0B5",
"deployer": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"deploymentMethod": "create2",
Expand Down Expand Up @@ -1873,7 +1873,7 @@
"salt": "AxelarGateway v6.2"
},
"Operators": {
"owner": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"owner": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"address": "0x7F83F5cA2AE4206AbFf8a3C3668e88ce5F11C0B5",
"deployer": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"deploymentMethod": "create2",
Expand Down Expand Up @@ -1973,7 +1973,7 @@
"salt": "Multisig v5.5"
},
"Operators": {
"owner": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"owner": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"address": "0x7F83F5cA2AE4206AbFf8a3C3668e88ce5F11C0B5",
"deployer": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"deploymentMethod": "create2",
Expand Down Expand Up @@ -2081,7 +2081,7 @@
"salt": "Multisig v5.5"
},
"Operators": {
"owner": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"owner": "0x6f24A47Fc8AE5441Eb47EFfC3665e70e69Ac3F05",
"address": "0x7F83F5cA2AE4206AbFf8a3C3668e88ce5F11C0B5",
"deployer": "0xB8Cd93C83A974649D76B1c19f311f639e62272BC",
"deploymentMethod": "create2",
Expand Down Expand Up @@ -2164,4 +2164,3 @@
"axelarscanApi": "https://testnet.api.axelarscan.io"
}
}

1 change: 0 additions & 1 deletion evm/.example.keys.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,3 @@
"private key 2"
]
}

2 changes: 1 addition & 1 deletion evm/balances.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ async function processCommand(_, chain, options) {
const provider = getDefaultProvider(chain.rpc);

const wallet = await getWallet(options.privateKey, provider);
await printWalletInfo(wallet, options);
await printWalletInfo(wallet, options, chain);
}

async function main(options) {
Expand Down
1 change: 0 additions & 1 deletion evm/legacy/ConstAddressDeployer.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,3 @@
"linkReferences": {},
"deployedLinkReferences": {}
}

1 change: 0 additions & 1 deletion evm/nonces.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,4 +164,3 @@
}
}
}

2 changes: 1 addition & 1 deletion evm/operators.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ async function processCommand(config, chain, options) {
}

const isOperator = await operatorsContract.isOperator(operatorAddress);
printInfo(`Is ${operatorAddress} an operator?`, `${isOperator}`);
printInfo(`Is ${operatorAddress} an operator on ${chain.name}?`, `${isOperator}`);

break;
}
Expand Down
4 changes: 0 additions & 4 deletions evm/send-tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,6 @@ async function processCommand(_, chain, options) {
...gasOptions,
};

if (!offline && chain.name.toLowerCase() === 'binance') {
tx.gasPrice = (await provider.getGasPrice()) * 1.2;
}

const { baseTx, signedTx } = await signTransaction(wallet, chain, tx, options);

if (offline) {
Expand Down
4 changes: 2 additions & 2 deletions evm/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ function saveParallelExecutionConfig(config, env, chain) {
writeJSON(config, `${__dirname}/../chains-info/${env}-${chain}.json`);
}

async function printWalletInfo(wallet, options = {}) {
async function printWalletInfo(wallet, options = {}, chain = {}) {
let balance = 0;
const address = await wallet.getAddress();
printInfo('Wallet address', address);
Expand All @@ -718,7 +718,7 @@ async function printWalletInfo(wallet, options = {}) {
if (balance.isZero()) {
printError('Wallet balance', '0');
} else {
printInfo('Wallet balance', `${balance / 1e18}`);
printInfo('Wallet balance', `${balance / 1e18} ${chain.tokenSymbol || ''}`);
}

printInfo('Wallet nonce', (await wallet.provider.getTransactionCount(address)).toString());
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"main": "index.js",
"scripts": {
"lint": "eslint --fix '**/*.js'",
"prettier": "prettier --write '**/*.js' 'axelar-chains-config/info/*.json' 'package.json' 'evm/**/*.json' '.github/**/*.yaml' && find axelar-chains-config/info evm -name \"*.json\" -type f -print0 | xargs -0 -I {} sh -c 'echo \"\" >> \"{}\"'"
"prettier": "prettier --write '**/*.js' 'axelar-chains-config/info/*.json' 'package.json' 'evm/**/*.json' '.github/**/*.yaml'"
},
"repository": {
"type": "git",
Expand Down
Loading