Skip to content

Commit

Permalink
drop contract deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
wesl-ee committed Jul 31, 2024
1 parent 98a4f5e commit 7c0559a
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 25 deletions.
32 changes: 16 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions contracts/adapters/swap/drop/tests/test_execute_swap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use cosmwasm_std::{
};
// use lido_satellite::msg::ExecuteMsg as LidoSatelliteExecuteMsg;
use skip::swap::ExecuteMsg;
use skip_api_swap_adapter_drop::{
use skip_go_swap_adapter_drop::{
error::{ContractError, ContractResult},
state::{BONDED_DENOM, DROP_CORE_CONTRACT_ADDRESS, ENTRY_POINT_CONTRACT_ADDRESS, REMOTE_DENOM},
};
Expand Down Expand Up @@ -135,7 +135,7 @@ fn test_execute_swap(params: Params) -> ContractResult<()> {
BONDED_DENOM.save(deps.as_mut().storage, &String::from("factory/uatom"))?;

// Call execute_swap with the given test parameters
let res = skip_api_swap_adapter_drop::contract::execute(
let res = skip_go_swap_adapter_drop::contract::execute(
deps.as_mut(),
env,
info,
Expand Down
19 changes: 12 additions & 7 deletions scripts/configs/neutron.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ DENOM = "untrn"
GAS_PRICE = 0.075

# Contract Paths
ENTRY_POINT_CONTRACT_PATH = "../artifacts/skip_api_entry_point-aarch64.wasm"
IBC_TRANSFER_ADAPTER_PATH = "../artifacts/skip_api_ibc_adapter_neutron_transfer-aarch64.wasm"
ENTRY_POINT_CONTRACT_PATH = "../artifacts/skip_go_entry_point-aarch64.wasm"
IBC_TRANSFER_ADAPTER_PATH = "../artifacts/skip_go_ibc_adapter_neutron_transfer-aarch64.wasm"

# SALT USED TO GENERATE A DETERMINSTIC ADDRESS
SALT = "1"
Expand All @@ -31,23 +31,28 @@ ENTRY_POINT_PRE_GENERATED_ADDRESS = "<PRE GENERATED ADDRESS HERE>"

[[swap_venues]]
name = "neutron-astroport"
swap_adapter_path = "../artifacts/skip_api_swap_adapter_astroport-aarch64.wasm"
swap_adapter_path = "../artifacts/skip_go_swap_adapter_astroport-aarch64.wasm"

[[swap_venues]]
name = "neutron-lido-satellite"
lido_satellite_contract_address = "neutron1ug740qrkquxzrk2hh29qrlx3sktkfml3je7juusc2te7xmvsscns0n2wry"
swap_adapter_path = "../artifacts/skip_api_swap_adapter_lido_satellite-aarch64.wasm"
swap_adapter_path = "../artifacts/skip_go_swap_adapter_lido_satellite-aarch64.wasm"

[[swap_venues]]
name = "neutron-hallswap"
hallswap_contract_address = "neutron12k4hr2ecm3c8mjjsn6dc9c043xv8p7v4795qt9g2dwp4nmmlgxdqvz2ujp"
swap_adapter_path = "../artifacts/skip_api_swap_adapter_hallswap-aarch64.wasm"
swap_adapter_path = "../artifacts/skip_go_swap_adapter_hallswap-aarch64.wasm"

[[testnet_swap_venues]]
name = "testnet-neutron-astroport"
swap_adapter_path = "../artifacts/skip_api_swap_adapter_astroport-aarch64.wasm"
swap_adapter_path = "../artifacts/skip_go_swap_adapter_astroport-aarch64.wasm"

[[testnet_swap_venues]]
name = "testnet-neutron-lido-satellite"
lido_satellite_contract_address = "neutron1xdtwh5jr4zjx8g3zh29jud75c666wua7tsmum3ajm6ylf782etfs60dj2h"
swap_adapter_path = "../artifacts/skip_api_swap_adapter_lido_satellite-aarch64.wasm"
swap_adapter_path = "../artifacts/skip_go_swap_adapter_lido_satellite-aarch64.wasm"

[[testnet_swap_venues]]
name = "testnet-neutron-drop"
drop_contract_address = "neutron13w6n6kj5pz59chgmeq63xeuy5y8shd2h9hkm2tvy5a35ugnuzzlsltznae"
swap_adapter_path = "../artifacts/skip_go_swap_adapter_drop-aarch64.wasm"
2 changes: 2 additions & 0 deletions scripts/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ def main():
}
if "lido_satellite_contract_address" in venue:
swap_adapter_instantiate_args["lido_satellite_contract_address"] = venue["lido_satellite_contract_address"]
if "drop_contract_address" in venue:
swap_adapter_instantiate_args["drop_factory_contract_address"] = venue["drop_factory_contract_address"]
if "hallswap_contract_address" in venue:
swap_adapter_instantiate_args["hallswap_contract_address"] = venue["hallswap_contract_address"]
if "dexter_vault_contract_address" in venue:
Expand Down

0 comments on commit 7c0559a

Please sign in to comment.