Skip to content

Commit

Permalink
support hallswap adapter in inj script
Browse files Browse the repository at this point in the history
  • Loading branch information
NotJeremyLiu committed Apr 29, 2024
1 parent 5a1931b commit 717f774
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/deploy_injective.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,14 +118,17 @@ async def main() -> None:
}

for venue in SWAP_VENUES:
args = {"entry_point_contract_address": ENTRY_POINT_PRE_GENERATED_ADDRESS}
if "hallswap_contract_address" in venue:
args["hallswap_contract_address"] = venue["hallswap_contract_address"]
swap_adapter_contract_address = await instantiate_contract(
client,
composer,
priv_key,
pub_key,
address,
code_id=venue["code_id"],
args={"entry_point_contract_address": ENTRY_POINT_PRE_GENERATED_ADDRESS},
args=args,
label=f"Skip Swap Swap Adapter {venue['name']}",
name=f"swap_adapter_{venue['name']}"
)
Expand Down

0 comments on commit 717f774

Please sign in to comment.