From a293a5b77361152ad57e3d7f216902b4cfae6067 Mon Sep 17 00:00:00 2001 From: Richard Watts Date: Fri, 27 Dec 2024 18:59:44 +0000 Subject: [PATCH] (feat) more zilbridge transition scripts (feat) don't try to trace history from zero (feat) doc fixes --- bridge-validators/src/bridge_node.rs | 8 + docs/zilbridge_to_xbridge.md | 2 +- .../32769/dry-run/run-1735305499.json | 55 +++++++ .../32769/dry-run/run-latest.json | 55 +++++++ .../32769/run-1735305595.json | 126 +++++++++++++++ .../32769/run-1735323932.json | 126 +++++++++++++++ .../32769/run-latest.json | 126 +++++++++++++++ .../137/dry-run/run-1735323960.json | 55 +++++++ .../137/dry-run/run-latest.json | 16 +- .../137/run-1735323978.json | 150 ++++++++++++++++++ .../06_pol_routing.s.sol/137/run-latest.json | 102 ++++++------ .../137/dry-run/run-1735320377.json | 53 +++++++ .../137/dry-run/run-latest.json | 53 +++++++ .../137/run-1735320406.json | 53 +++++++ .../137/run-1735320430.json | 120 ++++++++++++++ .../137/run-latest.json | 120 ++++++++++++++ smart-contracts/foundry.toml | 2 +- smart-contracts/script/mainnetConfig.s.sol | 3 + .../script/pol/deploy/06_pol_routing.s.sol | 3 +- .../pol/deploy/07_update_validators.s.sol | 35 ++++ .../script/zq/admin/queryStatus.s.sol | 34 ++++ .../deploy/05_zilliqa_side_pol_routing.s.sol | 49 ++++++ 22 files changed, 1283 insertions(+), 63 deletions(-) create mode 100644 smart-contracts/broadcast/05_zilliqa_side_pol_routing.s.sol/32769/dry-run/run-1735305499.json create mode 100644 smart-contracts/broadcast/05_zilliqa_side_pol_routing.s.sol/32769/dry-run/run-latest.json create mode 100644 smart-contracts/broadcast/05_zilliqa_side_pol_routing.s.sol/32769/run-1735305595.json create mode 100644 smart-contracts/broadcast/05_zilliqa_side_pol_routing.s.sol/32769/run-1735323932.json create mode 100644 smart-contracts/broadcast/05_zilliqa_side_pol_routing.s.sol/32769/run-latest.json create mode 100644 smart-contracts/broadcast/06_pol_routing.s.sol/137/dry-run/run-1735323960.json create mode 100644 smart-contracts/broadcast/06_pol_routing.s.sol/137/run-1735323978.json create mode 100644 smart-contracts/broadcast/07_update_validators.s.sol/137/dry-run/run-1735320377.json create mode 100644 smart-contracts/broadcast/07_update_validators.s.sol/137/dry-run/run-latest.json create mode 100644 smart-contracts/broadcast/07_update_validators.s.sol/137/run-1735320406.json create mode 100644 smart-contracts/broadcast/07_update_validators.s.sol/137/run-1735320430.json create mode 100644 smart-contracts/broadcast/07_update_validators.s.sol/137/run-latest.json create mode 100644 smart-contracts/script/pol/deploy/07_update_validators.s.sol create mode 100644 smart-contracts/script/zq/admin/queryStatus.s.sol create mode 100644 smart-contracts/script/zq/deploy/05_zilliqa_side_pol_routing.s.sol diff --git a/bridge-validators/src/bridge_node.rs b/bridge-validators/src/bridge_node.rs index 6d4427c..8ec3a6d 100644 --- a/bridge-validators/src/bridge_node.rs +++ b/bridge-validators/src/bridge_node.rs @@ -86,6 +86,14 @@ impl BridgeNode { } pub async fn sync_historic_events(&mut self) -> Result<()> { + if self.chain_client.chain_gateway_block_deployed == 0 { + warn!( + "block_deployed=0 , so not synchronising historic events for chain id {}", + self.chain_client.chain_id + ); + return Ok(()); + } + let max_block_specifier = if self.chain_client.block_instant_finality { BlockNumber::Latest } else { diff --git a/docs/zilbridge_to_xbridge.md b/docs/zilbridge_to_xbridge.md index 534bccf..83e163b 100644 --- a/docs/zilbridge_to_xbridge.md +++ b/docs/zilbridge_to_xbridge.md @@ -54,7 +54,7 @@ Now deploy the token managers * for zq, this is `02_deployZilbridgeTokenManagers.s.sol` - fill in `mainnetConfig.s.sol` and once this is verified. ``` -forge script script/zq/deploy/02_deployZilbridgeTokenManagers.s.sol --rpc-url https://api.zilliqa.com/ --broadcast --chain-id 32769 --verify --legacy --verifier sourcify +forge script script/zq/deploy/02_deployZilbridgeTokenManagers.s.sol --rpc-url https://api.zilliqa.com/ --broadcast --chain-id 32769 --verify --legacy --verifier sourcify -- ``` * Now set up the lockproxy data diff --git a/smart-contracts/broadcast/05_zilliqa_side_pol_routing.s.sol/32769/dry-run/run-1735305499.json b/smart-contracts/broadcast/05_zilliqa_side_pol_routing.s.sol/32769/dry-run/run-1735305499.json new file mode 100644 index 0000000..f084614 --- /dev/null +++ b/smart-contracts/broadcast/05_zilliqa_side_pol_routing.s.sol/32769/dry-run/run-1735305499.json @@ -0,0 +1,55 @@ +{ + "transactions": [ + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0xb4132e757345f0efd91af38cd824be441f34fe25", + "function": "registerToken(address,(address,address,uint256))", + "arguments": [ + "0x4345472A0c6164F35808CDb7e7eCCd3d326CC50b", + "(0x0000000000000000000000000000000000000000, 0x7519550ae8b6f9d32E9c1A939Fb5C186f660BE5b, 137)" + ], + "transaction": { + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0xb4132e757345f0efd91af38cd824be441f34fe25", + "gas": "0x1c109", + "value": "0x0", + "input": "0x8bc76f740000000000000000000000004345472a0c6164f35808cdb7e7eccd3d326cc50b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000007519550ae8b6f9d32e9c1a939fb5c186f660be5b0000000000000000000000000000000000000000000000000000000000000089", + "nonce": "0x17", + "chainId": "0x8001" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x4fa6148c9dabc7a737422fb1b3ab9088c878d26c", + "function": "registerToken(address,(address,address,uint256))", + "arguments": [ + "0x0000000000000000000000000000000000000000", + "(0xCc88D28f7d4B0D5AFACCC77F6102d88EE630fA17, 0x3faC7cb5b45A3B59d76b6926bc704Cf3cc522437, 137)" + ], + "transaction": { + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x4fa6148c9dabc7a737422fb1b3ab9088c878d26c", + "gas": "0x2329c", + "value": "0x0", + "input": "0x8bc76f740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc88d28f7d4b0d5afaccc77f6102d88ee630fa170000000000000000000000003fac7cb5b45a3b59d76b6926bc704cf3cc5224370000000000000000000000000000000000000000000000000000000000000089", + "nonce": "0x18", + "chainId": "0x8001" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1735305499, + "chain": 32769, + "commit": "80c8cc8" +} \ No newline at end of file diff --git a/smart-contracts/broadcast/05_zilliqa_side_pol_routing.s.sol/32769/dry-run/run-latest.json b/smart-contracts/broadcast/05_zilliqa_side_pol_routing.s.sol/32769/dry-run/run-latest.json new file mode 100644 index 0000000..f084614 --- /dev/null +++ b/smart-contracts/broadcast/05_zilliqa_side_pol_routing.s.sol/32769/dry-run/run-latest.json @@ -0,0 +1,55 @@ +{ + "transactions": [ + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0xb4132e757345f0efd91af38cd824be441f34fe25", + "function": "registerToken(address,(address,address,uint256))", + "arguments": [ + "0x4345472A0c6164F35808CDb7e7eCCd3d326CC50b", + "(0x0000000000000000000000000000000000000000, 0x7519550ae8b6f9d32E9c1A939Fb5C186f660BE5b, 137)" + ], + "transaction": { + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0xb4132e757345f0efd91af38cd824be441f34fe25", + "gas": "0x1c109", + "value": "0x0", + "input": "0x8bc76f740000000000000000000000004345472a0c6164f35808cdb7e7eccd3d326cc50b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000007519550ae8b6f9d32e9c1a939fb5c186f660be5b0000000000000000000000000000000000000000000000000000000000000089", + "nonce": "0x17", + "chainId": "0x8001" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x4fa6148c9dabc7a737422fb1b3ab9088c878d26c", + "function": "registerToken(address,(address,address,uint256))", + "arguments": [ + "0x0000000000000000000000000000000000000000", + "(0xCc88D28f7d4B0D5AFACCC77F6102d88EE630fA17, 0x3faC7cb5b45A3B59d76b6926bc704Cf3cc522437, 137)" + ], + "transaction": { + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x4fa6148c9dabc7a737422fb1b3ab9088c878d26c", + "gas": "0x2329c", + "value": "0x0", + "input": "0x8bc76f740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc88d28f7d4b0d5afaccc77f6102d88ee630fa170000000000000000000000003fac7cb5b45a3b59d76b6926bc704cf3cc5224370000000000000000000000000000000000000000000000000000000000000089", + "nonce": "0x18", + "chainId": "0x8001" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1735305499, + "chain": 32769, + "commit": "80c8cc8" +} \ No newline at end of file diff --git a/smart-contracts/broadcast/05_zilliqa_side_pol_routing.s.sol/32769/run-1735305595.json b/smart-contracts/broadcast/05_zilliqa_side_pol_routing.s.sol/32769/run-1735305595.json new file mode 100644 index 0000000..a2d8044 --- /dev/null +++ b/smart-contracts/broadcast/05_zilliqa_side_pol_routing.s.sol/32769/run-1735305595.json @@ -0,0 +1,126 @@ +{ + "transactions": [ + { + "hash": "0x86afb921ddeea78943ccfd5fcdf483074e5b045206945c4a830e0208734df77a", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0xb4132e757345f0efd91af38cd824be441f34fe25", + "function": "registerToken(address,(address,address,uint256))", + "arguments": [ + "0x4345472A0c6164F35808CDb7e7eCCd3d326CC50b", + "(0x0000000000000000000000000000000000000000, 0x7519550ae8b6f9d32E9c1A939Fb5C186f660BE5b, 137)" + ], + "transaction": { + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0xb4132e757345f0efd91af38cd824be441f34fe25", + "gas": "0x1c109", + "value": "0x0", + "input": "0x8bc76f740000000000000000000000004345472a0c6164f35808cdb7e7eccd3d326cc50b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000007519550ae8b6f9d32e9c1a939fb5c186f660be5b0000000000000000000000000000000000000000000000000000000000000089", + "nonce": "0x17", + "chainId": "0x8001" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0xc4a7ccb0a724fc35894bf36a5a1455e050da279f3db01d944d61dfdec603213d", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x4fa6148c9dabc7a737422fb1b3ab9088c878d26c", + "function": "registerToken(address,(address,address,uint256))", + "arguments": [ + "0x0000000000000000000000000000000000000000", + "(0xCc88D28f7d4B0D5AFACCC77F6102d88EE630fA17, 0x3faC7cb5b45A3B59d76b6926bc704Cf3cc522437, 137)" + ], + "transaction": { + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x4fa6148c9dabc7a737422fb1b3ab9088c878d26c", + "gas": "0x2329c", + "value": "0x0", + "input": "0x8bc76f740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc88d28f7d4b0d5afaccc77f6102d88ee630fa170000000000000000000000003fac7cb5b45a3b59d76b6926bc704cf3cc5224370000000000000000000000000000000000000000000000000000000000000089", + "nonce": "0x18", + "chainId": "0x8001" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x12de0", + "logs": [ + { + "address": "0xb4132e757345f0efd91af38cd824be441f34fe25", + "topics": [ + "0xacee94c8a79111860852775471f35a102ad3dc32ff2716802bd1000ceb51f5a8", + "0x0000000000000000000000004345472a0c6164f35808cdb7e7eccd3d326cc50b" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000007519550ae8b6f9d32e9c1a939fb5c186f660be5b0000000000000000000000000000000000000000000000000000000000000089", + "blockHash": "0x565175af4ceae9eb8e1f2e9d7e76f2d1e3cbe30a9a6101272f9ae183ad6cc5ac", + "blockNumber": "0x422e40", + "transactionHash": "0x86afb921ddeea78943ccfd5fcdf483074e5b045206945c4a830e0208734df77a", + "transactionIndex": "0x0", + "logIndex": "0x0", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000040000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000240020000000000000000800000000000000000000", + "type": "0x0", + "transactionHash": "0x86afb921ddeea78943ccfd5fcdf483074e5b045206945c4a830e0208734df77a", + "transactionIndex": "0x0", + "blockHash": "0x565175af4ceae9eb8e1f2e9d7e76f2d1e3cbe30a9a6101272f9ae183ad6cc5ac", + "blockNumber": "0x422e40", + "gasUsed": "0x12de0", + "effectiveGasPrice": "0x454b7b38e70", + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0xb4132e757345f0efd91af38cd824be441f34fe25", + "contractAddress": null, + "r": "0x18228C4E8093091B74BB5C5318F41B9C77660E5D0B7092ED7E2AD1299EAAEB32", + "root": "0x0000000000000000000000000000000000000000000000000000000000001010", + "s": "0x79814A0F5114D5ED68D85761A25DBC2E3B722D4BB7AC157AF72688BE32420A1C", + "v": "0x10026" + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x17ca0", + "logs": [ + { + "address": "0x4fa6148c9dabc7a737422fb1b3ab9088c878d26c", + "topics": [ + "0xacee94c8a79111860852775471f35a102ad3dc32ff2716802bd1000ceb51f5a8", + "0x0000000000000000000000000000000000000000000000000000000000000000" + ], + "data": "0x000000000000000000000000cc88d28f7d4b0d5afaccc77f6102d88ee630fa170000000000000000000000003fac7cb5b45a3b59d76b6926bc704cf3cc5224370000000000000000000000000000000000000000000000000000000000000089", + "blockHash": "0x565175af4ceae9eb8e1f2e9d7e76f2d1e3cbe30a9a6101272f9ae183ad6cc5ac", + "blockNumber": "0x422e40", + "transactionHash": "0xc4a7ccb0a724fc35894bf36a5a1455e050da279f3db01d944d61dfdec603213d", + "transactionIndex": "0x1", + "logIndex": "0x2", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000020000000000000000000800010000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000020000000000000000000000000000000000000000000040800000000000000000000", + "type": "0x0", + "transactionHash": "0xc4a7ccb0a724fc35894bf36a5a1455e050da279f3db01d944d61dfdec603213d", + "transactionIndex": "0x1", + "blockHash": "0x565175af4ceae9eb8e1f2e9d7e76f2d1e3cbe30a9a6101272f9ae183ad6cc5ac", + "blockNumber": "0x422e40", + "gasUsed": "0x17ca0", + "effectiveGasPrice": "0x454b7b38e70", + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x4fa6148c9dabc7a737422fb1b3ab9088c878d26c", + "contractAddress": null, + "r": "0x6AC96A9389BDCD52658EB7D2118E43894F0B21BFBA01B6A4BEA2B42BF5EEB8FB", + "root": "0x0000000000000000000000000000000000000000000000000000000000001010", + "s": "0x1BDEE3E0CDE8A642C8D6262C325024B5FFBB2B327456790A007048C2DD8472BA", + "v": "0x10026" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1735305595, + "chain": 32769, + "commit": "80c8cc8" +} \ No newline at end of file diff --git a/smart-contracts/broadcast/05_zilliqa_side_pol_routing.s.sol/32769/run-1735323932.json b/smart-contracts/broadcast/05_zilliqa_side_pol_routing.s.sol/32769/run-1735323932.json new file mode 100644 index 0000000..e1de45f --- /dev/null +++ b/smart-contracts/broadcast/05_zilliqa_side_pol_routing.s.sol/32769/run-1735323932.json @@ -0,0 +1,126 @@ +{ + "transactions": [ + { + "hash": "0xa56bfa8fcd85ae546bd0e6035395d3276e7cb6eb685b3271368886b7b5f46315", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x4fa6148c9dabc7a737422fb1b3ab9088c878d26c", + "function": "registerToken(address,(address,address,uint256))", + "arguments": [ + "0x4345472A0c6164F35808CDb7e7eCCd3d326CC50b", + "(0x0000000000000000000000000000000000000000, 0x7519550ae8b6f9d32E9c1A939Fb5C186f660BE5b, 137)" + ], + "transaction": { + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x4fa6148c9dabc7a737422fb1b3ab9088c878d26c", + "gas": "0x1a7fb", + "value": "0x0", + "input": "0x8bc76f740000000000000000000000004345472a0c6164f35808cdb7e7eccd3d326cc50b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000007519550ae8b6f9d32e9c1a939fb5c186f660be5b0000000000000000000000000000000000000000000000000000000000000089", + "nonce": "0x1b", + "chainId": "0x8001" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x68ddfd4e449f5dec861359d9c3b0e90c860795ff02e743018fe1e94ffd65c76f", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x4fa6148c9dabc7a737422fb1b3ab9088c878d26c", + "function": "registerToken(address,(address,address,uint256))", + "arguments": [ + "0x0000000000000000000000000000000000000000", + "(0xCc88D28f7d4B0D5AFACCC77F6102d88EE630fA17, 0x3faC7cb5b45A3B59d76b6926bc704Cf3cc522437, 137)" + ], + "transaction": { + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x4fa6148c9dabc7a737422fb1b3ab9088c878d26c", + "gas": "0xd13d", + "value": "0x0", + "input": "0x8bc76f740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc88d28f7d4b0d5afaccc77f6102d88ee630fa170000000000000000000000003fac7cb5b45a3b59d76b6926bc704cf3cc5224370000000000000000000000000000000000000000000000000000000000000089", + "nonce": "0x1c", + "chainId": "0x8001" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x12f84", + "logs": [ + { + "address": "0x4fa6148c9dabc7a737422fb1b3ab9088c878d26c", + "topics": [ + "0xacee94c8a79111860852775471f35a102ad3dc32ff2716802bd1000ceb51f5a8", + "0x0000000000000000000000004345472a0c6164f35808cdb7e7eccd3d326cc50b" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000007519550ae8b6f9d32e9c1a939fb5c186f660be5b0000000000000000000000000000000000000000000000000000000000000089", + "blockHash": "0xb38b42028e8e03ba557403c8c3c7b9bc80c97ee58aeaf60ab8a579cedfd4a777", + "blockNumber": "0x423039", + "transactionHash": "0xa56bfa8fcd85ae546bd0e6035395d3276e7cb6eb685b3271368886b7b5f46315", + "transactionIndex": "0x0", + "logIndex": "0x0", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000010000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080400000000000000000000000000000000000200020000000000000040800000000000000000000", + "type": "0x0", + "transactionHash": "0xa56bfa8fcd85ae546bd0e6035395d3276e7cb6eb685b3271368886b7b5f46315", + "transactionIndex": "0x0", + "blockHash": "0xb38b42028e8e03ba557403c8c3c7b9bc80c97ee58aeaf60ab8a579cedfd4a777", + "blockNumber": "0x423039", + "gasUsed": "0x12f84", + "effectiveGasPrice": "0x454b7b38e70", + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x4fa6148c9dabc7a737422fb1b3ab9088c878d26c", + "contractAddress": null, + "r": "0x35F42669928523444D9B116AD603DAF769B2F73D3747EE2E55DA5207B5F5E93A", + "root": "0x0000000000000000000000000000000000000000000000000000000000001010", + "s": "0x4C0EB64DCC304EFC0CDEA25FF3BE8B3F2244AF4F105C6243208210BB28A6CA05", + "v": "0x10025" + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x93a8", + "logs": [ + { + "address": "0x4fa6148c9dabc7a737422fb1b3ab9088c878d26c", + "topics": [ + "0xacee94c8a79111860852775471f35a102ad3dc32ff2716802bd1000ceb51f5a8", + "0x0000000000000000000000000000000000000000000000000000000000000000" + ], + "data": "0x000000000000000000000000cc88d28f7d4b0d5afaccc77f6102d88ee630fa170000000000000000000000003fac7cb5b45a3b59d76b6926bc704cf3cc5224370000000000000000000000000000000000000000000000000000000000000089", + "blockHash": "0xb38b42028e8e03ba557403c8c3c7b9bc80c97ee58aeaf60ab8a579cedfd4a777", + "blockNumber": "0x423039", + "transactionHash": "0x68ddfd4e449f5dec861359d9c3b0e90c860795ff02e743018fe1e94ffd65c76f", + "transactionIndex": "0x1", + "logIndex": "0x2", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000020000000000000000000800010000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000020000000000000000000000000000000000000000000040800000000000000000000", + "type": "0x0", + "transactionHash": "0x68ddfd4e449f5dec861359d9c3b0e90c860795ff02e743018fe1e94ffd65c76f", + "transactionIndex": "0x1", + "blockHash": "0xb38b42028e8e03ba557403c8c3c7b9bc80c97ee58aeaf60ab8a579cedfd4a777", + "blockNumber": "0x423039", + "gasUsed": "0x93a8", + "effectiveGasPrice": "0x454b7b38e70", + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x4fa6148c9dabc7a737422fb1b3ab9088c878d26c", + "contractAddress": null, + "r": "0xD893DAB3A322B1E06A9B3CA9D094266F28F75585A8B625A95A52319438FB2CE1", + "root": "0x0000000000000000000000000000000000000000000000000000000000001010", + "s": "0x163BB483E07EB6ED11579014E25F6743F3E003AE1EF4ADC59FD63A62D40EC567", + "v": "0x10025" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1735323932, + "chain": 32769, + "commit": "80c8cc8" +} \ No newline at end of file diff --git a/smart-contracts/broadcast/05_zilliqa_side_pol_routing.s.sol/32769/run-latest.json b/smart-contracts/broadcast/05_zilliqa_side_pol_routing.s.sol/32769/run-latest.json new file mode 100644 index 0000000..e1de45f --- /dev/null +++ b/smart-contracts/broadcast/05_zilliqa_side_pol_routing.s.sol/32769/run-latest.json @@ -0,0 +1,126 @@ +{ + "transactions": [ + { + "hash": "0xa56bfa8fcd85ae546bd0e6035395d3276e7cb6eb685b3271368886b7b5f46315", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x4fa6148c9dabc7a737422fb1b3ab9088c878d26c", + "function": "registerToken(address,(address,address,uint256))", + "arguments": [ + "0x4345472A0c6164F35808CDb7e7eCCd3d326CC50b", + "(0x0000000000000000000000000000000000000000, 0x7519550ae8b6f9d32E9c1A939Fb5C186f660BE5b, 137)" + ], + "transaction": { + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x4fa6148c9dabc7a737422fb1b3ab9088c878d26c", + "gas": "0x1a7fb", + "value": "0x0", + "input": "0x8bc76f740000000000000000000000004345472a0c6164f35808cdb7e7eccd3d326cc50b00000000000000000000000000000000000000000000000000000000000000000000000000000000000000007519550ae8b6f9d32e9c1a939fb5c186f660be5b0000000000000000000000000000000000000000000000000000000000000089", + "nonce": "0x1b", + "chainId": "0x8001" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x68ddfd4e449f5dec861359d9c3b0e90c860795ff02e743018fe1e94ffd65c76f", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x4fa6148c9dabc7a737422fb1b3ab9088c878d26c", + "function": "registerToken(address,(address,address,uint256))", + "arguments": [ + "0x0000000000000000000000000000000000000000", + "(0xCc88D28f7d4B0D5AFACCC77F6102d88EE630fA17, 0x3faC7cb5b45A3B59d76b6926bc704Cf3cc522437, 137)" + ], + "transaction": { + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x4fa6148c9dabc7a737422fb1b3ab9088c878d26c", + "gas": "0xd13d", + "value": "0x0", + "input": "0x8bc76f740000000000000000000000000000000000000000000000000000000000000000000000000000000000000000cc88d28f7d4b0d5afaccc77f6102d88ee630fa170000000000000000000000003fac7cb5b45a3b59d76b6926bc704cf3cc5224370000000000000000000000000000000000000000000000000000000000000089", + "nonce": "0x1c", + "chainId": "0x8001" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x12f84", + "logs": [ + { + "address": "0x4fa6148c9dabc7a737422fb1b3ab9088c878d26c", + "topics": [ + "0xacee94c8a79111860852775471f35a102ad3dc32ff2716802bd1000ceb51f5a8", + "0x0000000000000000000000004345472a0c6164f35808cdb7e7eccd3d326cc50b" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000007519550ae8b6f9d32e9c1a939fb5c186f660be5b0000000000000000000000000000000000000000000000000000000000000089", + "blockHash": "0xb38b42028e8e03ba557403c8c3c7b9bc80c97ee58aeaf60ab8a579cedfd4a777", + "blockNumber": "0x423039", + "transactionHash": "0xa56bfa8fcd85ae546bd0e6035395d3276e7cb6eb685b3271368886b7b5f46315", + "transactionIndex": "0x0", + "logIndex": "0x0", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000010000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000080400000000000000000000000000000000000200020000000000000040800000000000000000000", + "type": "0x0", + "transactionHash": "0xa56bfa8fcd85ae546bd0e6035395d3276e7cb6eb685b3271368886b7b5f46315", + "transactionIndex": "0x0", + "blockHash": "0xb38b42028e8e03ba557403c8c3c7b9bc80c97ee58aeaf60ab8a579cedfd4a777", + "blockNumber": "0x423039", + "gasUsed": "0x12f84", + "effectiveGasPrice": "0x454b7b38e70", + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x4fa6148c9dabc7a737422fb1b3ab9088c878d26c", + "contractAddress": null, + "r": "0x35F42669928523444D9B116AD603DAF769B2F73D3747EE2E55DA5207B5F5E93A", + "root": "0x0000000000000000000000000000000000000000000000000000000000001010", + "s": "0x4C0EB64DCC304EFC0CDEA25FF3BE8B3F2244AF4F105C6243208210BB28A6CA05", + "v": "0x10025" + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x93a8", + "logs": [ + { + "address": "0x4fa6148c9dabc7a737422fb1b3ab9088c878d26c", + "topics": [ + "0xacee94c8a79111860852775471f35a102ad3dc32ff2716802bd1000ceb51f5a8", + "0x0000000000000000000000000000000000000000000000000000000000000000" + ], + "data": "0x000000000000000000000000cc88d28f7d4b0d5afaccc77f6102d88ee630fa170000000000000000000000003fac7cb5b45a3b59d76b6926bc704cf3cc5224370000000000000000000000000000000000000000000000000000000000000089", + "blockHash": "0xb38b42028e8e03ba557403c8c3c7b9bc80c97ee58aeaf60ab8a579cedfd4a777", + "blockNumber": "0x423039", + "transactionHash": "0x68ddfd4e449f5dec861359d9c3b0e90c860795ff02e743018fe1e94ffd65c76f", + "transactionIndex": "0x1", + "logIndex": "0x2", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000800000000020000000000000000000800010000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000400000000020000000000000000000000000000000000000000000040800000000000000000000", + "type": "0x0", + "transactionHash": "0x68ddfd4e449f5dec861359d9c3b0e90c860795ff02e743018fe1e94ffd65c76f", + "transactionIndex": "0x1", + "blockHash": "0xb38b42028e8e03ba557403c8c3c7b9bc80c97ee58aeaf60ab8a579cedfd4a777", + "blockNumber": "0x423039", + "gasUsed": "0x93a8", + "effectiveGasPrice": "0x454b7b38e70", + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x4fa6148c9dabc7a737422fb1b3ab9088c878d26c", + "contractAddress": null, + "r": "0xD893DAB3A322B1E06A9B3CA9D094266F28F75585A8B625A95A52319438FB2CE1", + "root": "0x0000000000000000000000000000000000000000000000000000000000001010", + "s": "0x163BB483E07EB6ED11579014E25F6743F3E003AE1EF4ADC59FD63A62D40EC567", + "v": "0x10025" + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1735323932, + "chain": 32769, + "commit": "80c8cc8" +} \ No newline at end of file diff --git a/smart-contracts/broadcast/06_pol_routing.s.sol/137/dry-run/run-1735323960.json b/smart-contracts/broadcast/06_pol_routing.s.sol/137/dry-run/run-1735323960.json new file mode 100644 index 0000000..c148f39 --- /dev/null +++ b/smart-contracts/broadcast/06_pol_routing.s.sol/137/dry-run/run-1735323960.json @@ -0,0 +1,55 @@ +{ + "transactions": [ + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x3fac7cb5b45a3b59d76b6926bc704cf3cc522437", + "function": "registerToken(address,(address,address,uint256))", + "arguments": [ + "0xCc88D28f7d4B0D5AFACCC77F6102d88EE630fA17", + "(0x0000000000000000000000000000000000000000, 0x4fa6148C9DAbC7A737422fb1b3AB9088c878d26C, 32769)" + ], + "transaction": { + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x3fac7cb5b45a3b59d76b6926bc704cf3cc522437", + "gas": "0xd169", + "value": "0x0", + "input": "0x8bc76f74000000000000000000000000cc88d28f7d4b0d5afaccc77f6102d88ee630fa1700000000000000000000000000000000000000000000000000000000000000000000000000000000000000004fa6148c9dabc7a737422fb1b3ab9088c878d26c0000000000000000000000000000000000000000000000000000000000008001", + "nonce": "0x1d", + "chainId": "0x89" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x7519550ae8b6f9d32e9c1a939fb5c186f660be5b", + "function": "registerToken(address,(address,address,uint256))", + "arguments": [ + "0x0000000000000000000000000000000000000000", + "(0x4345472A0c6164F35808CDb7e7eCCd3d326CC50b, 0x4fa6148C9DAbC7A737422fb1b3AB9088c878d26C, 32769)" + ], + "transaction": { + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x7519550ae8b6f9d32e9c1a939fb5c186f660be5b", + "gas": "0xed9d", + "value": "0x0", + "input": "0x8bc76f7400000000000000000000000000000000000000000000000000000000000000000000000000000000000000004345472a0c6164f35808cdb7e7eccd3d326cc50b0000000000000000000000004fa6148c9dabc7a737422fb1b3ab9088c878d26c0000000000000000000000000000000000000000000000000000000000008001", + "nonce": "0x1e", + "chainId": "0x89" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1735323960, + "chain": 137, + "commit": "80c8cc8" +} \ No newline at end of file diff --git a/smart-contracts/broadcast/06_pol_routing.s.sol/137/dry-run/run-latest.json b/smart-contracts/broadcast/06_pol_routing.s.sol/137/dry-run/run-latest.json index 1f65861..c148f39 100644 --- a/smart-contracts/broadcast/06_pol_routing.s.sol/137/dry-run/run-latest.json +++ b/smart-contracts/broadcast/06_pol_routing.s.sol/137/dry-run/run-latest.json @@ -13,10 +13,10 @@ "transaction": { "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", "to": "0x3fac7cb5b45a3b59d76b6926bc704cf3cc522437", - "gas": "0x1a827", + "gas": "0xd169", "value": "0x0", "input": "0x8bc76f74000000000000000000000000cc88d28f7d4b0d5afaccc77f6102d88ee630fa1700000000000000000000000000000000000000000000000000000000000000000000000000000000000000004fa6148c9dabc7a737422fb1b3ab9088c878d26c0000000000000000000000000000000000000000000000000000000000008001", - "nonce": "0x17", + "nonce": "0x1d", "chainId": "0x89" }, "additionalContracts": [], @@ -30,15 +30,15 @@ "function": "registerToken(address,(address,address,uint256))", "arguments": [ "0x0000000000000000000000000000000000000000", - "(0x4345472A0c6164F35808CDb7e7eCCd3d326CC50b, 0xb4132E757345f0EfD91af38cD824Be441F34fe25, 32769)" + "(0x4345472A0c6164F35808CDb7e7eCCd3d326CC50b, 0x4fa6148C9DAbC7A737422fb1b3AB9088c878d26C, 32769)" ], "transaction": { "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", "to": "0x7519550ae8b6f9d32e9c1a939fb5c186f660be5b", - "gas": "0x2136a", + "gas": "0xed9d", "value": "0x0", - "input": "0x8bc76f7400000000000000000000000000000000000000000000000000000000000000000000000000000000000000004345472a0c6164f35808cdb7e7eccd3d326cc50b000000000000000000000000b4132e757345f0efd91af38cd824be441f34fe250000000000000000000000000000000000000000000000000000000000008001", - "nonce": "0x18", + "input": "0x8bc76f7400000000000000000000000000000000000000000000000000000000000000000000000000000000000000004345472a0c6164f35808cdb7e7eccd3d326cc50b0000000000000000000000004fa6148c9dabc7a737422fb1b3ab9088c878d26c0000000000000000000000000000000000000000000000000000000000008001", + "nonce": "0x1e", "chainId": "0x89" }, "additionalContracts": [], @@ -49,7 +49,7 @@ "libraries": [], "pending": [], "returns": {}, - "timestamp": 1735305011, + "timestamp": 1735323960, "chain": 137, - "commit": "dc7b749" + "commit": "80c8cc8" } \ No newline at end of file diff --git a/smart-contracts/broadcast/06_pol_routing.s.sol/137/run-1735323978.json b/smart-contracts/broadcast/06_pol_routing.s.sol/137/run-1735323978.json new file mode 100644 index 0000000..45a2bd1 --- /dev/null +++ b/smart-contracts/broadcast/06_pol_routing.s.sol/137/run-1735323978.json @@ -0,0 +1,150 @@ +{ + "transactions": [ + { + "hash": "0xcd261391729e5580dec2c64617e48651455a50c3d7253a64e2f183aa047c3a2a", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x3fac7cb5b45a3b59d76b6926bc704cf3cc522437", + "function": "registerToken(address,(address,address,uint256))", + "arguments": [ + "0xCc88D28f7d4B0D5AFACCC77F6102d88EE630fA17", + "(0x0000000000000000000000000000000000000000, 0x4fa6148C9DAbC7A737422fb1b3AB9088c878d26C, 32769)" + ], + "transaction": { + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x3fac7cb5b45a3b59d76b6926bc704cf3cc522437", + "gas": "0xd169", + "value": "0x0", + "input": "0x8bc76f74000000000000000000000000cc88d28f7d4b0d5afaccc77f6102d88ee630fa1700000000000000000000000000000000000000000000000000000000000000000000000000000000000000004fa6148c9dabc7a737422fb1b3ab9088c878d26c0000000000000000000000000000000000000000000000000000000000008001", + "nonce": "0x1d", + "chainId": "0x89" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x78ed11190f5ab2fc6220eeb613612d41b5be4ec2778591c44649c2eb9520358c", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x7519550ae8b6f9d32e9c1a939fb5c186f660be5b", + "function": "registerToken(address,(address,address,uint256))", + "arguments": [ + "0x0000000000000000000000000000000000000000", + "(0x4345472A0c6164F35808CDb7e7eCCd3d326CC50b, 0x4fa6148C9DAbC7A737422fb1b3AB9088c878d26C, 32769)" + ], + "transaction": { + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x7519550ae8b6f9d32e9c1a939fb5c186f660be5b", + "gas": "0xed9d", + "value": "0x0", + "input": "0x8bc76f7400000000000000000000000000000000000000000000000000000000000000000000000000000000000000004345472a0c6164f35808cdb7e7eccd3d326cc50b0000000000000000000000004fa6148c9dabc7a737422fb1b3ab9088c878d26c0000000000000000000000000000000000000000000000000000000000008001", + "nonce": "0x1e", + "chainId": "0x89" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x937fc7", + "logs": [ + { + "address": "0x3fac7cb5b45a3b59d76b6926bc704cf3cc522437", + "topics": [ + "0xacee94c8a79111860852775471f35a102ad3dc32ff2716802bd1000ceb51f5a8", + "0x000000000000000000000000cc88d28f7d4b0d5afaccc77f6102d88ee630fa17" + ], + "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000004fa6148c9dabc7a737422fb1b3ab9088c878d26c0000000000000000000000000000000000000000000000000000000000008001", + "blockHash": "0xa5d388b07e616502837b4cb22924c4d1949a69beb24c1703a71d4e61558264c7", + "blockNumber": "0x3ef0040", + "transactionHash": "0xcd261391729e5580dec2c64617e48651455a50c3d7253a64e2f183aa047c3a2a", + "transactionIndex": "0x38", + "logIndex": "0x135", + "removed": false + }, + { + "address": "0x0000000000000000000000000000000000001010", + "topics": [ + "0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63", + "0x0000000000000000000000000000000000000000000000000000000000001010", + "0x000000000000000000000000d89421cd5dd6d6269fbb9307535c386afe11a23e", + "0x00000000000000000000000067b94473d81d0cd00849d563c94d0432ac988b49" + ], + "data": "0x0000000000000000000000000000000000000000000000000003ae65cfe6a26700000000000000000000000000000000000000000000000311681e0958b97f090000000000000000000000000000000000000000000007bf6b3c4a99f1ba0aec00000000000000000000000000000000000000000000000311646fa388d2dca20000000000000000000000000000000000000000000007bf6b3ff8ffc1a0ad53", + "blockHash": "0xa5d388b07e616502837b4cb22924c4d1949a69beb24c1703a71d4e61558264c7", + "blockNumber": "0x3ef0040", + "transactionHash": "0xcd261391729e5580dec2c64617e48651455a50c3d7253a64e2f183aa047c3a2a", + "transactionIndex": "0x38", + "logIndex": "0x136", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000040000000000000000000000000000000000000080000000000008000000000000000000000000000000000000100000000000000000000800000000000000000200100000000000000000000000000000000000000000009010000000000000080000000000000000000000000100008000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000004000800000000000000001000000008000000000000000000000100000000000000000020000000000000000000000000000000000000800800000000000100000", + "type": "0x0", + "transactionHash": "0xcd261391729e5580dec2c64617e48651455a50c3d7253a64e2f183aa047c3a2a", + "transactionIndex": "0x38", + "blockHash": "0xa5d388b07e616502837b4cb22924c4d1949a69beb24c1703a71d4e61558264c7", + "blockNumber": "0x3ef0040", + "gasUsed": "0x979d", + "effectiveGasPrice": "0x1a1a0e8354", + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x3fac7cb5b45a3b59d76b6926bc704cf3cc522437", + "contractAddress": null + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x942240", + "logs": [ + { + "address": "0x7519550ae8b6f9d32e9c1a939fb5c186f660be5b", + "topics": [ + "0xacee94c8a79111860852775471f35a102ad3dc32ff2716802bd1000ceb51f5a8", + "0x0000000000000000000000000000000000000000000000000000000000000000" + ], + "data": "0x0000000000000000000000004345472a0c6164f35808cdb7e7eccd3d326cc50b0000000000000000000000004fa6148c9dabc7a737422fb1b3ab9088c878d26c0000000000000000000000000000000000000000000000000000000000008001", + "blockHash": "0xa5d388b07e616502837b4cb22924c4d1949a69beb24c1703a71d4e61558264c7", + "blockNumber": "0x3ef0040", + "transactionHash": "0x78ed11190f5ab2fc6220eeb613612d41b5be4ec2778591c44649c2eb9520358c", + "transactionIndex": "0x39", + "logIndex": "0x137", + "removed": false + }, + { + "address": "0x0000000000000000000000000000000000001010", + "topics": [ + "0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63", + "0x0000000000000000000000000000000000000000000000000000000000001010", + "0x000000000000000000000000d89421cd5dd6d6269fbb9307535c386afe11a23e", + "0x00000000000000000000000067b94473d81d0cd00849d563c94d0432ac988b49" + ], + "data": "0x0000000000000000000000000000000000000000000000000003f1e5bbd5a5bb0000000000000000000000000000000000000000000000031158a8a8ce5c68850000000000000000000000000000000000000000000007bf6b3ff8ffc1a0ad530000000000000000000000000000000000000000000000031154b6c31286c2ca0000000000000000000000000000000000000000000007bf6b43eae57d76530e", + "blockHash": "0xa5d388b07e616502837b4cb22924c4d1949a69beb24c1703a71d4e61558264c7", + "blockNumber": "0x3ef0040", + "transactionHash": "0x78ed11190f5ab2fc6220eeb613612d41b5be4ec2778591c44649c2eb9520358c", + "transactionIndex": "0x39", + "logIndex": "0x138", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000010000000000000000000000000080000000000008000000000000000000000000000000000000100000000000000000000800000000000000000000100000000000000000000020000000000000000000800010000000000000080000000000000000000000000100000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000004000800000000000000001000000008000004000000000000000100000000020000000020000000000000000000000000000000000000800808000000000100000", + "type": "0x0", + "transactionHash": "0x78ed11190f5ab2fc6220eeb613612d41b5be4ec2778591c44649c2eb9520358c", + "transactionIndex": "0x39", + "blockHash": "0xa5d388b07e616502837b4cb22924c4d1949a69beb24c1703a71d4e61558264c7", + "blockNumber": "0x3ef0040", + "gasUsed": "0xa279", + "effectiveGasPrice": "0x1a1a0e8354", + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x7519550ae8b6f9d32e9c1a939fb5c186f660be5b", + "contractAddress": null + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1735323978, + "chain": 137, + "commit": "80c8cc8" +} \ No newline at end of file diff --git a/smart-contracts/broadcast/06_pol_routing.s.sol/137/run-latest.json b/smart-contracts/broadcast/06_pol_routing.s.sol/137/run-latest.json index f2c87fb..45a2bd1 100644 --- a/smart-contracts/broadcast/06_pol_routing.s.sol/137/run-latest.json +++ b/smart-contracts/broadcast/06_pol_routing.s.sol/137/run-latest.json @@ -1,7 +1,7 @@ { "transactions": [ { - "hash": "0x4bd73bf05bfac0afb8486c1adcb5309048e052a41010798833167535fa612e28", + "hash": "0xcd261391729e5580dec2c64617e48651455a50c3d7253a64e2f183aa047c3a2a", "transactionType": "CALL", "contractName": null, "contractAddress": "0x3fac7cb5b45a3b59d76b6926bc704cf3cc522437", @@ -13,32 +13,32 @@ "transaction": { "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", "to": "0x3fac7cb5b45a3b59d76b6926bc704cf3cc522437", - "gas": "0x1a827", + "gas": "0xd169", "value": "0x0", "input": "0x8bc76f74000000000000000000000000cc88d28f7d4b0d5afaccc77f6102d88ee630fa1700000000000000000000000000000000000000000000000000000000000000000000000000000000000000004fa6148c9dabc7a737422fb1b3ab9088c878d26c0000000000000000000000000000000000000000000000000000000000008001", - "nonce": "0x17", + "nonce": "0x1d", "chainId": "0x89" }, "additionalContracts": [], "isFixedGasLimit": false }, { - "hash": "0x6194aa8b43dc5918fe8b1cafdfdb3ea4f28402f0fa5c4624ddc3fc40dbc80aed", + "hash": "0x78ed11190f5ab2fc6220eeb613612d41b5be4ec2778591c44649c2eb9520358c", "transactionType": "CALL", "contractName": null, "contractAddress": "0x7519550ae8b6f9d32e9c1a939fb5c186f660be5b", "function": "registerToken(address,(address,address,uint256))", "arguments": [ "0x0000000000000000000000000000000000000000", - "(0x4345472A0c6164F35808CDb7e7eCCd3d326CC50b, 0xb4132E757345f0EfD91af38cD824Be441F34fe25, 32769)" + "(0x4345472A0c6164F35808CDb7e7eCCd3d326CC50b, 0x4fa6148C9DAbC7A737422fb1b3AB9088c878d26C, 32769)" ], "transaction": { "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", "to": "0x7519550ae8b6f9d32e9c1a939fb5c186f660be5b", - "gas": "0x2136a", + "gas": "0xed9d", "value": "0x0", - "input": "0x8bc76f7400000000000000000000000000000000000000000000000000000000000000000000000000000000000000004345472a0c6164f35808cdb7e7eccd3d326cc50b000000000000000000000000b4132e757345f0efd91af38cd824be441f34fe250000000000000000000000000000000000000000000000000000000000008001", - "nonce": "0x18", + "input": "0x8bc76f7400000000000000000000000000000000000000000000000000000000000000000000000000000000000000004345472a0c6164f35808cdb7e7eccd3d326cc50b0000000000000000000000004fa6148c9dabc7a737422fb1b3ab9088c878d26c0000000000000000000000000000000000000000000000000000000000008001", + "nonce": "0x1e", "chainId": "0x89" }, "additionalContracts": [], @@ -48,7 +48,7 @@ "receipts": [ { "status": "0x1", - "cumulativeGasUsed": "0xd5d786", + "cumulativeGasUsed": "0x937fc7", "logs": [ { "address": "0x3fac7cb5b45a3b59d76b6926bc704cf3cc522437", @@ -57,11 +57,11 @@ "0x000000000000000000000000cc88d28f7d4b0d5afaccc77f6102d88ee630fa17" ], "data": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000004fa6148c9dabc7a737422fb1b3ab9088c878d26c0000000000000000000000000000000000000000000000000000000000008001", - "blockHash": "0xa2605a0aacd01fc3ca913d74a820c93da6864bfb6c68f0ebb7a6f26c0e0d8ff4", - "blockNumber": "0x3eedf17", - "transactionHash": "0x4bd73bf05bfac0afb8486c1adcb5309048e052a41010798833167535fa612e28", - "transactionIndex": "0x49", - "logIndex": "0x1b4", + "blockHash": "0xa5d388b07e616502837b4cb22924c4d1949a69beb24c1703a71d4e61558264c7", + "blockNumber": "0x3ef0040", + "transactionHash": "0xcd261391729e5580dec2c64617e48651455a50c3d7253a64e2f183aa047c3a2a", + "transactionIndex": "0x38", + "logIndex": "0x135", "removed": false }, { @@ -70,32 +70,32 @@ "0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63", "0x0000000000000000000000000000000000000000000000000000000000001010", "0x000000000000000000000000d89421cd5dd6d6269fbb9307535c386afe11a23e", - "0x00000000000000000000000083d69448f88bf9c701c1b93f43e1f753d39b2632" + "0x00000000000000000000000067b94473d81d0cd00849d563c94d0432ac988b49" ], - "data": "0x00000000000000000000000000000000000000000000000000075af5015e9d3700000000000000000000000000000000000000000000000661104a646ce32cfb0000000000000000000000000000000000000000000013cb28a6803b07c3c2ac0000000000000000000000000000000000000000000000066108ef6f6b848fc40000000000000000000000000000000000000000000013cb28addb3009225fe3", - "blockHash": "0xa2605a0aacd01fc3ca913d74a820c93da6864bfb6c68f0ebb7a6f26c0e0d8ff4", - "blockNumber": "0x3eedf17", - "transactionHash": "0x4bd73bf05bfac0afb8486c1adcb5309048e052a41010798833167535fa612e28", - "transactionIndex": "0x49", - "logIndex": "0x1b5", + "data": "0x0000000000000000000000000000000000000000000000000003ae65cfe6a26700000000000000000000000000000000000000000000000311681e0958b97f090000000000000000000000000000000000000000000007bf6b3c4a99f1ba0aec00000000000000000000000000000000000000000000000311646fa388d2dca20000000000000000000000000000000000000000000007bf6b3ff8ffc1a0ad53", + "blockHash": "0xa5d388b07e616502837b4cb22924c4d1949a69beb24c1703a71d4e61558264c7", + "blockNumber": "0x3ef0040", + "transactionHash": "0xcd261391729e5580dec2c64617e48651455a50c3d7253a64e2f183aa047c3a2a", + "transactionIndex": "0x38", + "logIndex": "0x136", "removed": false } ], - "logsBloom": "0x00000000000000000000000000000000000000000000000040000000000000000000000000000000000000080000000000008000000000000000000000000000000000000100008000000000000000800000000000000000200100000000000000000000000000000000000000000009010000000800100080000000000000000000000000100008000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000004000000000000000000001000000000000000000000000000000100000000000000000000000000000000000000000000000000000000800800000000000100000", + "logsBloom": "0x00000000000000000000000000000000000000000000000040000000000000000000000000000000000000080000000000008000000000000000000000000000000000000100000000000000000000800000000000000000200100000000000000000000000000000000000000000009010000000000000080000000000000000000000000100008000000000000000000000000000000000000000000000000220000000000000000000000000000000000000000000000000000000000004000800000000000000001000000008000000000000000000000100000000000000000020000000000000000000000000000000000000800800000000000100000", "type": "0x0", - "transactionHash": "0x4bd73bf05bfac0afb8486c1adcb5309048e052a41010798833167535fa612e28", - "transactionIndex": "0x49", - "blockHash": "0xa2605a0aacd01fc3ca913d74a820c93da6864bfb6c68f0ebb7a6f26c0e0d8ff4", - "blockNumber": "0x3eedf17", - "gasUsed": "0x13315", - "effectiveGasPrice": "0x16ca67ee62", + "transactionHash": "0xcd261391729e5580dec2c64617e48651455a50c3d7253a64e2f183aa047c3a2a", + "transactionIndex": "0x38", + "blockHash": "0xa5d388b07e616502837b4cb22924c4d1949a69beb24c1703a71d4e61558264c7", + "blockNumber": "0x3ef0040", + "gasUsed": "0x979d", + "effectiveGasPrice": "0x1a1a0e8354", "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", "to": "0x3fac7cb5b45a3b59d76b6926bc704cf3cc522437", "contractAddress": null }, { "status": "0x1", - "cumulativeGasUsed": "0xd75843", + "cumulativeGasUsed": "0x942240", "logs": [ { "address": "0x7519550ae8b6f9d32e9c1a939fb5c186f660be5b", @@ -103,12 +103,12 @@ "0xacee94c8a79111860852775471f35a102ad3dc32ff2716802bd1000ceb51f5a8", "0x0000000000000000000000000000000000000000000000000000000000000000" ], - "data": "0x0000000000000000000000004345472a0c6164f35808cdb7e7eccd3d326cc50b000000000000000000000000b4132e757345f0efd91af38cd824be441f34fe250000000000000000000000000000000000000000000000000000000000008001", - "blockHash": "0xa2605a0aacd01fc3ca913d74a820c93da6864bfb6c68f0ebb7a6f26c0e0d8ff4", - "blockNumber": "0x3eedf17", - "transactionHash": "0x6194aa8b43dc5918fe8b1cafdfdb3ea4f28402f0fa5c4624ddc3fc40dbc80aed", - "transactionIndex": "0x4a", - "logIndex": "0x1b6", + "data": "0x0000000000000000000000004345472a0c6164f35808cdb7e7eccd3d326cc50b0000000000000000000000004fa6148c9dabc7a737422fb1b3ab9088c878d26c0000000000000000000000000000000000000000000000000000000000008001", + "blockHash": "0xa5d388b07e616502837b4cb22924c4d1949a69beb24c1703a71d4e61558264c7", + "blockNumber": "0x3ef0040", + "transactionHash": "0x78ed11190f5ab2fc6220eeb613612d41b5be4ec2778591c44649c2eb9520358c", + "transactionIndex": "0x39", + "logIndex": "0x137", "removed": false }, { @@ -117,25 +117,25 @@ "0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63", "0x0000000000000000000000000000000000000000000000000000000000001010", "0x000000000000000000000000d89421cd5dd6d6269fbb9307535c386afe11a23e", - "0x00000000000000000000000083d69448f88bf9c701c1b93f43e1f753d39b2632" + "0x00000000000000000000000067b94473d81d0cd00849d563c94d0432ac988b49" ], - "data": "0x00000000000000000000000000000000000000000000000000093720a2d29def00000000000000000000000000000000000000000000000660f4f3cb2f7d18f10000000000000000000000000000000000000000000013cb28addb3009225fe300000000000000000000000000000000000000000000000660ebbcaa8caa7b020000000000000000000000000000000000000000000013cb28b71250abf4fdd2", - "blockHash": "0xa2605a0aacd01fc3ca913d74a820c93da6864bfb6c68f0ebb7a6f26c0e0d8ff4", - "blockNumber": "0x3eedf17", - "transactionHash": "0x6194aa8b43dc5918fe8b1cafdfdb3ea4f28402f0fa5c4624ddc3fc40dbc80aed", - "transactionIndex": "0x4a", - "logIndex": "0x1b7", + "data": "0x0000000000000000000000000000000000000000000000000003f1e5bbd5a5bb0000000000000000000000000000000000000000000000031158a8a8ce5c68850000000000000000000000000000000000000000000007bf6b3ff8ffc1a0ad530000000000000000000000000000000000000000000000031154b6c31286c2ca0000000000000000000000000000000000000000000007bf6b43eae57d76530e", + "blockHash": "0xa5d388b07e616502837b4cb22924c4d1949a69beb24c1703a71d4e61558264c7", + "blockNumber": "0x3ef0040", + "transactionHash": "0x78ed11190f5ab2fc6220eeb613612d41b5be4ec2778591c44649c2eb9520358c", + "transactionIndex": "0x39", + "logIndex": "0x138", "removed": false } ], - "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000010000000000000000000000000080000000000008000000000000000000000000000000000000100008000000000000000800000000000000000000100000000000000000000020000000000000000000800010000000800100080000000000000000000000000100000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000004000000000000000000001000000000000004000000000000000100000000020000000000000000000000000000000000000000000000800808000000000100000", + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000010000000000000000000000000080000000000008000000000000000000000000000000000000100000000000000000000800000000000000000000100000000000000000000020000000000000000000800010000000000000080000000000000000000000000100000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000004000800000000000000001000000008000004000000000000000100000000020000000020000000000000000000000000000000000000800808000000000100000", "type": "0x0", - "transactionHash": "0x6194aa8b43dc5918fe8b1cafdfdb3ea4f28402f0fa5c4624ddc3fc40dbc80aed", - "transactionIndex": "0x4a", - "blockHash": "0xa2605a0aacd01fc3ca913d74a820c93da6864bfb6c68f0ebb7a6f26c0e0d8ff4", - "blockNumber": "0x3eedf17", - "gasUsed": "0x180bd", - "effectiveGasPrice": "0x16ca67ee62", + "transactionHash": "0x78ed11190f5ab2fc6220eeb613612d41b5be4ec2778591c44649c2eb9520358c", + "transactionIndex": "0x39", + "blockHash": "0xa5d388b07e616502837b4cb22924c4d1949a69beb24c1703a71d4e61558264c7", + "blockNumber": "0x3ef0040", + "gasUsed": "0xa279", + "effectiveGasPrice": "0x1a1a0e8354", "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", "to": "0x7519550ae8b6f9d32e9c1a939fb5c186f660be5b", "contractAddress": null @@ -144,7 +144,7 @@ "libraries": [], "pending": [], "returns": {}, - "timestamp": 1735305033, + "timestamp": 1735323978, "chain": 137, - "commit": "dc7b749" + "commit": "80c8cc8" } \ No newline at end of file diff --git a/smart-contracts/broadcast/07_update_validators.s.sol/137/dry-run/run-1735320377.json b/smart-contracts/broadcast/07_update_validators.s.sol/137/dry-run/run-1735320377.json new file mode 100644 index 0000000..14bd154 --- /dev/null +++ b/smart-contracts/broadcast/07_update_validators.s.sol/137/dry-run/run-1735320377.json @@ -0,0 +1,53 @@ +{ + "transactions": [ + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x7738267553f87b68ae9fecbfbe3293a187f18110", + "function": "addValidator(address)", + "arguments": [ + "0x250572Ed005BaD64Ff24FbDc0d41875dAF58944f" + ], + "transaction": { + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x7738267553f87b68ae9fecbfbe3293a187f18110", + "gas": "0x1a832", + "value": "0x0", + "input": "0x4d238c8e000000000000000000000000250572ed005bad64ff24fbdc0d41875daf58944f", + "nonce": "0x1a", + "chainId": "0x89" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x7738267553f87b68ae9fecbfbe3293a187f18110", + "function": "removeValidator(address)", + "arguments": [ + "0xD89421Cd5dD6d6269FbB9307535c386AFe11a23E" + ], + "transaction": { + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x7738267553f87b68ae9fecbfbe3293a187f18110", + "gas": "0x1043e", + "value": "0x0", + "input": "0x40a141ff000000000000000000000000d89421cd5dd6d6269fbb9307535c386afe11a23e", + "nonce": "0x1b", + "chainId": "0x89" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1735320377, + "chain": 137, + "commit": "80c8cc8" +} \ No newline at end of file diff --git a/smart-contracts/broadcast/07_update_validators.s.sol/137/dry-run/run-latest.json b/smart-contracts/broadcast/07_update_validators.s.sol/137/dry-run/run-latest.json new file mode 100644 index 0000000..14bd154 --- /dev/null +++ b/smart-contracts/broadcast/07_update_validators.s.sol/137/dry-run/run-latest.json @@ -0,0 +1,53 @@ +{ + "transactions": [ + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x7738267553f87b68ae9fecbfbe3293a187f18110", + "function": "addValidator(address)", + "arguments": [ + "0x250572Ed005BaD64Ff24FbDc0d41875dAF58944f" + ], + "transaction": { + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x7738267553f87b68ae9fecbfbe3293a187f18110", + "gas": "0x1a832", + "value": "0x0", + "input": "0x4d238c8e000000000000000000000000250572ed005bad64ff24fbdc0d41875daf58944f", + "nonce": "0x1a", + "chainId": "0x89" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x7738267553f87b68ae9fecbfbe3293a187f18110", + "function": "removeValidator(address)", + "arguments": [ + "0xD89421Cd5dD6d6269FbB9307535c386AFe11a23E" + ], + "transaction": { + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x7738267553f87b68ae9fecbfbe3293a187f18110", + "gas": "0x1043e", + "value": "0x0", + "input": "0x40a141ff000000000000000000000000d89421cd5dd6d6269fbb9307535c386afe11a23e", + "nonce": "0x1b", + "chainId": "0x89" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1735320377, + "chain": 137, + "commit": "80c8cc8" +} \ No newline at end of file diff --git a/smart-contracts/broadcast/07_update_validators.s.sol/137/run-1735320406.json b/smart-contracts/broadcast/07_update_validators.s.sol/137/run-1735320406.json new file mode 100644 index 0000000..cfabd55 --- /dev/null +++ b/smart-contracts/broadcast/07_update_validators.s.sol/137/run-1735320406.json @@ -0,0 +1,53 @@ +{ + "transactions": [ + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x7738267553f87b68ae9fecbfbe3293a187f18110", + "function": "addValidator(address)", + "arguments": [ + "0x250572Ed005BaD64Ff24FbDc0d41875dAF58944f" + ], + "transaction": { + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x7738267553f87b68ae9fecbfbe3293a187f18110", + "gas": "0x1a832", + "value": "0x0", + "input": "0x4d238c8e000000000000000000000000250572ed005bad64ff24fbdc0d41875daf58944f", + "nonce": "0x1a", + "chainId": "0x89" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": null, + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x7738267553f87b68ae9fecbfbe3293a187f18110", + "function": "removeValidator(address)", + "arguments": [ + "0xD89421Cd5dD6d6269FbB9307535c386AFe11a23E" + ], + "transaction": { + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x7738267553f87b68ae9fecbfbe3293a187f18110", + "gas": "0x1043e", + "value": "0x0", + "input": "0x40a141ff000000000000000000000000d89421cd5dd6d6269fbb9307535c386afe11a23e", + "nonce": "0x1b", + "chainId": "0x89" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1735320406, + "chain": 137, + "commit": "80c8cc8" +} \ No newline at end of file diff --git a/smart-contracts/broadcast/07_update_validators.s.sol/137/run-1735320430.json b/smart-contracts/broadcast/07_update_validators.s.sol/137/run-1735320430.json new file mode 100644 index 0000000..a0dfafa --- /dev/null +++ b/smart-contracts/broadcast/07_update_validators.s.sol/137/run-1735320430.json @@ -0,0 +1,120 @@ +{ + "transactions": [ + { + "hash": "0x19c897d7dd0149b402fca377c18860b60d66c6ce0b2b6231e17f21f4378a1b6d", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x7738267553f87b68ae9fecbfbe3293a187f18110", + "function": "addValidator(address)", + "arguments": [ + "0x250572Ed005BaD64Ff24FbDc0d41875dAF58944f" + ], + "transaction": { + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x7738267553f87b68ae9fecbfbe3293a187f18110", + "gas": "0x1a832", + "value": "0x0", + "input": "0x4d238c8e000000000000000000000000250572ed005bad64ff24fbdc0d41875daf58944f", + "nonce": "0x1a", + "chainId": "0x89" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x1d417973c12ae13eae154a78106b4a3a014fb6799098cf6ab39e710013ae4677", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x7738267553f87b68ae9fecbfbe3293a187f18110", + "function": "removeValidator(address)", + "arguments": [ + "0xD89421Cd5dD6d6269FbB9307535c386AFe11a23E" + ], + "transaction": { + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x7738267553f87b68ae9fecbfbe3293a187f18110", + "gas": "0x1043e", + "value": "0x0", + "input": "0x40a141ff000000000000000000000000d89421cd5dd6d6269fbb9307535c386afe11a23e", + "nonce": "0x1b", + "chainId": "0x89" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x13f4c59", + "logs": [ + { + "address": "0x0000000000000000000000000000000000001010", + "topics": [ + "0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63", + "0x0000000000000000000000000000000000000000000000000000000000001010", + "0x000000000000000000000000d89421cd5dd6d6269fbb9307535c386afe11a23e", + "0x000000000000000000000000a8b52f02108aa5f4b675bdcc973760022d7c6020" + ], + "data": "0x0000000000000000000000000000000000000000000000000007ac40bc0fa180000000000000000000000000000000000000000000000003aad1489e5f057f1f0000000000000000000000000000000000000000000000626fdcbe84463e7b5f000000000000000000000000000000000000000000000003aac99c5da2f5dd9f0000000000000000000000000000000000000000000000626fe46ac5024e1cdf", + "blockHash": "0x2927cfad03abc864ea7998496c54a44ee3b56294bc10b26dc95722eb36c259b3", + "blockNumber": "0x3eefa28", + "transactionHash": "0x19c897d7dd0149b402fca377c18860b60d66c6ce0b2b6231e17f21f4378a1b6d", + "transactionIndex": "0x66", + "logIndex": "0x2e0", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000080002000000008000000000000000000000000000000000000100000000000000000000800000000000000000000100000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000040000000000000000200000000000004000000000000000000000000000000000000000000000004000000000000000000001000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000800000000000100000", + "type": "0x2", + "transactionHash": "0x19c897d7dd0149b402fca377c18860b60d66c6ce0b2b6231e17f21f4378a1b6d", + "transactionIndex": "0x66", + "blockHash": "0x2927cfad03abc864ea7998496c54a44ee3b56294bc10b26dc95722eb36c259b3", + "blockNumber": "0x3eefa28", + "gasUsed": "0x1331d", + "effectiveGasPrice": "0x465be59e96", + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x7738267553f87b68ae9fecbfbe3293a187f18110", + "contractAddress": null + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x13ffe4b", + "logs": [ + { + "address": "0x0000000000000000000000000000000000001010", + "topics": [ + "0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63", + "0x0000000000000000000000000000000000000000000000000000000000001010", + "0x000000000000000000000000d89421cd5dd6d6269fbb9307535c386afe11a23e", + "0x000000000000000000000000a8b52f02108aa5f4b675bdcc973760022d7c6020" + ], + "data": "0x0000000000000000000000000000000000000000000000000004721ce7c5e700000000000000000000000000000000000000000000000003aa7ce07198d4a6210000000000000000000000000000000000000000000000626fe46ac5024e1cdf000000000000000000000000000000000000000000000003aa786e54b10ebf210000000000000000000000000000000000000000000000626fe8dce1ea1403df", + "blockHash": "0x2927cfad03abc864ea7998496c54a44ee3b56294bc10b26dc95722eb36c259b3", + "blockNumber": "0x3eefa28", + "transactionHash": "0x1d417973c12ae13eae154a78106b4a3a014fb6799098cf6ab39e710013ae4677", + "transactionIndex": "0x67", + "logIndex": "0x2e1", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000080002000000008000000000000000000000000000000000000100000000000000000000800000000000000000000100000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000040000000000000000200000000000004000000000000000000000000000000000000000000000004000000000000000000001000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000800000000000100000", + "type": "0x2", + "transactionHash": "0x1d417973c12ae13eae154a78106b4a3a014fb6799098cf6ab39e710013ae4677", + "transactionIndex": "0x67", + "blockHash": "0x2927cfad03abc864ea7998496c54a44ee3b56294bc10b26dc95722eb36c259b3", + "blockNumber": "0x3eefa28", + "gasUsed": "0xb1f2", + "effectiveGasPrice": "0x465be59e96", + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x7738267553f87b68ae9fecbfbe3293a187f18110", + "contractAddress": null + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1735320430, + "chain": 137, + "commit": "80c8cc8" +} \ No newline at end of file diff --git a/smart-contracts/broadcast/07_update_validators.s.sol/137/run-latest.json b/smart-contracts/broadcast/07_update_validators.s.sol/137/run-latest.json new file mode 100644 index 0000000..a0dfafa --- /dev/null +++ b/smart-contracts/broadcast/07_update_validators.s.sol/137/run-latest.json @@ -0,0 +1,120 @@ +{ + "transactions": [ + { + "hash": "0x19c897d7dd0149b402fca377c18860b60d66c6ce0b2b6231e17f21f4378a1b6d", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x7738267553f87b68ae9fecbfbe3293a187f18110", + "function": "addValidator(address)", + "arguments": [ + "0x250572Ed005BaD64Ff24FbDc0d41875dAF58944f" + ], + "transaction": { + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x7738267553f87b68ae9fecbfbe3293a187f18110", + "gas": "0x1a832", + "value": "0x0", + "input": "0x4d238c8e000000000000000000000000250572ed005bad64ff24fbdc0d41875daf58944f", + "nonce": "0x1a", + "chainId": "0x89" + }, + "additionalContracts": [], + "isFixedGasLimit": false + }, + { + "hash": "0x1d417973c12ae13eae154a78106b4a3a014fb6799098cf6ab39e710013ae4677", + "transactionType": "CALL", + "contractName": null, + "contractAddress": "0x7738267553f87b68ae9fecbfbe3293a187f18110", + "function": "removeValidator(address)", + "arguments": [ + "0xD89421Cd5dD6d6269FbB9307535c386AFe11a23E" + ], + "transaction": { + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x7738267553f87b68ae9fecbfbe3293a187f18110", + "gas": "0x1043e", + "value": "0x0", + "input": "0x40a141ff000000000000000000000000d89421cd5dd6d6269fbb9307535c386afe11a23e", + "nonce": "0x1b", + "chainId": "0x89" + }, + "additionalContracts": [], + "isFixedGasLimit": false + } + ], + "receipts": [ + { + "status": "0x1", + "cumulativeGasUsed": "0x13f4c59", + "logs": [ + { + "address": "0x0000000000000000000000000000000000001010", + "topics": [ + "0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63", + "0x0000000000000000000000000000000000000000000000000000000000001010", + "0x000000000000000000000000d89421cd5dd6d6269fbb9307535c386afe11a23e", + "0x000000000000000000000000a8b52f02108aa5f4b675bdcc973760022d7c6020" + ], + "data": "0x0000000000000000000000000000000000000000000000000007ac40bc0fa180000000000000000000000000000000000000000000000003aad1489e5f057f1f0000000000000000000000000000000000000000000000626fdcbe84463e7b5f000000000000000000000000000000000000000000000003aac99c5da2f5dd9f0000000000000000000000000000000000000000000000626fe46ac5024e1cdf", + "blockHash": "0x2927cfad03abc864ea7998496c54a44ee3b56294bc10b26dc95722eb36c259b3", + "blockNumber": "0x3eefa28", + "transactionHash": "0x19c897d7dd0149b402fca377c18860b60d66c6ce0b2b6231e17f21f4378a1b6d", + "transactionIndex": "0x66", + "logIndex": "0x2e0", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000080002000000008000000000000000000000000000000000000100000000000000000000800000000000000000000100000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000040000000000000000200000000000004000000000000000000000000000000000000000000000004000000000000000000001000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000800000000000100000", + "type": "0x2", + "transactionHash": "0x19c897d7dd0149b402fca377c18860b60d66c6ce0b2b6231e17f21f4378a1b6d", + "transactionIndex": "0x66", + "blockHash": "0x2927cfad03abc864ea7998496c54a44ee3b56294bc10b26dc95722eb36c259b3", + "blockNumber": "0x3eefa28", + "gasUsed": "0x1331d", + "effectiveGasPrice": "0x465be59e96", + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x7738267553f87b68ae9fecbfbe3293a187f18110", + "contractAddress": null + }, + { + "status": "0x1", + "cumulativeGasUsed": "0x13ffe4b", + "logs": [ + { + "address": "0x0000000000000000000000000000000000001010", + "topics": [ + "0x4dfe1bbbcf077ddc3e01291eea2d5c70c2b422b415d95645b9adcfd678cb1d63", + "0x0000000000000000000000000000000000000000000000000000000000001010", + "0x000000000000000000000000d89421cd5dd6d6269fbb9307535c386afe11a23e", + "0x000000000000000000000000a8b52f02108aa5f4b675bdcc973760022d7c6020" + ], + "data": "0x0000000000000000000000000000000000000000000000000004721ce7c5e700000000000000000000000000000000000000000000000003aa7ce07198d4a6210000000000000000000000000000000000000000000000626fe46ac5024e1cdf000000000000000000000000000000000000000000000003aa786e54b10ebf210000000000000000000000000000000000000000000000626fe8dce1ea1403df", + "blockHash": "0x2927cfad03abc864ea7998496c54a44ee3b56294bc10b26dc95722eb36c259b3", + "blockNumber": "0x3eefa28", + "transactionHash": "0x1d417973c12ae13eae154a78106b4a3a014fb6799098cf6ab39e710013ae4677", + "transactionIndex": "0x67", + "logIndex": "0x2e1", + "removed": false + } + ], + "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000080002000000008000000000000000000000000000000000000100000000000000000000800000000000000000000100000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000040000000000000000200000000000004000000000000000000000000000000000000000000000004000000000000000000001000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000800000000000100000", + "type": "0x2", + "transactionHash": "0x1d417973c12ae13eae154a78106b4a3a014fb6799098cf6ab39e710013ae4677", + "transactionIndex": "0x67", + "blockHash": "0x2927cfad03abc864ea7998496c54a44ee3b56294bc10b26dc95722eb36c259b3", + "blockNumber": "0x3eefa28", + "gasUsed": "0xb1f2", + "effectiveGasPrice": "0x465be59e96", + "from": "0xd89421cd5dd6d6269fbb9307535c386afe11a23e", + "to": "0x7738267553f87b68ae9fecbfbe3293a187f18110", + "contractAddress": null + } + ], + "libraries": [], + "pending": [], + "returns": {}, + "timestamp": 1735320430, + "chain": 137, + "commit": "80c8cc8" +} \ No newline at end of file diff --git a/smart-contracts/foundry.toml b/smart-contracts/foundry.toml index 88f621f..9e39c9b 100644 --- a/smart-contracts/foundry.toml +++ b/smart-contracts/foundry.toml @@ -9,4 +9,4 @@ auto_detect_solc = true build_info = true extra_output = ["storageLayout"] solc = "0.8.20" -#evm_version = "london" +evm_version = "london" diff --git a/smart-contracts/script/mainnetConfig.s.sol b/smart-contracts/script/mainnetConfig.s.sol index 814a770..d9f804a 100644 --- a/smart-contracts/script/mainnetConfig.s.sol +++ b/smart-contracts/script/mainnetConfig.s.sol @@ -11,6 +11,9 @@ abstract contract MainnetConfig { uint public constant arbChainId = 42161; uint public constant ethChainId = 1; + address public constant primaryValidatorAddress = 0x250572Ed005BaD64Ff24FbDc0d41875dAF58944f; + address public constant deployerAddress = 0xD89421Cd5dD6d6269FbB9307535c386AFe11a23E; + address public constant zilLockProxy = 0xd73C6b871b4D0E130d64581993B745FC938A5be7; // This exists, but is useless, because you can't set extensions on Scilla lockProxy. address public constant zilUnrestrictedLockProxyProxyDoNotUse = 0x7519550ae8b6f9d32E9c1A939Fb5C186f660BE5b; diff --git a/smart-contracts/script/pol/deploy/06_pol_routing.s.sol b/smart-contracts/script/pol/deploy/06_pol_routing.s.sol index 9c304df..4598ed8 100644 --- a/smart-contracts/script/pol/deploy/06_pol_routing.s.sol +++ b/smart-contracts/script/pol/deploy/06_pol_routing.s.sol @@ -35,10 +35,9 @@ LockAndReleaseTokenManagerUpgradeable polLockAndReleaseOrNativeTokenManager = Lo polLockProxyTokenManager.registerToken(address(0xCc88D28f7d4B0D5AFACCC77F6102d88EE630fA17), ZILBridgedTokenRouting); // native on polygon: token matic.1.17.3254b4 has zq_denom zmatic.1.18.45185c, name zMATIC and is on zilliqa as 0x4345472A0c6164F35808CDb7e7eCCd3d326CC50b, zmatic.1.18.45185c - ITokenManagerStructs.RemoteToken memory zMATICNativeTokenRouting = ITokenManagerStructs.RemoteToken({ token: address(0x4345472A0c6164F35808CDb7e7eCCd3d326CC50b), - tokenManager: address(zilLockProxyTokenManager), + tokenManager: address(zilLockAndReleaseOrNativeTokenManagerUpgradeable), chainId: zilChainId }); polLockAndReleaseOrNativeTokenManager.registerToken(address(0x0000000000000000000000000000000000000000), zMATICNativeTokenRouting); diff --git a/smart-contracts/script/pol/deploy/07_update_validators.s.sol b/smart-contracts/script/pol/deploy/07_update_validators.s.sol new file mode 100644 index 0000000..f4a4f39 --- /dev/null +++ b/smart-contracts/script/pol/deploy/07_update_validators.s.sol @@ -0,0 +1,35 @@ +// SPDX-License-Identifier: MIT OR Apache-2.0 +pragma solidity ^0.8.20; + +import {Script} from "forge-std/Script.sol"; +import "forge-std/console.sol"; +import {LockProxyTokenManagerUpgradeableV3} from "contracts/periphery/TokenManagerV3/LockProxyTokenManagerUpgradeableV3.sol"; +import {LockAndReleaseOrNativeTokenManagerUpgradeableV3} from "contracts/periphery/TokenManagerV3/LockAndReleaseOrNativeTokenManagerUpgradeableV3.sol"; +import {ChainGatewayUpgradeable} from "contracts/core-upgradeable/ChainGatewayUpgradeable.sol"; +import {ChainDispatcherUpgradeable} from "contracts/core-upgradeable/ChainDispatcherUpgradeable.sol"; +import {ValidatorManagerUpgradeable} from "contracts/core-upgradeable/ValidatorManagerUpgradeable.sol"; +import { MainnetConfig } from "script/mainnetConfig.s.sol"; + +contract registerValidators is Script, MainnetConfig { + function run() external { + uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY_OWNER"); + vm.startBroadcast(deployerPrivateKey); + ChainDispatcherUpgradeable chainGateway = ChainDispatcherUpgradeable(polChainGatewayAddress); + ValidatorManagerUpgradeable validatorManager = ValidatorManagerUpgradeable(chainGateway.validatorManager()); + console.log("validatorManager = %s", address(validatorManager)); + if (!validatorManager.isValidator(primaryValidatorAddress)) { + console.log("primary validator is not a validator - add it"); + validatorManager.addValidator(primaryValidatorAddress); + } else { + console.log("primary validator is a validator"); + } + if (validatorManager.isValidator(deployerAddress)) { + console.log("deployer is a validator - remove it"); + validatorManager.removeValidator(deployerAddress); + } else { + console.log("deployer is a validator"); + } + + vm.stopBroadcast(); + } +} diff --git a/smart-contracts/script/zq/admin/queryStatus.s.sol b/smart-contracts/script/zq/admin/queryStatus.s.sol new file mode 100644 index 0000000..c81cddd --- /dev/null +++ b/smart-contracts/script/zq/admin/queryStatus.s.sol @@ -0,0 +1,34 @@ +// SPDX-License-Identifier: MIT OR Apache-2.0 +pragma solidity ^0.8.20; + +import {Script} from "forge-std/Script.sol"; +import {Ownable2StepUpgradeable} from "@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol"; +import {LockAndReleaseTokenManagerUpgradeableV3} from "contracts/periphery/TokenManagerV3/LockAndReleaseTokenManagerUpgradeableV3.sol"; +import {ChainGateway} from "contracts/core/ChainGateway.sol"; +import {ChainDispatcherUpgradeable} from "contracts/core-upgradeable/ChainDispatcherUpgradeable.sol"; +import {ValidatorManagerUpgradeable} from "contracts/core-upgradeable/ValidatorManagerUpgradeable.sol"; +import "forge-std/console.sol"; +import { MainnetConfig } from "script/mainnetConfig.s.sol"; + +contract Update is Script, MainnetConfig { + function run() public { + ChainGateway gateway = ChainGateway(zilChainGatewayAddress); + LockAndReleaseTokenManagerUpgradeableV3 tokenMgr = LockAndReleaseTokenManagerUpgradeableV3(zilLockAndReleaseOrNativeTokenManagerUpgradeable); + ChainDispatcherUpgradeable chainDispatcher = ChainDispatcherUpgradeable(zilChainGatewayAddress); + ValidatorManagerUpgradeable validatorManager = ValidatorManagerUpgradeable(chainDispatcher.validatorManager()); + + console.log("Chain gateway is %s", address(gateway)); + address owner = gateway.owner(); + console.log("Chain gateway owner is %s", owner); + console.log("Token manager is %s", address(tokenMgr)); + bool registered = gateway.registered(address(tokenMgr)); + console.log("Registered ? ", registered); + console.log("validatorManager = %s", address(validatorManager)); + if (!validatorManager.isValidator(primaryValidatorAddress)) { + console.log("primary validator is not a validator - add it"); + } + if (validatorManager.isValidator(deployerAddress)) { + console.log("deployer is a validator - remove it"); + } + } +} diff --git a/smart-contracts/script/zq/deploy/05_zilliqa_side_pol_routing.s.sol b/smart-contracts/script/zq/deploy/05_zilliqa_side_pol_routing.s.sol new file mode 100644 index 0000000..775d44b --- /dev/null +++ b/smart-contracts/script/zq/deploy/05_zilliqa_side_pol_routing.s.sol @@ -0,0 +1,49 @@ + +// SPDX-License-Identifier: MIT OR Apache-2.0 +pragma solidity ^0.8.20; + + +// Reading token file tokens-2024-12-05.yaml hash bf1fff14761d7045227068db5e58f888de4f92b122d9c2d8e685cdb7daa861de with makeTokenRouting v1.8.1 +// Generating code for network zilliqa + + +import {Script} from "forge-std/Script.sol"; +import {LockProxyTokenManagerUpgradeable} from "contracts/periphery/LockProxyTokenManagerUpgradeable.sol"; +import {LockAndReleaseTokenManagerUpgradeable} from "contracts/periphery/LockAndReleaseTokenManagerUpgradeable.sol"; +import {ITokenManagerStructs} from "contracts/periphery/TokenManagerUpgradeable.sol"; +import {MainnetConfig} from "script/mainnetConfig.s.sol"; + + +contract Routing is Script, MainnetConfig { + function run() external { + uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY_OWNER"); + vm.startBroadcast(deployerPrivateKey); + + +// Bridged: ['zxcad.1.18.35137d', 'zopul.1.18.4bcdc9', 'zeth.1.18.54437c', 'zbrkl.1.18.b8c24f', 'zwbtc.1.18.a9cb60', 'zusdt.1.18.1728e9', 'ztraxx.1.18.9c8e35', 'zmatic.1.18.45185c', 'zbnb.1.18.c406be'] +// Native: ['zil.1.18.1a4a06', 'xsgd.1.18.be52cd', 'lunr.1.18.fa4af7', 'dxcad.1.18.9dfb98', 'port.1.18.b2261e', 'fees.1.18.c061fe'] +// correspondent network: ['bsc', 'polygon', 'arbitrum', 'ethereum'] +LockProxyTokenManagerUpgradeable zilLockProxyTokenManager = LockProxyTokenManagerUpgradeable(zilLockProxyTokenManager); +LockAndReleaseTokenManagerUpgradeable zilLockAndReleaseOrNativeTokenManager = LockAndReleaseTokenManagerUpgradeable(zilLockAndReleaseOrNativeTokenManagerUpgradeable); + +// bridged to zilliqa: token zmatic.1.18.45185c has zq_denom zmatic.1.18.45185c, name zMATIC and is on polygon as 0x0000000000000000000000000000000000000000, matic.1.17.3254b4 + + ITokenManagerStructs.RemoteToken memory zMATICBridgedTokenRouting = ITokenManagerStructs.RemoteToken({ + token: address(0x0000000000000000000000000000000000000000), + tokenManager: address(polLockAndReleaseOrNativeTokenManagerUpgradeable), + chainId: polChainId }); + + zilLockAndReleaseOrNativeTokenManager.registerToken(address(0x4345472A0c6164F35808CDb7e7eCCd3d326CC50b), zMATICBridgedTokenRouting); + +// native on zilliqa: token zil.1.18.1a4a06 has zq_denom zil.1.18.1a4a06, name ZIL and is on polygon as 0xCc88D28f7d4B0D5AFACCC77F6102d88EE630fA17, zil.1.6.52c256 + + ITokenManagerStructs.RemoteToken memory ZILNativeTokenRouting = ITokenManagerStructs.RemoteToken({ + token: address(0xCc88D28f7d4B0D5AFACCC77F6102d88EE630fA17), + tokenManager: address(polLockProxyTokenManager), + chainId: polChainId }); + zilLockAndReleaseOrNativeTokenManager.registerToken(address(0x0000000000000000000000000000000000000000), ZILNativeTokenRouting); + + vm.stopBroadcast(); + } +} +