-
Notifications
You must be signed in to change notification settings - Fork 597
/
tx.proto
50 lines (40 loc) · 1.99 KB
/
tx.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
syntax = "proto3";
package ibc.applications.interchain_accounts.controller.v1;
option go_package = "github.com/cosmos/ibc-go/v6/modules/apps/27-interchain-accounts/controller/types";
import "gogoproto/gogo.proto";
import "ibc/applications/interchain_accounts/v1/packet.proto";
// Msg defines the 27-interchain-accounts/controller Msg service.
service Msg {
// RegisterInterchainAccount defines a rpc handler for MsgRegisterInterchainAccount.
rpc RegisterInterchainAccount(MsgRegisterInterchainAccount) returns (MsgRegisterInterchainAccountResponse);
// SendTx defines a rpc handler for MsgSendTx.
rpc SendTx(MsgSendTx) returns (MsgSendTxResponse);
}
// MsgRegisterInterchainAccount defines the payload for Msg/MsgRegisterInterchainAccount
message MsgRegisterInterchainAccount {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
string owner = 1;
string connection_id = 2 [(gogoproto.moretags) = "yaml:\"connection_id\""];
string version = 3;
}
// MsgRegisterInterchainAccountResponse defines the response for Msg/MsgRegisterInterchainAccountResponse
message MsgRegisterInterchainAccountResponse {
string channel_id = 1 [(gogoproto.moretags) = "yaml:\"channel_id\""];
}
// MsgSendTx defines the payload for Msg/SendTx
message MsgSendTx {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
string owner = 1;
string connection_id = 2 [(gogoproto.moretags) = "yaml:\"connection_id\""];
ibc.applications.interchain_accounts.v1.InterchainAccountPacketData packet_data = 3
[(gogoproto.moretags) = "yaml:\"packet_data\"", (gogoproto.nullable) = false];
// Relative timeout timestamp provided will be added to the current block time during transaction execution.
// The timeout timestamp must be non-zero.
uint64 relative_timeout = 4 [(gogoproto.moretags) = "yaml:\"relative_timeout\""];
}
// MsgSendTxResponse defines the response for MsgSendTx
message MsgSendTxResponse {
uint64 sequence = 1;
}