From 54bc61409ef3c439c2c35bce518100f0137ec05b Mon Sep 17 00:00:00 2001 From: bout3fiddy <11488427+bout3fiddy@users.noreply.github.com> Date: Thu, 25 Apr 2024 16:58:24 +0200 Subject: [PATCH] deployed to xlayer --- scripts/deploy_infra.py | 17 +++++++++++++++-- scripts/deploy_proxy_admin.py | 6 +++++- scripts/deployment_utils.py | 4 ++++ 3 files changed, 24 insertions(+), 3 deletions(-) diff --git a/scripts/deploy_infra.py b/scripts/deploy_infra.py index 419ec5cf..d4e31172 100644 --- a/scripts/deploy_infra.py +++ b/scripts/deploy_infra.py @@ -72,7 +72,7 @@ }, "pzkevm:mainnet": { "math": "0xe265FC390E9129b7E337Da23cD42E00C34Da2CE3", - "views": "0xa7b9d886A9a374A1C86DC52d2BA585c5CDFdac26", + "views": "0x87DD13Dd25a1DBde0E1EdcF5B8Fa6cfff7eABCaD", "plain_amm": "0xf3A6aa40cf048a3960E9664847E9a7be025a390a", "meta_amm": "0x635742dCC8313DCf8c904206037d962c042EAfBd", "factory": "0xd2002373543Ce3527023C75e7518C274A51ce712", @@ -160,6 +160,14 @@ "zap": "", "factory_ctor": "000000000000000000000000f3a431008396df8a8b2df492c913706bdb0874ef0000000000000000000000002d12d0907a388811e3aa855a550f959501d303ee", # noqa:E501 }, + "xlayer:mainnet": { + "math": "0x8b3EFBEfa6eD222077455d6f0DCdA3bF4f3F57A6", + "views": "0xd7E72f3615aa65b92A4DBdC211E296a35512988B", + "plain_amm": "0x87FE17697D0f14A222e8bEf386a0860eCffDD617", + "meta_amm": "0x1764ee18e8B3ccA4787249Ceb249356192594585", + "factory": "0x5eeE3091f747E60a045a2E715a4c71e600e31F6E", + "zap": "0x604388Bb1159AFd21eB5191cE22b4DeCdEE2Ae22", + }, } @@ -244,6 +252,7 @@ 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) # Set up AMM implementations: @@ -276,7 +285,11 @@ def deploy_infra(network, url, account, fork=False): def main(): - deploy_infra(":mainnet", os.environ["RPC_"], "", fork=False) + deployer = "FIDDYDEPLOYER" + fork = False + network = "xlayer" + rpc = "https://xlayerrpc.okx.com" + deploy_infra(f"{network}:mainnet", rpc, deployer, fork=fork) if __name__ == "__main__": diff --git a/scripts/deploy_proxy_admin.py b/scripts/deploy_proxy_admin.py index fca78790..6fb14c58 100644 --- a/scripts/deploy_proxy_admin.py +++ b/scripts/deploy_proxy_admin.py @@ -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__": diff --git a/scripts/deployment_utils.py b/scripts/deployment_utils.py index 188326af..ece9aee5 100644 --- a/scripts/deployment_utils.py +++ b/scripts/deployment_utils.py @@ -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", + ), }