Deploy single-call middleware contracts (#1309)

pull/1328/head
Nam Chu Hoai 2 years ago committed by GitHub
parent b96880c40d
commit 9b17834ded
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 26
      typescript/infra/config/environments/mainnet/interchain/addresses.json
  2. 26
      typescript/infra/config/environments/mainnet/interchain/queries/addresses.json
  3. 26
      typescript/infra/config/environments/mainnet/middleware/accounts/addresses.json
  4. 16
      typescript/infra/config/environments/mainnet/middleware/accounts/verification.json
  5. 26
      typescript/infra/config/environments/mainnet/middleware/queries/addresses.json
  6. 16
      typescript/infra/config/environments/mainnet/middleware/queries/verification.json
  7. 26
      typescript/infra/config/environments/testnet2/interchain/addresses.json
  8. 26
      typescript/infra/config/environments/testnet2/interchain/queries/addresses.json
  9. 26
      typescript/infra/config/environments/testnet2/middleware/accounts/addresses.json
  10. 16
      typescript/infra/config/environments/testnet2/middleware/accounts/verification.json
  11. 26
      typescript/infra/config/environments/testnet2/middleware/queries/addresses.json
  12. 16
      typescript/infra/config/environments/testnet2/middleware/queries/verification.json
  13. 12
      typescript/infra/scripts/debug-message.ts
  14. 4
      typescript/infra/scripts/merge-sdk-contract-addresses.ts
  15. 5
      typescript/infra/scripts/middleware/deploy-accounts.ts
  16. 2
      typescript/infra/scripts/middleware/deploy-queries.ts
  17. 32
      typescript/sdk/src/consts/environments/mainnet.json
  18. 32
      typescript/sdk/src/consts/environments/testnet2.json

@ -1,26 +0,0 @@
{
"bsc": {
"router": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F"
},
"avalanche": {
"router": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F"
},
"polygon": {
"router": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F"
},
"celo": {
"router": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F"
},
"arbitrum": {
"router": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F"
},
"optimism": {
"router": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F"
},
"ethereum": {
"router": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F"
},
"moonbeam": {
"router": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F"
}
}

@ -1,26 +0,0 @@
{
"bsc": {
"router": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca"
},
"avalanche": {
"router": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca"
},
"polygon": {
"router": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca"
},
"celo": {
"router": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca"
},
"arbitrum": {
"router": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca"
},
"optimism": {
"router": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca"
},
"ethereum": {
"router": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca"
},
"moonbeam": {
"router": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca"
}
}

@ -0,0 +1,26 @@
{
"bsc": {
"router": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E"
},
"avalanche": {
"router": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E"
},
"polygon": {
"router": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E"
},
"celo": {
"router": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E"
},
"arbitrum": {
"router": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E"
},
"optimism": {
"router": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E"
},
"ethereum": {
"router": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E"
},
"moonbeam": {
"router": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E"
}
}

@ -2,7 +2,7 @@
"bsc": [ "bsc": [
{ {
"name": "InterchainAccountRouter", "name": "InterchainAccountRouter",
"address": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "address": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -10,7 +10,7 @@
"avalanche": [ "avalanche": [
{ {
"name": "InterchainAccountRouter", "name": "InterchainAccountRouter",
"address": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "address": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -18,7 +18,7 @@
"polygon": [ "polygon": [
{ {
"name": "InterchainAccountRouter", "name": "InterchainAccountRouter",
"address": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "address": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -26,7 +26,7 @@
"celo": [ "celo": [
{ {
"name": "InterchainAccountRouter", "name": "InterchainAccountRouter",
"address": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "address": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -34,7 +34,7 @@
"arbitrum": [ "arbitrum": [
{ {
"name": "InterchainAccountRouter", "name": "InterchainAccountRouter",
"address": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "address": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -42,7 +42,7 @@
"optimism": [ "optimism": [
{ {
"name": "InterchainAccountRouter", "name": "InterchainAccountRouter",
"address": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "address": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -50,7 +50,7 @@
"ethereum": [ "ethereum": [
{ {
"name": "InterchainAccountRouter", "name": "InterchainAccountRouter",
"address": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "address": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -58,7 +58,7 @@
"moonbeam": [ "moonbeam": [
{ {
"name": "InterchainAccountRouter", "name": "InterchainAccountRouter",
"address": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "address": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }

@ -0,0 +1,26 @@
{
"bsc": {
"router": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd"
},
"avalanche": {
"router": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd"
},
"polygon": {
"router": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd"
},
"celo": {
"router": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd"
},
"arbitrum": {
"router": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd"
},
"optimism": {
"router": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd"
},
"ethereum": {
"router": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd"
},
"moonbeam": {
"router": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd"
}
}

@ -2,7 +2,7 @@
"bsc": [ "bsc": [
{ {
"name": "InterchainQueryRouter", "name": "InterchainQueryRouter",
"address": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "address": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -10,7 +10,7 @@
"avalanche": [ "avalanche": [
{ {
"name": "InterchainQueryRouter", "name": "InterchainQueryRouter",
"address": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "address": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -18,7 +18,7 @@
"polygon": [ "polygon": [
{ {
"name": "InterchainQueryRouter", "name": "InterchainQueryRouter",
"address": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "address": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -26,7 +26,7 @@
"celo": [ "celo": [
{ {
"name": "InterchainQueryRouter", "name": "InterchainQueryRouter",
"address": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "address": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -34,7 +34,7 @@
"arbitrum": [ "arbitrum": [
{ {
"name": "InterchainQueryRouter", "name": "InterchainQueryRouter",
"address": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "address": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -42,7 +42,7 @@
"optimism": [ "optimism": [
{ {
"name": "InterchainQueryRouter", "name": "InterchainQueryRouter",
"address": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "address": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -50,7 +50,7 @@
"ethereum": [ "ethereum": [
{ {
"name": "InterchainQueryRouter", "name": "InterchainQueryRouter",
"address": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "address": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -58,7 +58,7 @@
"moonbeam": [ "moonbeam": [
{ {
"name": "InterchainQueryRouter", "name": "InterchainQueryRouter",
"address": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "address": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }

@ -1,26 +0,0 @@
{
"alfajores": {
"router": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F"
},
"fuji": {
"router": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F"
},
"mumbai": {
"router": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F"
},
"bsctestnet": {
"router": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F"
},
"goerli": {
"router": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F"
},
"moonbasealpha": {
"router": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F"
},
"optimismgoerli": {
"router": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F"
},
"arbitrumgoerli": {
"router": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F"
}
}

@ -1,26 +0,0 @@
{
"alfajores": {
"router": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca"
},
"fuji": {
"router": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca"
},
"mumbai": {
"router": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca"
},
"bsctestnet": {
"router": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca"
},
"goerli": {
"router": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca"
},
"moonbasealpha": {
"router": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca"
},
"optimismgoerli": {
"router": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca"
},
"arbitrumgoerli": {
"router": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca"
}
}

@ -0,0 +1,26 @@
{
"alfajores": {
"router": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E"
},
"fuji": {
"router": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E"
},
"mumbai": {
"router": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E"
},
"bsctestnet": {
"router": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E"
},
"goerli": {
"router": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E"
},
"moonbasealpha": {
"router": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E"
},
"optimismgoerli": {
"router": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E"
},
"arbitrumgoerli": {
"router": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E"
}
}

@ -2,7 +2,7 @@
"alfajores": [ "alfajores": [
{ {
"name": "InterchainAccountRouter", "name": "InterchainAccountRouter",
"address": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "address": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -10,7 +10,7 @@
"fuji": [ "fuji": [
{ {
"name": "InterchainAccountRouter", "name": "InterchainAccountRouter",
"address": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "address": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -18,7 +18,7 @@
"mumbai": [ "mumbai": [
{ {
"name": "InterchainAccountRouter", "name": "InterchainAccountRouter",
"address": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "address": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -26,7 +26,7 @@
"bsctestnet": [ "bsctestnet": [
{ {
"name": "InterchainAccountRouter", "name": "InterchainAccountRouter",
"address": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "address": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -34,7 +34,7 @@
"goerli": [ "goerli": [
{ {
"name": "InterchainAccountRouter", "name": "InterchainAccountRouter",
"address": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "address": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -42,7 +42,7 @@
"moonbasealpha": [ "moonbasealpha": [
{ {
"name": "InterchainAccountRouter", "name": "InterchainAccountRouter",
"address": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "address": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -50,7 +50,7 @@
"optimismgoerli": [ "optimismgoerli": [
{ {
"name": "InterchainAccountRouter", "name": "InterchainAccountRouter",
"address": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "address": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -58,7 +58,7 @@
"arbitrumgoerli": [ "arbitrumgoerli": [
{ {
"name": "InterchainAccountRouter", "name": "InterchainAccountRouter",
"address": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "address": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }

@ -0,0 +1,26 @@
{
"alfajores": {
"router": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd"
},
"fuji": {
"router": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd"
},
"mumbai": {
"router": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd"
},
"bsctestnet": {
"router": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd"
},
"goerli": {
"router": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd"
},
"moonbasealpha": {
"router": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd"
},
"optimismgoerli": {
"router": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd"
},
"arbitrumgoerli": {
"router": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd"
}
}

@ -2,7 +2,7 @@
"alfajores": [ "alfajores": [
{ {
"name": "InterchainQueryRouter", "name": "InterchainQueryRouter",
"address": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "address": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -10,7 +10,7 @@
"fuji": [ "fuji": [
{ {
"name": "InterchainQueryRouter", "name": "InterchainQueryRouter",
"address": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "address": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -18,7 +18,7 @@
"mumbai": [ "mumbai": [
{ {
"name": "InterchainQueryRouter", "name": "InterchainQueryRouter",
"address": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "address": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -26,7 +26,7 @@
"bsctestnet": [ "bsctestnet": [
{ {
"name": "InterchainQueryRouter", "name": "InterchainQueryRouter",
"address": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "address": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -34,7 +34,7 @@
"goerli": [ "goerli": [
{ {
"name": "InterchainQueryRouter", "name": "InterchainQueryRouter",
"address": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "address": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -42,7 +42,7 @@
"moonbasealpha": [ "moonbasealpha": [
{ {
"name": "InterchainQueryRouter", "name": "InterchainQueryRouter",
"address": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "address": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -50,7 +50,7 @@
"optimismgoerli": [ "optimismgoerli": [
{ {
"name": "InterchainQueryRouter", "name": "InterchainQueryRouter",
"address": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "address": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }
@ -58,7 +58,7 @@
"arbitrumgoerli": [ "arbitrumgoerli": [
{ {
"name": "InterchainQueryRouter", "name": "InterchainQueryRouter",
"address": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "address": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"isProxy": false, "isProxy": false,
"constructorArguments": "" "constructorArguments": ""
} }

@ -138,6 +138,18 @@ async function checkMessage(
'Calling recipient `handle` function from the inbox does not revert', 'Calling recipient `handle` function from the inbox does not revert',
); );
} catch (err: any) { } catch (err: any) {
const data = (
await recipient.populateTransaction.handle(
message.parsed.origin,
message.parsed.sender,
message.parsed.body,
)
).data;
console.log('Simulated call', {
from: destinationInbox.address,
to: recipient.address,
data,
});
console.error(`Error calling recipient \`handle\` function from the inbox`); console.error(`Error calling recipient \`handle\` function from the inbox`);
if (err.reason) { if (err.reason) {
console.error('Reason: ', err.reason); console.error('Reason: ', err.reason);

@ -14,8 +14,8 @@ import {
} from './utils'; } from './utils';
const ARTIFACTS_TO_MERGE = [ const ARTIFACTS_TO_MERGE = [
{ pathSegment: 'interchain', targetKey: 'interchainAccountRouter' }, { pathSegment: 'middleware/accounts', targetKey: 'interchainAccountRouter' },
{ pathSegment: 'interchain/queries', targetKey: 'interchainQueryRouter' }, { pathSegment: 'middleware/queries', targetKey: 'interchainQueryRouter' },
{ pathSegment: 'create2', targetKey: 'create2Factory' }, { pathSegment: 'create2', targetKey: 'create2Factory' },
]; ];

@ -23,7 +23,10 @@ async function main() {
const multiProvider = await coreConfig.getMultiProvider(); const multiProvider = await coreConfig.getMultiProvider();
const core = HyperlaneCore.fromEnvironment(environment, multiProvider as any); const core = HyperlaneCore.fromEnvironment(environment, multiProvider as any);
const dir = path.join(getEnvironmentDirectory(environment), 'interchain'); const dir = path.join(
getEnvironmentDirectory(environment),
'middleware/accounts',
);
// config gcp deployer key as owner // config gcp deployer key as owner
const configMap = await getConfiguration(environment, multiProvider); const configMap = await getConfiguration(environment, multiProvider);

@ -25,7 +25,7 @@ async function main() {
const dir = path.join( const dir = path.join(
getEnvironmentDirectory(environment), getEnvironmentDirectory(environment),
'interchain/queries', 'middleware/queries',
); );
// config gcp deployer key as owner // config gcp deployer key as owner

@ -80,8 +80,8 @@
"beacon": "0x1052eF3419f26Bec74Ed7CEf4a4FA6812Bc09908" "beacon": "0x1052eF3419f26Bec74Ed7CEf4a4FA6812Bc09908"
}, },
"outboxValidatorManager": "0x8F7454AC98228f3504Bb91eA3D8Adafe6406110A", "outboxValidatorManager": "0x8F7454AC98228f3504Bb91eA3D8Adafe6406110A",
"interchainAccountRouter": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "interchainAccountRouter": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"interchainQueryRouter": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "interchainQueryRouter": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a" "create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a"
}, },
"bsc": { "bsc": {
@ -165,8 +165,8 @@
"beacon": "0x0D63128D887159d63De29497dfa45AFc7C699AE4" "beacon": "0x0D63128D887159d63De29497dfa45AFc7C699AE4"
}, },
"outboxValidatorManager": "0xBF12ef4B9f307463D3FB59c3604F294dDCe287E2", "outboxValidatorManager": "0xBF12ef4B9f307463D3FB59c3604F294dDCe287E2",
"interchainAccountRouter": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "interchainAccountRouter": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"interchainQueryRouter": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "interchainQueryRouter": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a" "create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a"
}, },
"polygon": { "polygon": {
@ -250,8 +250,8 @@
"beacon": "0xe042D1fbDf59828dd16b9649Ede7abFc856F7a6c" "beacon": "0xe042D1fbDf59828dd16b9649Ede7abFc856F7a6c"
}, },
"outboxValidatorManager": "0xFC62DeF1f08793aBf0E67f69257c6be258194F72", "outboxValidatorManager": "0xFC62DeF1f08793aBf0E67f69257c6be258194F72",
"interchainAccountRouter": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "interchainAccountRouter": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"interchainQueryRouter": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "interchainQueryRouter": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a" "create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a"
}, },
"celo": { "celo": {
@ -335,8 +335,8 @@
"beacon": "0x17E216fBb22dF4ef8A6640ae9Cb147C92710ac84" "beacon": "0x17E216fBb22dF4ef8A6640ae9Cb147C92710ac84"
}, },
"outboxValidatorManager": "0x1Ab68dC4f7b6cfcd00218D4b761b7F3b5a724555", "outboxValidatorManager": "0x1Ab68dC4f7b6cfcd00218D4b761b7F3b5a724555",
"interchainAccountRouter": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "interchainAccountRouter": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"interchainQueryRouter": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "interchainQueryRouter": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a" "create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a"
}, },
"arbitrum": { "arbitrum": {
@ -420,8 +420,8 @@
"beacon": "0x1052eF3419f26Bec74Ed7CEf4a4FA6812Bc09908" "beacon": "0x1052eF3419f26Bec74Ed7CEf4a4FA6812Bc09908"
}, },
"outboxValidatorManager": "0x8F7454AC98228f3504Bb91eA3D8Adafe6406110A", "outboxValidatorManager": "0x8F7454AC98228f3504Bb91eA3D8Adafe6406110A",
"interchainAccountRouter": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "interchainAccountRouter": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"interchainQueryRouter": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "interchainQueryRouter": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a" "create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a"
}, },
"optimism": { "optimism": {
@ -505,8 +505,8 @@
"beacon": "0x182E8d7c5F1B06201b102123FC7dF0EaeB445a7B" "beacon": "0x182E8d7c5F1B06201b102123FC7dF0EaeB445a7B"
}, },
"outboxValidatorManager": "0x99ca8c74cE7Cfa9d72A51fbb05F9821f5f826b3a", "outboxValidatorManager": "0x99ca8c74cE7Cfa9d72A51fbb05F9821f5f826b3a",
"interchainAccountRouter": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "interchainAccountRouter": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"interchainQueryRouter": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "interchainQueryRouter": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a" "create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a"
}, },
"ethereum": { "ethereum": {
@ -590,8 +590,8 @@
"beacon": "0x7f50C5776722630a0024fAE05fDe8b47571D7B39" "beacon": "0x7f50C5776722630a0024fAE05fDe8b47571D7B39"
}, },
"outboxValidatorManager": "0x3a464f746D23Ab22155710f44dB16dcA53e0775E", "outboxValidatorManager": "0x3a464f746D23Ab22155710f44dB16dcA53e0775E",
"interchainAccountRouter": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "interchainAccountRouter": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"interchainQueryRouter": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "interchainQueryRouter": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a" "create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a"
}, },
"moonbeam": { "moonbeam": {
@ -675,8 +675,8 @@
"beacon": "0x2f2aFaE1139Ce54feFC03593FeE8AB2aDF4a85A7" "beacon": "0x2f2aFaE1139Ce54feFC03593FeE8AB2aDF4a85A7"
}, },
"outboxValidatorManager": "0x0761b0827849abbf7b0cC09CE14e1C93D87f5004", "outboxValidatorManager": "0x0761b0827849abbf7b0cC09CE14e1C93D87f5004",
"interchainAccountRouter": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "interchainAccountRouter": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"interchainQueryRouter": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "interchainQueryRouter": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a" "create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a"
} }
} }

@ -80,8 +80,8 @@
"beacon": "0xD3CCCbde1CCdB99313f25F8CA1A7B5C13BfD3dA2" "beacon": "0xD3CCCbde1CCdB99313f25F8CA1A7B5C13BfD3dA2"
}, },
"outboxValidatorManager": "0xEB25e6e42B743a815E5C0409007993a828a0565f", "outboxValidatorManager": "0xEB25e6e42B743a815E5C0409007993a828a0565f",
"interchainAccountRouter": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "interchainAccountRouter": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"interchainQueryRouter": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "interchainQueryRouter": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a" "create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a"
}, },
"fuji": { "fuji": {
@ -165,8 +165,8 @@
"beacon": "0x16C20625B11E0c8187Cc1B3e4ceedc35C48D8013" "beacon": "0x16C20625B11E0c8187Cc1B3e4ceedc35C48D8013"
}, },
"outboxValidatorManager": "0x41e1799D0249FbB3Fc9e467b813b7479c96a3Ec3", "outboxValidatorManager": "0x41e1799D0249FbB3Fc9e467b813b7479c96a3Ec3",
"interchainAccountRouter": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "interchainAccountRouter": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"interchainQueryRouter": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "interchainQueryRouter": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a" "create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a"
}, },
"mumbai": { "mumbai": {
@ -250,8 +250,8 @@
"beacon": "0xaCF0B0bA84db40cDC48235De2d6cF96540fFa5CD" "beacon": "0xaCF0B0bA84db40cDC48235De2d6cF96540fFa5CD"
}, },
"outboxValidatorManager": "0x5c8cC5d94a7F84893e155457E4C1244f6e2B7F8D", "outboxValidatorManager": "0x5c8cC5d94a7F84893e155457E4C1244f6e2B7F8D",
"interchainAccountRouter": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "interchainAccountRouter": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"interchainQueryRouter": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "interchainQueryRouter": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a" "create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a"
}, },
"bsctestnet": { "bsctestnet": {
@ -335,8 +335,8 @@
"beacon": "0xa318ffca299412ce76B7cb980850ceDB15584E7e" "beacon": "0xa318ffca299412ce76B7cb980850ceDB15584E7e"
}, },
"outboxValidatorManager": "0xE0745955baF7e614707E22c90EA14d329C38941D", "outboxValidatorManager": "0xE0745955baF7e614707E22c90EA14d329C38941D",
"interchainAccountRouter": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "interchainAccountRouter": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"interchainQueryRouter": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "interchainQueryRouter": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a" "create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a"
}, },
"goerli": { "goerli": {
@ -420,8 +420,8 @@
"beacon": "0x589C201a07c26b4725A4A829d772f24423da480B" "beacon": "0x589C201a07c26b4725A4A829d772f24423da480B"
}, },
"outboxValidatorManager": "0x6966b0E55883d49BFB24539356a2f8A673E02039", "outboxValidatorManager": "0x6966b0E55883d49BFB24539356a2f8A673E02039",
"interchainAccountRouter": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "interchainAccountRouter": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"interchainQueryRouter": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "interchainQueryRouter": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a" "create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a"
}, },
"moonbasealpha": { "moonbasealpha": {
@ -505,8 +505,8 @@
"beacon": "0x6966b0E55883d49BFB24539356a2f8A673E02039" "beacon": "0x6966b0E55883d49BFB24539356a2f8A673E02039"
}, },
"outboxValidatorManager": "0x44b764045BfDC68517e10e783E69B376cef196B2", "outboxValidatorManager": "0x44b764045BfDC68517e10e783E69B376cef196B2",
"interchainAccountRouter": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "interchainAccountRouter": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"interchainQueryRouter": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "interchainQueryRouter": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a" "create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a"
}, },
"optimismgoerli": { "optimismgoerli": {
@ -590,8 +590,8 @@
"beacon": "0x6966b0E55883d49BFB24539356a2f8A673E02039" "beacon": "0x6966b0E55883d49BFB24539356a2f8A673E02039"
}, },
"outboxValidatorManager": "0x44b764045BfDC68517e10e783E69B376cef196B2", "outboxValidatorManager": "0x44b764045BfDC68517e10e783E69B376cef196B2",
"interchainAccountRouter": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "interchainAccountRouter": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"interchainQueryRouter": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "interchainQueryRouter": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a" "create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a"
}, },
"arbitrumgoerli": { "arbitrumgoerli": {
@ -675,8 +675,8 @@
"beacon": "0xF7561c34f17A32D5620583A3397C304e7038a7F6" "beacon": "0xF7561c34f17A32D5620583A3397C304e7038a7F6"
}, },
"outboxValidatorManager": "0x98AAE089CaD930C64a76dD2247a2aC5773a4B8cE", "outboxValidatorManager": "0x98AAE089CaD930C64a76dD2247a2aC5773a4B8cE",
"interchainAccountRouter": "0xffD17672d47E7bB6192d5dBc12A096e00D1a206F", "interchainAccountRouter": "0xc011170d9795a7a2d065E384EAd1CA3394A7d35E",
"interchainQueryRouter": "0x3CAa52Ff595Cab4123735EC677F1D9E6E988f8ca", "interchainQueryRouter": "0x6141e7E7fA2c1beB8be030B0a7DB4b8A10c7c3cd",
"create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a" "create2Factory": "0xc97D8e6f57b0d64971453dDc6EB8483fec9d163a"
} }
} }

Loading…
Cancel
Save