From 7a94a5857603993646ba32ee3b6a9d8373310a2f Mon Sep 17 00:00:00 2001 From: echo Date: Wed, 8 Nov 2023 18:30:46 +0800 Subject: [PATCH] mainnet config --- script/input/42161/deploy.c.json | 6 ++++++ script/input/42161/fee.c.json | 15 +++++++++++++++ script/input/42161/oracle.c.json | 3 +++ script/input/46/deploy.c.json | 6 ++++++ script/input/46/fee.c.json | 15 +++++++++++++++ script/input/46/oracle.c.json | 3 +++ test/bench/ORMP.b.sol | 6 +++--- 7 files changed, 51 insertions(+), 3 deletions(-) create mode 100644 script/input/42161/deploy.c.json create mode 100644 script/input/42161/fee.c.json create mode 100644 script/input/42161/oracle.c.json create mode 100644 script/input/46/deploy.c.json create mode 100644 script/input/46/fee.c.json create mode 100644 script/input/46/oracle.c.json diff --git a/script/input/42161/deploy.c.json b/script/input/42161/deploy.c.json new file mode 100644 index 0000000..0324c37 --- /dev/null +++ b/script/input/42161/deploy.c.json @@ -0,0 +1,6 @@ +{ + "DAO": "0x0f14341A7f464320319025540E8Fe48Ad0fe5aec", + "DEPLOYER": "0x0f14341A7f464320319025540E8Fe48Ad0fe5aec", + "ORACLE_OPERATOR": "0x912D7601569cBc2DF8A7f0aaE50BFd18e8C64d05", + "RELAYER_OPERATOR": "0x912D7601569cBc2DF8A7f0aaE50BFd18e8C64d05" +} diff --git a/script/input/42161/fee.c.json b/script/input/42161/fee.c.json new file mode 100644 index 0000000..c63f51d --- /dev/null +++ b/script/input/42161/fee.c.json @@ -0,0 +1,15 @@ +{ + "ORACLE": { + "46": { + "fee": 500000000000 + } + }, + "RELAYER": { + "46": { + "dstPriceRatio": 12000, + "dstGasPriceInWei": 180000000000, + "baseGas": 85000, + "gasPerByte": 16 + } + } +} diff --git a/script/input/42161/oracle.c.json b/script/input/42161/oracle.c.json new file mode 100644 index 0000000..494caeb --- /dev/null +++ b/script/input/42161/oracle.c.json @@ -0,0 +1,3 @@ +{ + "44": "0x00000000007317c91F57D86A410934A490E62E1E" +} diff --git a/script/input/46/deploy.c.json b/script/input/46/deploy.c.json new file mode 100644 index 0000000..0324c37 --- /dev/null +++ b/script/input/46/deploy.c.json @@ -0,0 +1,6 @@ +{ + "DAO": "0x0f14341A7f464320319025540E8Fe48Ad0fe5aec", + "DEPLOYER": "0x0f14341A7f464320319025540E8Fe48Ad0fe5aec", + "ORACLE_OPERATOR": "0x912D7601569cBc2DF8A7f0aaE50BFd18e8C64d05", + "RELAYER_OPERATOR": "0x912D7601569cBc2DF8A7f0aaE50BFd18e8C64d05" +} diff --git a/script/input/46/fee.c.json b/script/input/46/fee.c.json new file mode 100644 index 0000000..324ea64 --- /dev/null +++ b/script/input/46/fee.c.json @@ -0,0 +1,15 @@ +{ + "ORACLE": { + "42161": { + "fee": 500000000000000000000 + } + }, + "RELAYER": { + "42161": { + "dstPriceRatio": 9000000000000000, + "dstGasPriceInWei": 110000000, + "baseGas": 1, + "gasPerByte": 16 + } + } +} diff --git a/script/input/46/oracle.c.json b/script/input/46/oracle.c.json new file mode 100644 index 0000000..233e0a7 --- /dev/null +++ b/script/input/46/oracle.c.json @@ -0,0 +1,3 @@ +{ + "42161": "0x00000000007317c91F57D86A410934A490E62E1E" +} diff --git a/test/bench/ORMP.b.sol b/test/bench/ORMP.b.sol index 94b96d9..693f9ca 100644 --- a/test/bench/ORMP.b.sol +++ b/test/bench/ORMP.b.sol @@ -27,9 +27,9 @@ import "../../src/eco/Relayer.sol"; contract ORMPBenchmarkTest is Test { using Chains for uint256; - ORMP ormp = ORMP(0x009D223Aad560e72282db9c0438Ef1ef2bf7703D); - Relayer relayer = Relayer(payable(0x003605167cd4C36063a7B63e604497e623Bb8B10)); - Oracle oracle = Oracle(payable(0x00BD655DDfA7aFeF4BB109FE1F938724527B49D8)); + ORMP ormp = ORMP(0x00000000001523057a05d6293C1e5171eE33eE0A); + Oracle oracle = Oracle(payable(0x0000000000ba03146Cc235509E802873D418a6bc)); + Relayer relayer = Relayer(payable(0x0000000000808fE9bDCc1d180EfbF5C53552a6b1)); bytes32 root; address immutable self = address(this);