@agoric/cosmic-proto 0.4.1-dev-841f246.0 → 0.4.1-dev-203d4d7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/codegen/cosmos/authz/v1beta1/authz.d.ts +6 -5
- package/dist/codegen/cosmos/authz/v1beta1/authz.js +3 -0
- package/dist/codegen/cosmos/authz/v1beta1/authz.js.map +1 -1
- package/dist/codegen/cosmos/bundle.d.ts +1 -1
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/controller.d.ts +31 -0
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/controller.js +65 -0
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/controller.js.map +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/query.d.ts +95 -0
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/query.js +242 -0
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/query.js.map +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +108 -0
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.js +313 -0
- package/dist/codegen/ibc/applications/interchain_accounts/controller/v1/tx.js.map +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/genesis/v1/genesis.d.ts +150 -0
- package/dist/codegen/ibc/applications/interchain_accounts/genesis/v1/genesis.js +500 -0
- package/dist/codegen/ibc/applications/interchain_accounts/genesis/v1/genesis.js.map +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.d.ts +34 -0
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.js +82 -0
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/host.js.map +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/query.d.ts +47 -0
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/query.js +113 -0
- package/dist/codegen/ibc/applications/interchain_accounts/host/v1/query.js.map +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/account.d.ts +29 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/account.js +85 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/account.js.map +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/metadata.d.ts +49 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/metadata.js +118 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/metadata.js.map +1 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.d.ts +66 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.js +189 -0
- package/dist/codegen/ibc/applications/interchain_accounts/v1/packet.js.map +1 -0
- package/dist/codegen/ibc/applications/transfer/v1/authz.d.ts +67 -0
- package/dist/codegen/ibc/applications/transfer/v1/authz.js +177 -0
- package/dist/codegen/ibc/applications/transfer/v1/authz.js.map +1 -0
- package/dist/codegen/ibc/applications/transfer/v1/genesis.d.ts +29 -0
- package/dist/codegen/ibc/applications/transfer/v1/genesis.js +95 -0
- package/dist/codegen/ibc/applications/transfer/v1/genesis.js.map +1 -0
- package/dist/codegen/ibc/applications/transfer/v1/query.d.ts +282 -0
- package/dist/codegen/ibc/applications/transfer/v1/query.js +633 -0
- package/dist/codegen/ibc/applications/transfer/v1/query.js.map +1 -0
- package/dist/codegen/ibc/applications/transfer/v1/transfer.d.ts +80 -0
- package/dist/codegen/ibc/applications/transfer/v1/transfer.js +146 -0
- package/dist/codegen/ibc/applications/transfer/v1/transfer.js.map +1 -0
- package/dist/codegen/ibc/applications/transfer/v1/tx.d.ts +86 -0
- package/dist/codegen/ibc/applications/transfer/v1/tx.js +219 -0
- package/dist/codegen/ibc/applications/transfer/v1/tx.js.map +1 -0
- package/dist/codegen/ibc/applications/transfer/v2/packet.d.ts +45 -0
- package/dist/codegen/ibc/applications/transfer/v2/packet.js +102 -0
- package/dist/codegen/ibc/applications/transfer/v2/packet.js.map +1 -0
- package/dist/codegen/ibc/bundle.d.ts +2266 -122
- package/dist/codegen/ibc/bundle.js +124 -4
- package/dist/codegen/ibc/bundle.js.map +1 -1
- package/dist/codegen/ibc/core/channel/v1/genesis.d.ts +73 -0
- package/dist/codegen/ibc/core/channel/v1/genesis.js +280 -0
- package/dist/codegen/ibc/core/channel/v1/genesis.js.map +1 -0
- package/dist/codegen/ibc/core/channel/v1/query.d.ts +914 -0
- package/dist/codegen/ibc/core/channel/v1/query.js +2343 -0
- package/dist/codegen/ibc/core/channel/v1/query.js.map +1 -0
- package/dist/codegen/ibc/core/channel/v1/tx.d.ts +604 -0
- package/dist/codegen/ibc/core/channel/v1/tx.js +1744 -0
- package/dist/codegen/ibc/core/channel/v1/tx.js.map +1 -0
- package/dist/codegen/ibc/core/client/v1/genesis.d.ts +104 -0
- package/dist/codegen/ibc/core/client/v1/genesis.js +300 -0
- package/dist/codegen/ibc/core/client/v1/genesis.js.map +1 -0
- package/dist/codegen/ibc/core/client/v1/query.d.ts +577 -0
- package/dist/codegen/ibc/core/client/v1/query.js +1282 -0
- package/dist/codegen/ibc/core/client/v1/query.js.map +1 -0
- package/dist/codegen/ibc/core/client/v1/tx.d.ts +245 -0
- package/dist/codegen/ibc/core/client/v1/tx.js +586 -0
- package/dist/codegen/ibc/core/client/v1/tx.js.map +1 -0
- package/dist/codegen/ibc/core/commitment/v1/commitment.d.ts +128 -0
- package/dist/codegen/ibc/core/commitment/v1/commitment.js +258 -0
- package/dist/codegen/ibc/core/commitment/v1/commitment.js.map +1 -0
- package/dist/codegen/ibc/core/connection/v1/connection.d.ts +272 -0
- package/dist/codegen/ibc/core/connection/v1/connection.js +677 -0
- package/dist/codegen/ibc/core/connection/v1/connection.js.map +1 -0
- package/dist/codegen/ibc/core/connection/v1/genesis.d.ts +32 -0
- package/dist/codegen/ibc/core/connection/v1/genesis.js +121 -0
- package/dist/codegen/ibc/core/connection/v1/genesis.js.map +1 -0
- package/dist/codegen/ibc/core/connection/v1/query.d.ts +388 -0
- package/dist/codegen/ibc/core/connection/v1/query.js +951 -0
- package/dist/codegen/ibc/core/connection/v1/query.js.map +1 -0
- package/dist/codegen/ibc/core/connection/v1/tx.d.ts +286 -0
- package/dist/codegen/ibc/core/connection/v1/tx.js +842 -0
- package/dist/codegen/ibc/core/connection/v1/tx.js.map +1 -0
- package/dist/codegen/ibc/lightclients/localhost/v1/localhost.d.ts +35 -0
- package/dist/codegen/ibc/lightclients/localhost/v1/localhost.js +77 -0
- package/dist/codegen/ibc/lightclients/localhost/v1/localhost.js.map +1 -0
- package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.d.ts +549 -0
- package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.js +1519 -0
- package/dist/codegen/ibc/lightclients/solomachine/v1/solomachine.js.map +1 -0
- package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.d.ts +549 -0
- package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.js +1513 -0
- package/dist/codegen/ibc/lightclients/solomachine/v2/solomachine.js.map +1 -0
- package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.d.ts +231 -0
- package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.js +624 -0
- package/dist/codegen/ibc/lightclients/tendermint/v1/tendermint.js.map +1 -0
- package/dist/codegen/ics23/bundle.d.ts +154 -0
- package/dist/codegen/ics23/bundle.js +6 -0
- package/dist/codegen/ics23/bundle.js.map +1 -0
- package/dist/codegen/index.d.ts +1 -0
- package/dist/codegen/index.js +1 -0
- package/dist/codegen/index.js.map +1 -1
- package/dist/codegen/proofs.d.ts +569 -0
- package/dist/codegen/proofs.js +1435 -0
- package/dist/codegen/proofs.js.map +1 -0
- package/dist/codegen/tendermint/bundle.d.ts +716 -716
- package/dist/codegen/tendermint/bundle.js +22 -22
- package/dist/codegen/tendermint/bundle.js.map +1 -1
- package/package.json +7 -3
|
@@ -0,0 +1,951 @@
|
|
|
1
|
+
//@ts-nocheck
|
|
2
|
+
import { PageRequest, PageResponse, } from '../../../../cosmos/base/query/v1beta1/pagination.js';
|
|
3
|
+
import { ConnectionEnd, IdentifiedConnection, } from './connection.js';
|
|
4
|
+
import { Height, IdentifiedClientState, Params, } from '../../client/v1/client.js';
|
|
5
|
+
import { Any } from '../../../../google/protobuf/any.js';
|
|
6
|
+
import { BinaryReader, BinaryWriter } from '../../../../binary.js';
|
|
7
|
+
import { isSet, bytesFromBase64, base64FromBytes, } from '../../../../helpers.js';
|
|
8
|
+
function createBaseQueryConnectionRequest() {
|
|
9
|
+
return {
|
|
10
|
+
connectionId: '',
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
export const QueryConnectionRequest = {
|
|
14
|
+
typeUrl: '/ibc.core.connection.v1.QueryConnectionRequest',
|
|
15
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
16
|
+
if (message.connectionId !== '') {
|
|
17
|
+
writer.uint32(10).string(message.connectionId);
|
|
18
|
+
}
|
|
19
|
+
return writer;
|
|
20
|
+
},
|
|
21
|
+
decode(input, length) {
|
|
22
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
23
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
24
|
+
const message = createBaseQueryConnectionRequest();
|
|
25
|
+
while (reader.pos < end) {
|
|
26
|
+
const tag = reader.uint32();
|
|
27
|
+
switch (tag >>> 3) {
|
|
28
|
+
case 1:
|
|
29
|
+
message.connectionId = reader.string();
|
|
30
|
+
break;
|
|
31
|
+
default:
|
|
32
|
+
reader.skipType(tag & 7);
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return message;
|
|
37
|
+
},
|
|
38
|
+
fromJSON(object) {
|
|
39
|
+
return {
|
|
40
|
+
connectionId: isSet(object.connectionId)
|
|
41
|
+
? String(object.connectionId)
|
|
42
|
+
: '',
|
|
43
|
+
};
|
|
44
|
+
},
|
|
45
|
+
toJSON(message) {
|
|
46
|
+
const obj = {};
|
|
47
|
+
message.connectionId !== undefined &&
|
|
48
|
+
(obj.connectionId = message.connectionId);
|
|
49
|
+
return obj;
|
|
50
|
+
},
|
|
51
|
+
fromPartial(object) {
|
|
52
|
+
const message = createBaseQueryConnectionRequest();
|
|
53
|
+
message.connectionId = object.connectionId ?? '';
|
|
54
|
+
return message;
|
|
55
|
+
},
|
|
56
|
+
fromProtoMsg(message) {
|
|
57
|
+
return QueryConnectionRequest.decode(message.value);
|
|
58
|
+
},
|
|
59
|
+
toProto(message) {
|
|
60
|
+
return QueryConnectionRequest.encode(message).finish();
|
|
61
|
+
},
|
|
62
|
+
toProtoMsg(message) {
|
|
63
|
+
return {
|
|
64
|
+
typeUrl: '/ibc.core.connection.v1.QueryConnectionRequest',
|
|
65
|
+
value: QueryConnectionRequest.encode(message).finish(),
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
function createBaseQueryConnectionResponse() {
|
|
70
|
+
return {
|
|
71
|
+
connection: undefined,
|
|
72
|
+
proof: new Uint8Array(),
|
|
73
|
+
proofHeight: Height.fromPartial({}),
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
export const QueryConnectionResponse = {
|
|
77
|
+
typeUrl: '/ibc.core.connection.v1.QueryConnectionResponse',
|
|
78
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
79
|
+
if (message.connection !== undefined) {
|
|
80
|
+
ConnectionEnd.encode(message.connection, writer.uint32(10).fork()).ldelim();
|
|
81
|
+
}
|
|
82
|
+
if (message.proof.length !== 0) {
|
|
83
|
+
writer.uint32(18).bytes(message.proof);
|
|
84
|
+
}
|
|
85
|
+
if (message.proofHeight !== undefined) {
|
|
86
|
+
Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
|
|
87
|
+
}
|
|
88
|
+
return writer;
|
|
89
|
+
},
|
|
90
|
+
decode(input, length) {
|
|
91
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
92
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
93
|
+
const message = createBaseQueryConnectionResponse();
|
|
94
|
+
while (reader.pos < end) {
|
|
95
|
+
const tag = reader.uint32();
|
|
96
|
+
switch (tag >>> 3) {
|
|
97
|
+
case 1:
|
|
98
|
+
message.connection = ConnectionEnd.decode(reader, reader.uint32());
|
|
99
|
+
break;
|
|
100
|
+
case 2:
|
|
101
|
+
message.proof = reader.bytes();
|
|
102
|
+
break;
|
|
103
|
+
case 3:
|
|
104
|
+
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
105
|
+
break;
|
|
106
|
+
default:
|
|
107
|
+
reader.skipType(tag & 7);
|
|
108
|
+
break;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
return message;
|
|
112
|
+
},
|
|
113
|
+
fromJSON(object) {
|
|
114
|
+
return {
|
|
115
|
+
connection: isSet(object.connection)
|
|
116
|
+
? ConnectionEnd.fromJSON(object.connection)
|
|
117
|
+
: undefined,
|
|
118
|
+
proof: isSet(object.proof)
|
|
119
|
+
? bytesFromBase64(object.proof)
|
|
120
|
+
: new Uint8Array(),
|
|
121
|
+
proofHeight: isSet(object.proofHeight)
|
|
122
|
+
? Height.fromJSON(object.proofHeight)
|
|
123
|
+
: undefined,
|
|
124
|
+
};
|
|
125
|
+
},
|
|
126
|
+
toJSON(message) {
|
|
127
|
+
const obj = {};
|
|
128
|
+
message.connection !== undefined &&
|
|
129
|
+
(obj.connection = message.connection
|
|
130
|
+
? ConnectionEnd.toJSON(message.connection)
|
|
131
|
+
: undefined);
|
|
132
|
+
message.proof !== undefined &&
|
|
133
|
+
(obj.proof = base64FromBytes(message.proof !== undefined ? message.proof : new Uint8Array()));
|
|
134
|
+
message.proofHeight !== undefined &&
|
|
135
|
+
(obj.proofHeight = message.proofHeight
|
|
136
|
+
? Height.toJSON(message.proofHeight)
|
|
137
|
+
: undefined);
|
|
138
|
+
return obj;
|
|
139
|
+
},
|
|
140
|
+
fromPartial(object) {
|
|
141
|
+
const message = createBaseQueryConnectionResponse();
|
|
142
|
+
message.connection =
|
|
143
|
+
object.connection !== undefined && object.connection !== null
|
|
144
|
+
? ConnectionEnd.fromPartial(object.connection)
|
|
145
|
+
: undefined;
|
|
146
|
+
message.proof = object.proof ?? new Uint8Array();
|
|
147
|
+
message.proofHeight =
|
|
148
|
+
object.proofHeight !== undefined && object.proofHeight !== null
|
|
149
|
+
? Height.fromPartial(object.proofHeight)
|
|
150
|
+
: undefined;
|
|
151
|
+
return message;
|
|
152
|
+
},
|
|
153
|
+
fromProtoMsg(message) {
|
|
154
|
+
return QueryConnectionResponse.decode(message.value);
|
|
155
|
+
},
|
|
156
|
+
toProto(message) {
|
|
157
|
+
return QueryConnectionResponse.encode(message).finish();
|
|
158
|
+
},
|
|
159
|
+
toProtoMsg(message) {
|
|
160
|
+
return {
|
|
161
|
+
typeUrl: '/ibc.core.connection.v1.QueryConnectionResponse',
|
|
162
|
+
value: QueryConnectionResponse.encode(message).finish(),
|
|
163
|
+
};
|
|
164
|
+
},
|
|
165
|
+
};
|
|
166
|
+
function createBaseQueryConnectionsRequest() {
|
|
167
|
+
return {
|
|
168
|
+
pagination: undefined,
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
export const QueryConnectionsRequest = {
|
|
172
|
+
typeUrl: '/ibc.core.connection.v1.QueryConnectionsRequest',
|
|
173
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
174
|
+
if (message.pagination !== undefined) {
|
|
175
|
+
PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
176
|
+
}
|
|
177
|
+
return writer;
|
|
178
|
+
},
|
|
179
|
+
decode(input, length) {
|
|
180
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
181
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
182
|
+
const message = createBaseQueryConnectionsRequest();
|
|
183
|
+
while (reader.pos < end) {
|
|
184
|
+
const tag = reader.uint32();
|
|
185
|
+
switch (tag >>> 3) {
|
|
186
|
+
case 1:
|
|
187
|
+
message.pagination = PageRequest.decode(reader, reader.uint32());
|
|
188
|
+
break;
|
|
189
|
+
default:
|
|
190
|
+
reader.skipType(tag & 7);
|
|
191
|
+
break;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
return message;
|
|
195
|
+
},
|
|
196
|
+
fromJSON(object) {
|
|
197
|
+
return {
|
|
198
|
+
pagination: isSet(object.pagination)
|
|
199
|
+
? PageRequest.fromJSON(object.pagination)
|
|
200
|
+
: undefined,
|
|
201
|
+
};
|
|
202
|
+
},
|
|
203
|
+
toJSON(message) {
|
|
204
|
+
const obj = {};
|
|
205
|
+
message.pagination !== undefined &&
|
|
206
|
+
(obj.pagination = message.pagination
|
|
207
|
+
? PageRequest.toJSON(message.pagination)
|
|
208
|
+
: undefined);
|
|
209
|
+
return obj;
|
|
210
|
+
},
|
|
211
|
+
fromPartial(object) {
|
|
212
|
+
const message = createBaseQueryConnectionsRequest();
|
|
213
|
+
message.pagination =
|
|
214
|
+
object.pagination !== undefined && object.pagination !== null
|
|
215
|
+
? PageRequest.fromPartial(object.pagination)
|
|
216
|
+
: undefined;
|
|
217
|
+
return message;
|
|
218
|
+
},
|
|
219
|
+
fromProtoMsg(message) {
|
|
220
|
+
return QueryConnectionsRequest.decode(message.value);
|
|
221
|
+
},
|
|
222
|
+
toProto(message) {
|
|
223
|
+
return QueryConnectionsRequest.encode(message).finish();
|
|
224
|
+
},
|
|
225
|
+
toProtoMsg(message) {
|
|
226
|
+
return {
|
|
227
|
+
typeUrl: '/ibc.core.connection.v1.QueryConnectionsRequest',
|
|
228
|
+
value: QueryConnectionsRequest.encode(message).finish(),
|
|
229
|
+
};
|
|
230
|
+
},
|
|
231
|
+
};
|
|
232
|
+
function createBaseQueryConnectionsResponse() {
|
|
233
|
+
return {
|
|
234
|
+
connections: [],
|
|
235
|
+
pagination: undefined,
|
|
236
|
+
height: Height.fromPartial({}),
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
export const QueryConnectionsResponse = {
|
|
240
|
+
typeUrl: '/ibc.core.connection.v1.QueryConnectionsResponse',
|
|
241
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
242
|
+
for (const v of message.connections) {
|
|
243
|
+
IdentifiedConnection.encode(v, writer.uint32(10).fork()).ldelim();
|
|
244
|
+
}
|
|
245
|
+
if (message.pagination !== undefined) {
|
|
246
|
+
PageResponse.encode(message.pagination, writer.uint32(18).fork()).ldelim();
|
|
247
|
+
}
|
|
248
|
+
if (message.height !== undefined) {
|
|
249
|
+
Height.encode(message.height, writer.uint32(26).fork()).ldelim();
|
|
250
|
+
}
|
|
251
|
+
return writer;
|
|
252
|
+
},
|
|
253
|
+
decode(input, length) {
|
|
254
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
255
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
256
|
+
const message = createBaseQueryConnectionsResponse();
|
|
257
|
+
while (reader.pos < end) {
|
|
258
|
+
const tag = reader.uint32();
|
|
259
|
+
switch (tag >>> 3) {
|
|
260
|
+
case 1:
|
|
261
|
+
message.connections.push(IdentifiedConnection.decode(reader, reader.uint32()));
|
|
262
|
+
break;
|
|
263
|
+
case 2:
|
|
264
|
+
message.pagination = PageResponse.decode(reader, reader.uint32());
|
|
265
|
+
break;
|
|
266
|
+
case 3:
|
|
267
|
+
message.height = Height.decode(reader, reader.uint32());
|
|
268
|
+
break;
|
|
269
|
+
default:
|
|
270
|
+
reader.skipType(tag & 7);
|
|
271
|
+
break;
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
return message;
|
|
275
|
+
},
|
|
276
|
+
fromJSON(object) {
|
|
277
|
+
return {
|
|
278
|
+
connections: Array.isArray(object?.connections)
|
|
279
|
+
? object.connections.map((e) => IdentifiedConnection.fromJSON(e))
|
|
280
|
+
: [],
|
|
281
|
+
pagination: isSet(object.pagination)
|
|
282
|
+
? PageResponse.fromJSON(object.pagination)
|
|
283
|
+
: undefined,
|
|
284
|
+
height: isSet(object.height) ? Height.fromJSON(object.height) : undefined,
|
|
285
|
+
};
|
|
286
|
+
},
|
|
287
|
+
toJSON(message) {
|
|
288
|
+
const obj = {};
|
|
289
|
+
if (message.connections) {
|
|
290
|
+
obj.connections = message.connections.map(e => e ? IdentifiedConnection.toJSON(e) : undefined);
|
|
291
|
+
}
|
|
292
|
+
else {
|
|
293
|
+
obj.connections = [];
|
|
294
|
+
}
|
|
295
|
+
message.pagination !== undefined &&
|
|
296
|
+
(obj.pagination = message.pagination
|
|
297
|
+
? PageResponse.toJSON(message.pagination)
|
|
298
|
+
: undefined);
|
|
299
|
+
message.height !== undefined &&
|
|
300
|
+
(obj.height = message.height ? Height.toJSON(message.height) : undefined);
|
|
301
|
+
return obj;
|
|
302
|
+
},
|
|
303
|
+
fromPartial(object) {
|
|
304
|
+
const message = createBaseQueryConnectionsResponse();
|
|
305
|
+
message.connections =
|
|
306
|
+
object.connections?.map(e => IdentifiedConnection.fromPartial(e)) || [];
|
|
307
|
+
message.pagination =
|
|
308
|
+
object.pagination !== undefined && object.pagination !== null
|
|
309
|
+
? PageResponse.fromPartial(object.pagination)
|
|
310
|
+
: undefined;
|
|
311
|
+
message.height =
|
|
312
|
+
object.height !== undefined && object.height !== null
|
|
313
|
+
? Height.fromPartial(object.height)
|
|
314
|
+
: undefined;
|
|
315
|
+
return message;
|
|
316
|
+
},
|
|
317
|
+
fromProtoMsg(message) {
|
|
318
|
+
return QueryConnectionsResponse.decode(message.value);
|
|
319
|
+
},
|
|
320
|
+
toProto(message) {
|
|
321
|
+
return QueryConnectionsResponse.encode(message).finish();
|
|
322
|
+
},
|
|
323
|
+
toProtoMsg(message) {
|
|
324
|
+
return {
|
|
325
|
+
typeUrl: '/ibc.core.connection.v1.QueryConnectionsResponse',
|
|
326
|
+
value: QueryConnectionsResponse.encode(message).finish(),
|
|
327
|
+
};
|
|
328
|
+
},
|
|
329
|
+
};
|
|
330
|
+
function createBaseQueryClientConnectionsRequest() {
|
|
331
|
+
return {
|
|
332
|
+
clientId: '',
|
|
333
|
+
};
|
|
334
|
+
}
|
|
335
|
+
export const QueryClientConnectionsRequest = {
|
|
336
|
+
typeUrl: '/ibc.core.connection.v1.QueryClientConnectionsRequest',
|
|
337
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
338
|
+
if (message.clientId !== '') {
|
|
339
|
+
writer.uint32(10).string(message.clientId);
|
|
340
|
+
}
|
|
341
|
+
return writer;
|
|
342
|
+
},
|
|
343
|
+
decode(input, length) {
|
|
344
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
345
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
346
|
+
const message = createBaseQueryClientConnectionsRequest();
|
|
347
|
+
while (reader.pos < end) {
|
|
348
|
+
const tag = reader.uint32();
|
|
349
|
+
switch (tag >>> 3) {
|
|
350
|
+
case 1:
|
|
351
|
+
message.clientId = reader.string();
|
|
352
|
+
break;
|
|
353
|
+
default:
|
|
354
|
+
reader.skipType(tag & 7);
|
|
355
|
+
break;
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
return message;
|
|
359
|
+
},
|
|
360
|
+
fromJSON(object) {
|
|
361
|
+
return {
|
|
362
|
+
clientId: isSet(object.clientId) ? String(object.clientId) : '',
|
|
363
|
+
};
|
|
364
|
+
},
|
|
365
|
+
toJSON(message) {
|
|
366
|
+
const obj = {};
|
|
367
|
+
message.clientId !== undefined && (obj.clientId = message.clientId);
|
|
368
|
+
return obj;
|
|
369
|
+
},
|
|
370
|
+
fromPartial(object) {
|
|
371
|
+
const message = createBaseQueryClientConnectionsRequest();
|
|
372
|
+
message.clientId = object.clientId ?? '';
|
|
373
|
+
return message;
|
|
374
|
+
},
|
|
375
|
+
fromProtoMsg(message) {
|
|
376
|
+
return QueryClientConnectionsRequest.decode(message.value);
|
|
377
|
+
},
|
|
378
|
+
toProto(message) {
|
|
379
|
+
return QueryClientConnectionsRequest.encode(message).finish();
|
|
380
|
+
},
|
|
381
|
+
toProtoMsg(message) {
|
|
382
|
+
return {
|
|
383
|
+
typeUrl: '/ibc.core.connection.v1.QueryClientConnectionsRequest',
|
|
384
|
+
value: QueryClientConnectionsRequest.encode(message).finish(),
|
|
385
|
+
};
|
|
386
|
+
},
|
|
387
|
+
};
|
|
388
|
+
function createBaseQueryClientConnectionsResponse() {
|
|
389
|
+
return {
|
|
390
|
+
connectionPaths: [],
|
|
391
|
+
proof: new Uint8Array(),
|
|
392
|
+
proofHeight: Height.fromPartial({}),
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
export const QueryClientConnectionsResponse = {
|
|
396
|
+
typeUrl: '/ibc.core.connection.v1.QueryClientConnectionsResponse',
|
|
397
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
398
|
+
for (const v of message.connectionPaths) {
|
|
399
|
+
writer.uint32(10).string(v);
|
|
400
|
+
}
|
|
401
|
+
if (message.proof.length !== 0) {
|
|
402
|
+
writer.uint32(18).bytes(message.proof);
|
|
403
|
+
}
|
|
404
|
+
if (message.proofHeight !== undefined) {
|
|
405
|
+
Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
|
|
406
|
+
}
|
|
407
|
+
return writer;
|
|
408
|
+
},
|
|
409
|
+
decode(input, length) {
|
|
410
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
411
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
412
|
+
const message = createBaseQueryClientConnectionsResponse();
|
|
413
|
+
while (reader.pos < end) {
|
|
414
|
+
const tag = reader.uint32();
|
|
415
|
+
switch (tag >>> 3) {
|
|
416
|
+
case 1:
|
|
417
|
+
message.connectionPaths.push(reader.string());
|
|
418
|
+
break;
|
|
419
|
+
case 2:
|
|
420
|
+
message.proof = reader.bytes();
|
|
421
|
+
break;
|
|
422
|
+
case 3:
|
|
423
|
+
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
424
|
+
break;
|
|
425
|
+
default:
|
|
426
|
+
reader.skipType(tag & 7);
|
|
427
|
+
break;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
return message;
|
|
431
|
+
},
|
|
432
|
+
fromJSON(object) {
|
|
433
|
+
return {
|
|
434
|
+
connectionPaths: Array.isArray(object?.connectionPaths)
|
|
435
|
+
? object.connectionPaths.map((e) => String(e))
|
|
436
|
+
: [],
|
|
437
|
+
proof: isSet(object.proof)
|
|
438
|
+
? bytesFromBase64(object.proof)
|
|
439
|
+
: new Uint8Array(),
|
|
440
|
+
proofHeight: isSet(object.proofHeight)
|
|
441
|
+
? Height.fromJSON(object.proofHeight)
|
|
442
|
+
: undefined,
|
|
443
|
+
};
|
|
444
|
+
},
|
|
445
|
+
toJSON(message) {
|
|
446
|
+
const obj = {};
|
|
447
|
+
if (message.connectionPaths) {
|
|
448
|
+
obj.connectionPaths = message.connectionPaths.map(e => e);
|
|
449
|
+
}
|
|
450
|
+
else {
|
|
451
|
+
obj.connectionPaths = [];
|
|
452
|
+
}
|
|
453
|
+
message.proof !== undefined &&
|
|
454
|
+
(obj.proof = base64FromBytes(message.proof !== undefined ? message.proof : new Uint8Array()));
|
|
455
|
+
message.proofHeight !== undefined &&
|
|
456
|
+
(obj.proofHeight = message.proofHeight
|
|
457
|
+
? Height.toJSON(message.proofHeight)
|
|
458
|
+
: undefined);
|
|
459
|
+
return obj;
|
|
460
|
+
},
|
|
461
|
+
fromPartial(object) {
|
|
462
|
+
const message = createBaseQueryClientConnectionsResponse();
|
|
463
|
+
message.connectionPaths = object.connectionPaths?.map(e => e) || [];
|
|
464
|
+
message.proof = object.proof ?? new Uint8Array();
|
|
465
|
+
message.proofHeight =
|
|
466
|
+
object.proofHeight !== undefined && object.proofHeight !== null
|
|
467
|
+
? Height.fromPartial(object.proofHeight)
|
|
468
|
+
: undefined;
|
|
469
|
+
return message;
|
|
470
|
+
},
|
|
471
|
+
fromProtoMsg(message) {
|
|
472
|
+
return QueryClientConnectionsResponse.decode(message.value);
|
|
473
|
+
},
|
|
474
|
+
toProto(message) {
|
|
475
|
+
return QueryClientConnectionsResponse.encode(message).finish();
|
|
476
|
+
},
|
|
477
|
+
toProtoMsg(message) {
|
|
478
|
+
return {
|
|
479
|
+
typeUrl: '/ibc.core.connection.v1.QueryClientConnectionsResponse',
|
|
480
|
+
value: QueryClientConnectionsResponse.encode(message).finish(),
|
|
481
|
+
};
|
|
482
|
+
},
|
|
483
|
+
};
|
|
484
|
+
function createBaseQueryConnectionClientStateRequest() {
|
|
485
|
+
return {
|
|
486
|
+
connectionId: '',
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
export const QueryConnectionClientStateRequest = {
|
|
490
|
+
typeUrl: '/ibc.core.connection.v1.QueryConnectionClientStateRequest',
|
|
491
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
492
|
+
if (message.connectionId !== '') {
|
|
493
|
+
writer.uint32(10).string(message.connectionId);
|
|
494
|
+
}
|
|
495
|
+
return writer;
|
|
496
|
+
},
|
|
497
|
+
decode(input, length) {
|
|
498
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
499
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
500
|
+
const message = createBaseQueryConnectionClientStateRequest();
|
|
501
|
+
while (reader.pos < end) {
|
|
502
|
+
const tag = reader.uint32();
|
|
503
|
+
switch (tag >>> 3) {
|
|
504
|
+
case 1:
|
|
505
|
+
message.connectionId = reader.string();
|
|
506
|
+
break;
|
|
507
|
+
default:
|
|
508
|
+
reader.skipType(tag & 7);
|
|
509
|
+
break;
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
return message;
|
|
513
|
+
},
|
|
514
|
+
fromJSON(object) {
|
|
515
|
+
return {
|
|
516
|
+
connectionId: isSet(object.connectionId)
|
|
517
|
+
? String(object.connectionId)
|
|
518
|
+
: '',
|
|
519
|
+
};
|
|
520
|
+
},
|
|
521
|
+
toJSON(message) {
|
|
522
|
+
const obj = {};
|
|
523
|
+
message.connectionId !== undefined &&
|
|
524
|
+
(obj.connectionId = message.connectionId);
|
|
525
|
+
return obj;
|
|
526
|
+
},
|
|
527
|
+
fromPartial(object) {
|
|
528
|
+
const message = createBaseQueryConnectionClientStateRequest();
|
|
529
|
+
message.connectionId = object.connectionId ?? '';
|
|
530
|
+
return message;
|
|
531
|
+
},
|
|
532
|
+
fromProtoMsg(message) {
|
|
533
|
+
return QueryConnectionClientStateRequest.decode(message.value);
|
|
534
|
+
},
|
|
535
|
+
toProto(message) {
|
|
536
|
+
return QueryConnectionClientStateRequest.encode(message).finish();
|
|
537
|
+
},
|
|
538
|
+
toProtoMsg(message) {
|
|
539
|
+
return {
|
|
540
|
+
typeUrl: '/ibc.core.connection.v1.QueryConnectionClientStateRequest',
|
|
541
|
+
value: QueryConnectionClientStateRequest.encode(message).finish(),
|
|
542
|
+
};
|
|
543
|
+
},
|
|
544
|
+
};
|
|
545
|
+
function createBaseQueryConnectionClientStateResponse() {
|
|
546
|
+
return {
|
|
547
|
+
identifiedClientState: undefined,
|
|
548
|
+
proof: new Uint8Array(),
|
|
549
|
+
proofHeight: Height.fromPartial({}),
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
export const QueryConnectionClientStateResponse = {
|
|
553
|
+
typeUrl: '/ibc.core.connection.v1.QueryConnectionClientStateResponse',
|
|
554
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
555
|
+
if (message.identifiedClientState !== undefined) {
|
|
556
|
+
IdentifiedClientState.encode(message.identifiedClientState, writer.uint32(10).fork()).ldelim();
|
|
557
|
+
}
|
|
558
|
+
if (message.proof.length !== 0) {
|
|
559
|
+
writer.uint32(18).bytes(message.proof);
|
|
560
|
+
}
|
|
561
|
+
if (message.proofHeight !== undefined) {
|
|
562
|
+
Height.encode(message.proofHeight, writer.uint32(26).fork()).ldelim();
|
|
563
|
+
}
|
|
564
|
+
return writer;
|
|
565
|
+
},
|
|
566
|
+
decode(input, length) {
|
|
567
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
568
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
569
|
+
const message = createBaseQueryConnectionClientStateResponse();
|
|
570
|
+
while (reader.pos < end) {
|
|
571
|
+
const tag = reader.uint32();
|
|
572
|
+
switch (tag >>> 3) {
|
|
573
|
+
case 1:
|
|
574
|
+
message.identifiedClientState = IdentifiedClientState.decode(reader, reader.uint32());
|
|
575
|
+
break;
|
|
576
|
+
case 2:
|
|
577
|
+
message.proof = reader.bytes();
|
|
578
|
+
break;
|
|
579
|
+
case 3:
|
|
580
|
+
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
581
|
+
break;
|
|
582
|
+
default:
|
|
583
|
+
reader.skipType(tag & 7);
|
|
584
|
+
break;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
return message;
|
|
588
|
+
},
|
|
589
|
+
fromJSON(object) {
|
|
590
|
+
return {
|
|
591
|
+
identifiedClientState: isSet(object.identifiedClientState)
|
|
592
|
+
? IdentifiedClientState.fromJSON(object.identifiedClientState)
|
|
593
|
+
: undefined,
|
|
594
|
+
proof: isSet(object.proof)
|
|
595
|
+
? bytesFromBase64(object.proof)
|
|
596
|
+
: new Uint8Array(),
|
|
597
|
+
proofHeight: isSet(object.proofHeight)
|
|
598
|
+
? Height.fromJSON(object.proofHeight)
|
|
599
|
+
: undefined,
|
|
600
|
+
};
|
|
601
|
+
},
|
|
602
|
+
toJSON(message) {
|
|
603
|
+
const obj = {};
|
|
604
|
+
message.identifiedClientState !== undefined &&
|
|
605
|
+
(obj.identifiedClientState = message.identifiedClientState
|
|
606
|
+
? IdentifiedClientState.toJSON(message.identifiedClientState)
|
|
607
|
+
: undefined);
|
|
608
|
+
message.proof !== undefined &&
|
|
609
|
+
(obj.proof = base64FromBytes(message.proof !== undefined ? message.proof : new Uint8Array()));
|
|
610
|
+
message.proofHeight !== undefined &&
|
|
611
|
+
(obj.proofHeight = message.proofHeight
|
|
612
|
+
? Height.toJSON(message.proofHeight)
|
|
613
|
+
: undefined);
|
|
614
|
+
return obj;
|
|
615
|
+
},
|
|
616
|
+
fromPartial(object) {
|
|
617
|
+
const message = createBaseQueryConnectionClientStateResponse();
|
|
618
|
+
message.identifiedClientState =
|
|
619
|
+
object.identifiedClientState !== undefined &&
|
|
620
|
+
object.identifiedClientState !== null
|
|
621
|
+
? IdentifiedClientState.fromPartial(object.identifiedClientState)
|
|
622
|
+
: undefined;
|
|
623
|
+
message.proof = object.proof ?? new Uint8Array();
|
|
624
|
+
message.proofHeight =
|
|
625
|
+
object.proofHeight !== undefined && object.proofHeight !== null
|
|
626
|
+
? Height.fromPartial(object.proofHeight)
|
|
627
|
+
: undefined;
|
|
628
|
+
return message;
|
|
629
|
+
},
|
|
630
|
+
fromProtoMsg(message) {
|
|
631
|
+
return QueryConnectionClientStateResponse.decode(message.value);
|
|
632
|
+
},
|
|
633
|
+
toProto(message) {
|
|
634
|
+
return QueryConnectionClientStateResponse.encode(message).finish();
|
|
635
|
+
},
|
|
636
|
+
toProtoMsg(message) {
|
|
637
|
+
return {
|
|
638
|
+
typeUrl: '/ibc.core.connection.v1.QueryConnectionClientStateResponse',
|
|
639
|
+
value: QueryConnectionClientStateResponse.encode(message).finish(),
|
|
640
|
+
};
|
|
641
|
+
},
|
|
642
|
+
};
|
|
643
|
+
function createBaseQueryConnectionConsensusStateRequest() {
|
|
644
|
+
return {
|
|
645
|
+
connectionId: '',
|
|
646
|
+
revisionNumber: BigInt(0),
|
|
647
|
+
revisionHeight: BigInt(0),
|
|
648
|
+
};
|
|
649
|
+
}
|
|
650
|
+
export const QueryConnectionConsensusStateRequest = {
|
|
651
|
+
typeUrl: '/ibc.core.connection.v1.QueryConnectionConsensusStateRequest',
|
|
652
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
653
|
+
if (message.connectionId !== '') {
|
|
654
|
+
writer.uint32(10).string(message.connectionId);
|
|
655
|
+
}
|
|
656
|
+
if (message.revisionNumber !== BigInt(0)) {
|
|
657
|
+
writer.uint32(16).uint64(message.revisionNumber);
|
|
658
|
+
}
|
|
659
|
+
if (message.revisionHeight !== BigInt(0)) {
|
|
660
|
+
writer.uint32(24).uint64(message.revisionHeight);
|
|
661
|
+
}
|
|
662
|
+
return writer;
|
|
663
|
+
},
|
|
664
|
+
decode(input, length) {
|
|
665
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
666
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
667
|
+
const message = createBaseQueryConnectionConsensusStateRequest();
|
|
668
|
+
while (reader.pos < end) {
|
|
669
|
+
const tag = reader.uint32();
|
|
670
|
+
switch (tag >>> 3) {
|
|
671
|
+
case 1:
|
|
672
|
+
message.connectionId = reader.string();
|
|
673
|
+
break;
|
|
674
|
+
case 2:
|
|
675
|
+
message.revisionNumber = reader.uint64();
|
|
676
|
+
break;
|
|
677
|
+
case 3:
|
|
678
|
+
message.revisionHeight = reader.uint64();
|
|
679
|
+
break;
|
|
680
|
+
default:
|
|
681
|
+
reader.skipType(tag & 7);
|
|
682
|
+
break;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
return message;
|
|
686
|
+
},
|
|
687
|
+
fromJSON(object) {
|
|
688
|
+
return {
|
|
689
|
+
connectionId: isSet(object.connectionId)
|
|
690
|
+
? String(object.connectionId)
|
|
691
|
+
: '',
|
|
692
|
+
revisionNumber: isSet(object.revisionNumber)
|
|
693
|
+
? BigInt(object.revisionNumber.toString())
|
|
694
|
+
: BigInt(0),
|
|
695
|
+
revisionHeight: isSet(object.revisionHeight)
|
|
696
|
+
? BigInt(object.revisionHeight.toString())
|
|
697
|
+
: BigInt(0),
|
|
698
|
+
};
|
|
699
|
+
},
|
|
700
|
+
toJSON(message) {
|
|
701
|
+
const obj = {};
|
|
702
|
+
message.connectionId !== undefined &&
|
|
703
|
+
(obj.connectionId = message.connectionId);
|
|
704
|
+
message.revisionNumber !== undefined &&
|
|
705
|
+
(obj.revisionNumber = (message.revisionNumber || BigInt(0)).toString());
|
|
706
|
+
message.revisionHeight !== undefined &&
|
|
707
|
+
(obj.revisionHeight = (message.revisionHeight || BigInt(0)).toString());
|
|
708
|
+
return obj;
|
|
709
|
+
},
|
|
710
|
+
fromPartial(object) {
|
|
711
|
+
const message = createBaseQueryConnectionConsensusStateRequest();
|
|
712
|
+
message.connectionId = object.connectionId ?? '';
|
|
713
|
+
message.revisionNumber =
|
|
714
|
+
object.revisionNumber !== undefined && object.revisionNumber !== null
|
|
715
|
+
? BigInt(object.revisionNumber.toString())
|
|
716
|
+
: BigInt(0);
|
|
717
|
+
message.revisionHeight =
|
|
718
|
+
object.revisionHeight !== undefined && object.revisionHeight !== null
|
|
719
|
+
? BigInt(object.revisionHeight.toString())
|
|
720
|
+
: BigInt(0);
|
|
721
|
+
return message;
|
|
722
|
+
},
|
|
723
|
+
fromProtoMsg(message) {
|
|
724
|
+
return QueryConnectionConsensusStateRequest.decode(message.value);
|
|
725
|
+
},
|
|
726
|
+
toProto(message) {
|
|
727
|
+
return QueryConnectionConsensusStateRequest.encode(message).finish();
|
|
728
|
+
},
|
|
729
|
+
toProtoMsg(message) {
|
|
730
|
+
return {
|
|
731
|
+
typeUrl: '/ibc.core.connection.v1.QueryConnectionConsensusStateRequest',
|
|
732
|
+
value: QueryConnectionConsensusStateRequest.encode(message).finish(),
|
|
733
|
+
};
|
|
734
|
+
},
|
|
735
|
+
};
|
|
736
|
+
function createBaseQueryConnectionConsensusStateResponse() {
|
|
737
|
+
return {
|
|
738
|
+
consensusState: undefined,
|
|
739
|
+
clientId: '',
|
|
740
|
+
proof: new Uint8Array(),
|
|
741
|
+
proofHeight: Height.fromPartial({}),
|
|
742
|
+
};
|
|
743
|
+
}
|
|
744
|
+
export const QueryConnectionConsensusStateResponse = {
|
|
745
|
+
typeUrl: '/ibc.core.connection.v1.QueryConnectionConsensusStateResponse',
|
|
746
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
747
|
+
if (message.consensusState !== undefined) {
|
|
748
|
+
Any.encode(message.consensusState, writer.uint32(10).fork()).ldelim();
|
|
749
|
+
}
|
|
750
|
+
if (message.clientId !== '') {
|
|
751
|
+
writer.uint32(18).string(message.clientId);
|
|
752
|
+
}
|
|
753
|
+
if (message.proof.length !== 0) {
|
|
754
|
+
writer.uint32(26).bytes(message.proof);
|
|
755
|
+
}
|
|
756
|
+
if (message.proofHeight !== undefined) {
|
|
757
|
+
Height.encode(message.proofHeight, writer.uint32(34).fork()).ldelim();
|
|
758
|
+
}
|
|
759
|
+
return writer;
|
|
760
|
+
},
|
|
761
|
+
decode(input, length) {
|
|
762
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
763
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
764
|
+
const message = createBaseQueryConnectionConsensusStateResponse();
|
|
765
|
+
while (reader.pos < end) {
|
|
766
|
+
const tag = reader.uint32();
|
|
767
|
+
switch (tag >>> 3) {
|
|
768
|
+
case 1:
|
|
769
|
+
message.consensusState = Any.decode(reader, reader.uint32());
|
|
770
|
+
break;
|
|
771
|
+
case 2:
|
|
772
|
+
message.clientId = reader.string();
|
|
773
|
+
break;
|
|
774
|
+
case 3:
|
|
775
|
+
message.proof = reader.bytes();
|
|
776
|
+
break;
|
|
777
|
+
case 4:
|
|
778
|
+
message.proofHeight = Height.decode(reader, reader.uint32());
|
|
779
|
+
break;
|
|
780
|
+
default:
|
|
781
|
+
reader.skipType(tag & 7);
|
|
782
|
+
break;
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
return message;
|
|
786
|
+
},
|
|
787
|
+
fromJSON(object) {
|
|
788
|
+
return {
|
|
789
|
+
consensusState: isSet(object.consensusState)
|
|
790
|
+
? Any.fromJSON(object.consensusState)
|
|
791
|
+
: undefined,
|
|
792
|
+
clientId: isSet(object.clientId) ? String(object.clientId) : '',
|
|
793
|
+
proof: isSet(object.proof)
|
|
794
|
+
? bytesFromBase64(object.proof)
|
|
795
|
+
: new Uint8Array(),
|
|
796
|
+
proofHeight: isSet(object.proofHeight)
|
|
797
|
+
? Height.fromJSON(object.proofHeight)
|
|
798
|
+
: undefined,
|
|
799
|
+
};
|
|
800
|
+
},
|
|
801
|
+
toJSON(message) {
|
|
802
|
+
const obj = {};
|
|
803
|
+
message.consensusState !== undefined &&
|
|
804
|
+
(obj.consensusState = message.consensusState
|
|
805
|
+
? Any.toJSON(message.consensusState)
|
|
806
|
+
: undefined);
|
|
807
|
+
message.clientId !== undefined && (obj.clientId = message.clientId);
|
|
808
|
+
message.proof !== undefined &&
|
|
809
|
+
(obj.proof = base64FromBytes(message.proof !== undefined ? message.proof : new Uint8Array()));
|
|
810
|
+
message.proofHeight !== undefined &&
|
|
811
|
+
(obj.proofHeight = message.proofHeight
|
|
812
|
+
? Height.toJSON(message.proofHeight)
|
|
813
|
+
: undefined);
|
|
814
|
+
return obj;
|
|
815
|
+
},
|
|
816
|
+
fromPartial(object) {
|
|
817
|
+
const message = createBaseQueryConnectionConsensusStateResponse();
|
|
818
|
+
message.consensusState =
|
|
819
|
+
object.consensusState !== undefined && object.consensusState !== null
|
|
820
|
+
? Any.fromPartial(object.consensusState)
|
|
821
|
+
: undefined;
|
|
822
|
+
message.clientId = object.clientId ?? '';
|
|
823
|
+
message.proof = object.proof ?? new Uint8Array();
|
|
824
|
+
message.proofHeight =
|
|
825
|
+
object.proofHeight !== undefined && object.proofHeight !== null
|
|
826
|
+
? Height.fromPartial(object.proofHeight)
|
|
827
|
+
: undefined;
|
|
828
|
+
return message;
|
|
829
|
+
},
|
|
830
|
+
fromProtoMsg(message) {
|
|
831
|
+
return QueryConnectionConsensusStateResponse.decode(message.value);
|
|
832
|
+
},
|
|
833
|
+
toProto(message) {
|
|
834
|
+
return QueryConnectionConsensusStateResponse.encode(message).finish();
|
|
835
|
+
},
|
|
836
|
+
toProtoMsg(message) {
|
|
837
|
+
return {
|
|
838
|
+
typeUrl: '/ibc.core.connection.v1.QueryConnectionConsensusStateResponse',
|
|
839
|
+
value: QueryConnectionConsensusStateResponse.encode(message).finish(),
|
|
840
|
+
};
|
|
841
|
+
},
|
|
842
|
+
};
|
|
843
|
+
function createBaseQueryConnectionParamsRequest() {
|
|
844
|
+
return {};
|
|
845
|
+
}
|
|
846
|
+
export const QueryConnectionParamsRequest = {
|
|
847
|
+
typeUrl: '/ibc.core.connection.v1.QueryConnectionParamsRequest',
|
|
848
|
+
encode(_, writer = BinaryWriter.create()) {
|
|
849
|
+
return writer;
|
|
850
|
+
},
|
|
851
|
+
decode(input, length) {
|
|
852
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
853
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
854
|
+
const message = createBaseQueryConnectionParamsRequest();
|
|
855
|
+
while (reader.pos < end) {
|
|
856
|
+
const tag = reader.uint32();
|
|
857
|
+
switch (tag >>> 3) {
|
|
858
|
+
default:
|
|
859
|
+
reader.skipType(tag & 7);
|
|
860
|
+
break;
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
return message;
|
|
864
|
+
},
|
|
865
|
+
fromJSON(_) {
|
|
866
|
+
return {};
|
|
867
|
+
},
|
|
868
|
+
toJSON(_) {
|
|
869
|
+
const obj = {};
|
|
870
|
+
return obj;
|
|
871
|
+
},
|
|
872
|
+
fromPartial(_) {
|
|
873
|
+
const message = createBaseQueryConnectionParamsRequest();
|
|
874
|
+
return message;
|
|
875
|
+
},
|
|
876
|
+
fromProtoMsg(message) {
|
|
877
|
+
return QueryConnectionParamsRequest.decode(message.value);
|
|
878
|
+
},
|
|
879
|
+
toProto(message) {
|
|
880
|
+
return QueryConnectionParamsRequest.encode(message).finish();
|
|
881
|
+
},
|
|
882
|
+
toProtoMsg(message) {
|
|
883
|
+
return {
|
|
884
|
+
typeUrl: '/ibc.core.connection.v1.QueryConnectionParamsRequest',
|
|
885
|
+
value: QueryConnectionParamsRequest.encode(message).finish(),
|
|
886
|
+
};
|
|
887
|
+
},
|
|
888
|
+
};
|
|
889
|
+
function createBaseQueryConnectionParamsResponse() {
|
|
890
|
+
return {
|
|
891
|
+
params: undefined,
|
|
892
|
+
};
|
|
893
|
+
}
|
|
894
|
+
export const QueryConnectionParamsResponse = {
|
|
895
|
+
typeUrl: '/ibc.core.connection.v1.QueryConnectionParamsResponse',
|
|
896
|
+
encode(message, writer = BinaryWriter.create()) {
|
|
897
|
+
if (message.params !== undefined) {
|
|
898
|
+
Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
899
|
+
}
|
|
900
|
+
return writer;
|
|
901
|
+
},
|
|
902
|
+
decode(input, length) {
|
|
903
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
904
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
905
|
+
const message = createBaseQueryConnectionParamsResponse();
|
|
906
|
+
while (reader.pos < end) {
|
|
907
|
+
const tag = reader.uint32();
|
|
908
|
+
switch (tag >>> 3) {
|
|
909
|
+
case 1:
|
|
910
|
+
message.params = Params.decode(reader, reader.uint32());
|
|
911
|
+
break;
|
|
912
|
+
default:
|
|
913
|
+
reader.skipType(tag & 7);
|
|
914
|
+
break;
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
return message;
|
|
918
|
+
},
|
|
919
|
+
fromJSON(object) {
|
|
920
|
+
return {
|
|
921
|
+
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
922
|
+
};
|
|
923
|
+
},
|
|
924
|
+
toJSON(message) {
|
|
925
|
+
const obj = {};
|
|
926
|
+
message.params !== undefined &&
|
|
927
|
+
(obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
928
|
+
return obj;
|
|
929
|
+
},
|
|
930
|
+
fromPartial(object) {
|
|
931
|
+
const message = createBaseQueryConnectionParamsResponse();
|
|
932
|
+
message.params =
|
|
933
|
+
object.params !== undefined && object.params !== null
|
|
934
|
+
? Params.fromPartial(object.params)
|
|
935
|
+
: undefined;
|
|
936
|
+
return message;
|
|
937
|
+
},
|
|
938
|
+
fromProtoMsg(message) {
|
|
939
|
+
return QueryConnectionParamsResponse.decode(message.value);
|
|
940
|
+
},
|
|
941
|
+
toProto(message) {
|
|
942
|
+
return QueryConnectionParamsResponse.encode(message).finish();
|
|
943
|
+
},
|
|
944
|
+
toProtoMsg(message) {
|
|
945
|
+
return {
|
|
946
|
+
typeUrl: '/ibc.core.connection.v1.QueryConnectionParamsResponse',
|
|
947
|
+
value: QueryConnectionParamsResponse.encode(message).finish(),
|
|
948
|
+
};
|
|
949
|
+
},
|
|
950
|
+
};
|
|
951
|
+
//# sourceMappingURL=query.js.map
|