Skip to content

Commit

Permalink
Merge pull request #48 from curvefi/xlayer
Browse files Browse the repository at this point in the history
deployed to xlayer
  • Loading branch information
bout3fiddy authored Apr 26, 2024
2 parents 5ff951c + b280aaa commit 977697b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
19 changes: 13 additions & 6 deletions scripts/deploy_infra.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,7 @@
},
"pzkevm:mainnet": {
"math": "0xe265FC390E9129b7E337Da23cD42E00C34Da2CE3",
# "views": "0xa7b9d886A9a374A1C86DC52d2BA585c5CDFdac26",
"views": "",
"views": "0x87DD13Dd25a1DBde0E1EdcF5B8Fa6cfff7eABCaD",
"plain_amm": "0xf3A6aa40cf048a3960E9664847E9a7be025a390a",
"meta_amm": "0x635742dCC8313DCf8c904206037d962c042EAfBd",
"factory": "0xd2002373543Ce3527023C75e7518C274A51ce712",
Expand Down Expand Up @@ -178,6 +177,14 @@
"zap": "",
"factory_ctor": "000000000000000000000000f3a431008396df8a8b2df492c913706bdb0874ef0000000000000000000000002d12d0907a388811e3aa855a550f959501d303ee", # noqa:E501
},
"xlayer:mainnet": {
"math": "0x8b3EFBEfa6eD222077455d6f0DCdA3bF4f3F57A6",
"views": "0xd7E72f3615aa65b92A4DBdC211E296a35512988B",
"plain_amm": "0x87FE17697D0f14A222e8bEf386a0860eCffDD617",
"meta_amm": "0x1764ee18e8B3ccA4787249Ceb249356192594585",
"factory": "0x5eeE3091f747E60a045a2E715a4c71e600e31F6E",
"zap": "0x604388Bb1159AFd21eB5191cE22b4DeCdEE2Ae22",
},
}


Expand Down Expand Up @@ -261,8 +268,8 @@ def deploy_infra(network, url, account, fork=False):
factory = check_and_deploy(factory_contract_obj, "factory", network, False, args)

# zap:
# zap_contract_obj = set_evm_version("./contracts/main/MetaZapNG.vy", network)
# check_and_deploy(zap_contract_obj, "zap", network)
zap_contract_obj = set_evm_version("./contracts/main/MetaZapNG.vy", network)
check_and_deploy(zap_contract_obj, "zap", network)

# Set up AMM implementations:÷
current_views_impl = factory.views_implementation()
Expand Down Expand Up @@ -304,8 +311,8 @@ def deploy_infra(network, url, account, fork=False):
def main():
deployer = "FIDDYDEPLOYER"
fork = False
network = "pzkevm"
rpc = f"https://lb.drpc.org/ogrpc?network=polygon-zkevm&dkey={os.environ['drpc_key']}"
network = "xlayer"
rpc = "https://xlayerrpc.okx.com"
deploy_infra(f"{network}:mainnet", rpc, deployer, fork=fork)


Expand Down
6 changes: 5 additions & 1 deletion scripts/deploy_proxy_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ def deploy_proxy_admin(network, url, account, fork=False):


def main():
deploy_proxy_admin(":mainnet", os.environ["RPC_"], "", fork=False)
network = "xlayer"
rpc = "https://xlayerrpc.okx.com"
account = "FIDDYDEPLOYER"
fork = False
deploy_proxy_admin(network, rpc, account, fork)


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 @@ -106,6 +106,10 @@ class CurveNetworkSettings:
dao_ownership_contract="0xf3A431008396df8A8b2DF492C913706BDB0874ef",
fee_receiver_address="0xf3A431008396df8A8b2DF492C913706BDB0874ef",
),
"xlayer:mainnet": CurveNetworkSettings(
dao_ownership_contract="0xf3A431008396df8A8b2DF492C913706BDB0874ef",
fee_receiver_address="0xf3A431008396df8A8b2DF492C913706BDB0874ef",
),
}


Expand Down

0 comments on commit 977697b

Please sign in to comment.