-
Notifications
You must be signed in to change notification settings - Fork 637
/
Copy pathtx.proto
80 lines (60 loc) · 2.72 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
syntax = "proto3";
package ibc.applications.interchain_accounts.controller.v1;
option go_package = "github.com/cosmos/ibc-go/v8/modules/apps/27-interchain-accounts/controller/types";
import "gogoproto/gogo.proto";
import "ibc/applications/interchain_accounts/v1/packet.proto";
import "ibc/applications/interchain_accounts/controller/v1/controller.proto";
import "cosmos/msg/v1/msg.proto";
// Msg defines the 27-interchain-accounts/controller Msg service.
service Msg {
option (cosmos.msg.v1.service) = true;
// RegisterInterchainAccount defines a rpc handler for MsgRegisterInterchainAccount.
rpc RegisterInterchainAccount(MsgRegisterInterchainAccount) returns (MsgRegisterInterchainAccountResponse);
// SendTx defines a rpc handler for MsgSendTx.
rpc SendTx(MsgSendTx) returns (MsgSendTxResponse);
// UpdateParams defines a rpc handler for MsgUpdateParams.
rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse);
}
// MsgRegisterInterchainAccount defines the payload for Msg/RegisterAccount
message MsgRegisterInterchainAccount {
option (cosmos.msg.v1.signer) = "owner";
option (gogoproto.goproto_getters) = false;
string owner = 1;
string connection_id = 2;
string version = 3;
}
// MsgRegisterInterchainAccountResponse defines the response for Msg/RegisterAccount
message MsgRegisterInterchainAccountResponse {
option (gogoproto.goproto_getters) = false;
string channel_id = 1;
string port_id = 2;
}
// MsgSendTx defines the payload for Msg/SendTx
message MsgSendTx {
option (cosmos.msg.v1.signer) = "owner";
option (gogoproto.goproto_getters) = false;
string owner = 1;
string connection_id = 2;
ibc.applications.interchain_accounts.v1.InterchainAccountPacketData packet_data = 3 [(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;
}
// MsgSendTxResponse defines the response for MsgSendTx
message MsgSendTxResponse {
option (gogoproto.goproto_getters) = false;
uint64 sequence = 1;
}
// MsgUpdateParams defines the payload for Msg/UpdateParams
message MsgUpdateParams {
option (cosmos.msg.v1.signer) = "signer";
option (gogoproto.goproto_getters) = false;
// signer address
string signer = 1;
// params defines the 27-interchain-accounts/controller parameters to update.
//
// NOTE: All parameters must be supplied.
Params params = 2 [(gogoproto.nullable) = false];
}
// MsgUpdateParamsResponse defines the response for Msg/UpdateParams
message MsgUpdateParamsResponse {}