diff --git a/axelar-chains-config/info/mainnet.json b/axelar-chains-config/info/mainnet.json index e645b73a..de91c9e9 100644 --- a/axelar-chains-config/info/mainnet.json +++ b/axelar-chains-config/info/mainnet.json @@ -270,7 +270,7 @@ "name": "Binance", "id": "binance", "chainId": 56, - "rpc": "https://bscrpc.com", + "rpc": "https://1rpc.io/bnb", "tokenSymbol": "BNB", "wrappedSymbol": "WBNB", "contracts": { diff --git a/evm/check-wallet-balance.js b/evm/check-wallet-balance.js index f9385e95..2177c83e 100644 --- a/evm/check-wallet-balance.js +++ b/evm/check-wallet-balance.js @@ -22,22 +22,22 @@ async function processCommand(_, chain, options) { const gasLimit = BigNumber.from(staticGasOptions.gasLimit); const gasPrice = BigNumber.from(staticGasOptions.gasPrice); - const minRequiredBalance = gasLimit * gasPrice; + const minRequiredBalance = gasLimit * gasPrice * 1.5; const nonceData = getNonceFileData(); const nonces = nonceData[options.env][chainName]; if (addresses) { addresses = JSON.parse(addresses); } else { - addresses = Object.entries(nonces); + addresses = Object.keys(nonces); } for (const address of addresses) { const balance = await provider.getBalance(address); if (balance < minRequiredBalance) { - printError('Minimum required Balance is', `${minRequiredBalance / 1e18}`); - printError(`Wallet Balance for address ${address} is`, `${balance / 1e18}`); + printError(`${chain.name} minimum required Balance`, `${minRequiredBalance / 1e18}`); + printError(`${chain.name} Wallet Balance for ${address} is`, `${balance / 1e18}`); } } } diff --git a/evm/deploy-gateway-v5.0.x.js b/evm/deploy-gateway-v6.2.x.js similarity index 100% rename from evm/deploy-gateway-v5.0.x.js rename to evm/deploy-gateway-v6.2.x.js diff --git a/evm/governance.js b/evm/governance.js index 4eff3b4a..64c456f2 100644 --- a/evm/governance.js +++ b/evm/governance.js @@ -30,6 +30,8 @@ const { getWallet } = require('./sign-utils.js'); const IGovernance = require('@axelar-network/axelar-gmp-sdk-solidity/interfaces/IAxelarServiceGovernance.json'); const IGateway = require('@axelar-network/axelar-gmp-sdk-solidity/interfaces/IAxelarGateway.json'); +let proposals = []; + async function getGatewaySetupParams(governance, gateway, contracts, options) { const currGovernance = await gateway.governance(); const currMintLimiter = await gateway.mintLimiter(); @@ -527,13 +529,26 @@ async function processCommand(_, chain, options) { ], }; + // Print all proposals together + proposals.push(proposal.contract_calls[0]); + // printInfo('Proposal', JSON.stringify(proposal, null, 2)); - console.log(JSON.stringify(proposal.contract_calls[0])); + // console.log(JSON.stringify(proposal.contract_calls[0])); } } async function main(options) { + proposals = []; + await mainProcessor(options, processCommand); + + const proposal = { + title: 'Interchain Governance Proposal', + description: 'Interchain Governance Proposal', + contract_calls: proposals, + }; + + printInfo('Proposal', JSON.stringify(proposal, null, 2)); } const program = new Command(); diff --git a/evm/nonces.json b/evm/nonces.json new file mode 100644 index 00000000..43d5ea23 --- /dev/null +++ b/evm/nonces.json @@ -0,0 +1,124 @@ +{ + "mainnet": { + "ethereum": { + "0x3f5876a2b06E54949aB106651Ab6694d0289b2b4": 15, + "0x9256Fd872118ed3a97754B0fB42c15015d17E0CC": 15, + "0x1486157d505C7F7E546aD00E3E2Eee25BF665C9b": 11, + "0x2eC991B5c0B742AbD9d2ea31fe6c14a85e91C821": 2, + "0xf505462A29E36E26f25Ef0175Ca1eCBa09CC118f": 0, + "0x027c1882B975E2cd771AE068b0389FA38B9dda73": 13 + }, + "avalanche": { + "0x3f5876a2b06E54949aB106651Ab6694d0289b2b4": 11, + "0x9256Fd872118ed3a97754B0fB42c15015d17E0CC": 11, + "0x1486157d505C7F7E546aD00E3E2Eee25BF665C9b": 8, + "0x2eC991B5c0B742AbD9d2ea31fe6c14a85e91C821": 1, + "0xf505462A29E36E26f25Ef0175Ca1eCBa09CC118f": 0, + "0x027c1882B975E2cd771AE068b0389FA38B9dda73": 10 + }, + "fantom": { + "0x3f5876a2b06E54949aB106651Ab6694d0289b2b4": 11, + "0x9256Fd872118ed3a97754B0fB42c15015d17E0CC": 11, + "0x1486157d505C7F7E546aD00E3E2Eee25BF665C9b": 7, + "0x2eC991B5c0B742AbD9d2ea31fe6c14a85e91C821": 1, + "0xf505462A29E36E26f25Ef0175Ca1eCBa09CC118f": 0, + "0x027c1882B975E2cd771AE068b0389FA38B9dda73": 10 + }, + "polygon": { + "0x3f5876a2b06E54949aB106651Ab6694d0289b2b4": 13, + "0x9256Fd872118ed3a97754B0fB42c15015d17E0CC": 13, + "0x1486157d505C7F7E546aD00E3E2Eee25BF665C9b": 9, + "0x2eC991B5c0B742AbD9d2ea31fe6c14a85e91C821": 3, + "0xf505462A29E36E26f25Ef0175Ca1eCBa09CC118f": 1, + "0x027c1882B975E2cd771AE068b0389FA38B9dda73": 10 + }, + "moonbeam": { + "0x3f5876a2b06E54949aB106651Ab6694d0289b2b4": 10, + "0x9256Fd872118ed3a97754B0fB42c15015d17E0CC": 10, + "0x1486157d505C7F7E546aD00E3E2Eee25BF665C9b": 8, + "0x2eC991B5c0B742AbD9d2ea31fe6c14a85e91C821": 1, + "0xf505462A29E36E26f25Ef0175Ca1eCBa09CC118f": 0, + "0x027c1882B975E2cd771AE068b0389FA38B9dda73": 9 + }, + "binance": { + "0x3f5876a2b06E54949aB106651Ab6694d0289b2b4": 10, + "0x9256Fd872118ed3a97754B0fB42c15015d17E0CC": 10, + "0x1486157d505C7F7E546aD00E3E2Eee25BF665C9b": 7, + "0x2eC991B5c0B742AbD9d2ea31fe6c14a85e91C821": 4, + "0xf505462A29E36E26f25Ef0175Ca1eCBa09CC118f": 0, + "0x027c1882B975E2cd771AE068b0389FA38B9dda73": 8 + }, + "arbitrum": { + "0x3f5876a2b06E54949aB106651Ab6694d0289b2b4": 4, + "0x9256Fd872118ed3a97754B0fB42c15015d17E0CC": 4, + "0x1486157d505C7F7E546aD00E3E2Eee25BF665C9b": 2, + "0x2eC991B5c0B742AbD9d2ea31fe6c14a85e91C821": 3, + "0xf505462A29E36E26f25Ef0175Ca1eCBa09CC118f": 0, + "0x027c1882B975E2cd771AE068b0389FA38B9dda73": 3 + }, + "celo": { + "0x3f5876a2b06E54949aB106651Ab6694d0289b2b4": 1, + "0x9256Fd872118ed3a97754B0fB42c15015d17E0CC": 1, + "0x1486157d505C7F7E546aD00E3E2Eee25BF665C9b": 0, + "0x2eC991B5c0B742AbD9d2ea31fe6c14a85e91C821": 1, + "0xf505462A29E36E26f25Ef0175Ca1eCBa09CC118f": 0, + "0x027c1882B975E2cd771AE068b0389FA38B9dda73": 1 + }, + "kava": { + "0x3f5876a2b06E54949aB106651Ab6694d0289b2b4": 2, + "0x9256Fd872118ed3a97754B0fB42c15015d17E0CC": 1, + "0x1486157d505C7F7E546aD00E3E2Eee25BF665C9b": 2, + "0x2eC991B5c0B742AbD9d2ea31fe6c14a85e91C821": 1, + "0xf505462A29E36E26f25Ef0175Ca1eCBa09CC118f": 0, + "0x027c1882B975E2cd771AE068b0389FA38B9dda73": 2 + }, + "filecoin": { + "0x3f5876a2b06E54949aB106651Ab6694d0289b2b4": 0, + "0x9256Fd872118ed3a97754B0fB42c15015d17E0CC": 0, + "0x1486157d505C7F7E546aD00E3E2Eee25BF665C9b": 0, + "0x2eC991B5c0B742AbD9d2ea31fe6c14a85e91C821": 0, + "0xf505462A29E36E26f25Ef0175Ca1eCBa09CC118f": 0, + "0x027c1882B975E2cd771AE068b0389FA38B9dda73": 0 + }, + "optimism": { + "0x3f5876a2b06E54949aB106651Ab6694d0289b2b4": 0, + "0x9256Fd872118ed3a97754B0fB42c15015d17E0CC": 0, + "0x1486157d505C7F7E546aD00E3E2Eee25BF665C9b": 0, + "0x2eC991B5c0B742AbD9d2ea31fe6c14a85e91C821": 0, + "0xf505462A29E36E26f25Ef0175Ca1eCBa09CC118f": 0, + "0x027c1882B975E2cd771AE068b0389FA38B9dda73": 0 + }, + "linea": { + "0x3f5876a2b06E54949aB106651Ab6694d0289b2b4": 0, + "0x9256Fd872118ed3a97754B0fB42c15015d17E0CC": 0, + "0x1486157d505C7F7E546aD00E3E2Eee25BF665C9b": 0, + "0x2eC991B5c0B742AbD9d2ea31fe6c14a85e91C821": 0, + "0xf505462A29E36E26f25Ef0175Ca1eCBa09CC118f": 0, + "0x027c1882B975E2cd771AE068b0389FA38B9dda73": 0 + }, + "base": { + "0x3f5876a2b06E54949aB106651Ab6694d0289b2b4": 0, + "0x9256Fd872118ed3a97754B0fB42c15015d17E0CC": 0, + "0x1486157d505C7F7E546aD00E3E2Eee25BF665C9b": 0, + "0x2eC991B5c0B742AbD9d2ea31fe6c14a85e91C821": 0, + "0xf505462A29E36E26f25Ef0175Ca1eCBa09CC118f": 0, + "0x027c1882B975E2cd771AE068b0389FA38B9dda73": 0 + }, + "mantle": { + "0x3f5876a2b06E54949aB106651Ab6694d0289b2b4": 0, + "0x9256Fd872118ed3a97754B0fB42c15015d17E0CC": 0, + "0x1486157d505C7F7E546aD00E3E2Eee25BF665C9b": 0, + "0x2eC991B5c0B742AbD9d2ea31fe6c14a85e91C821": 0, + "0xf505462A29E36E26f25Ef0175Ca1eCBa09CC118f": 0, + "0x027c1882B975E2cd771AE068b0389FA38B9dda73": 0 + }, + "scroll": { + "0x3f5876a2b06E54949aB106651Ab6694d0289b2b4": 0, + "0x9256Fd872118ed3a97754B0fB42c15015d17E0CC": 0, + "0x1486157d505C7F7E546aD00E3E2Eee25BF665C9b": 0, + "0x2eC991B5c0B742AbD9d2ea31fe6c14a85e91C821": 0, + "0xf505462A29E36E26f25Ef0175Ca1eCBa09CC118f": 0, + "0x027c1882B975E2cd771AE068b0389FA38B9dda73": 0 + } + } +} diff --git a/evm/send-tokens.js b/evm/send-tokens.js index 378a6d5e..0560c5a4 100644 --- a/evm/send-tokens.js +++ b/evm/send-tokens.js @@ -68,6 +68,10 @@ async function processCommand(_, chain, options) { value: amount, }; + if (!offline && chain.name.toLowerCase() === 'binance') { + tx.gasPrice = (await provider.getGasPrice()) * 1.2; + } + const { baseTx, signedTx } = await signTransaction(wallet, chain, tx, options); if (offline) { diff --git a/evm/sign-utils.js b/evm/sign-utils.js index 6f716a6d..60574d78 100644 --- a/evm/sign-utils.js +++ b/evm/sign-utils.js @@ -121,7 +121,7 @@ const signTransaction = async (wallet, chain, tx, options = {}) => { } if (!options.offline) { - await sendTransaction(signedTx, wallet.provider); + await sendTransaction(signedTx, wallet.provider, chain.confirmations); } return { baseTx: tx, signedTx }; @@ -254,7 +254,7 @@ function isValidJSON(obj) { } const getNonceFileData = () => { - const filePath = `${__dirname}/../axelar-chains-config/info/nonces.json`; + const filePath = `${__dirname}/nonces.json`; const emptyData = {}; const data = getFileData(filePath); @@ -286,7 +286,7 @@ function createFileIfNotExists(filePath) { } const updateNonceFileData = (nonceData) => { - const filePath = `${__dirname}/../axelar-chains-config/info/nonces.json`; + const filePath = `${__dirname}/nonces.json`; createFileIfNotExists(filePath); // Write nonceData to the file diff --git a/evm/update-nonces.js b/evm/update-nonces.js index ab043b3f..6c740ea6 100644 --- a/evm/update-nonces.js +++ b/evm/update-nonces.js @@ -37,7 +37,7 @@ async function processCommand(_, chain, options) { } for (const address of addresses) { - printInfo('Updating nonce for address', address); + printInfo(`Updating nonce on ${chain.name} for address`, address); const nonce = await getNonceFromProvider(provider, address); chainNonceData[address] = nonce; } diff --git a/package-lock.json b/package-lock.json index ca809efd..bf76b07e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,8 +10,8 @@ "license": "MIT", "dependencies": { "@0xpolygonhermez/zkevm-commonjs": "github:0xpolygonhermez/zkevm-commonjs#v1.0.0", - "@axelar-network/axelar-cgp-solidity": "6.1.2", - "@axelar-network/axelar-gmp-sdk-solidity": "5.4.0", + "@axelar-network/axelar-cgp-solidity": "6.2.0", + "@axelar-network/axelar-gmp-sdk-solidity": "5.5.2", "@axelar-network/interchain-token-service": "0.3.0", "@cosmjs/cosmwasm-stargate": "^0.31.1", "@ethersproject/hardware-wallets": "^5.5.0", @@ -54,20 +54,20 @@ } }, "node_modules/@axelar-network/axelar-cgp-solidity": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/@axelar-network/axelar-cgp-solidity/-/axelar-cgp-solidity-6.1.2.tgz", - "integrity": "sha512-KOv3Z0u/Xg1HsvTFJzpf0LewT4/HW8yBGb5AfVacFRoL/zor5Q1SwBb5SN12CDpxFebeUPC/MdGAddC2ZfNg8Q==", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/@axelar-network/axelar-cgp-solidity/-/axelar-cgp-solidity-6.2.0.tgz", + "integrity": "sha512-/X1RBFu5dzbffPEKK5wXTF66tpHtQwaz+oRpeLJOUVhvIHNkEslkUCOdj7FmePFlvTpvlwViziA4bny+nIcmrQ==", "dependencies": { - "@axelar-network/axelar-gmp-sdk-solidity": "^5.3.3" + "@axelar-network/axelar-gmp-sdk-solidity": "5.5.2" }, "engines": { "node": ">=16" } }, "node_modules/@axelar-network/axelar-gmp-sdk-solidity": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/@axelar-network/axelar-gmp-sdk-solidity/-/axelar-gmp-sdk-solidity-5.4.0.tgz", - "integrity": "sha512-iPTJZq13ARDXJ5nCjKohq43bC45w0z0E8Dc5zAbQ0evKXXHi/XSNWqs7zvVFQzAHbUTAmEl19431lGCKPRuMcw==", + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/@axelar-network/axelar-gmp-sdk-solidity/-/axelar-gmp-sdk-solidity-5.5.2.tgz", + "integrity": "sha512-M7XTLE1Db40VjMYA37ZZyycU+75MygoUST5sAi/8QYweqQqkaLK3xpyzX24zbGaEpgHsdEk4L7CJiyG9WBqVCA==", "engines": { "node": ">=16" } @@ -1331,6 +1331,15 @@ "@ethersproject/strings": "^5.7.0" } }, + "node_modules/@fastify/busboy": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.0.0.tgz", + "integrity": "sha512-JUFJad5lv7jxj926GPgymrWQxxjPYuJNiNjNMzqT+HiuP6Vl3dk5xzG+8sTX96np0ZAluvaMzPsjhHZ5rNuNQQ==", + "dev": true, + "engines": { + "node": ">=14" + } + }, "node_modules/@humanwhocodes/config-array": { "version": "0.11.8", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", @@ -3448,18 +3457,6 @@ "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", "integrity": "sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==" }, - "node_modules/busboy": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", - "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", - "dev": true, - "dependencies": { - "streamsearch": "^1.1.0" - }, - "engines": { - "node": ">=10.16.0" - } - }, "node_modules/bytes": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", @@ -9487,15 +9484,6 @@ "node": ">= 0.8" } }, - "node_modules/streamsearch": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", - "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", - "dev": true, - "engines": { - "node": ">=10.0.0" - } - }, "node_modules/string_decoder": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", @@ -10233,12 +10221,12 @@ } }, "node_modules/undici": { - "version": "5.22.1", - "resolved": "https://registry.npmjs.org/undici/-/undici-5.22.1.tgz", - "integrity": "sha512-Ji2IJhFXZY0x/0tVBXeQwgPlLWw13GVzpsWPQ3rV50IFMMof2I55PZZxtm4P6iNq+L5znYN9nSTAq0ZyE6lSJw==", + "version": "5.26.3", + "resolved": "https://registry.npmjs.org/undici/-/undici-5.26.3.tgz", + "integrity": "sha512-H7n2zmKEWgOllKkIUkLvFmsJQj062lSm3uA4EYApG8gLuiOM0/go9bIoC3HVaSnfg4xunowDE2i9p8drkXuvDw==", "dev": true, "dependencies": { - "busboy": "^1.6.0" + "@fastify/busboy": "^2.0.0" }, "engines": { "node": ">=14.0" @@ -10717,17 +10705,17 @@ } }, "@axelar-network/axelar-cgp-solidity": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/@axelar-network/axelar-cgp-solidity/-/axelar-cgp-solidity-6.1.2.tgz", - "integrity": "sha512-KOv3Z0u/Xg1HsvTFJzpf0LewT4/HW8yBGb5AfVacFRoL/zor5Q1SwBb5SN12CDpxFebeUPC/MdGAddC2ZfNg8Q==", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/@axelar-network/axelar-cgp-solidity/-/axelar-cgp-solidity-6.2.0.tgz", + "integrity": "sha512-/X1RBFu5dzbffPEKK5wXTF66tpHtQwaz+oRpeLJOUVhvIHNkEslkUCOdj7FmePFlvTpvlwViziA4bny+nIcmrQ==", "requires": { - "@axelar-network/axelar-gmp-sdk-solidity": "^5.3.3" + "@axelar-network/axelar-gmp-sdk-solidity": "5.5.2" } }, "@axelar-network/axelar-gmp-sdk-solidity": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/@axelar-network/axelar-gmp-sdk-solidity/-/axelar-gmp-sdk-solidity-5.4.0.tgz", - "integrity": "sha512-iPTJZq13ARDXJ5nCjKohq43bC45w0z0E8Dc5zAbQ0evKXXHi/XSNWqs7zvVFQzAHbUTAmEl19431lGCKPRuMcw==" + "version": "5.5.2", + "resolved": "https://registry.npmjs.org/@axelar-network/axelar-gmp-sdk-solidity/-/axelar-gmp-sdk-solidity-5.5.2.tgz", + "integrity": "sha512-M7XTLE1Db40VjMYA37ZZyycU+75MygoUST5sAi/8QYweqQqkaLK3xpyzX24zbGaEpgHsdEk4L7CJiyG9WBqVCA==" }, "@axelar-network/interchain-token-service": { "version": "0.3.0", @@ -11609,6 +11597,12 @@ "@ethersproject/strings": "^5.7.0" } }, + "@fastify/busboy": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.0.0.tgz", + "integrity": "sha512-JUFJad5lv7jxj926GPgymrWQxxjPYuJNiNjNMzqT+HiuP6Vl3dk5xzG+8sTX96np0ZAluvaMzPsjhHZ5rNuNQQ==", + "dev": true + }, "@humanwhocodes/config-array": { "version": "0.11.8", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", @@ -13345,15 +13339,6 @@ "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", "integrity": "sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==" }, - "busboy": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/busboy/-/busboy-1.6.0.tgz", - "integrity": "sha512-8SFQbg/0hQ9xy3UNTB0YEnsNBbWfhf7RtnzpL7TkBiTBRfrQ9Fxcnz7VJsleJpyp6rVLvXiuORqjlHi5q+PYuA==", - "dev": true, - "requires": { - "streamsearch": "^1.1.0" - } - }, "bytes": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", @@ -17926,12 +17911,6 @@ "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", "dev": true }, - "streamsearch": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/streamsearch/-/streamsearch-1.1.0.tgz", - "integrity": "sha512-Mcc5wHehp9aXz1ax6bZUyY5afg9u2rv5cqQI3mRrYkGC8rW2hM02jWuwjtL++LS5qinSyhj2QfLyNsuc+VsExg==", - "dev": true - }, "string_decoder": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", @@ -18500,12 +18479,12 @@ } }, "undici": { - "version": "5.22.1", - "resolved": "https://registry.npmjs.org/undici/-/undici-5.22.1.tgz", - "integrity": "sha512-Ji2IJhFXZY0x/0tVBXeQwgPlLWw13GVzpsWPQ3rV50IFMMof2I55PZZxtm4P6iNq+L5znYN9nSTAq0ZyE6lSJw==", + "version": "5.26.3", + "resolved": "https://registry.npmjs.org/undici/-/undici-5.26.3.tgz", + "integrity": "sha512-H7n2zmKEWgOllKkIUkLvFmsJQj062lSm3uA4EYApG8gLuiOM0/go9bIoC3HVaSnfg4xunowDE2i9p8drkXuvDw==", "dev": true, "requires": { - "busboy": "^1.6.0" + "@fastify/busboy": "^2.0.0" } }, "universalify": { diff --git a/package.json b/package.json index bb57bf9a..1a9a235c 100644 --- a/package.json +++ b/package.json @@ -23,8 +23,8 @@ "homepage": "https://github.com/axelarnetwork/axelar-contract-deployments#readme", "dependencies": { "@0xpolygonhermez/zkevm-commonjs": "github:0xpolygonhermez/zkevm-commonjs#v1.0.0", - "@axelar-network/axelar-cgp-solidity": "6.1.2", - "@axelar-network/axelar-gmp-sdk-solidity": "5.4.0", + "@axelar-network/axelar-cgp-solidity": "6.2.0", + "@axelar-network/axelar-gmp-sdk-solidity": "5.5.2", "@axelar-network/interchain-token-service": "0.3.0", "@cosmjs/cosmwasm-stargate": "^0.31.1", "@ethersproject/hardware-wallets": "^5.5.0", diff --git a/package.sh b/package.sh new file mode 100755 index 00000000..2a12099f --- /dev/null +++ b/package.sh @@ -0,0 +1,33 @@ +#!/bin/bash + +if [[ "$(uname -s)" != "Linux" ]]; then + echo "Error: This is not a Linux device." + exit 1 +fi + +if [ ! -f deps.zip ]; then + npm ci + + zip -rq deps.zip node_modules +fi + +if [ -f node.zip ]; then + exit 0 +fi + +rm -rf node-linux + +mkdir node-linux +mkdir node-linux/include +mkdir node-linux/lib +mkdir node-linux/bin +mkdir node-linux/share + +cp -r /usr/include/node node-linux/include/ +cp -r /usr/local/lib/node_modules node-linux/lib/ +cp -r /usr/local/bin/npm node-linux/bin/ +cp -r /usr/local/bin/npx node-linux/bin/ +cp -r /usr/bin/node node-linux/bin/ +cp -r /usr/bin/corepack node-linux/bin/ + +zip -rq node.zip node-linux