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

fraxtal deployment #40

Merged
merged 1 commit into from
Feb 13, 2024
Merged
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
31 changes: 30 additions & 1 deletion scripts/deploy_infra.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@
"meta_amm": "0xede71F77d7c900dCA5892720E76316C6E575F0F7",
"factory": "0x6A8cbed756804B16E05E741eDaBd5cB544AE21bf",
"gauge": "0x38D9BdA812da2C68dFC6aDE85A7F7a54E77F8325",
"zap": "",
},
"ethereum:sepolia": {
"math": "0x2cad7b3e78e10bcbf2cc443ddd69ca8bcc09a758",
"views": "0x9d3975070768580f755D405527862ee126d0eA08",
"plain_amm": "0xE12374F193f91f71CE40D53E0db102eBaA9098D5",
"meta_amm": "0xB00E89EaBD59cD3254c88E390103Cf17E914f678",
"factory": "0xfb37b8D939FFa77114005e61CFc2e543d6F49A81",
"zap": "",
},
# Layer 2
"arbitrum:mainnet": {
Expand All @@ -34,41 +36,47 @@
"plain_amm": "0xf6841C27fe35ED7069189aFD5b81513578AFD7FF",
"meta_amm": "0xFf02cBD91F57A778Bab7218DA562594a680B8B61",
"factory": "0x9AF14D26075f142eb3F292D5065EB3faa646167b",
"zap": "",
},
"optimism:mainnet": {
"math": "0xa7b9d886A9a374A1C86DC52d2BA585c5CDFdac26",
"views": "0xf3A6aa40cf048a3960E9664847E9a7be025a390a",
"plain_amm": "0x635742dCC8313DCf8c904206037d962c042EAfBd",
"meta_amm": "0x5702BDB1Ec244704E3cBBaAE11a0275aE5b07499",
"factory": "0x5eeE3091f747E60a045a2E715a4c71e600e31F6E",
"zap": "",
},
"base:mainnet": {
"math": "0xe265FC390E9129b7E337Da23cD42E00C34Da2CE3",
"views": "0xa7b9d886A9a374A1C86DC52d2BA585c5CDFdac26",
"plain_amm": "0xf3A6aa40cf048a3960E9664847E9a7be025a390a",
"meta_amm": "0x635742dCC8313DCf8c904206037d962c042EAfBd",
"factory": "0xd2002373543Ce3527023C75e7518C274A51ce712",
"zap": "",
},
"linea:mainnet": {
"math": "0xbC0797015fcFc47d9C1856639CaE50D0e69FbEE8",
"views": "0xe265FC390E9129b7E337Da23cD42E00C34Da2CE3",
"plain_amm": "0xa7b9d886a9a374a1c86dc52d2ba585c5cdfdac26",
"meta_amm": "0xf3a6aa40cf048a3960e9664847e9a7be025a390a",
"factory": "0x5eeE3091f747E60a045a2E715a4c71e600e31F6E",
"zap": "",
},
"scroll:mainnet": {
"math": "0xbC0797015fcFc47d9C1856639CaE50D0e69FbEE8",
"views": "0xe265FC390E9129b7E337Da23cD42E00C34Da2CE3",
"plain_amm": "0xa7b9d886A9a374A1C86DC52d2BA585c5CDFdac26",
"meta_amm": "0xf3A6aa40cf048a3960E9664847E9a7be025a390a",
"factory": "0x5eeE3091f747E60a045a2E715a4c71e600e31F6E",
"zap": "",
},
"pzkevm:mainnet": {
"math": "0xe265FC390E9129b7E337Da23cD42E00C34Da2CE3",
"views": "0xa7b9d886A9a374A1C86DC52d2BA585c5CDFdac26",
"plain_amm": "0xf3A6aa40cf048a3960E9664847E9a7be025a390a",
"meta_amm": "0x635742dCC8313DCf8c904206037d962c042EAfBd",
"factory": "0xd2002373543Ce3527023C75e7518C274A51ce712",
"zap": "",
},
# Layer 1
"gnosis:mainnet": {
Expand All @@ -77,62 +85,79 @@
"plain_amm": "0x3d6cb2f6dcf47cdd9c13e4e3beae9af041d8796a",
"meta_amm": "0xC1b393EfEF38140662b91441C6710Aa704973228",
"factory": "0xbC0797015fcFc47d9C1856639CaE50D0e69FbEE8",
"zap": "",
},
"polygon:mainnet": {
"math": "0xd7E72f3615aa65b92A4DBdC211E296a35512988B",
"views": "0xbC0797015fcFc47d9C1856639CaE50D0e69FbEE8",
"plain_amm": "0xe265FC390E9129b7E337Da23cD42E00C34Da2CE3",
"meta_amm": "0xa7b9d886A9a374A1C86DC52d2BA585c5CDFdac26",
"factory": "0x1764ee18e8B3ccA4787249Ceb249356192594585",
"zap": "",
},
"avax:mainnet": {
"math": "0xd7E72f3615aa65b92A4DBdC211E296a35512988B",
"views": "0xbC0797015fcFc47d9C1856639CaE50D0e69FbEE8",
"plain_amm": "0xe265FC390E9129b7E337Da23cD42E00C34Da2CE3",
"meta_amm": "0xa7b9d886A9a374A1C86DC52d2BA585c5CDFdac26",
"factory": "0x1764ee18e8B3ccA4787249Ceb249356192594585",
"zap": "",
},
"ftm:mainnet": {
"math": "0xf3A6aa40cf048a3960E9664847E9a7be025a390a",
"views": "0x635742dCC8313DCf8c904206037d962c042EAfBd",
"plain_amm": "0x5702BDB1Ec244704E3cBBaAE11a0275aE5b07499",
"meta_amm": "0x046207cB759F527b6c10C2D61DBaca45513685CC",
"factory": "0xe61Fb97Ef6eBFBa12B36Ffd7be785c1F5A2DE66b",
"zap": "",
},
"bsc:mainnet": {
"math": "0x166c4084Ad2434E8F2425C64dabFE6875A0D45c5",
"views": "0x5Ea9DD3b6f042A34Df818C6c1324BC5A7c61427a",
"plain_amm": "0x505d666E4DD174DcDD7FA090ed95554486d2Be44",
"meta_amm": "0x5a8C93EE12a8Df4455BA111647AdA41f29D5CfcC",
"factory": "0xd7E72f3615aa65b92A4DBdC211E296a35512988B",
"zap": "",
},
"celo:mainnet": {
"math": "0xd7E72f3615aa65b92A4DBdC211E296a35512988B",
"views": "0xbC0797015fcFc47d9C1856639CaE50D0e69FbEE8",
"plain_amm": "0xe265FC390E9129b7E337Da23cD42E00C34Da2CE3",
"meta_amm": "0xa7b9d886A9a374A1C86DC52d2BA585c5CDFdac26",
"factory": "0x1764ee18e8B3ccA4787249Ceb249356192594585",
"zap": "",
},
"kava:mainnet": {
"math": "0xd7E72f3615aa65b92A4DBdC211E296a35512988B",
"views": "0xbC0797015fcFc47d9C1856639CaE50D0e69FbEE8",
"plain_amm": "0xe265FC390E9129b7E337Da23cD42E00C34Da2CE3",
"meta_amm": "0xa7b9d886A9a374A1C86DC52d2BA585c5CDFdac26",
"factory": "0x1764ee18e8B3ccA4787249Ceb249356192594585",
"zap": "",
},
"aurora:mainnet": {
"math": "0xbC0797015fcFc47d9C1856639CaE50D0e69FbEE8",
"views": "0xe265FC390E9129b7E337Da23cD42E00C34Da2CE3",
"plain_amm": "0xa7b9d886A9a374A1C86DC52d2BA585c5CDFdac26",
"meta_amm": "0xf3A6aa40cf048a3960E9664847E9a7be025a390a",
"factory": "0x5eeE3091f747E60a045a2E715a4c71e600e31F6E",
"zap": "",
},
"fraxtal:mainnet": {
"math": "0x506F594ceb4E33F5161139bAe3Ee911014df9f7f",
"views": "0x87FE17697D0f14A222e8bEf386a0860eCffDD617",
"plain_amm": "0x1764ee18e8B3ccA4787249Ceb249356192594585",
"meta_amm": "0x5eeE3091f747E60a045a2E715a4c71e600e31F6E",
"factory": "0xd2002373543Ce3527023C75e7518C274A51ce712",
"zap": "0xe61Fb97Ef6eBFBa12B36Ffd7be785c1F5A2DE66b",
},
"mantle:mainnet": {
"math": "0x8b3EFBEfa6eD222077455d6f0DCdA3bF4f3F57A6",
"views": "0x506F594ceb4E33F5161139bAe3Ee911014df9f7f",
"plain_amm": "0x87FE17697D0f14A222e8bEf386a0860eCffDD617",
"meta_amm": "0x1764ee18e8B3ccA4787249Ceb249356192594585",
"factory": "0x5eeE3091f747E60a045a2E715a4c71e600e31F6E",
"zap": "",
"factory_ctor": "000000000000000000000000f3a431008396df8a8b2df492c913706bdb0874ef0000000000000000000000002d12d0907a388811e3aa855a550f959501d303ee", # noqa:E501
},
}
Expand Down Expand Up @@ -203,6 +228,7 @@ def deploy_infra(network, url, account, fork=False):
views_contract_obj = set_evm_version("./contracts/main/CurveStableSwapNGViews.vy", network)
plain_contract_obj = set_evm_version("./contracts/main/CurveStableSwapNG.vy", network)
meta_contract_obj = set_evm_version("./contracts/main/CurveStableSwapMetaNG.vy", network)
zap_contract_obj = set_evm_version("./contracts/main/MetaZapNG.vy", network)

