github.com/okex/exchain@v1.8.0/libs/ibc-go/proto/ibc/applications/transfer/v1/tx.proto (about) 1 syntax = "proto3"; 2 3 package ibc.applications.transfer.v1; 4 5 option go_package = "github.com/cosmos/ibc-go/v2/modules/apps/transfer/types"; 6 7 import "gogoproto/gogo.proto"; 8 import "cosmos/base/v1beta1/coin.proto"; 9 import "ibc/core/client/v1/client.proto"; 10 11 // Msg defines the ibc/transfer Msg service. 12 service Msg { 13 // Transfer defines a rpc handler method for MsgTransfer. 14 rpc Transfer(MsgTransfer) returns (MsgTransferResponse); 15 } 16 17 // MsgTransfer defines a msg to transfer fungible tokens (i.e Coins) between 18 // ICS20 enabled chains. See ICS Spec here: 19 // https://github.com/cosmos/ibc/tree/master/spec/app/ics-020-fungible-token-transfer#data-structures 20 message MsgTransfer { 21 option (gogoproto.equal) = false; 22 option (gogoproto.goproto_getters) = false; 23 24 // the port on which the packet will be sent 25 string source_port = 1 [(gogoproto.moretags) = "yaml:\"source_port\""]; 26 // the channel by which the packet will be sent 27 string source_channel = 2 [(gogoproto.moretags) = "yaml:\"source_channel\""]; 28 // the tokens to be transferred 29 cosmos.base.v1beta1.Coin token = 3 [(gogoproto.nullable) = false]; 30 // the sender address 31 string sender = 4; 32 // the recipient address on the destination chain 33 string receiver = 5; 34 // Timeout height relative to the current block height. 35 // The timeout is disabled when set to 0. 36 ibc.core.client.v1.Height timeout_height = 6 37 [(gogoproto.moretags) = "yaml:\"timeout_height\"", (gogoproto.nullable) = false]; 38 // Timeout timestamp (in nanoseconds) relative to the current block timestamp. 39 // The timeout is disabled when set to 0. 40 uint64 timeout_timestamp = 7 [(gogoproto.moretags) = "yaml:\"timeout_timestamp\""]; 41 } 42 43 // MsgTransferResponse defines the Msg/Transfer response type. 44 message MsgTransferResponse {}