-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
- Loading branch information
Showing
12 changed files
with
10,375 additions
and
9,893 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
syntax = "proto3"; | ||
package ibc.applications.transfer.v1; | ||
|
||
option go_package = "github.com/cosmos/cosmos-sdk/x/ibc/applications/transfer/types"; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "cosmos/base/v1beta1/coin.proto"; | ||
import "ibc/core/client/v1/client.proto"; | ||
|
||
// Msg defines the ibc/transfer Msg service. | ||
service Msg { | ||
// Transfer defines a rpc handler method for MsgTransfer. | ||
rpc Transfer(MsgTransfer) returns (MsgTransferResponse); | ||
} | ||
|
||
// MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between | ||
// ICS20 enabled chains. See ICS Spec here: | ||
// https://github.com/cosmos/ics/tree/master/spec/ics-020-fungible-token-transfer#data-structures | ||
message MsgTransfer { | ||
option (gogoproto.equal) = false; | ||
option (gogoproto.goproto_getters) = false; | ||
|
||
// the port on which the packet will be sent | ||
string source_port = 1 [(gogoproto.moretags) = "yaml:\"source_port\""]; | ||
// the channel by which the packet will be sent | ||
string source_channel = 2 [(gogoproto.moretags) = "yaml:\"source_channel\""]; | ||
// the tokens to be transferred | ||
cosmos.base.v1beta1.Coin token = 3 [(gogoproto.nullable) = false]; | ||
// the sender address | ||
string sender = 4; | ||
// the recipient address on the destination chain | ||
string receiver = 5; | ||
// Timeout height relative to the current block height. | ||
// The timeout is disabled when set to 0. | ||
ibc.core.client.v1.Height timeout_height = 6 | ||
[(gogoproto.moretags) = "yaml:\"timeout_height\"", (gogoproto.nullable) = false]; | ||
// Timeout timestamp (in nanoseconds) relative to the current block timestamp. | ||
// The timeout is disabled when set to 0. | ||
uint64 timeout_timestamp = 7 [(gogoproto.moretags) = "yaml:\"timeout_timestamp\""]; | ||
} | ||
|
||
// MsgTransferResponse defines the Msg/Transfer response type. | ||
message MsgTransferResponse { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.