# deploy non-blueprint contracts:
math_contract = check_and_deploy(math_contract_obj, "math", network)
Expand All @@ -217,6 +243,9 @@ def deploy_infra(network, url, account, fork=False):
args = [fee_receiver, deploy_utils.FIDDYDEPLOYER]
factory = check_and_deploy(factory_contract_obj, "factory", network, False, args)

# zap:
check_and_deploy(zap_contract_obj, "zap", network)

# Set up AMM implementations:
if not factory.views_implementation() == views_contract.address:
factory.set_views_implementation(views_contract.address)
Expand Down Expand Up @@ -247,7 +276,7 @@ def deploy_infra(network, url, account, fork=False):


def main():
deploy_infra("ethereum:mainnet", os.environ["RPC_ETHEREUM"], "FIDDYDEPLOYER", fork=False)
deploy_infra(":mainnet", os.environ["RPC_"], "", fork=False)


if __name__ == "__main__":
Expand Down
4 changes: 4 additions & 0 deletions scripts/deployment_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,10 @@ class CurveNetworkSettings:
dao_ownership_contract="0x98B4029CaBEf7Fd525A36B0BF8555EC1d42ec0B6",
fee_receiver_address="0x98B4029CaBEf7Fd525A36B0BF8555EC1d42ec0B6",
),
"fraxtal:mainnet": CurveNetworkSettings(
dao_ownership_contract="0x8b3EFBEfa6eD222077455d6f0DCdA3bF4f3F57A6", # proxy
fee_receiver_address="0x8b3EFBEfa6eD222077455d6f0DCdA3bF4f3F57A6",
),
"tron:mainnet": CurveNetworkSettings(dao_ownership_contract="", fee_receiver_address=""),
"mantle:mainnet": CurveNetworkSettings(
dao_ownership_contract="0xf3A431008396df8A8b2DF492C913706BDB0874ef",
Expand Down
Loading