Skip to content

Commit

Permalink
Support Crab (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
hujw77 authored Dec 13, 2023
1 parent 484702b commit 1417b32
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 10 deletions.
4 changes: 3 additions & 1 deletion bin/fee.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ set -x
# forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 42161 --chain-id 46 --broadcast --slow
# forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 1 --chain-id 46 --broadcast --slow
# forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 46 --chain-id 42161 --broadcast --slow --legacy
forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 1 --chain-id 42161 --broadcast --slow --legacy
# forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 1 --chain-id 42161 --broadcast --slow --legacy
# forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 46 --chain-id 1 --broadcast --slow --legacy
# forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 42161 --chain-id 1 --broadcast --slow --legacy
forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 46 --chain-id 44 --broadcast --slow --legacy
forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 44 --chain-id 46 --broadcast --slow --legacy

# forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 11155111 --chain-id 44 --broadcast
# forge script script/fee/Fee.s.sol:Fee --sig "run(uint256)" 421614 --chain-id 44 --broadcast
Expand Down
9 changes: 9 additions & 0 deletions script/input/44/fee.c.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"ORACLE": {
"46": {
"fee": 75000000000000000000
},
"421614": {
"fee": 5000000000000000000
},
Expand All @@ -8,6 +11,12 @@
}
},
"RELAYER": {
"46": {
"dstPriceRatio": 150000000000,
"dstGasPriceInWei": 180000000000,
"baseGas": 200000,
"gasPerByte": 16
},
"421614": {
"dstPriceRatio": 9000000000000000,
"dstGasPriceInWei": 1000000,
Expand Down
27 changes: 18 additions & 9 deletions script/input/46/fee.c.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,33 @@
{
"ORACLE": {
"42161": {
"fee": 2500000000000000000000
},
"1": {
"fee": 55000000000000000000000
},
"44": {
"fee": 1000000000000000000
},
"42161": {
"fee": 2500000000000000000000
}
},
"RELAYER": {
"42161": {
"dstPriceRatio": 9000000000000000,
"dstGasPriceInWei": 110000000,
"baseGas": 1,
"gasPerByte": 16
},
"1": {
"dstPriceRatio": 9000000000000000,
"dstGasPriceInWei": 50000000000,
"baseGas": 200000,
"gasPerByte": 16
},
"44": {
"dstPriceRatio": 2000000000,
"dstGasPriceInWei": 180000000000,
"baseGas": 200000,
"gasPerByte": 16
},
"42161": {
"dstPriceRatio": 9000000000000000,
"dstGasPriceInWei": 110000000,
"baseGas": 1,
"gasPerByte": 16
}
}
}

0 comments on commit 1417b32

Please sign in to comment.