Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optimism wormhole config #17

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
89 changes: 89 additions & 0 deletions ethereum/brownie-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,10 @@ networks:
dst_chainid: 22
base_gas: 80000
per_byte_gas: 68
optimism-main:
dst_chainid: 24
base_gas: 700000
per_byte_gas: 68
# ftm-main:
# dst_chainid: 10
# base_gas: 700000
Expand All @@ -609,6 +613,10 @@ networks:
chainid: 6
currency: USD
address: "0xFF3EEb22B5E3dE6e705b44749C2559d704923FD7"
optimism:
chainid: 24
currency: USD
address: "0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419"
# ftm:
# chainid: 10
# currency: ETH
Expand Down Expand Up @@ -672,6 +680,10 @@ networks:
dst_chainid: 22
base_gas: 80000
per_byte_gas: 68
optimism-main:
dst_chainid: 24
base_gas: 700000
per_byte_gas: 68
# ftm-main:
# dst_chainid: 10
# base_gas: 700000
Expand All @@ -693,6 +705,10 @@ networks:
chainid: 6
currency: USD
address: "0x5974855ce31EE8E1fff2e76591CbF83D7110F151"
optimism:
chainid: 24
currency: USD
address: "0x9ef1B8c0E4F7dc8bF5719Ea496883DC6401d5b2e"
# ftm:
# chainid: 10
# currency: USD
Expand Down Expand Up @@ -748,6 +764,10 @@ networks:
dst_chainid: 22
base_gas: 80000
per_byte_gas: 68
optimism-main:
dst_chainid: 24
base_gas: 700000
per_byte_gas: 68
# ftm-main:
# dst_chainid: 10
# base_gas: 700000
Expand All @@ -765,6 +785,10 @@ networks:
chainid: 6
currency: USD
address: "0x0A77230d17318075983913bC2145DB16C7366156"
optimism:
chainid: 24
currency: USD
address: "0x976B3D034E162d8bD72D6b9C989d545b839003b0"
# ftm:
# chainid: 10
# currency: USD
Expand Down Expand Up @@ -821,6 +845,10 @@ networks:
dst_chainid: 22
base_gas: 80000
per_byte_gas: 68
optimism-main:
dst_chainid: 24
base_gas: 700000
per_byte_gas: 68
# ftm-main:
# dst_chainid: 10
# base_gas: 700000
Expand All @@ -842,6 +870,10 @@ networks:
chainid: 6
currency: USD
address: "0xe01eA2fbd8D76ee323FbEd03eB9a8625EC981A10"
optimism:
chainid: 24
currency: USD
address: "0xF9680D99D6C9589e2a93a78A04A279e509205945"
# ftm:
# chainid: 10
# currency: USD
Expand Down Expand Up @@ -904,6 +936,55 @@ networks:
optimism-main:
omnibtc_chainid: 7
chainid: 10
SoDiamond: "0x2967e7bb9daa5711ac332caf874bd47ef99b3820"
wormhole:
chainid: 24
token_bridge: "0x1D68124e65faFC907325e3EDbF8c4d84499DAa8b"
wormhole: "0xEe91C335eab126dF5fDB3797EA9d6aD93aeC9722"
actual_reserve: 1.1
estimate_reserve: 1.2
gas:
mainnet:
dst_chainid: 2
base_gas: 700000
per_byte_gas: 68
bsc-main:
dst_chainid: 4
base_gas: 700000
per_byte_gas: 68
polygon-main:
dst_chainid: 5
base_gas: 700000
per_byte_gas: 68
avax-main:
dst_chainid: 6
base_gas: 700000
per_byte_gas: 68
aptos-mainnet:
dst_chainid: 22
base_gas: 80000
per_byte_gas: 68
oracle:
eth:
chainid: 2
currency: USD
address: "0x13e3Ee699D1909E989722E753853AE30b17e08c5"
bsc:
chainid: 4
currency: USD
address: "0xD38579f7cBD14c22cF1997575eA8eF7bfe62ca2c"
polygon:
chainid: 5
currency: USD
address: "0x0ded608AFc23724f614B76955bbd9dFe7dDdc828"
avax:
chainid: 6
currency: USD
address: "0x5087Dc69Fd3907a016BD42B38022F7f024140727"
optimism:
chainid: 24
currency: USD
address: "0x13e3Ee699D1909E989722E753853AE30b17e08c5"
stargate:
router: "0xB0D502E938ed5f4df2E681fE6E419ff29631d62b"
chainid: 111
Expand Down Expand Up @@ -957,6 +1038,10 @@ networks:
dst_chainid: 6
base_gas: 700000
per_byte_gas: 68
optimism-main:
dst_chainid: 24
base_gas: 700000
per_byte_gas: 68
oracle:
eth:
chainid: 2
Expand All @@ -970,6 +1055,10 @@ networks:
chainid: 10
currency: USD
address: "0xf4766552D15AE4d256Ad41B6cf2933482B0680dc"
optimism:
chainid: 24
currency: USD
address: "0x11DdD3d147E5b83D01cee7070027092397d63658"
swap:
IUniswapV2Router02:
name: SpookyswapV2
Expand Down
4 changes: 3 additions & 1 deletion ethereum/scripts/initialize.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,9 @@ def remove_facet(facet):

proxy_loupe = Contract.from_abi(
"DiamondLoupeFacet", SoDiamond[-1].address, DiamondLoupeFacet.abi)

if len(facet) == 0:
print("Not found facet")
return
funcs = proxy_loupe.facetFunctionSelectors(facet[-1].address)

register_data = [[zero_address(), 2, list(funcs)]]
Expand Down