Skip to content

Commit

Permalink
awaiting boa static fee integration
Browse files Browse the repository at this point in the history
  • Loading branch information
bout3fiddy committed Oct 24, 2023
1 parent 4a52715 commit eb1b641
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 180 deletions.
212 changes: 63 additions & 149 deletions scripts/deploy_infra.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
logger = RichConsole(file=sys.stdout)

deployments = {
# Ethereum
"ethereum:sepolia": {
"math": "0xbc7654d2dd901aaaa3be4cb5bc0f10dea9f96443",
"views": "0x07920e98a66e462c2aa4c8fa6200bc68ca161ea0",
Expand All @@ -19,13 +20,15 @@
"gauge": "0x64891ab20392a029c0f231656ff13c5ee64b730c",
"factory": "0xfb37b8D939FFa77114005e61CFc2e543d6F49A81",
},
"gnosis:mainnet": {
"math": "0x87FE17697D0f14A222e8bEf386a0860eCffDD617",
"views": "0x5eeE3091f747E60a045a2E715a4c71e600e31F6E",
"plain_amm": "0xd2002373543Ce3527023C75e7518C274A51ce712",
"meta_amm": "0xd3B17f862956464ae4403cCF829CE69199856e1e",
"factory": "0xbC0797015fcFc47d9C1856639CaE50D0e69FbEE8",
"ethereum:mainnet": {
"math": "",
"views": "",
"plain_amm": "",
"meta_amm": "",
"gauge": "",
"factory": "",
},
# Layer 2
"arbitrum:mainnet": {
"math": "0x3d6cB2F6DcF47CDd9C13E4e3beAe9af041d8796a",
"views": "0xC1b393EfEF38140662b91441C6710Aa704973228",
Expand All @@ -40,84 +43,99 @@
"meta_amm": "0x1764ee18e8B3ccA4787249Ceb249356192594585",
"factory": "0x5eeE3091f747E60a045a2E715a4c71e600e31F6E",
},
"polygon:mainnet": {
"math": "0xf3A431008396df8A8b2DF492C913706BDB0874ef",
"views": "0x8b3EFBEfa6eD222077455d6f0DCdA3bF4f3F57A6",
"plain_amm": "0x506F594ceb4E33F5161139bAe3Ee911014df9f7f",
"meta_amm": "0x87FE17697D0f14A222e8bEf386a0860eCffDD617",
"factory": "0x1764ee18e8B3ccA4787249Ceb249356192594585",
},
"base:mainnet": {
"math": "0x506F594ceb4E33F5161139bAe3Ee911014df9f7f",
"views": "0x87FE17697D0f14A222e8bEf386a0860eCffDD617",
"plain_amm": "0x1764ee18e8B3ccA4787249Ceb249356192594585",
"meta_amm": "0x5eee3091f747e60a045a2e715a4c71e600e31f6e",
"factory": "0xd2002373543Ce3527023C75e7518C274A51ce712",
},
"avax:mainnet": {
"math": "0xf3A431008396df8A8b2DF492C913706BDB0874ef",
"views": "0x8b3EFBEfa6eD222077455d6f0DCdA3bF4f3F57A6",
"plain_amm": "0x506F594ceb4E33F5161139bAe3Ee911014df9f7f",
"meta_amm": "0x87FE17697D0f14A222e8bEf386a0860eCffDD617",
"factory": "0x1764ee18e8B3ccA4787249Ceb249356192594585",
},
"ftm:mainnet": {
"linea:mainnet": {
"math": "0x8b3EFBEfa6eD222077455d6f0DCdA3bF4f3F57A6",
"views": "0x5eeE3091f747E60a045a2E715a4c71e600e31F6E",
"plain_amm": "0xd2002373543Ce3527023C75e7518C274A51ce712",
"meta_amm": "0x686bdb3D24Bc6F3ED89ed3d3B659765c54aC78B4",
"factory": "0xe61Fb97Ef6eBFBa12B36Ffd7be785c1F5A2DE66b",
"views": "0x506F594ceb4E33F5161139bAe3Ee911014df9f7f",
"plain_amm": "0x87FE17697D0f14A222e8bEf386a0860eCffDD617",
"meta_amm": "0x1764ee18e8b3cca4787249ceb249356192594585",
"factory": "0x5eeE3091f747E60a045a2E715a4c71e600e31F6E",
},
"kava:mainnet": {
"scroll:mainnet": {
"math": "",
"views": "",
"plain_amm": "",
"meta_amm": "",
"factory": "",
},
"celo:mainnet": {
"math": "0xf3A431008396df8A8b2DF492C913706BDB0874ef",
"views": "0x8b3EFBEfa6eD222077455d6f0DCdA3bF4f3F57A6",
"plain_amm": "0x506F594ceb4E33F5161139bAe3Ee911014df9f7f",
"meta_amm": "0x87FE17697D0f14A222e8bEf386a0860eCffDD617",
"factory": "0x1764ee18e8B3ccA4787249Ceb249356192594585",
"zksync:mainnet": {
"math": "",
"views": "",
"plain_amm": "",
"meta_amm": "",
"factory": "",
},
"aurora:mainnet": {
"pzkevm:mainnet": {
"math": "",
"views": "",
"plain_amm": "",
"meta_amm": "",
"factory": "",
},
# Layer 1
"gnosis:mainnet": {
"math": "0x87FE17697D0f14A222e8bEf386a0860eCffDD617",
"views": "0x5eeE3091f747E60a045a2E715a4c71e600e31F6E",
"plain_amm": "0xd2002373543Ce3527023C75e7518C274A51ce712",
"meta_amm": "0xd3B17f862956464ae4403cCF829CE69199856e1e",
"factory": "0xbC0797015fcFc47d9C1856639CaE50D0e69FbEE8",
},
"polygon:mainnet": {
"math": "0xf3A431008396df8A8b2DF492C913706BDB0874ef",
"views": "0x8b3EFBEfa6eD222077455d6f0DCdA3bF4f3F57A6",
"plain_amm": "0x506F594ceb4E33F5161139bAe3Ee911014df9f7f",
"meta_amm": "0x87FE17697D0f14A222e8bEf386a0860eCffDD617",
"factory": "0x1764ee18e8B3ccA4787249Ceb249356192594585",
},
"avax:mainnet": {
"math": "0xf3A431008396df8A8b2DF492C913706BDB0874ef",
"views": "0x8b3EFBEfa6eD222077455d6f0DCdA3bF4f3F57A6",
"plain_amm": "0x506F594ceb4E33F5161139bAe3Ee911014df9f7f",
"meta_amm": "0x87FE17697D0f14A222e8bEf386a0860eCffDD617",
"factory": "0x1764ee18e8B3ccA4787249Ceb249356192594585",
},
"ftm:mainnet": {
"math": "0x8b3EFBEfa6eD222077455d6f0DCdA3bF4f3F57A6",
"views": "0x5eeE3091f747E60a045a2E715a4c71e600e31F6E",
"plain_amm": "0xd2002373543Ce3527023C75e7518C274A51ce712",
"meta_amm": "0x686bdb3D24Bc6F3ED89ed3d3B659765c54aC78B4",
"factory": "0xe61Fb97Ef6eBFBa12B36Ffd7be785c1F5A2DE66b",
},
"bsc:mainnet": {
"math": "0x506F594ceb4E33F5161139bAe3Ee911014df9f7f",
"views": "0x1764ee18e8B3ccA4787249Ceb249356192594585",
"plain_amm": "0x604388Bb1159AFd21eB5191cE22b4DeCdEE2Ae22",
"meta_amm": "0x06452f9c013fc37169B57Eab8F50A7A48c9198A3",
"factory": "0xd7E72f3615aa65b92A4DBdC211E296a35512988B",
},
"linea:mainnet": {
"math": "0x8b3EFBEfa6eD222077455d6f0DCdA3bF4f3F57A6",
"views": "0x506F594ceb4E33F5161139bAe3Ee911014df9f7f",
"plain_amm": "0x87FE17697D0f14A222e8bEf386a0860eCffDD617",
"meta_amm": "0x1764ee18e8b3cca4787249ceb249356192594585",
"factory": "0x5eeE3091f747E60a045a2E715a4c71e600e31F6E",
"celo:mainnet": {
"math": "0xf3A431008396df8A8b2DF492C913706BDB0874ef",
"views": "0x8b3EFBEfa6eD222077455d6f0DCdA3bF4f3F57A6",
"plain_amm": "0x506F594ceb4E33F5161139bAe3Ee911014df9f7f",
"meta_amm": "0x87FE17697D0f14A222e8bEf386a0860eCffDD617",
"factory": "0x1764ee18e8B3ccA4787249Ceb249356192594585",
},
"scroll:mainnet": {
"kava:mainnet": {
"math": "",
"views": "",
"plain_amm": "",
"meta_amm": "",
"factory": "",
},
"zksync:mainnet": {
"aurora:mainnet": {
"math": "",
"views": "",
"plain_amm": "",
"meta_amm": "",
"factory": "",
},
"pzkevm:mainnet": {
"tron:mainnet": {
"math": "",
"views": "",
"plain_amm": "",
Expand Down Expand Up @@ -241,118 +259,14 @@ def deploy_infra(network, url, account, fork=False):

def main():

# # gnosis
# deploy_infra(
# "gnosis:mainnet",
# os.environ["RPC_GNOSIS"],
# "FIDDYDEPLOYER",
# fork=False,
# )

# # ethereum sepolia
# deploy_infra(
# "ethereum:sepolia",
# os.environ["RPC_ETHEREUM_SEPOLIA"],
# "FIDDYDEPLOYER",
# fork=False,
# )

# # arbitrum
# deploy_infra(
# "arbitrum:mainnet",
# os.environ["RPC_ARBITRUM"],
# "FIDDYDEPLOYER",
# fork=False,
# )

# optimism
# deploy_infra(
# "optimism:mainnet",
# os.environ["RPC_OPTIMISM"],
# "FIDDYDEPLOYER",
# fork=False,
# )

# # polygon
# deploy_infra(
# "polygon:mainnet",
# os.environ["RPC_POLYGON"],
# "FIDDYDEPLOYER",
# fork=False,
# )

# # base
# deploy_infra(
# "base:mainnet",
# os.environ["RPC_BASE"],
# "FIDDYDEPLOYER",
# fork=False,
# )

# # avax
# deploy_infra(
# "avax:mainnet",
# os.environ["RPC_AVAX"],
# "FIDDYDEPLOYER",
# fork=False,
# )

# # fantom
# deploy_infra(
# "ftm:mainnet",
# os.environ["RPC_FANTOM"],
# "FIDDYDEPLOYER",
# fork=False,
# )

# # kava
# deploy_infra(
# "kava:mainnet",
# os.environ["RPC_KAVA"],
# "FIDDYDEPLOYER",
# fork=False,
# )

# # celo
# deploy_infra(
# "celo:mainnet",
# os.environ["RPC_CELO"],
# "FIDDYDEPLOYER",
# fork=False,
# )

# # aurora
# deploy_infra(
# "aurora:mainnet",
# os.environ["RPC_AURORA"],
# "FIDDYDEPLOYER",
# fork=False,
# )

# # bsc
# deploy_infra(
# "bsc:mainnet",
# os.environ["RPC_BSC"],
# "FIDDYDEPLOYER",
# fork=False,
# )

# # linea
# eth
deploy_infra(
"linea:mainnet",
os.environ["RPC_LINEA"],
"ethereum:mainnet",
os.environ["RPC_ETHEREUM"],
"FIDDYDEPLOYER",
fork=False,
)

# # eth
# deploy_infra(
# "ethereum:mainnet",
# os.environ["RPC_ETHEREUM"],
# "FIDDYDEPLOYER",
# fork=False,
# )


if __name__ == "__main__":
main()
4 changes: 2 additions & 2 deletions scripts/deploy_proxy_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ def deploy_proxy_admin(network, url, account, fork=False):

def main():
deploy_proxy_admin(
"linea:mainnet",
os.environ["RPC_LINEA"],
"pzkevm:mainnet",
os.environ["RPC_PZKEVM"],
"FIDDYDEPLOYER",
fork=False,
)
Expand Down
59 changes: 30 additions & 29 deletions scripts/deployment_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,22 +69,18 @@ class CurveNetworkSettings:


curve_dao_network_settings = {
"ethereum:mainnet": CurveNetworkSettings(
dao_ownership_contract="0x40907540d8a6C65c637785e8f8B742ae6b0b9968",
fee_receiver_address="0xeCb456EA5365865EbAb8a2661B0c503410e9B347",
metaregistry_address="0xF98B45FA17DE75FB1aD0e7aFD971b0ca00e379fC",
base_pool_registry_address="0xDE3eAD9B2145bBA2EB74007e58ED07308716B725",
# Ethereum
"ethereum:sepolia": CurveNetworkSettings(
dao_ownership_contract="0xE6DA683076b7eD6ce7eC972f21Eb8F91e9137a17",
fee_receiver_address="0xE6DA683076b7eD6ce7eC972f21Eb8F91e9137a17",
),
"ethereum:mainnet-fork": CurveNetworkSettings(
"ethereum:mainnet": CurveNetworkSettings(
dao_ownership_contract="0x40907540d8a6C65c637785e8f8B742ae6b0b9968",
fee_receiver_address="0xeCb456EA5365865EbAb8a2661B0c503410e9B347",
metaregistry_address="0xF98B45FA17DE75FB1aD0e7aFD971b0ca00e379fC",
base_pool_registry_address="0xDE3eAD9B2145bBA2EB74007e58ED07308716B725",
),
"ethereum:sepolia": CurveNetworkSettings(
dao_ownership_contract="0xE6DA683076b7eD6ce7eC972f21Eb8F91e9137a17",
fee_receiver_address="0xE6DA683076b7eD6ce7eC972f21Eb8F91e9137a17",
),
# Layer 2
"arbitrum:mainnet": CurveNetworkSettings(
dao_ownership_contract="0xb055ebbacc8eefc166c169e9ce2886d0406ab49b", # proxy
fee_receiver_address="0xd4f94d0aaa640bbb72b5eec2d85f6d114d81a88e",
Expand All @@ -93,14 +89,31 @@ class CurveNetworkSettings:
dao_ownership_contract="0xB055EbbAcc8Eefc166c169e9Ce2886D0406aB49b", # proxy
fee_receiver_address="0xbF7E49483881C76487b0989CD7d9A8239B20CA41",
),
"polygon:mainnet": CurveNetworkSettings(
dao_ownership_contract="0xB055EbbAcc8Eefc166c169e9Ce2886D0406aB49b", # proxy
fee_receiver_address="0x774D1Dba98cfBD1F2Bc3A1F59c494125e07C48F9",
),
"base:mainnet": CurveNetworkSettings(
dao_ownership_contract="0xe8269B33E47761f552E1a3070119560d5fa8bBD6", # proxy
fee_receiver_address="0xe8269B33E47761f552E1a3070119560d5fa8bBD6", # proxy
),
"linea:mainnet": CurveNetworkSettings(
dao_ownership_contract="0xf3A431008396df8A8b2DF492C913706BDB0874ef",
fee_receiver_address="0xf3A431008396df8A8b2DF492C913706BDB0874ef",
),
"scroll:mainnet": CurveNetworkSettings(
dao_ownership_contract="",
fee_receiver_address="",
),
"zksync:mainnet": CurveNetworkSettings(
dao_ownership_contract="",
fee_receiver_address="0x4920088D9a5e5De9c098FCA4960d0DA5f4caa4c1",
),
"pzkevm:mainnet": CurveNetworkSettings(
dao_ownership_contract="",
fee_receiver_address="",
),
# Layer 1
"polygon:mainnet": CurveNetworkSettings(
dao_ownership_contract="0xB055EbbAcc8Eefc166c169e9Ce2886D0406aB49b", # proxy
fee_receiver_address="0x774D1Dba98cfBD1F2Bc3A1F59c494125e07C48F9",
),
"gnosis:mainnet": CurveNetworkSettings(
dao_ownership_contract="0xB055EbbAcc8Eefc166c169e9Ce2886D0406aB49b", # proxy
fee_receiver_address="0xB055EbbAcc8Eefc166c169e9Ce2886D0406aB49b", # proxy
Expand Down Expand Up @@ -129,21 +142,9 @@ class CurveNetworkSettings:
dao_ownership_contract="0x98B4029CaBEf7Fd525A36B0BF8555EC1d42ec0B6",
fee_receiver_address="0x98B4029CaBEf7Fd525A36B0BF8555EC1d42ec0B6",
),
"linea:mainnet": CurveNetworkSettings(
dao_ownership_contract="0xf3A431008396df8A8b2DF492C913706BDB0874ef",
fee_receiver_address="0xf3A431008396df8A8b2DF492C913706BDB0874ef",
),
"scroll:mainnet": CurveNetworkSettings(
dao_ownership_contract="",
fee_receiver_address="",
),
"zksync:mainnet": CurveNetworkSettings(
dao_ownership_contract="",
fee_receiver_address="",
),
"pzkevm:mainnet": CurveNetworkSettings(
dao_ownership_contract="",
fee_receiver_address="",
"tron:mainnet": CurveNetworkSettings(
dao_ownership_contract="0x98B4029CaBEf7Fd525A36B0BF8555EC1d42ec0B6",
fee_receiver_address="0x98B4029CaBEf7Fd525A36B0BF8555EC1d42ec0B6",
),
}

Expand Down

0 comments on commit eb1b641

Please sign in to comment.