Skip to content

Commit

Permalink
deployed to xlayer
Browse files Browse the repository at this point in the history
  • Loading branch information
bout3fiddy committed Apr 25, 2024
1 parent ec972b3 commit 54bc614
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
17 changes: 15 additions & 2 deletions scripts/deploy_infra.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
},
"pzkevm:mainnet": {
"math": "0xe265FC390E9129b7E337Da23cD42E00C34Da2CE3",
"views": "0xa7b9d886A9a374A1C86DC52d2BA585c5CDFdac26",
"views": "0x87DD13Dd25a1DBde0E1EdcF5B8Fa6cfff7eABCaD",
"plain_amm": "0xf3A6aa40cf048a3960E9664847E9a7be025a390a",
"meta_amm": "0x635742dCC8313DCf8c904206037d962c042EAfBd",
"factory": "0xd2002373543Ce3527023C75e7518C274A51ce712",
Expand Down Expand Up @@ -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",
},
}


Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -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__":
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 54bc614

Please sign in to comment.