juno-network 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/main/codegen/confio/proofs.js +100 -315
- package/main/codegen/cosmos/authz/v1beta1/authz.js +5 -63
- package/main/codegen/cosmos/authz/v1beta1/event.js +12 -42
- package/main/codegen/cosmos/authz/v1beta1/genesis.js +0 -20
- package/main/codegen/cosmos/authz/v1beta1/query.js +6 -114
- package/main/codegen/cosmos/authz/v1beta1/query.lcd.js +14 -26
- package/main/codegen/cosmos/authz/v1beta1/query.rpc.query.js +22 -2
- package/main/codegen/cosmos/authz/v1beta1/tx.js +6 -92
- package/main/codegen/cosmos/bank/v1beta1/authz.js +5 -25
- package/main/codegen/cosmos/bank/v1beta1/bank.js +20 -178
- package/main/codegen/cosmos/bank/v1beta1/genesis.js +5 -73
- package/main/codegen/cosmos/bank/v1beta1/query.js +5 -264
- package/main/codegen/cosmos/bank/v1beta1/query.lcd.js +24 -30
- package/main/codegen/cosmos/bank/v1beta1/query.rpc.query.js +53 -5
- package/main/codegen/cosmos/bank/v1beta1/tx.amino.js +6 -6
- package/main/codegen/cosmos/bank/v1beta1/tx.js +11 -82
- package/main/codegen/cosmos/bank/v1beta1/tx.registry.js +0 -28
- package/main/codegen/cosmos/base/abci/v1beta1/abci.js +68 -312
- package/main/codegen/cosmos/base/query/v1beta1/pagination.js +12 -42
- package/main/codegen/cosmos/base/reflection/v2alpha1/reflection.js +65 -418
- package/main/codegen/cosmos/base/v1beta1/coin.js +0 -46
- package/main/codegen/cosmos/bundle.js +101 -401
- package/main/codegen/cosmos/client.js +2 -34
- package/main/codegen/cosmos/crypto/ed25519/keys.js +0 -22
- package/main/codegen/cosmos/crypto/hd/v1/hd.js +11 -31
- package/main/codegen/cosmos/crypto/keyring/v1/record.js +16 -74
- package/main/codegen/cosmos/crypto/multisig/keys.js +5 -29
- package/main/codegen/cosmos/crypto/multisig/v1beta1/multisig.js +6 -40
- package/main/codegen/cosmos/crypto/secp256k1/keys.js +0 -22
- package/main/codegen/cosmos/crypto/secp256r1/keys.js +0 -22
- package/main/codegen/cosmos/distribution/v1beta1/distribution.js +57 -289
- package/main/codegen/cosmos/distribution/v1beta1/genesis.js +105 -300
- package/main/codegen/cosmos/distribution/v1beta1/query.js +63 -308
- package/main/codegen/cosmos/distribution/v1beta1/query.lcd.js +35 -41
- package/main/codegen/cosmos/distribution/v1beta1/query.rpc.query.js +46 -4
- package/main/codegen/cosmos/distribution/v1beta1/tx.amino.js +15 -15
- package/main/codegen/cosmos/distribution/v1beta1/tx.js +28 -140
- package/main/codegen/cosmos/distribution/v1beta1/tx.registry.js +0 -52
- package/main/codegen/cosmos/gov/v1/genesis.js +20 -70
- package/main/codegen/cosmos/gov/v1/gov.js +113 -256
- package/main/codegen/cosmos/gov/v1/query.js +57 -271
- package/main/codegen/cosmos/gov/v1/query.lcd.js +31 -38
- package/main/codegen/cosmos/gov/v1/query.rpc.query.js +37 -2
- package/main/codegen/cosmos/gov/v1/tx.amino.js +16 -16
- package/main/codegen/cosmos/gov/v1/tx.js +25 -176
- package/main/codegen/cosmos/gov/v1/tx.registry.js +0 -64
- package/main/codegen/cosmos/gov/v1beta1/genesis.js +20 -70
- package/main/codegen/cosmos/gov/v1beta1/gov.js +103 -246
- package/main/codegen/cosmos/gov/v1beta1/query.js +57 -271
- package/main/codegen/cosmos/gov/v1beta1/query.lcd.js +31 -38
- package/main/codegen/cosmos/gov/v1beta1/query.rpc.query.js +37 -2
- package/main/codegen/cosmos/gov/v1beta1/tx.amino.js +14 -14
- package/main/codegen/cosmos/gov/v1beta1/tx.js +25 -142
- package/main/codegen/cosmos/gov/v1beta1/tx.registry.js +0 -52
- package/main/codegen/cosmos/lcd.js +65 -198
- package/main/codegen/cosmos/rpc.query.js +58 -197
- package/main/codegen/cosmos/rpc.tx.js +31 -122
- package/main/codegen/cosmos/staking/v1beta1/authz.js +38 -59
- package/main/codegen/cosmos/staking/v1beta1/genesis.js +14 -96
- package/main/codegen/cosmos/staking/v1beta1/query.js +115 -497
- package/main/codegen/cosmos/staking/v1beta1/query.lcd.js +48 -49
- package/main/codegen/cosmos/staking/v1beta1/query.rpc.query.js +61 -4
- package/main/codegen/cosmos/staking/v1beta1/staking.js +222 -565
- package/main/codegen/cosmos/staking/v1beta1/tx.amino.js +47 -47
- package/main/codegen/cosmos/staking/v1beta1/tx.js +82 -205
- package/main/codegen/cosmos/staking/v1beta1/tx.registry.js +0 -64
- package/main/codegen/cosmos/tx/signing/v1beta1/signing.js +29 -86
- package/main/codegen/cosmos/tx/v1beta1/service.js +69 -207
- package/main/codegen/cosmos/tx/v1beta1/service.lcd.js +14 -26
- package/main/codegen/cosmos/tx/v1beta1/service.rpc.svc.js +33 -7
- package/main/codegen/cosmos/tx/v1beta1/tx.js +102 -381
- package/main/codegen/cosmos/upgrade/v1beta1/query.js +22 -126
- package/main/codegen/cosmos/upgrade/v1beta1/query.lcd.js +19 -29
- package/main/codegen/cosmos/upgrade/v1beta1/query.rpc.query.js +34 -4
- package/main/codegen/cosmos/upgrade/v1beta1/tx.amino.js +4 -4
- package/main/codegen/cosmos/upgrade/v1beta1/tx.js +0 -38
- package/main/codegen/cosmos/upgrade/v1beta1/tx.registry.js +0 -28
- package/main/codegen/cosmos/upgrade/v1beta1/upgrade.js +5 -61
- package/main/codegen/cosmos_proto/cosmos.js +17 -45
- package/main/codegen/cosmwasm/bundle.js +16 -16
- package/main/codegen/cosmwasm/lcd.js +76 -209
- package/main/codegen/cosmwasm/rpc.query.js +66 -207
- package/main/codegen/cosmwasm/rpc.tx.js +41 -132
- package/main/codegen/cosmwasm/wasm/v1/genesis.js +57 -178
- package/main/codegen/cosmwasm/wasm/v1/ibc.js +10 -36
- package/main/codegen/cosmwasm/wasm/v1/proposal.js +56 -250
- package/main/codegen/cosmwasm/wasm/v1/query.js +54 -322
- package/main/codegen/cosmwasm/wasm/v1/query.lcd.js +28 -34
- package/main/codegen/cosmwasm/wasm/v1/query.rpc.query.js +50 -4
- package/main/codegen/cosmwasm/wasm/v1/tx.amino.js +16 -16
- package/main/codegen/cosmwasm/wasm/v1/tx.js +32 -200
- package/main/codegen/cosmwasm/wasm/v1/tx.registry.js +0 -76
- package/main/codegen/cosmwasm/wasm/v1/types.js +80 -166
- package/main/codegen/gogoproto/bundle.js +2 -2
- package/main/codegen/google/bundle.js +9 -15
- package/main/codegen/google/protobuf/any.js +6 -20
- package/main/codegen/google/protobuf/descriptor.js +407 -1134
- package/main/codegen/google/protobuf/duration.js +0 -12
- package/main/codegen/google/protobuf/empty.js +0 -7
- package/main/codegen/google/protobuf/field_mask.js +0 -20
- package/main/codegen/google/protobuf/struct.js +51 -118
- package/main/codegen/google/protobuf/timestamp.js +0 -12
- package/main/codegen/google/protobuf/wrappers.js +0 -90
- package/main/codegen/ibc/applications/transfer/v1/genesis.js +10 -36
- package/main/codegen/ibc/applications/transfer/v1/query.js +10 -81
- package/main/codegen/ibc/applications/transfer/v1/query.lcd.js +12 -24
- package/main/codegen/ibc/applications/transfer/v1/query.rpc.query.js +30 -4
- package/main/codegen/ibc/applications/transfer/v1/transfer.js +17 -43
- package/main/codegen/ibc/applications/transfer/v1/tx.amino.js +14 -14
- package/main/codegen/ibc/applications/transfer/v1/tx.js +21 -50
- package/main/codegen/ibc/applications/transfer/v1/tx.registry.js +0 -16
- package/main/codegen/ibc/applications/transfer/v2/packet.js +0 -18
- package/main/codegen/ibc/bundle.js +56 -74
- package/main/codegen/ibc/core/channel/v1/channel.js +103 -198
- package/main/codegen/ibc/core/channel/v1/genesis.js +29 -131
- package/main/codegen/ibc/core/channel/v1/query.js +202 -646
- package/main/codegen/ibc/core/channel/v1/query.lcd.js +45 -47
- package/main/codegen/ibc/core/channel/v1/query.rpc.query.js +57 -3
- package/main/codegen/ibc/core/channel/v1/tx.amino.js +183 -183
- package/main/codegen/ibc/core/channel/v1/tx.js +175 -425
- package/main/codegen/ibc/core/channel/v1/tx.registry.js +0 -124
- package/main/codegen/ibc/core/client/v1/client.js +57 -167
- package/main/codegen/ibc/core/client/v1/genesis.js +29 -111
- package/main/codegen/ibc/core/client/v1/query.js +79 -270
- package/main/codegen/ibc/core/client/v1/query.lcd.js +28 -35
- package/main/codegen/ibc/core/client/v1/query.rpc.query.js +51 -6
- package/main/codegen/ibc/core/client/v1/tx.amino.js +39 -39
- package/main/codegen/ibc/core/client/v1/tx.js +48 -140
- package/main/codegen/ibc/core/client/v1/tx.registry.js +0 -52
- package/main/codegen/ibc/core/commitment/v1/commitment.js +11 -73
- package/main/codegen/ibc/core/connection/v1/connection.js +61 -191
- package/main/codegen/ibc/core/connection/v1/genesis.js +10 -45
- package/main/codegen/ibc/core/connection/v1/query.js +75 -221
- package/main/codegen/ibc/core/connection/v1/query.lcd.js +20 -30
- package/main/codegen/ibc/core/connection/v1/query.rpc.query.js +33 -3
- package/main/codegen/ibc/core/connection/v1/tx.amino.js +95 -95
- package/main/codegen/ibc/core/connection/v1/tx.js +118 -250
- package/main/codegen/ibc/core/connection/v1/tx.registry.js +0 -52
- package/main/codegen/ibc/lcd.js +107 -240
- package/main/codegen/ibc/lightclients/localhost/v1/localhost.js +6 -20
- package/main/codegen/ibc/lightclients/solomachine/v1/solomachine.js +115 -309
- package/main/codegen/ibc/lightclients/solomachine/v2/solomachine.js +115 -309
- package/main/codegen/ibc/lightclients/tendermint/v1/tendermint.js +86 -191
- package/main/codegen/ibc/rpc.query.js +88 -248
- package/main/codegen/ibc/rpc.tx.js +69 -160
- package/main/codegen/juno/bundle.js +9 -9
- package/main/codegen/juno/lcd.js +74 -207
- package/main/codegen/juno/mint/genesis.js +0 -14
- package/main/codegen/juno/mint/mint.js +22 -50
- package/main/codegen/juno/mint/query.js +6 -59
- package/main/codegen/juno/mint/query.lcd.js +12 -24
- package/main/codegen/juno/mint/query.rpc.query.js +31 -5
- package/main/codegen/juno/rpc.query.js +64 -205
- package/main/codegen/tendermint/abci/types.js +296 -1020
- package/main/codegen/tendermint/bundle.js +17 -17
- package/main/codegen/tendermint/crypto/keys.js +0 -14
- package/main/codegen/tendermint/crypto/proof.js +6 -92
- package/main/codegen/tendermint/libs/bits/types.js +0 -22
- package/main/codegen/tendermint/p2p/types.js +53 -143
- package/main/codegen/tendermint/types/block.js +5 -23
- package/main/codegen/tendermint/types/evidence.js +50 -128
- package/main/codegen/tendermint/types/params.js +51 -137
- package/main/codegen/tendermint/types/types.js +162 -372
- package/main/codegen/tendermint/types/validator.js +30 -82
- package/main/codegen/tendermint/version/types.js +0 -24
- package/main/index.js +1 -5
- package/package.json +5 -5
@@ -62,16 +62,6 @@ var QueryContractInfoRequest = {
|
|
62
62
|
|
63
63
|
return message;
|
64
64
|
},
|
65
|
-
fromJSON: function fromJSON(object) {
|
66
|
-
return {
|
67
|
-
address: (0, _helpers.isSet)(object.address) ? String(object.address) : ""
|
68
|
-
};
|
69
|
-
},
|
70
|
-
toJSON: function toJSON(message) {
|
71
|
-
var obj = {};
|
72
|
-
message.address !== undefined && (obj.address = message.address);
|
73
|
-
return obj;
|
74
|
-
},
|
75
65
|
fromPartial: function fromPartial(object) {
|
76
66
|
var _object$address;
|
77
67
|
|
@@ -85,7 +75,7 @@ exports.QueryContractInfoRequest = QueryContractInfoRequest;
|
|
85
75
|
function createBaseQueryContractInfoResponse() {
|
86
76
|
return {
|
87
77
|
address: "",
|
88
|
-
|
78
|
+
contractInfo: undefined
|
89
79
|
};
|
90
80
|
}
|
91
81
|
|
@@ -97,8 +87,8 @@ var QueryContractInfoResponse = {
|
|
97
87
|
writer.uint32(10).string(message.address);
|
98
88
|
}
|
99
89
|
|
100
|
-
if (message.
|
101
|
-
_types.ContractInfo.encode(message.
|
90
|
+
if (message.contractInfo !== undefined) {
|
91
|
+
_types.ContractInfo.encode(message.contractInfo, writer.uint32(18).fork()).ldelim();
|
102
92
|
}
|
103
93
|
|
104
94
|
return writer;
|
@@ -117,7 +107,7 @@ var QueryContractInfoResponse = {
|
|
117
107
|
break;
|
118
108
|
|
119
109
|
case 2:
|
120
|
-
message.
|
110
|
+
message.contractInfo = _types.ContractInfo.decode(reader, reader.uint32());
|
121
111
|
break;
|
122
112
|
|
123
113
|
default:
|
@@ -128,24 +118,12 @@ var QueryContractInfoResponse = {
|
|
128
118
|
|
129
119
|
return message;
|
130
120
|
},
|
131
|
-
fromJSON: function fromJSON(object) {
|
132
|
-
return {
|
133
|
-
address: (0, _helpers.isSet)(object.address) ? String(object.address) : "",
|
134
|
-
contract_info: (0, _helpers.isSet)(object.contract_info) ? _types.ContractInfo.fromJSON(object.contract_info) : undefined
|
135
|
-
};
|
136
|
-
},
|
137
|
-
toJSON: function toJSON(message) {
|
138
|
-
var obj = {};
|
139
|
-
message.address !== undefined && (obj.address = message.address);
|
140
|
-
message.contract_info !== undefined && (obj.contract_info = message.contract_info ? _types.ContractInfo.toJSON(message.contract_info) : undefined);
|
141
|
-
return obj;
|
142
|
-
},
|
143
121
|
fromPartial: function fromPartial(object) {
|
144
122
|
var _object$address2;
|
145
123
|
|
146
124
|
var message = createBaseQueryContractInfoResponse();
|
147
125
|
message.address = (_object$address2 = object.address) !== null && _object$address2 !== void 0 ? _object$address2 : "";
|
148
|
-
message.
|
126
|
+
message.contractInfo = object.contractInfo !== undefined && object.contractInfo !== null ? _types.ContractInfo.fromPartial(object.contractInfo) : undefined;
|
149
127
|
return message;
|
150
128
|
}
|
151
129
|
};
|
@@ -197,18 +175,6 @@ var QueryContractHistoryRequest = {
|
|
197
175
|
|
198
176
|
return message;
|
199
177
|
},
|
200
|
-
fromJSON: function fromJSON(object) {
|
201
|
-
return {
|
202
|
-
address: (0, _helpers.isSet)(object.address) ? String(object.address) : "",
|
203
|
-
pagination: (0, _helpers.isSet)(object.pagination) ? _pagination.PageRequest.fromJSON(object.pagination) : undefined
|
204
|
-
};
|
205
|
-
},
|
206
|
-
toJSON: function toJSON(message) {
|
207
|
-
var obj = {};
|
208
|
-
message.address !== undefined && (obj.address = message.address);
|
209
|
-
message.pagination !== undefined && (obj.pagination = message.pagination ? _pagination.PageRequest.toJSON(message.pagination) : undefined);
|
210
|
-
return obj;
|
211
|
-
},
|
212
178
|
fromPartial: function fromPartial(object) {
|
213
179
|
var _object$address3;
|
214
180
|
|
@@ -277,28 +243,6 @@ var QueryContractHistoryResponse = {
|
|
277
243
|
|
278
244
|
return message;
|
279
245
|
},
|
280
|
-
fromJSON: function fromJSON(object) {
|
281
|
-
return {
|
282
|
-
entries: Array.isArray(object === null || object === void 0 ? void 0 : object.entries) ? object.entries.map(function (e) {
|
283
|
-
return _types.ContractCodeHistoryEntry.fromJSON(e);
|
284
|
-
}) : [],
|
285
|
-
pagination: (0, _helpers.isSet)(object.pagination) ? _pagination.PageResponse.fromJSON(object.pagination) : undefined
|
286
|
-
};
|
287
|
-
},
|
288
|
-
toJSON: function toJSON(message) {
|
289
|
-
var obj = {};
|
290
|
-
|
291
|
-
if (message.entries) {
|
292
|
-
obj.entries = message.entries.map(function (e) {
|
293
|
-
return e ? _types.ContractCodeHistoryEntry.toJSON(e) : undefined;
|
294
|
-
});
|
295
|
-
} else {
|
296
|
-
obj.entries = [];
|
297
|
-
}
|
298
|
-
|
299
|
-
message.pagination !== undefined && (obj.pagination = message.pagination ? _pagination.PageResponse.toJSON(message.pagination) : undefined);
|
300
|
-
return obj;
|
301
|
-
},
|
302
246
|
fromPartial: function fromPartial(object) {
|
303
247
|
var _object$entries;
|
304
248
|
|
@@ -314,7 +258,7 @@ exports.QueryContractHistoryResponse = QueryContractHistoryResponse;
|
|
314
258
|
|
315
259
|
function createBaseQueryContractsByCodeRequest() {
|
316
260
|
return {
|
317
|
-
|
261
|
+
codeId: _helpers.Long.UZERO,
|
318
262
|
pagination: undefined
|
319
263
|
};
|
320
264
|
}
|
@@ -323,8 +267,8 @@ var QueryContractsByCodeRequest = {
|
|
323
267
|
encode: function encode(message) {
|
324
268
|
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _m0.Writer.create();
|
325
269
|
|
326
|
-
if (!message.
|
327
|
-
writer.uint32(8).uint64(message.
|
270
|
+
if (!message.codeId.isZero()) {
|
271
|
+
writer.uint32(8).uint64(message.codeId);
|
328
272
|
}
|
329
273
|
|
330
274
|
if (message.pagination !== undefined) {
|
@@ -343,7 +287,7 @@ var QueryContractsByCodeRequest = {
|
|
343
287
|
|
344
288
|
switch (tag >>> 3) {
|
345
289
|
case 1:
|
346
|
-
message.
|
290
|
+
message.codeId = reader.uint64();
|
347
291
|
break;
|
348
292
|
|
349
293
|
case 2:
|
@@ -358,21 +302,9 @@ var QueryContractsByCodeRequest = {
|
|
358
302
|
|
359
303
|
return message;
|
360
304
|
},
|
361
|
-
fromJSON: function fromJSON(object) {
|
362
|
-
return {
|
363
|
-
code_id: (0, _helpers.isSet)(object.code_id) ? _helpers.Long.fromString(object.code_id) : _helpers.Long.UZERO,
|
364
|
-
pagination: (0, _helpers.isSet)(object.pagination) ? _pagination.PageRequest.fromJSON(object.pagination) : undefined
|
365
|
-
};
|
366
|
-
},
|
367
|
-
toJSON: function toJSON(message) {
|
368
|
-
var obj = {};
|
369
|
-
message.code_id !== undefined && (obj.code_id = (message.code_id || _helpers.Long.UZERO).toString());
|
370
|
-
message.pagination !== undefined && (obj.pagination = message.pagination ? _pagination.PageRequest.toJSON(message.pagination) : undefined);
|
371
|
-
return obj;
|
372
|
-
},
|
373
305
|
fromPartial: function fromPartial(object) {
|
374
306
|
var message = createBaseQueryContractsByCodeRequest();
|
375
|
-
message.
|
307
|
+
message.codeId = object.codeId !== undefined && object.codeId !== null ? _helpers.Long.fromValue(object.codeId) : _helpers.Long.UZERO;
|
376
308
|
message.pagination = object.pagination !== undefined && object.pagination !== null ? _pagination.PageRequest.fromPartial(object.pagination) : undefined;
|
377
309
|
return message;
|
378
310
|
}
|
@@ -435,28 +367,6 @@ var QueryContractsByCodeResponse = {
|
|
435
367
|
|
436
368
|
return message;
|
437
369
|
},
|
438
|
-
fromJSON: function fromJSON(object) {
|
439
|
-
return {
|
440
|
-
contracts: Array.isArray(object === null || object === void 0 ? void 0 : object.contracts) ? object.contracts.map(function (e) {
|
441
|
-
return String(e);
|
442
|
-
}) : [],
|
443
|
-
pagination: (0, _helpers.isSet)(object.pagination) ? _pagination.PageResponse.fromJSON(object.pagination) : undefined
|
444
|
-
};
|
445
|
-
},
|
446
|
-
toJSON: function toJSON(message) {
|
447
|
-
var obj = {};
|
448
|
-
|
449
|
-
if (message.contracts) {
|
450
|
-
obj.contracts = message.contracts.map(function (e) {
|
451
|
-
return e;
|
452
|
-
});
|
453
|
-
} else {
|
454
|
-
obj.contracts = [];
|
455
|
-
}
|
456
|
-
|
457
|
-
message.pagination !== undefined && (obj.pagination = message.pagination ? _pagination.PageResponse.toJSON(message.pagination) : undefined);
|
458
|
-
return obj;
|
459
|
-
},
|
460
370
|
fromPartial: function fromPartial(object) {
|
461
371
|
var _object$contracts;
|
462
372
|
|
@@ -516,18 +426,6 @@ var QueryAllContractStateRequest = {
|
|
516
426
|
|
517
427
|
return message;
|
518
428
|
},
|
519
|
-
fromJSON: function fromJSON(object) {
|
520
|
-
return {
|
521
|
-
address: (0, _helpers.isSet)(object.address) ? String(object.address) : "",
|
522
|
-
pagination: (0, _helpers.isSet)(object.pagination) ? _pagination.PageRequest.fromJSON(object.pagination) : undefined
|
523
|
-
};
|
524
|
-
},
|
525
|
-
toJSON: function toJSON(message) {
|
526
|
-
var obj = {};
|
527
|
-
message.address !== undefined && (obj.address = message.address);
|
528
|
-
message.pagination !== undefined && (obj.pagination = message.pagination ? _pagination.PageRequest.toJSON(message.pagination) : undefined);
|
529
|
-
return obj;
|
530
|
-
},
|
531
429
|
fromPartial: function fromPartial(object) {
|
532
430
|
var _object$address4;
|
533
431
|
|
@@ -596,28 +494,6 @@ var QueryAllContractStateResponse = {
|
|
596
494
|
|
597
495
|
return message;
|
598
496
|
},
|
599
|
-
fromJSON: function fromJSON(object) {
|
600
|
-
return {
|
601
|
-
models: Array.isArray(object === null || object === void 0 ? void 0 : object.models) ? object.models.map(function (e) {
|
602
|
-
return _types.Model.fromJSON(e);
|
603
|
-
}) : [],
|
604
|
-
pagination: (0, _helpers.isSet)(object.pagination) ? _pagination.PageResponse.fromJSON(object.pagination) : undefined
|
605
|
-
};
|
606
|
-
},
|
607
|
-
toJSON: function toJSON(message) {
|
608
|
-
var obj = {};
|
609
|
-
|
610
|
-
if (message.models) {
|
611
|
-
obj.models = message.models.map(function (e) {
|
612
|
-
return e ? _types.Model.toJSON(e) : undefined;
|
613
|
-
});
|
614
|
-
} else {
|
615
|
-
obj.models = [];
|
616
|
-
}
|
617
|
-
|
618
|
-
message.pagination !== undefined && (obj.pagination = message.pagination ? _pagination.PageResponse.toJSON(message.pagination) : undefined);
|
619
|
-
return obj;
|
620
|
-
},
|
621
497
|
fromPartial: function fromPartial(object) {
|
622
498
|
var _object$models;
|
623
499
|
|
@@ -634,7 +510,7 @@ exports.QueryAllContractStateResponse = QueryAllContractStateResponse;
|
|
634
510
|
function createBaseQueryRawContractStateRequest() {
|
635
511
|
return {
|
636
512
|
address: "",
|
637
|
-
|
513
|
+
queryData: new Uint8Array()
|
638
514
|
};
|
639
515
|
}
|
640
516
|
|
@@ -646,8 +522,8 @@ var QueryRawContractStateRequest = {
|
|
646
522
|
writer.uint32(10).string(message.address);
|
647
523
|
}
|
648
524
|
|
649
|
-
if (message.
|
650
|
-
writer.uint32(18).bytes(message.
|
525
|
+
if (message.queryData.length !== 0) {
|
526
|
+
writer.uint32(18).bytes(message.queryData);
|
651
527
|
}
|
652
528
|
|
653
529
|
return writer;
|
@@ -666,7 +542,7 @@ var QueryRawContractStateRequest = {
|
|
666
542
|
break;
|
667
543
|
|
668
544
|
case 2:
|
669
|
-
message.
|
545
|
+
message.queryData = reader.bytes();
|
670
546
|
break;
|
671
547
|
|
672
548
|
default:
|
@@ -677,24 +553,12 @@ var QueryRawContractStateRequest = {
|
|
677
553
|
|
678
554
|
return message;
|
679
555
|
},
|
680
|
-
fromJSON: function fromJSON(object) {
|
681
|
-
return {
|
682
|
-
address: (0, _helpers.isSet)(object.address) ? String(object.address) : "",
|
683
|
-
query_data: (0, _helpers.isSet)(object.query_data) ? (0, _helpers.bytesFromBase64)(object.query_data) : new Uint8Array()
|
684
|
-
};
|
685
|
-
},
|
686
|
-
toJSON: function toJSON(message) {
|
687
|
-
var obj = {};
|
688
|
-
message.address !== undefined && (obj.address = message.address);
|
689
|
-
message.query_data !== undefined && (obj.query_data = (0, _helpers.base64FromBytes)(message.query_data !== undefined ? message.query_data : new Uint8Array()));
|
690
|
-
return obj;
|
691
|
-
},
|
692
556
|
fromPartial: function fromPartial(object) {
|
693
|
-
var _object$address5, _object$
|
557
|
+
var _object$address5, _object$queryData;
|
694
558
|
|
695
559
|
var message = createBaseQueryRawContractStateRequest();
|
696
560
|
message.address = (_object$address5 = object.address) !== null && _object$address5 !== void 0 ? _object$address5 : "";
|
697
|
-
message.
|
561
|
+
message.queryData = (_object$queryData = object.queryData) !== null && _object$queryData !== void 0 ? _object$queryData : new Uint8Array();
|
698
562
|
return message;
|
699
563
|
}
|
700
564
|
};
|
@@ -737,16 +601,6 @@ var QueryRawContractStateResponse = {
|
|
737
601
|
|
738
602
|
return message;
|
739
603
|
},
|
740
|
-
fromJSON: function fromJSON(object) {
|
741
|
-
return {
|
742
|
-
data: (0, _helpers.isSet)(object.data) ? (0, _helpers.bytesFromBase64)(object.data) : new Uint8Array()
|
743
|
-
};
|
744
|
-
},
|
745
|
-
toJSON: function toJSON(message) {
|
746
|
-
var obj = {};
|
747
|
-
message.data !== undefined && (obj.data = (0, _helpers.base64FromBytes)(message.data !== undefined ? message.data : new Uint8Array()));
|
748
|
-
return obj;
|
749
|
-
},
|
750
604
|
fromPartial: function fromPartial(object) {
|
751
605
|
var _object$data;
|
752
606
|
|
@@ -760,7 +614,7 @@ exports.QueryRawContractStateResponse = QueryRawContractStateResponse;
|
|
760
614
|
function createBaseQuerySmartContractStateRequest() {
|
761
615
|
return {
|
762
616
|
address: "",
|
763
|
-
|
617
|
+
queryData: new Uint8Array()
|
764
618
|
};
|
765
619
|
}
|
766
620
|
|
@@ -772,8 +626,8 @@ var QuerySmartContractStateRequest = {
|
|
772
626
|
writer.uint32(10).string(message.address);
|
773
627
|
}
|
774
628
|
|
775
|
-
if (message.
|
776
|
-
writer.uint32(18).bytes(message.
|
629
|
+
if (message.queryData.length !== 0) {
|
630
|
+
writer.uint32(18).bytes(message.queryData);
|
777
631
|
}
|
778
632
|
|
779
633
|
return writer;
|
@@ -792,7 +646,7 @@ var QuerySmartContractStateRequest = {
|
|
792
646
|
break;
|
793
647
|
|
794
648
|
case 2:
|
795
|
-
message.
|
649
|
+
message.queryData = reader.bytes();
|
796
650
|
break;
|
797
651
|
|
798
652
|
default:
|
@@ -803,24 +657,12 @@ var QuerySmartContractStateRequest = {
|
|
803
657
|
|
804
658
|
return message;
|
805
659
|
},
|
806
|
-
fromJSON: function fromJSON(object) {
|
807
|
-
return {
|
808
|
-
address: (0, _helpers.isSet)(object.address) ? String(object.address) : "",
|
809
|
-
query_data: (0, _helpers.isSet)(object.query_data) ? (0, _helpers.bytesFromBase64)(object.query_data) : new Uint8Array()
|
810
|
-
};
|
811
|
-
},
|
812
|
-
toJSON: function toJSON(message) {
|
813
|
-
var obj = {};
|
814
|
-
message.address !== undefined && (obj.address = message.address);
|
815
|
-
message.query_data !== undefined && (obj.query_data = (0, _helpers.base64FromBytes)(message.query_data !== undefined ? message.query_data : new Uint8Array()));
|
816
|
-
return obj;
|
817
|
-
},
|
818
660
|
fromPartial: function fromPartial(object) {
|
819
|
-
var _object$address6, _object$
|
661
|
+
var _object$address6, _object$queryData2;
|
820
662
|
|
821
663
|
var message = createBaseQuerySmartContractStateRequest();
|
822
664
|
message.address = (_object$address6 = object.address) !== null && _object$address6 !== void 0 ? _object$address6 : "";
|
823
|
-
message.
|
665
|
+
message.queryData = (_object$queryData2 = object.queryData) !== null && _object$queryData2 !== void 0 ? _object$queryData2 : new Uint8Array();
|
824
666
|
return message;
|
825
667
|
}
|
826
668
|
};
|
@@ -863,16 +705,6 @@ var QuerySmartContractStateResponse = {
|
|
863
705
|
|
864
706
|
return message;
|
865
707
|
},
|
866
|
-
fromJSON: function fromJSON(object) {
|
867
|
-
return {
|
868
|
-
data: (0, _helpers.isSet)(object.data) ? (0, _helpers.bytesFromBase64)(object.data) : new Uint8Array()
|
869
|
-
};
|
870
|
-
},
|
871
|
-
toJSON: function toJSON(message) {
|
872
|
-
var obj = {};
|
873
|
-
message.data !== undefined && (obj.data = (0, _helpers.base64FromBytes)(message.data !== undefined ? message.data : new Uint8Array()));
|
874
|
-
return obj;
|
875
|
-
},
|
876
708
|
fromPartial: function fromPartial(object) {
|
877
709
|
var _object$data2;
|
878
710
|
|
@@ -885,7 +717,7 @@ exports.QuerySmartContractStateResponse = QuerySmartContractStateResponse;
|
|
885
717
|
|
886
718
|
function createBaseQueryCodeRequest() {
|
887
719
|
return {
|
888
|
-
|
720
|
+
codeId: _helpers.Long.UZERO
|
889
721
|
};
|
890
722
|
}
|
891
723
|
|
@@ -893,8 +725,8 @@ var QueryCodeRequest = {
|
|
893
725
|
encode: function encode(message) {
|
894
726
|
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _m0.Writer.create();
|
895
727
|
|
896
|
-
if (!message.
|
897
|
-
writer.uint32(8).uint64(message.
|
728
|
+
if (!message.codeId.isZero()) {
|
729
|
+
writer.uint32(8).uint64(message.codeId);
|
898
730
|
}
|
899
731
|
|
900
732
|
return writer;
|
@@ -909,7 +741,7 @@ var QueryCodeRequest = {
|
|
909
741
|
|
910
742
|
switch (tag >>> 3) {
|
911
743
|
case 1:
|
912
|
-
message.
|
744
|
+
message.codeId = reader.uint64();
|
913
745
|
break;
|
914
746
|
|
915
747
|
default:
|
@@ -920,19 +752,9 @@ var QueryCodeRequest = {
|
|
920
752
|
|
921
753
|
return message;
|
922
754
|
},
|
923
|
-
fromJSON: function fromJSON(object) {
|
924
|
-
return {
|
925
|
-
code_id: (0, _helpers.isSet)(object.code_id) ? _helpers.Long.fromString(object.code_id) : _helpers.Long.UZERO
|
926
|
-
};
|
927
|
-
},
|
928
|
-
toJSON: function toJSON(message) {
|
929
|
-
var obj = {};
|
930
|
-
message.code_id !== undefined && (obj.code_id = (message.code_id || _helpers.Long.UZERO).toString());
|
931
|
-
return obj;
|
932
|
-
},
|
933
755
|
fromPartial: function fromPartial(object) {
|
934
756
|
var message = createBaseQueryCodeRequest();
|
935
|
-
message.
|
757
|
+
message.codeId = object.codeId !== undefined && object.codeId !== null ? _helpers.Long.fromValue(object.codeId) : _helpers.Long.UZERO;
|
936
758
|
return message;
|
937
759
|
}
|
938
760
|
};
|
@@ -940,9 +762,9 @@ exports.QueryCodeRequest = QueryCodeRequest;
|
|
940
762
|
|
941
763
|
function createBaseCodeInfoResponse() {
|
942
764
|
return {
|
943
|
-
|
765
|
+
codeId: _helpers.Long.UZERO,
|
944
766
|
creator: "",
|
945
|
-
|
767
|
+
dataHash: new Uint8Array()
|
946
768
|
};
|
947
769
|
}
|
948
770
|
|
@@ -950,16 +772,16 @@ var CodeInfoResponse = {
|
|
950
772
|
encode: function encode(message) {
|
951
773
|
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _m0.Writer.create();
|
952
774
|
|
953
|
-
if (!message.
|
954
|
-
writer.uint32(8).uint64(message.
|
775
|
+
if (!message.codeId.isZero()) {
|
776
|
+
writer.uint32(8).uint64(message.codeId);
|
955
777
|
}
|
956
778
|
|
957
779
|
if (message.creator !== "") {
|
958
780
|
writer.uint32(18).string(message.creator);
|
959
781
|
}
|
960
782
|
|
961
|
-
if (message.
|
962
|
-
writer.uint32(26).bytes(message.
|
783
|
+
if (message.dataHash.length !== 0) {
|
784
|
+
writer.uint32(26).bytes(message.dataHash);
|
963
785
|
}
|
964
786
|
|
965
787
|
return writer;
|
@@ -974,7 +796,7 @@ var CodeInfoResponse = {
|
|
974
796
|
|
975
797
|
switch (tag >>> 3) {
|
976
798
|
case 1:
|
977
|
-
message.
|
799
|
+
message.codeId = reader.uint64();
|
978
800
|
break;
|
979
801
|
|
980
802
|
case 2:
|
@@ -982,7 +804,7 @@ var CodeInfoResponse = {
|
|
982
804
|
break;
|
983
805
|
|
984
806
|
case 3:
|
985
|
-
message.
|
807
|
+
message.dataHash = reader.bytes();
|
986
808
|
break;
|
987
809
|
|
988
810
|
default:
|
@@ -993,27 +815,13 @@ var CodeInfoResponse = {
|
|
993
815
|
|
994
816
|
return message;
|
995
817
|
},
|
996
|
-
fromJSON: function fromJSON(object) {
|
997
|
-
return {
|
998
|
-
code_id: (0, _helpers.isSet)(object.code_id) ? _helpers.Long.fromString(object.code_id) : _helpers.Long.UZERO,
|
999
|
-
creator: (0, _helpers.isSet)(object.creator) ? String(object.creator) : "",
|
1000
|
-
data_hash: (0, _helpers.isSet)(object.data_hash) ? (0, _helpers.bytesFromBase64)(object.data_hash) : new Uint8Array()
|
1001
|
-
};
|
1002
|
-
},
|
1003
|
-
toJSON: function toJSON(message) {
|
1004
|
-
var obj = {};
|
1005
|
-
message.code_id !== undefined && (obj.code_id = (message.code_id || _helpers.Long.UZERO).toString());
|
1006
|
-
message.creator !== undefined && (obj.creator = message.creator);
|
1007
|
-
message.data_hash !== undefined && (obj.data_hash = (0, _helpers.base64FromBytes)(message.data_hash !== undefined ? message.data_hash : new Uint8Array()));
|
1008
|
-
return obj;
|
1009
|
-
},
|
1010
818
|
fromPartial: function fromPartial(object) {
|
1011
|
-
var _object$creator, _object$
|
819
|
+
var _object$creator, _object$dataHash;
|
1012
820
|
|
1013
821
|
var message = createBaseCodeInfoResponse();
|
1014
|
-
message.
|
822
|
+
message.codeId = object.codeId !== undefined && object.codeId !== null ? _helpers.Long.fromValue(object.codeId) : _helpers.Long.UZERO;
|
1015
823
|
message.creator = (_object$creator = object.creator) !== null && _object$creator !== void 0 ? _object$creator : "";
|
1016
|
-
message.
|
824
|
+
message.dataHash = (_object$dataHash = object.dataHash) !== null && _object$dataHash !== void 0 ? _object$dataHash : new Uint8Array();
|
1017
825
|
return message;
|
1018
826
|
}
|
1019
827
|
};
|
@@ -1021,7 +829,7 @@ exports.CodeInfoResponse = CodeInfoResponse;
|
|
1021
829
|
|
1022
830
|
function createBaseQueryCodeResponse() {
|
1023
831
|
return {
|
1024
|
-
|
832
|
+
codeInfo: undefined,
|
1025
833
|
data: new Uint8Array()
|
1026
834
|
};
|
1027
835
|
}
|
@@ -1030,8 +838,8 @@ var QueryCodeResponse = {
|
|
1030
838
|
encode: function encode(message) {
|
1031
839
|
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _m0.Writer.create();
|
1032
840
|
|
1033
|
-
if (message.
|
1034
|
-
CodeInfoResponse.encode(message.
|
841
|
+
if (message.codeInfo !== undefined) {
|
842
|
+
CodeInfoResponse.encode(message.codeInfo, writer.uint32(10).fork()).ldelim();
|
1035
843
|
}
|
1036
844
|
|
1037
845
|
if (message.data.length !== 0) {
|
@@ -1050,7 +858,7 @@ var QueryCodeResponse = {
|
|
1050
858
|
|
1051
859
|
switch (tag >>> 3) {
|
1052
860
|
case 1:
|
1053
|
-
message.
|
861
|
+
message.codeInfo = CodeInfoResponse.decode(reader, reader.uint32());
|
1054
862
|
break;
|
1055
863
|
|
1056
864
|
case 2:
|
@@ -1065,23 +873,11 @@ var QueryCodeResponse = {
|
|
1065
873
|
|
1066
874
|
return message;
|
1067
875
|
},
|
1068
|
-
fromJSON: function fromJSON(object) {
|
1069
|
-
return {
|
1070
|
-
code_info: (0, _helpers.isSet)(object.code_info) ? CodeInfoResponse.fromJSON(object.code_info) : undefined,
|
1071
|
-
data: (0, _helpers.isSet)(object.data) ? (0, _helpers.bytesFromBase64)(object.data) : new Uint8Array()
|
1072
|
-
};
|
1073
|
-
},
|
1074
|
-
toJSON: function toJSON(message) {
|
1075
|
-
var obj = {};
|
1076
|
-
message.code_info !== undefined && (obj.code_info = message.code_info ? CodeInfoResponse.toJSON(message.code_info) : undefined);
|
1077
|
-
message.data !== undefined && (obj.data = (0, _helpers.base64FromBytes)(message.data !== undefined ? message.data : new Uint8Array()));
|
1078
|
-
return obj;
|
1079
|
-
},
|
1080
876
|
fromPartial: function fromPartial(object) {
|
1081
877
|
var _object$data3;
|
1082
878
|
|
1083
879
|
var message = createBaseQueryCodeResponse();
|
1084
|
-
message.
|
880
|
+
message.codeInfo = object.codeInfo !== undefined && object.codeInfo !== null ? CodeInfoResponse.fromPartial(object.codeInfo) : undefined;
|
1085
881
|
message.data = (_object$data3 = object.data) !== null && _object$data3 !== void 0 ? _object$data3 : new Uint8Array();
|
1086
882
|
return message;
|
1087
883
|
}
|
@@ -1125,16 +921,6 @@ var QueryCodesRequest = {
|
|
1125
921
|
|
1126
922
|
return message;
|
1127
923
|
},
|
1128
|
-
fromJSON: function fromJSON(object) {
|
1129
|
-
return {
|
1130
|
-
pagination: (0, _helpers.isSet)(object.pagination) ? _pagination.PageRequest.fromJSON(object.pagination) : undefined
|
1131
|
-
};
|
1132
|
-
},
|
1133
|
-
toJSON: function toJSON(message) {
|
1134
|
-
var obj = {};
|
1135
|
-
message.pagination !== undefined && (obj.pagination = message.pagination ? _pagination.PageRequest.toJSON(message.pagination) : undefined);
|
1136
|
-
return obj;
|
1137
|
-
},
|
1138
924
|
fromPartial: function fromPartial(object) {
|
1139
925
|
var message = createBaseQueryCodesRequest();
|
1140
926
|
message.pagination = object.pagination !== undefined && object.pagination !== null ? _pagination.PageRequest.fromPartial(object.pagination) : undefined;
|
@@ -1145,7 +931,7 @@ exports.QueryCodesRequest = QueryCodesRequest;
|
|
1145
931
|
|
1146
932
|
function createBaseQueryCodesResponse() {
|
1147
933
|
return {
|
1148
|
-
|
934
|
+
codeInfos: [],
|
1149
935
|
pagination: undefined
|
1150
936
|
};
|
1151
937
|
}
|
@@ -1154,7 +940,7 @@ var QueryCodesResponse = {
|
|
1154
940
|
encode: function encode(message) {
|
1155
941
|
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _m0.Writer.create();
|
1156
942
|
|
1157
|
-
var _iterator4 = _createForOfIteratorHelper(message.
|
943
|
+
var _iterator4 = _createForOfIteratorHelper(message.codeInfos),
|
1158
944
|
_step4;
|
1159
945
|
|
1160
946
|
try {
|
@@ -1184,7 +970,7 @@ var QueryCodesResponse = {
|
|
1184
970
|
|
1185
971
|
switch (tag >>> 3) {
|
1186
972
|
case 1:
|
1187
|
-
message.
|
973
|
+
message.codeInfos.push(CodeInfoResponse.decode(reader, reader.uint32()));
|
1188
974
|
break;
|
1189
975
|
|
1190
976
|
case 2:
|
@@ -1199,33 +985,11 @@ var QueryCodesResponse = {
|
|
1199
985
|
|
1200
986
|
return message;
|
1201
987
|
},
|
1202
|
-
fromJSON: function fromJSON(object) {
|
1203
|
-
return {
|
1204
|
-
code_infos: Array.isArray(object === null || object === void 0 ? void 0 : object.code_infos) ? object.code_infos.map(function (e) {
|
1205
|
-
return CodeInfoResponse.fromJSON(e);
|
1206
|
-
}) : [],
|
1207
|
-
pagination: (0, _helpers.isSet)(object.pagination) ? _pagination.PageResponse.fromJSON(object.pagination) : undefined
|
1208
|
-
};
|
1209
|
-
},
|
1210
|
-
toJSON: function toJSON(message) {
|
1211
|
-
var obj = {};
|
1212
|
-
|
1213
|
-
if (message.code_infos) {
|
1214
|
-
obj.code_infos = message.code_infos.map(function (e) {
|
1215
|
-
return e ? CodeInfoResponse.toJSON(e) : undefined;
|
1216
|
-
});
|
1217
|
-
} else {
|
1218
|
-
obj.code_infos = [];
|
1219
|
-
}
|
1220
|
-
|
1221
|
-
message.pagination !== undefined && (obj.pagination = message.pagination ? _pagination.PageResponse.toJSON(message.pagination) : undefined);
|
1222
|
-
return obj;
|
1223
|
-
},
|
1224
988
|
fromPartial: function fromPartial(object) {
|
1225
|
-
var _object$
|
989
|
+
var _object$codeInfos;
|
1226
990
|
|
1227
991
|
var message = createBaseQueryCodesResponse();
|
1228
|
-
message.
|
992
|
+
message.codeInfos = ((_object$codeInfos = object.codeInfos) === null || _object$codeInfos === void 0 ? void 0 : _object$codeInfos.map(function (e) {
|
1229
993
|
return CodeInfoResponse.fromPartial(e);
|
1230
994
|
})) || [];
|
1231
995
|
message.pagination = object.pagination !== undefined && object.pagination !== null ? _pagination.PageResponse.fromPartial(object.pagination) : undefined;
|
@@ -1271,16 +1035,6 @@ var QueryPinnedCodesRequest = {
|
|
1271
1035
|
|
1272
1036
|
return message;
|
1273
1037
|
},
|
1274
|
-
fromJSON: function fromJSON(object) {
|
1275
|
-
return {
|
1276
|
-
pagination: (0, _helpers.isSet)(object.pagination) ? _pagination.PageRequest.fromJSON(object.pagination) : undefined
|
1277
|
-
};
|
1278
|
-
},
|
1279
|
-
toJSON: function toJSON(message) {
|
1280
|
-
var obj = {};
|
1281
|
-
message.pagination !== undefined && (obj.pagination = message.pagination ? _pagination.PageRequest.toJSON(message.pagination) : undefined);
|
1282
|
-
return obj;
|
1283
|
-
},
|
1284
1038
|
fromPartial: function fromPartial(object) {
|
1285
1039
|
var message = createBaseQueryPinnedCodesRequest();
|
1286
1040
|
message.pagination = object.pagination !== undefined && object.pagination !== null ? _pagination.PageRequest.fromPartial(object.pagination) : undefined;
|
@@ -1291,7 +1045,7 @@ exports.QueryPinnedCodesRequest = QueryPinnedCodesRequest;
|
|
1291
1045
|
|
1292
1046
|
function createBaseQueryPinnedCodesResponse() {
|
1293
1047
|
return {
|
1294
|
-
|
1048
|
+
codeIds: [],
|
1295
1049
|
pagination: undefined
|
1296
1050
|
};
|
1297
1051
|
}
|
@@ -1301,7 +1055,7 @@ var QueryPinnedCodesResponse = {
|
|
1301
1055
|
var writer = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _m0.Writer.create();
|
1302
1056
|
writer.uint32(10).fork();
|
1303
1057
|
|
1304
|
-
var _iterator5 = _createForOfIteratorHelper(message.
|
1058
|
+
var _iterator5 = _createForOfIteratorHelper(message.codeIds),
|
1305
1059
|
_step5;
|
1306
1060
|
|
1307
1061
|
try {
|
@@ -1337,10 +1091,10 @@ var QueryPinnedCodesResponse = {
|
|
1337
1091
|
var end2 = reader.uint32() + reader.pos;
|
1338
1092
|
|
1339
1093
|
while (reader.pos < end2) {
|
1340
|
-
message.
|
1094
|
+
message.codeIds.push(reader.uint64());
|
1341
1095
|
}
|
1342
1096
|
} else {
|
1343
|
-
message.
|
1097
|
+
message.codeIds.push(reader.uint64());
|
1344
1098
|
}
|
1345
1099
|
|
1346
1100
|
break;
|
@@ -1357,33 +1111,11 @@ var QueryPinnedCodesResponse = {
|
|
1357
1111
|
|
1358
1112
|
return message;
|
1359
1113
|
},
|
1360
|
-
fromJSON: function fromJSON(object) {
|
1361
|
-
return {
|
1362
|
-
code_ids: Array.isArray(object === null || object === void 0 ? void 0 : object.code_ids) ? object.code_ids.map(function (e) {
|
1363
|
-
return _helpers.Long.fromString(e);
|
1364
|
-
}) : [],
|
1365
|
-
pagination: (0, _helpers.isSet)(object.pagination) ? _pagination.PageResponse.fromJSON(object.pagination) : undefined
|
1366
|
-
};
|
1367
|
-
},
|
1368
|
-
toJSON: function toJSON(message) {
|
1369
|
-
var obj = {};
|
1370
|
-
|
1371
|
-
if (message.code_ids) {
|
1372
|
-
obj.code_ids = message.code_ids.map(function (e) {
|
1373
|
-
return (e || _helpers.Long.UZERO).toString();
|
1374
|
-
});
|
1375
|
-
} else {
|
1376
|
-
obj.code_ids = [];
|
1377
|
-
}
|
1378
|
-
|
1379
|
-
message.pagination !== undefined && (obj.pagination = message.pagination ? _pagination.PageResponse.toJSON(message.pagination) : undefined);
|
1380
|
-
return obj;
|
1381
|
-
},
|
1382
1114
|
fromPartial: function fromPartial(object) {
|
1383
|
-
var _object$
|
1115
|
+
var _object$codeIds;
|
1384
1116
|
|
1385
1117
|
var message = createBaseQueryPinnedCodesResponse();
|
1386
|
-
message.
|
1118
|
+
message.codeIds = ((_object$codeIds = object.codeIds) === null || _object$codeIds === void 0 ? void 0 : _object$codeIds.map(function (e) {
|
1387
1119
|
return _helpers.Long.fromValue(e);
|
1388
1120
|
})) || [];
|
1389
1121
|
message.pagination = object.pagination !== undefined && object.pagination !== null ? _pagination.PageResponse.fromPartial(object.pagination) : undefined;
|