-
Notifications
You must be signed in to change notification settings - Fork 589
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crosschain Swaps contracts and tests #3698
Conversation
Store the swaprouter code: | ||
|
||
``` sh | ||
> osmosisd-testnet tx wasm store ./bytecode/swaprouter.wasm --from owner --gas auto --gas-prices 0.1uosmo --gas-adjustment 1.3 -y |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note to self: I have better commands for this now. Cleanup and add the script I'm using to test this on the localrelayer tests.
pub const SWAP_REPLY_ID: u64 = 1u64; | ||
pub const FORWARD_REPLY_ID: u64 = 2u64; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
had to use a crate to get the value when passing it as a param, but it now is:
use enum_repr::EnumRepr;
// Msg Reply IDs
#[EnumRepr(type = "u64")]
pub enum MsgReplyID {
Swap = 1,
Forward = 2,
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Down to merge to main and review more after merge
Co-authored-by: Dev Ojha <ValarDragon@users.noreply.github.com>
Closes: #XXX
What is the purpose of the change
Introduces the crosschain swaps contracts and tests.
Note: This currently includes the changes from #3589 and should be merged after that.
Brief Changelog
Testing and Verifying
Documentation and Release Note
Unreleased
section inCHANGELOG.md
? (no)