-
Notifications
You must be signed in to change notification settings - Fork 619
/
transfer.proto
35 lines (29 loc) · 1.14 KB
/
transfer.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
syntax = "proto3";
package ibc.applications.transfer.v1;
import "gogoproto/gogo.proto";
option go_package = "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types";
// Params defines the set of IBC transfer parameters.
// NOTE: To prevent a single token from being transferred, set the
// TransfersEnabled parameter to true and then set the bank module's SendEnabled
// parameter for the denomination to false.
message Params {
// send_enabled enables or disables all cross-chain token transfers from this
// chain.
bool send_enabled = 1;
// receive_enabled enables or disables all cross-chain token transfers to this
// chain.
bool receive_enabled = 2;
}
// ForwardingInfo defines a list of port ID, channel ID pairs determining the path
// through which a packet must be forwarded, and the memo string to be used in the
// final destination of the tokens.
message ForwardingInfo {
repeated Hop hops = 1 [(gogoproto.nullable) = false];
string memo = 2;
}
// Hop defines a port ID, channel ID pair specifying where tokens must be forwarded
// next in a multihop transfer.
message Hop {
string port_id = 1;
string channel_id = 2;
}