Skip to content

Commit

Permalink
Deploy Duality contracts to Neutron mainnet (#137)
Browse files Browse the repository at this point in the history
* deploy duality contracts to mainnet

* add duality mainnet swap adapter

* update neutron contracts
  • Loading branch information
mattac21 authored Sep 17, 2024
1 parent 1e70969 commit cb488b8
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 59 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,7 @@ NOTICE
# Python venv
venv
.venv
.env
.env

scripts/configs/*.toml
scripts/cosmpy/*
59 changes: 32 additions & 27 deletions deployed-contracts/neutron/mainnet.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[info]
chain_id = "neutron-1"
network = "mainnet"
deploy_date = "13/08/2024 10:14:23"
deploy_date = "03/09/2024 11:26:47"
commit_hash = "<COMMIT HASH HERE>"
salt = "9"
salt = "14"

[checksums]
"skip_api_swap_adapter_drop-aarch64.wasm" = "2ea621dafbaede4dd8c38b359966d42808513a3fa5fdfd4bbf2641cdfadf0094"
Expand All @@ -14,38 +14,43 @@ salt = "9"
"skip_go_swap_adapter_astroport-aarch64.wasm" = "85d5f92a7a06a72efe88608cc9cae1fc045d738eb49b8655a8c71b47e687d43f"
"skip_go_swap_adapter_dexter-aarch64.wasm" = "50a59433db5eece6490e6c574c2d4bdda0e4cbeb5ea60f4c84876325b480b9c5"
"skip_go_swap_adapter_drop-aarch64.wasm" = "12bc54194338dd8eb72eb6f19b43c1d3d94204264df2a3bc4026d7941b947883"
"skip_go_swap_adapter_duality-aarch64.wasm" = "5a79dc05180532e203ea7583500c410d08ff1ca3c40ffd8165d75180ba52441d"
"skip_go_swap_adapter_duality-aarch64.wasm" = "f4e3895d9e5b27c4515f88550d40946e8d403572609d507fb291af00caa735da"
"skip_go_swap_adapter_hallswap-aarch64.wasm" = "d88911659910dfb32fd6d999f69645d43032d1cde6dfb5aa7c9edccf69d445de"
"skip_go_swap_adapter_lido_satellite-aarch64.wasm" = "fc028e4d6e43491c2a0dcfabb7f2f5c3a2016659936dfa96f522bbbdf7d5305f"
"skip_go_swap_adapter_osmosis_poolmanager-aarch64.wasm" = "df3a4d8e4cd62fb7b293ac3f47cedf7a28308584ec64954400584624f3551960"
"skip_go_swap_adapter_pryzm-aarch64.wasm" = "9486973c17242766527bd57dff344377f85a16da67cfd116dbc82b749c0d55d0"
"skip_go_swap_adapter_white_whale-aarch64.wasm" = "c26a7e66311a1a4dbfdb9f06a51e85817aec72100a1ec72aef9a0b56c15a10f1"

[code-ids]
ibc_transfer_adapter_contract_code_id = "1756"
swap_adapter_neutron-astroport_contract_code_id = "1757"
swap_adapter_neutron-lido-satellite_contract_code_id = "1758"
swap_adapter_neutron-hallswap_contract_code_id = "1759"
swap_adapter_neutron-drop_contract_code_id = "1760"
entry_point_contract_code_id = "1761"
ibc_transfer_adapter_contract_code_id = "1879"
swap_adapter_neutron-astroport_contract_code_id = "1880"
swap_adapter_neutron-lido-satellite_contract_code_id = "1881"
swap_adapter_neutron-hallswap_contract_code_id = "1882"
swap_adapter_neutron-drop_contract_code_id = "1883"
swap_adapter_neutron-duality_contract_code_id = "1884"
entry_point_contract_code_id = "1885"

[contract-addresses]
ibc_transfer_adapter_contract_address = "neutron1g050vcx4a2d0782ayjt3pzuwrc54cvyyyn8n0fg8s6yx0frkyudqn3xgnm"
swap_adapter_neutron-astroport_contract_address = "neutron1z4x7r5ehrkltmn6t03wfmdd6vxjp7tp7ea4xdq33f0hf35e8zs7qtt3kfw"
swap_adapter_neutron-lido-satellite_contract_address = "neutron1f777jj4w42s9dmq2xhqtrrxv22pxkdf86hsy6yrzwnx45vz8rcmqk07vvt"
swap_adapter_neutron-hallswap_contract_address = "neutron10vh3hpznhxg5aaldxa2zd9p3x9mn0fmt220f7cy5ajuf9qdwyk8qlfy6jj"
swap_adapter_neutron-drop_contract_address = "neutron17a07rmk0u5vlkj4m7za8qcr0gwlrdjwhr3srffyj06cdyywa68sqdeu5jf"
entry_point_contract_address = "neutron19xsacecv4jcu0kwca7w3m6wh40ts4fhls44grdqzs48yapyghnmqaxn7h5"
ibc_transfer_adapter_contract_address = "neutron1p6kta0nzgzkx4f8luw7efejxygt4rpzu6494krymjkcp9gccxu4szscfyx"
swap_adapter_neutron-astroport_contract_address = "neutron1jrdwahq6zu55nz39zq7wckj0fgq8k53wyd52alvam7d709z0mkaqkk73sz"
swap_adapter_neutron-lido-satellite_contract_address = "neutron1xa9wrl8cxrvjj6p2ukxurnrdyz9kaexa7hakalth3g0y5cwdnp0q75gk3v"
swap_adapter_neutron-hallswap_contract_address = "neutron1vc4ptssaawmfstpjvu3ytwn2atfyeg0mpyuc08ev3m2l9e7nnshs4czeky"
swap_adapter_neutron-drop_contract_address = "neutron1gsgrllkjf4vqkfrhzv8pu4dv0udqcc2lnf6ak38ly70l7s7jgsds9wastr"
swap_adapter_neutron-duality_contract_address = "neutron1mdsn7v48hyg0wlt7au0an8uj7pgqdpsyfh4vpkkwk7eldhpwhfdscsnpzg"
entry_point_contract_address = "neutron1w86w2m2hhvz3pg6jqkpd3ww20gegmp0zes5kyl6a6kgjx4vtc4aqjml70v"

[tx-hashes]
store_ibc_transfer_adapter_tx_hash = "2fe0f7749eff2df7527ed70188ea59ebbbfa59821a30c3f75584ad809850bda2"
instantiate_ibc_transfer_adapter_tx_hash = "2b2e41dc734c9c3397ed1895bab0c94c1c8adce6c0785a23f34700e703c9d6fe"
store_swap_adapter_neutron-astroport_tx_hash = "731c584e528d5e8a60d8372d434d820585e16d85132e1252e8e2bb19b37ac990"
instantiate_swap_adapter_neutron-astroport_tx_hash = "5370ecef52af02a19f0d2e4a628b8d9919590eb5ffa654a0fb5eeb58a2c6d446"
store_swap_adapter_neutron-lido-satellite_tx_hash = "3ea4cfc82d711b0c9e2bb9ae16c0a3cba83ac4ff0c223b9cec5ffc8c67c8a944"
instantiate_swap_adapter_neutron-lido-satellite_tx_hash = "ff43db6efe3f5227e2d85334470470bb216b38bf4c5f5383508e7899a0fce7c4"
store_swap_adapter_neutron-hallswap_tx_hash = "4586a2ff68dfb2220ce0bfb510bc8c2932243e044defb6fc9a7471bd54607de4"
instantiate_swap_adapter_neutron-hallswap_tx_hash = "b35a4e14ab8b88af3f88750c3d6a680a43038529693579b2ee5e478661652cfc"
store_swap_adapter_neutron-drop_tx_hash = "10012011258b219add7771d3df797f79f0cd8ebf0603f4cb34f7f0159f28dec1"
instantiate_swap_adapter_neutron-drop_tx_hash = "3488a0f9957ed9bead19fb7ca60422b17f9c41a32b8c2fa0e5d3313aa7543e8f"
store_entry_point_tx_hash = "e317588f0fc5cd95bdf9812835efc451dfa4bf62f8612edeafea7195025742ac"
instantiate_entry_point_tx_hash = "bffaf5afd9555560b23a3650fdfb87035e95393bef5170d8baf5f75aa62b09b4"
store_ibc_transfer_adapter_tx_hash = "4f49dad303c6bae67dae1d6d400643f07b3f131aafa47bb9bd0d182f8c8ec758"
instantiate_ibc_transfer_adapter_tx_hash = "b4aa6628e8eaae2e027e3761ae71436fb2074857c87466dc1c6c80aa9a1f2228"
store_swap_adapter_neutron-astroport_tx_hash = "ad65dba85e3d53b7622df1e5dcf59708afdf7532dc94f7a0175f9a1052d3ec9b"
instantiate_swap_adapter_neutron-astroport_tx_hash = "b9e0eb7a7e1aaf615b076e8d7f9b74cd727685f06affee2caf453aca2b82f9ff"
store_swap_adapter_neutron-lido-satellite_tx_hash = "fa12e727f72fcdb9f8221842401867c6f860d561ff0d2485c0c9b15120d711a6"
instantiate_swap_adapter_neutron-lido-satellite_tx_hash = "90a0d01cb9e21e0b8561fd0970996d7c8128a9324b6bd22a0f1da1b283058da5"
store_swap_adapter_neutron-hallswap_tx_hash = "8c0da9fd67e5e0647a56e044ff550d371299c9d0ed95af86d89a4d2b534ff0bc"
instantiate_swap_adapter_neutron-hallswap_tx_hash = "ea6315dc9e9889ecac46ed2c47965c9b9a17165bb27ddf7e1b68e018c1a8ba3a"
store_swap_adapter_neutron-drop_tx_hash = "8ace02af01d2d23d56575078ebe520f6683f76868e811476da43211bebbf3233"
instantiate_swap_adapter_neutron-drop_tx_hash = "5679120a1a843edf37b9a60af76b61c2144973912fef3ef8b879981291408d97"
store_swap_adapter_neutron-duality_tx_hash = "78e91087b55654e9738dd0aa34f38b39e390384512ef8568650856c4d5b96990"
instantiate_swap_adapter_neutron-duality_tx_hash = "78dd2070f70db02f10140699d26a8369b37c21e84150dd01611399b7f0c310f5"
store_entry_point_tx_hash = "def717fb52781b0e53c948fe425a9828549043bf87bea3f1df35702503e32122"
instantiate_entry_point_tx_hash = "dc6ccdc83113c9d6e050055ad8119fdf562eb941f87edf9a55e594b1e4548976"
55 changes: 28 additions & 27 deletions deployed-contracts/neutron/testnet.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[info]
chain_id = "pion-1"
network = "testnet"
deploy_date = "13/08/2024 09:56:42"
deploy_date = "03/09/2024 12:42:59"
commit_hash = "<COMMIT HASH HERE>"
salt = "9"
salt = "14"

[checksums]
"skip_api_swap_adapter_drop-aarch64.wasm" = "2ea621dafbaede4dd8c38b359966d42808513a3fa5fdfd4bbf2641cdfadf0094"
Expand All @@ -14,38 +14,39 @@ salt = "9"
"skip_go_swap_adapter_astroport-aarch64.wasm" = "85d5f92a7a06a72efe88608cc9cae1fc045d738eb49b8655a8c71b47e687d43f"
"skip_go_swap_adapter_dexter-aarch64.wasm" = "50a59433db5eece6490e6c574c2d4bdda0e4cbeb5ea60f4c84876325b480b9c5"
"skip_go_swap_adapter_drop-aarch64.wasm" = "12bc54194338dd8eb72eb6f19b43c1d3d94204264df2a3bc4026d7941b947883"
"skip_go_swap_adapter_duality-aarch64.wasm" = "5a79dc05180532e203ea7583500c410d08ff1ca3c40ffd8165d75180ba52441d"
"skip_go_swap_adapter_duality-aarch64.wasm" = "f4e3895d9e5b27c4515f88550d40946e8d403572609d507fb291af00caa735da"
"skip_go_swap_adapter_hallswap-aarch64.wasm" = "d88911659910dfb32fd6d999f69645d43032d1cde6dfb5aa7c9edccf69d445de"
"skip_go_swap_adapter_lido_satellite-aarch64.wasm" = "fc028e4d6e43491c2a0dcfabb7f2f5c3a2016659936dfa96f522bbbdf7d5305f"
"skip_go_swap_adapter_osmosis_poolmanager-aarch64.wasm" = "df3a4d8e4cd62fb7b293ac3f47cedf7a28308584ec64954400584624f3551960"
"skip_go_swap_adapter_pryzm-aarch64.wasm" = "9486973c17242766527bd57dff344377f85a16da67cfd116dbc82b749c0d55d0"
"skip_go_swap_adapter_white_whale-aarch64.wasm" = "c26a7e66311a1a4dbfdb9f06a51e85817aec72100a1ec72aef9a0b56c15a10f1"

[code-ids]
ibc_transfer_adapter_contract_code_id = "5895"
swap_adapter_testnet-neutron-astroport_contract_code_id = "5896"
swap_adapter_testnet-neutron-drop_contract_code_id = "5897"
swap_adapter_testnet-neutron-duality_contract_code_id = "5898"
swap_adapter_testnet-neutron-lido-satellite_contract_code_id = "5899"
entry_point_contract_code_id = "5900"
ibc_transfer_adapter_contract_code_id = "6434"
swap_adapter_testnet-neutron-astroport_contract_code_id = "6435"
swap_adapter_testnet-neutron-drop_contract_code_id = "6436"
swap_adapter_testnet-neutron-duality_contract_code_id = "6437"
swap_adapter_testnet-neutron-lido-satellite_contract_code_id = "6438"
entry_point_contract_code_id = "6439"

[contract-addresses]
ibc_transfer_adapter_contract_address = "neutron10zs55dslx25vz9wzy356zr0dpdhx649q8t4vkjttdrt33u0mh5hqp0n9xk"
swap_adapter_testnet-neutron-astroport_contract_address = "neutron1m9ev9a7hflu40zzx5ksvmt9u38arsv67024dqgux9xnnkuqhgkdqq3hgr0"
swap_adapter_testnet-neutron-drop_contract_address = "neutron1eeflk267c8t2htzq7lke0q69zuck0wz87zzf84u9cc4wggv2p53s6ankq9"
swap_adapter_testnet-neutron-duality_contract_address = "neutron1hj9km3gwtkekrzndgnf8260vqpk0k0g6mwaykrjz06ue0hrm2a6qthsjfd"
swap_adapter_testnet-neutron-lido-satellite_contract_address = "neutron1yjgkxkqdhvmrnsxwr93tc77r9mrl6xxysksxavz623gdyr2qtnksjjcy35"
entry_point_contract_address = "neutron19xsacecv4jcu0kwca7w3m6wh40ts4fhls44grdqzs48yapyghnmqaxn7h5"
ibc_transfer_adapter_contract_address = "neutron10gjjmlq3np4qpwl58q3f797qgvanu48hpxqkw80y5arhcn6s3gvqng5jg7"
swap_adapter_testnet-neutron-astroport_contract_address = "neutron15edr2smeqd4w4sgt3lvvuhjdfprxuy7phzzmvv2l9fry9kh3tr0qv0fnvz"
swap_adapter_testnet-neutron-drop_contract_address = "neutron1k73tm5f5cxhzmrphrlzmyvgmx30cds9jdmastnypr8jecjwtf5hszd9ufh"
swap_adapter_testnet-neutron-duality_contract_address = "neutron15aqpw5rxtc2v6exwrrm6zzy9gcx7tkxwfn9a2wamk3w4jrmp6gls34e7rz"
swap_adapter_testnet-neutron-lido-satellite_contract_address = "neutron1sv53mpj92lnp0w5mxgnxk6xlmac68aqdfh44xqar6echx4x3k50s2tdzd6"
entry_point_contract_address = "neutron1w86w2m2hhvz3pg6jqkpd3ww20gegmp0zes5kyl6a6kgjx4vtc4aqjml70v"

[tx-hashes]
store_ibc_transfer_adapter_tx_hash = "4a9ed9c99ce48f92bf5dfbe8a8725c4f47fa2a4b6a295011d38a9faea4089e27"
instantiate_ibc_transfer_adapter_tx_hash = "0ce331616629713068548a68444a98b797bfb721d35b7e8757054b1f555eed18"
store_swap_adapter_testnet-neutron-astroport_tx_hash = "aaad861e0793ac81a3dc45a443a103c71e66a001e1e0cf9211ab595c26156445"
instantiate_swap_adapter_testnet-neutron-astroport_tx_hash = "61360ce64c4e9c238de2ba1e8f6400f99d0fa7dd201eedf8a9b335097e184a96"
store_swap_adapter_testnet-neutron-drop_tx_hash = "9684eca388b7b9075e1ef12ddff0c32d67d56b80118a09fbc9f46b5668e1c48c"
instantiate_swap_adapter_testnet-neutron-drop_tx_hash = "b3a28564b547b73ac2fe5e3061bb382de592b7893657a6327a8c7c7cf5d00a5c"
store_swap_adapter_testnet-neutron-duality_tx_hash = "b4a615a982fd9362062b67bc9125ab60673df322376b23d676d28abd5fc96094"
instantiate_swap_adapter_testnet-neutron-duality_tx_hash = "af9019f1ab916eadea0ff1c1bf2f853ea33dd136c7007281dac5de1883042c3a"
store_swap_adapter_testnet-neutron-lido-satellite_tx_hash = "14713db2af74b945998a9616d3fb2df30a210fefcd1fa02f9258b0466a7fb469"
instantiate_swap_adapter_testnet-neutron-lido-satellite_tx_hash = "8fbfa514a250d5347ca16ec94219f52c9f9b291113d8377be5113436affbe5f2"
store_entry_point_tx_hash = "81378cc6f6fc73c5353909b869d042e674474f3dc65b4f3956c938de1340937d"
instantiate_entry_point_tx_hash = "a5b31d7992cb645811578e4acd4114fb3beb3d104edb3038e1067701212fa3bf"
store_ibc_transfer_adapter_tx_hash = "8ccbc2d038b20185b2c6f8006b919a27cfee3fbd4a82dda735e4e1ce119bffb6"
instantiate_ibc_transfer_adapter_tx_hash = "c381d9a651f686a9a59cdb68981ac02fba83c00772ea3fc5eb6c5ee39861be04"
store_swap_adapter_testnet-neutron-astroport_tx_hash = "89dece7e4c9182d3f16b6878da15c5d1084d9943b9d5d5ec7fce3167cef1ec78"
instantiate_swap_adapter_testnet-neutron-astroport_tx_hash = "d4d9daddb88358cf1260338308396c72d0fb934da389701f3cb6c533275e0160"
store_swap_adapter_testnet-neutron-drop_tx_hash = "6e476d5b6aa823bdeb0434794066cab68a217fc4ee1e4f5e94502e9f31b6d81e"
instantiate_swap_adapter_testnet-neutron-drop_tx_hash = "f42dc9d3ed920e77461aa96a1eaeeee59c25494721bbc6eea34b63e71d43ad1e"
store_swap_adapter_testnet-neutron-duality_tx_hash = "3547434eb6151d1b9c9a77f3d869699f608193ee4750a5556338351c6ea3955d"
instantiate_swap_adapter_testnet-neutron-duality_tx_hash = "df6076cf014fab71232de99c9a0329817cf52f482e3f55523bb15e82c7225422"
store_swap_adapter_testnet-neutron-lido-satellite_tx_hash = "55a2491b120441c049451f5694a7fde6a57cbe42daf5632790ea67d142b0a5b4"
instantiate_swap_adapter_testnet-neutron-lido-satellite_tx_hash = "6abe66d2c96ee2d537d5879a87ac1d78da51be54275bd2bf4877ff5bcd7cb2c7"
store_entry_point_tx_hash = "daab7445331b1bb890c7581b239a7d2e39b3d7ee430eaacb84526c7ff734d1f4"
instantiate_entry_point_tx_hash = "289355354895e28338ed5188d2a4b15b944668612c6db0324472fc4c33974dfd"
5 changes: 5 additions & 0 deletions scripts/configs/neutron.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ name = "neutron-drop"
drop_factory_contract_address = "neutron1rtydk5vlppj2nmw98ctpgee6hxe5va7mc9x3lng8xm75p3dus80s7pkvmu"
swap_adapter_path = "../artifacts/skip_go_swap_adapter_drop-aarch64.wasm"

[[swap_venues]]
name = "neutron-duality"
dex_module_address = "neutron1n58mly6f7er0zs6swtetqgfqs36jaarqlplf59"
swap_adapter_path = "../artifacts/skip_go_swap_adapter_duality-aarch64.wasm"

[[testnet_swap_venues]]
name = "testnet-neutron-astroport"
swap_adapter_path = "../artifacts/skip_go_swap_adapter_astroport-aarch64.wasm"
Expand Down
6 changes: 2 additions & 4 deletions scripts/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,9 +451,7 @@ def instantiate_contract(
name,
permissioned_uploader_address
) -> str:
if CHAIN == "osmosis":
gas_limit = 600000
elif CHAIN == "neutron":
if CHAIN == "osmosis" or CHAIN == "neutron":
gas_limit = 600000
else:
gas_limit = 300000
Expand Down Expand Up @@ -556,7 +554,7 @@ def instantiate2_contract(
pre_gen_address,
permissioned_uploader_address
) -> str:
if CHAIN == "osmosis":
if CHAIN == "osmosis" or CHAIN == "neutron":
gas_limit = 600000
else:
gas_limit = 300000
Expand Down

0 comments on commit cb488b8

Please sign in to comment.