-
Notifications
You must be signed in to change notification settings - Fork 332
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
send packet transfer CLI #495
Conversation
…s into anca/stargate_five
…ms/ibc-rs into anca/stargate_five
…ms/ibc-rs into anca/stargate_five
…ms/ibc-rs into anca/stargate_five
Codecov Report
@@ Coverage Diff @@
## master #495 +/- ##
=========================================
+ Coverage 13.6% 29.6% +15.9%
=========================================
Files 69 160 +91
Lines 3752 12814 +9062
Branches 1374 5018 +3644
=========================================
+ Hits 513 3800 +3287
- Misses 2618 8323 +5705
- Partials 621 691 +70
Continue to review full report at Codecov.
|
/// the channel by which the packet will be sent | ||
pub source_channel: ChannelId, | ||
/// the tokens to be transferred | ||
pub token: Option<ibc_proto::cosmos::base::v1beta1::Coin>, |
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.
At some point (perhaps in a later PR), we should define this Coin
type as a domain type (ie. an instance of the Protobuf
trait) rather than rely on the protobuf definition directly.
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.
Done with reading the code. Just had 1 comment.
Still trying out the CLI...
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.
Aside from minor comments (all of which can be fixed later), looks good!
* Move ics20 in application * Add send packet cli
Closes: #470
Description
Added the CLI. For example:
tx raw packet-send ibc-0 ibc-1 transfer channel-0 9999 111 -n 3
Initiates three
9999
samoleans
ics-20 transfer messages onibc-0
to be eventually sent toibc-1
, onchannel-0
with timeout height offset of111
.The CLI doesn't use the runtime as we need it to work concurrently with a running relayer (using instead the
CosmosSDKChain::bootstrap()
)The
ics20-fungible-token-transfer
is moved under theapplication
module.For contributor use:
docs/
) and code comments.Files changed
in the Github PR explorer.