coreum-js 2.11.0 → 2.12.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/main/client/index.d.ts +2 -1
- package/dist/main/coreum/asset/ft/v1/genesis.d.ts +1 -1
- package/dist/main/coreum/asset/ft/v1/genesis.js +25 -12
- package/dist/main/coreum/asset/ft/v1/params.d.ts +1 -1
- package/dist/main/coreum/asset/ft/v1/params.js +14 -6
- package/dist/main/coreum/asset/ft/v1/query.d.ts +2 -2
- package/dist/main/coreum/asset/ft/v1/query.js +116 -54
- package/dist/main/coreum/asset/ft/v1/tx.d.ts +1 -1
- package/dist/main/coreum/asset/ft/v1/tx.js +1 -1
- package/dist/main/coreum/asset/nft/v1/genesis.d.ts +2 -2
- package/dist/main/coreum/asset/nft/v1/params.d.ts +1 -1
- package/dist/main/coreum/asset/nft/v1/params.js +14 -6
- package/dist/main/coreum/asset/nft/v1/query.d.ts +3 -3
- package/dist/main/coreum/asset/nft/v1/query.js +49 -22
- package/dist/main/coreum/feemodel/v1/genesis.d.ts +1 -1
- package/dist/main/coreum/feemodel/v1/genesis.js +17 -10
- package/dist/main/coreum/feemodel/v1/query.d.ts +1 -1
- package/dist/main/coreum/feemodel/v1/query.js +22 -11
- package/dist/main/coreum/nft/v1beta1/query.d.ts +1 -1
- package/dist/main/coreum/nft/v1beta1/query.js +83 -39
- package/dist/main/cosmos/extensions/bank.d.ts +8 -8
- package/dist/main/cosmos/extensions/bank.js +2 -2
- package/dist/main/cosmos/extensions/distribution.d.ts +11 -11
- package/dist/main/cosmos/extensions/distribution.js +1 -1
- package/dist/main/cosmos/extensions/gov.d.ts +21 -21
- package/dist/main/cosmos/extensions/gov.js +1 -1
- package/dist/main/cosmos/index.d.ts +12 -21
- package/dist/main/cosmos/index.js +50 -42
- package/dist/main/types/msgs.d.ts +4 -4
- package/dist/main/wasm/v1/authz.d.ts +1 -1
- package/dist/main/wasm/v1/authz.js +1 -1
- package/dist/main/wasm/v1/proposal.d.ts +1 -1
- package/dist/main/wasm/v1/proposal.js +1 -1
- package/dist/main/wasm/v1/tx.d.ts +1 -1
- package/dist/main/wasm/v1/tx.js +1 -1
- package/dist/module/client/index.d.ts +2 -1
- package/dist/module/coreum/asset/ft/v1/genesis.d.ts +1 -1
- package/dist/module/coreum/asset/ft/v1/genesis.js +25 -12
- package/dist/module/coreum/asset/ft/v1/params.d.ts +1 -1
- package/dist/module/coreum/asset/ft/v1/params.js +14 -6
- package/dist/module/coreum/asset/ft/v1/query.d.ts +2 -2
- package/dist/module/coreum/asset/ft/v1/query.js +116 -54
- package/dist/module/coreum/asset/ft/v1/tx.d.ts +1 -1
- package/dist/module/coreum/asset/ft/v1/tx.js +1 -1
- package/dist/module/coreum/asset/nft/v1/genesis.d.ts +2 -2
- package/dist/module/coreum/asset/nft/v1/params.d.ts +1 -1
- package/dist/module/coreum/asset/nft/v1/params.js +14 -6
- package/dist/module/coreum/asset/nft/v1/query.d.ts +3 -3
- package/dist/module/coreum/asset/nft/v1/query.js +49 -22
- package/dist/module/coreum/feemodel/v1/genesis.d.ts +1 -1
- package/dist/module/coreum/feemodel/v1/genesis.js +17 -10
- package/dist/module/coreum/feemodel/v1/query.d.ts +1 -1
- package/dist/module/coreum/feemodel/v1/query.js +22 -11
- package/dist/module/coreum/nft/v1beta1/query.d.ts +1 -1
- package/dist/module/coreum/nft/v1beta1/query.js +83 -39
- package/dist/module/cosmos/extensions/bank.d.ts +8 -8
- package/dist/module/cosmos/extensions/bank.js +2 -2
- package/dist/module/cosmos/extensions/distribution.d.ts +11 -11
- package/dist/module/cosmos/extensions/distribution.js +1 -1
- package/dist/module/cosmos/extensions/gov.d.ts +21 -21
- package/dist/module/cosmos/extensions/gov.js +1 -1
- package/dist/module/cosmos/index.d.ts +12 -21
- package/dist/module/cosmos/index.js +29 -19
- package/dist/module/types/msgs.d.ts +4 -4
- package/dist/module/wasm/v1/authz.d.ts +1 -1
- package/dist/module/wasm/v1/authz.js +1 -1
- package/dist/module/wasm/v1/proposal.d.ts +1 -1
- package/dist/module/wasm/v1/proposal.js +1 -1
- package/dist/module/wasm/v1/tx.d.ts +1 -1
- package/dist/module/wasm/v1/tx.js +1 -1
- package/package.json +1 -1
- package/dist/main/cosmos/auth/v1beta1/auth.d.ts +0 -229
- package/dist/main/cosmos/auth/v1beta1/auth.js +0 -437
- package/dist/main/cosmos/authz/v1beta1/authz.d.ts +0 -167
- package/dist/main/cosmos/authz/v1beta1/authz.js +0 -319
- package/dist/main/cosmos/authz/v1beta1/event.d.ts +0 -80
- package/dist/main/cosmos/authz/v1beta1/event.js +0 -162
- package/dist/main/cosmos/authz/v1beta1/genesis.d.ts +0 -121
- package/dist/main/cosmos/authz/v1beta1/genesis.js +0 -68
- package/dist/main/cosmos/authz/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/authz/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/authz/v1beta1/query.d.ts +0 -616
- package/dist/main/cosmos/authz/v1beta1/query.js +0 -512
- package/dist/main/cosmos/authz/v1beta1/tx.d.ts +0 -264
- package/dist/main/cosmos/authz/v1beta1/tx.js +0 -435
- package/dist/main/cosmos/bank/v1beta1/authz.d.ts +0 -80
- package/dist/main/cosmos/bank/v1beta1/authz.js +0 -83
- package/dist/main/cosmos/bank/v1beta1/bank.d.ts +0 -440
- package/dist/main/cosmos/bank/v1beta1/bank.js +0 -556
- package/dist/main/cosmos/bank/v1beta1/genesis.d.ts +0 -473
- package/dist/main/cosmos/bank/v1beta1/genesis.js +0 -207
- package/dist/main/cosmos/bank/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/bank/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/bank/v1beta1/query.d.ts +0 -1633
- package/dist/main/cosmos/bank/v1beta1/query.js +0 -1595
- package/dist/main/cosmos/bank/v1beta1/tx.d.ts +0 -514
- package/dist/main/cosmos/bank/v1beta1/tx.js +0 -498
- package/dist/main/cosmos/base/query/v1beta1/pagination.d.ts +0 -470
- package/dist/main/cosmos/base/query/v1beta1/pagination.js +0 -241
- package/dist/main/cosmos/base/v1beta1/coin.d.ts +0 -114
- package/dist/main/cosmos/base/v1beta1/coin.js +0 -241
- package/dist/main/cosmos/crypto/multisig/v1beta1/multisig.d.ts +0 -67
- package/dist/main/cosmos/crypto/multisig/v1beta1/multisig.js +0 -172
- package/dist/main/cosmos/distribution/v1beta1/distribution.d.ts +0 -638
- package/dist/main/cosmos/distribution/v1beta1/distribution.js +0 -887
- package/dist/main/cosmos/distribution/v1beta1/genesis.d.ts +0 -1259
- package/dist/main/cosmos/distribution/v1beta1/genesis.js +0 -784
- package/dist/main/cosmos/distribution/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/distribution/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/distribution/v1beta1/query.d.ts +0 -995
- package/dist/main/cosmos/distribution/v1beta1/query.js +0 -1335
- package/dist/main/cosmos/distribution/v1beta1/tx.d.ts +0 -593
- package/dist/main/cosmos/distribution/v1beta1/tx.js +0 -824
- package/dist/main/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -367
- package/dist/main/cosmos/feegrant/v1beta1/feegrant.js +0 -412
- package/dist/main/cosmos/feegrant/v1beta1/genesis.d.ts +0 -111
- package/dist/main/cosmos/feegrant/v1beta1/genesis.js +0 -66
- package/dist/main/cosmos/feegrant/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/feegrant/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/feegrant/v1beta1/query.d.ts +0 -512
- package/dist/main/cosmos/feegrant/v1beta1/query.js +0 -460
- package/dist/main/cosmos/feegrant/v1beta1/tx.d.ts +0 -143
- package/dist/main/cosmos/feegrant/v1beta1/tx.js +0 -252
- package/dist/main/cosmos/gov/v1beta1/genesis.d.ts +0 -639
- package/dist/main/cosmos/gov/v1beta1/genesis.js +0 -194
- package/dist/main/cosmos/gov/v1beta1/gov.d.ts +0 -620
- package/dist/main/cosmos/gov/v1beta1/gov.js +0 -1037
- package/dist/main/cosmos/gov/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/gov/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/gov/v1beta1/query.d.ts +0 -1511
- package/dist/main/cosmos/gov/v1beta1/query.js +0 -1186
- package/dist/main/cosmos/gov/v1beta1/tx.d.ts +0 -350
- package/dist/main/cosmos/gov/v1beta1/tx.js +0 -566
- package/dist/main/cosmos/msg/v1/msg.d.ts +0 -1
- package/dist/main/cosmos/msg/v1/msg.js +0 -5
- package/dist/main/cosmos/staking/v1beta1/authz.d.ts +0 -145
- package/dist/main/cosmos/staking/v1beta1/authz.js +0 -224
- package/dist/main/cosmos/staking/v1beta1/genesis.d.ts +0 -899
- package/dist/main/cosmos/staking/v1beta1/genesis.js +0 -305
- package/dist/main/cosmos/staking/v1beta1/pagination.d.ts +0 -128
- package/dist/main/cosmos/staking/v1beta1/pagination.js +0 -227
- package/dist/main/cosmos/staking/v1beta1/query.d.ts +0 -4165
- package/dist/main/cosmos/staking/v1beta1/query.js +0 -2019
- package/dist/main/cosmos/staking/v1beta1/staking.d.ts +0 -2059
- package/dist/main/cosmos/staking/v1beta1/staking.js +0 -2127
- package/dist/main/cosmos/staking/v1beta1/tx.d.ts +0 -748
- package/dist/main/cosmos/staking/v1beta1/tx.js +0 -1141
- package/dist/main/cosmos/tx/signing/v1beta1/signing.d.ts +0 -1938
- package/dist/main/cosmos/tx/signing/v1beta1/signing.js +0 -546
- package/dist/main/cosmos/tx/v1beta1/tx.d.ts +0 -3468
- package/dist/main/cosmos/tx/v1beta1/tx.js +0 -1276
- package/dist/main/cosmos/vesting/v1beta1/tx.d.ts +0 -350
- package/dist/main/cosmos/vesting/v1beta1/tx.js +0 -454
- package/dist/main/cosmos/vesting/v1beta1/vesting.d.ts +0 -1305
- package/dist/main/cosmos/vesting/v1beta1/vesting.js +0 -498
- package/dist/module/cosmos/auth/v1beta1/auth.d.ts +0 -229
- package/dist/module/cosmos/auth/v1beta1/auth.js +0 -427
- package/dist/module/cosmos/authz/v1beta1/authz.d.ts +0 -167
- package/dist/module/cosmos/authz/v1beta1/authz.js +0 -309
- package/dist/module/cosmos/authz/v1beta1/event.d.ts +0 -80
- package/dist/module/cosmos/authz/v1beta1/event.js +0 -154
- package/dist/module/cosmos/authz/v1beta1/genesis.d.ts +0 -121
- package/dist/module/cosmos/authz/v1beta1/genesis.js +0 -61
- package/dist/module/cosmos/authz/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/authz/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/authz/v1beta1/query.d.ts +0 -616
- package/dist/module/cosmos/authz/v1beta1/query.js +0 -501
- package/dist/module/cosmos/authz/v1beta1/tx.d.ts +0 -264
- package/dist/module/cosmos/authz/v1beta1/tx.js +0 -426
- package/dist/module/cosmos/bank/v1beta1/authz.d.ts +0 -80
- package/dist/module/cosmos/bank/v1beta1/authz.js +0 -76
- package/dist/module/cosmos/bank/v1beta1/bank.d.ts +0 -440
- package/dist/module/cosmos/bank/v1beta1/bank.js +0 -543
- package/dist/module/cosmos/bank/v1beta1/genesis.d.ts +0 -473
- package/dist/module/cosmos/bank/v1beta1/genesis.js +0 -199
- package/dist/module/cosmos/bank/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/bank/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/bank/v1beta1/query.d.ts +0 -1633
- package/dist/module/cosmos/bank/v1beta1/query.js +0 -1575
- package/dist/module/cosmos/bank/v1beta1/tx.d.ts +0 -514
- package/dist/module/cosmos/bank/v1beta1/tx.js +0 -489
- package/dist/module/cosmos/base/query/v1beta1/pagination.d.ts +0 -470
- package/dist/module/cosmos/base/query/v1beta1/pagination.js +0 -233
- package/dist/module/cosmos/base/v1beta1/coin.d.ts +0 -114
- package/dist/module/cosmos/base/v1beta1/coin.js +0 -231
- package/dist/module/cosmos/crypto/multisig/v1beta1/multisig.d.ts +0 -67
- package/dist/module/cosmos/crypto/multisig/v1beta1/multisig.js +0 -164
- package/dist/module/cosmos/distribution/v1beta1/distribution.d.ts +0 -638
- package/dist/module/cosmos/distribution/v1beta1/distribution.js +0 -869
- package/dist/module/cosmos/distribution/v1beta1/genesis.d.ts +0 -1259
- package/dist/module/cosmos/distribution/v1beta1/genesis.js +0 -770
- package/dist/module/cosmos/distribution/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/distribution/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/distribution/v1beta1/query.d.ts +0 -995
- package/dist/module/cosmos/distribution/v1beta1/query.js +0 -1315
- package/dist/module/cosmos/distribution/v1beta1/tx.d.ts +0 -593
- package/dist/module/cosmos/distribution/v1beta1/tx.js +0 -810
- package/dist/module/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -367
- package/dist/module/cosmos/feegrant/v1beta1/feegrant.js +0 -402
- package/dist/module/cosmos/feegrant/v1beta1/genesis.d.ts +0 -111
- package/dist/module/cosmos/feegrant/v1beta1/genesis.js +0 -59
- package/dist/module/cosmos/feegrant/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/feegrant/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/feegrant/v1beta1/query.d.ts +0 -512
- package/dist/module/cosmos/feegrant/v1beta1/query.js +0 -450
- package/dist/module/cosmos/feegrant/v1beta1/tx.d.ts +0 -143
- package/dist/module/cosmos/feegrant/v1beta1/tx.js +0 -245
- package/dist/module/cosmos/gov/v1beta1/genesis.d.ts +0 -639
- package/dist/module/cosmos/gov/v1beta1/genesis.js +0 -187
- package/dist/module/cosmos/gov/v1beta1/gov.d.ts +0 -620
- package/dist/module/cosmos/gov/v1beta1/gov.js +0 -1019
- package/dist/module/cosmos/gov/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/gov/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/gov/v1beta1/query.d.ts +0 -1511
- package/dist/module/cosmos/gov/v1beta1/query.js +0 -1170
- package/dist/module/cosmos/gov/v1beta1/tx.d.ts +0 -350
- package/dist/module/cosmos/gov/v1beta1/tx.js +0 -556
- package/dist/module/cosmos/msg/v1/msg.d.ts +0 -1
- package/dist/module/cosmos/msg/v1/msg.js +0 -2
- package/dist/module/cosmos/staking/v1beta1/authz.d.ts +0 -145
- package/dist/module/cosmos/staking/v1beta1/authz.js +0 -214
- package/dist/module/cosmos/staking/v1beta1/genesis.d.ts +0 -899
- package/dist/module/cosmos/staking/v1beta1/genesis.js +0 -297
- package/dist/module/cosmos/staking/v1beta1/pagination.d.ts +0 -128
- package/dist/module/cosmos/staking/v1beta1/pagination.js +0 -219
- package/dist/module/cosmos/staking/v1beta1/query.d.ts +0 -4165
- package/dist/module/cosmos/staking/v1beta1/query.js +0 -1995
- package/dist/module/cosmos/staking/v1beta1/staking.d.ts +0 -2059
- package/dist/module/cosmos/staking/v1beta1/staking.js +0 -2097
- package/dist/module/cosmos/staking/v1beta1/tx.d.ts +0 -748
- package/dist/module/cosmos/staking/v1beta1/tx.js +0 -1127
- package/dist/module/cosmos/tx/signing/v1beta1/signing.d.ts +0 -1938
- package/dist/module/cosmos/tx/signing/v1beta1/signing.js +0 -534
- package/dist/module/cosmos/tx/v1beta1/tx.d.ts +0 -3468
- package/dist/module/cosmos/tx/v1beta1/tx.js +0 -1258
- package/dist/module/cosmos/vesting/v1beta1/tx.d.ts +0 -350
- package/dist/module/cosmos/vesting/v1beta1/tx.js +0 -446
- package/dist/module/cosmos/vesting/v1beta1/vesting.d.ts +0 -1305
- package/dist/module/cosmos/vesting/v1beta1/vesting.js +0 -488
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import Long from "long";
|
|
3
3
|
import _m0 from "protobufjs/minimal";
|
|
4
|
-
import { PageRequest, PageResponse } from "
|
|
4
|
+
import { PageRequest, PageResponse, } from "cosmjs-types/cosmos/base/query/v1beta1/pagination";
|
|
5
5
|
import { Class } from "./nft";
|
|
6
6
|
import { Params } from "./params";
|
|
7
7
|
export const protobufPackage = "coreum.asset.nft.v1";
|
|
@@ -74,11 +74,14 @@ export const QueryParamsResponse = {
|
|
|
74
74
|
return message;
|
|
75
75
|
},
|
|
76
76
|
fromJSON(object) {
|
|
77
|
-
return {
|
|
77
|
+
return {
|
|
78
|
+
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
79
|
+
};
|
|
78
80
|
},
|
|
79
81
|
toJSON(message) {
|
|
80
82
|
const obj = {};
|
|
81
|
-
message.params !== undefined &&
|
|
83
|
+
message.params !== undefined &&
|
|
84
|
+
(obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
82
85
|
return obj;
|
|
83
86
|
},
|
|
84
87
|
create(base) {
|
|
@@ -86,9 +89,10 @@ export const QueryParamsResponse = {
|
|
|
86
89
|
},
|
|
87
90
|
fromPartial(object) {
|
|
88
91
|
const message = createBaseQueryParamsResponse();
|
|
89
|
-
message.params =
|
|
90
|
-
|
|
91
|
-
|
|
92
|
+
message.params =
|
|
93
|
+
object.params !== undefined && object.params !== null
|
|
94
|
+
? Params.fromPartial(object.params)
|
|
95
|
+
: undefined;
|
|
92
96
|
return message;
|
|
93
97
|
},
|
|
94
98
|
};
|
|
@@ -172,11 +176,14 @@ export const QueryClassResponse = {
|
|
|
172
176
|
return message;
|
|
173
177
|
},
|
|
174
178
|
fromJSON(object) {
|
|
175
|
-
return {
|
|
179
|
+
return {
|
|
180
|
+
class: isSet(object.class) ? Class.fromJSON(object.class) : undefined,
|
|
181
|
+
};
|
|
176
182
|
},
|
|
177
183
|
toJSON(message) {
|
|
178
184
|
const obj = {};
|
|
179
|
-
message.class !== undefined &&
|
|
185
|
+
message.class !== undefined &&
|
|
186
|
+
(obj.class = message.class ? Class.toJSON(message.class) : undefined);
|
|
180
187
|
return obj;
|
|
181
188
|
},
|
|
182
189
|
create(base) {
|
|
@@ -184,7 +191,10 @@ export const QueryClassResponse = {
|
|
|
184
191
|
},
|
|
185
192
|
fromPartial(object) {
|
|
186
193
|
const message = createBaseQueryClassResponse();
|
|
187
|
-
message.class =
|
|
194
|
+
message.class =
|
|
195
|
+
object.class !== undefined && object.class !== null
|
|
196
|
+
? Class.fromPartial(object.class)
|
|
197
|
+
: undefined;
|
|
188
198
|
return message;
|
|
189
199
|
},
|
|
190
200
|
};
|
|
@@ -404,11 +414,16 @@ export const QueryWhitelistedResponse = {
|
|
|
404
414
|
return message;
|
|
405
415
|
},
|
|
406
416
|
fromJSON(object) {
|
|
407
|
-
return {
|
|
417
|
+
return {
|
|
418
|
+
whitelisted: isSet(object.whitelisted)
|
|
419
|
+
? Boolean(object.whitelisted)
|
|
420
|
+
: false,
|
|
421
|
+
};
|
|
408
422
|
},
|
|
409
423
|
toJSON(message) {
|
|
410
424
|
const obj = {};
|
|
411
|
-
message.whitelisted !== undefined &&
|
|
425
|
+
message.whitelisted !== undefined &&
|
|
426
|
+
(obj.whitelisted = message.whitelisted);
|
|
412
427
|
return obj;
|
|
413
428
|
},
|
|
414
429
|
create(base) {
|
|
@@ -471,7 +486,9 @@ export const QueryWhitelistedAccountsForNFTRequest = {
|
|
|
471
486
|
},
|
|
472
487
|
fromJSON(object) {
|
|
473
488
|
return {
|
|
474
|
-
pagination: isSet(object.pagination)
|
|
489
|
+
pagination: isSet(object.pagination)
|
|
490
|
+
? PageRequest.fromJSON(object.pagination)
|
|
491
|
+
: undefined,
|
|
475
492
|
id: isSet(object.id) ? String(object.id) : "",
|
|
476
493
|
classId: isSet(object.classId) ? String(object.classId) : "",
|
|
477
494
|
};
|
|
@@ -479,7 +496,9 @@ export const QueryWhitelistedAccountsForNFTRequest = {
|
|
|
479
496
|
toJSON(message) {
|
|
480
497
|
const obj = {};
|
|
481
498
|
message.pagination !== undefined &&
|
|
482
|
-
(obj.pagination = message.pagination
|
|
499
|
+
(obj.pagination = message.pagination
|
|
500
|
+
? PageRequest.toJSON(message.pagination)
|
|
501
|
+
: undefined);
|
|
483
502
|
message.id !== undefined && (obj.id = message.id);
|
|
484
503
|
message.classId !== undefined && (obj.classId = message.classId);
|
|
485
504
|
return obj;
|
|
@@ -489,9 +508,10 @@ export const QueryWhitelistedAccountsForNFTRequest = {
|
|
|
489
508
|
},
|
|
490
509
|
fromPartial(object) {
|
|
491
510
|
const message = createBaseQueryWhitelistedAccountsForNFTRequest();
|
|
492
|
-
message.pagination =
|
|
493
|
-
|
|
494
|
-
|
|
511
|
+
message.pagination =
|
|
512
|
+
object.pagination !== undefined && object.pagination !== null
|
|
513
|
+
? PageRequest.fromPartial(object.pagination)
|
|
514
|
+
: undefined;
|
|
495
515
|
message.id = object.id ?? "";
|
|
496
516
|
message.classId = object.classId ?? "";
|
|
497
517
|
return message;
|
|
@@ -539,14 +559,20 @@ export const QueryWhitelistedAccountsForNFTResponse = {
|
|
|
539
559
|
},
|
|
540
560
|
fromJSON(object) {
|
|
541
561
|
return {
|
|
542
|
-
pagination: isSet(object.pagination)
|
|
543
|
-
|
|
562
|
+
pagination: isSet(object.pagination)
|
|
563
|
+
? PageResponse.fromJSON(object.pagination)
|
|
564
|
+
: undefined,
|
|
565
|
+
accounts: Array.isArray(object?.accounts)
|
|
566
|
+
? object.accounts.map((e) => String(e))
|
|
567
|
+
: [],
|
|
544
568
|
};
|
|
545
569
|
},
|
|
546
570
|
toJSON(message) {
|
|
547
571
|
const obj = {};
|
|
548
572
|
message.pagination !== undefined &&
|
|
549
|
-
(obj.pagination = message.pagination
|
|
573
|
+
(obj.pagination = message.pagination
|
|
574
|
+
? PageResponse.toJSON(message.pagination)
|
|
575
|
+
: undefined);
|
|
550
576
|
if (message.accounts) {
|
|
551
577
|
obj.accounts = message.accounts.map((e) => e);
|
|
552
578
|
}
|
|
@@ -560,9 +586,10 @@ export const QueryWhitelistedAccountsForNFTResponse = {
|
|
|
560
586
|
},
|
|
561
587
|
fromPartial(object) {
|
|
562
588
|
const message = createBaseQueryWhitelistedAccountsForNFTResponse();
|
|
563
|
-
message.pagination =
|
|
564
|
-
|
|
565
|
-
|
|
589
|
+
message.pagination =
|
|
590
|
+
object.pagination !== undefined && object.pagination !== null
|
|
591
|
+
? PageResponse.fromPartial(object.pagination)
|
|
592
|
+
: undefined;
|
|
566
593
|
message.accounts = object.accounts?.map((e) => e) || [];
|
|
567
594
|
return message;
|
|
568
595
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { DecCoin } from "
|
|
3
|
+
import { DecCoin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
4
4
|
import { Params } from "./params";
|
|
5
5
|
export declare const protobufPackage = "coreum.feemodel.v1";
|
|
6
6
|
/** GenesisState defines the module's genesis state. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import Long from "long";
|
|
3
3
|
import _m0 from "protobufjs/minimal";
|
|
4
|
-
import { DecCoin } from "
|
|
4
|
+
import { DecCoin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
5
5
|
import { Params } from "./params";
|
|
6
6
|
export const protobufPackage = "coreum.feemodel.v1";
|
|
7
7
|
function createBaseGenesisState() {
|
|
@@ -47,14 +47,19 @@ export const GenesisState = {
|
|
|
47
47
|
fromJSON(object) {
|
|
48
48
|
return {
|
|
49
49
|
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
50
|
-
minGasPrice: isSet(object.minGasPrice)
|
|
50
|
+
minGasPrice: isSet(object.minGasPrice)
|
|
51
|
+
? DecCoin.fromJSON(object.minGasPrice)
|
|
52
|
+
: undefined,
|
|
51
53
|
};
|
|
52
54
|
},
|
|
53
55
|
toJSON(message) {
|
|
54
56
|
const obj = {};
|
|
55
|
-
message.params !== undefined &&
|
|
57
|
+
message.params !== undefined &&
|
|
58
|
+
(obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
56
59
|
message.minGasPrice !== undefined &&
|
|
57
|
-
(obj.minGasPrice = message.minGasPrice
|
|
60
|
+
(obj.minGasPrice = message.minGasPrice
|
|
61
|
+
? DecCoin.toJSON(message.minGasPrice)
|
|
62
|
+
: undefined);
|
|
58
63
|
return obj;
|
|
59
64
|
},
|
|
60
65
|
create(base) {
|
|
@@ -62,12 +67,14 @@ export const GenesisState = {
|
|
|
62
67
|
},
|
|
63
68
|
fromPartial(object) {
|
|
64
69
|
const message = createBaseGenesisState();
|
|
65
|
-
message.params =
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
70
|
+
message.params =
|
|
71
|
+
object.params !== undefined && object.params !== null
|
|
72
|
+
? Params.fromPartial(object.params)
|
|
73
|
+
: undefined;
|
|
74
|
+
message.minGasPrice =
|
|
75
|
+
object.minGasPrice !== undefined && object.minGasPrice !== null
|
|
76
|
+
? DecCoin.fromPartial(object.minGasPrice)
|
|
77
|
+
: undefined;
|
|
71
78
|
return message;
|
|
72
79
|
},
|
|
73
80
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { DecCoin } from "
|
|
3
|
+
import { DecCoin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
4
4
|
import { Params } from "./params";
|
|
5
5
|
export declare const protobufPackage = "coreum.feemodel.v1";
|
|
6
6
|
/** QueryMinGasPriceRequest is the request type for the Query/MinGasPrice RPC method. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import Long from "long";
|
|
3
3
|
import _m0 from "protobufjs/minimal";
|
|
4
|
-
import { DecCoin } from "
|
|
4
|
+
import { DecCoin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
5
5
|
import { Params } from "./params";
|
|
6
6
|
export const protobufPackage = "coreum.feemodel.v1";
|
|
7
7
|
function createBaseQueryMinGasPriceRequest() {
|
|
@@ -73,12 +73,18 @@ export const QueryMinGasPriceResponse = {
|
|
|
73
73
|
return message;
|
|
74
74
|
},
|
|
75
75
|
fromJSON(object) {
|
|
76
|
-
return {
|
|
76
|
+
return {
|
|
77
|
+
minGasPrice: isSet(object.minGasPrice)
|
|
78
|
+
? DecCoin.fromJSON(object.minGasPrice)
|
|
79
|
+
: undefined,
|
|
80
|
+
};
|
|
77
81
|
},
|
|
78
82
|
toJSON(message) {
|
|
79
83
|
const obj = {};
|
|
80
84
|
message.minGasPrice !== undefined &&
|
|
81
|
-
(obj.minGasPrice = message.minGasPrice
|
|
85
|
+
(obj.minGasPrice = message.minGasPrice
|
|
86
|
+
? DecCoin.toJSON(message.minGasPrice)
|
|
87
|
+
: undefined);
|
|
82
88
|
return obj;
|
|
83
89
|
},
|
|
84
90
|
create(base) {
|
|
@@ -86,9 +92,10 @@ export const QueryMinGasPriceResponse = {
|
|
|
86
92
|
},
|
|
87
93
|
fromPartial(object) {
|
|
88
94
|
const message = createBaseQueryMinGasPriceResponse();
|
|
89
|
-
message.minGasPrice =
|
|
90
|
-
|
|
91
|
-
|
|
95
|
+
message.minGasPrice =
|
|
96
|
+
object.minGasPrice !== undefined && object.minGasPrice !== null
|
|
97
|
+
? DecCoin.fromPartial(object.minGasPrice)
|
|
98
|
+
: undefined;
|
|
92
99
|
return message;
|
|
93
100
|
},
|
|
94
101
|
};
|
|
@@ -161,11 +168,14 @@ export const QueryParamsResponse = {
|
|
|
161
168
|
return message;
|
|
162
169
|
},
|
|
163
170
|
fromJSON(object) {
|
|
164
|
-
return {
|
|
171
|
+
return {
|
|
172
|
+
params: isSet(object.params) ? Params.fromJSON(object.params) : undefined,
|
|
173
|
+
};
|
|
165
174
|
},
|
|
166
175
|
toJSON(message) {
|
|
167
176
|
const obj = {};
|
|
168
|
-
message.params !== undefined &&
|
|
177
|
+
message.params !== undefined &&
|
|
178
|
+
(obj.params = message.params ? Params.toJSON(message.params) : undefined);
|
|
169
179
|
return obj;
|
|
170
180
|
},
|
|
171
181
|
create(base) {
|
|
@@ -173,9 +183,10 @@ export const QueryParamsResponse = {
|
|
|
173
183
|
},
|
|
174
184
|
fromPartial(object) {
|
|
175
185
|
const message = createBaseQueryParamsResponse();
|
|
176
|
-
message.params =
|
|
177
|
-
|
|
178
|
-
|
|
186
|
+
message.params =
|
|
187
|
+
object.params !== undefined && object.params !== null
|
|
188
|
+
? Params.fromPartial(object.params)
|
|
189
|
+
: undefined;
|
|
179
190
|
return message;
|
|
180
191
|
},
|
|
181
192
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Long from "long";
|
|
2
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
-
import { PageRequest, PageResponse } from "
|
|
3
|
+
import { PageRequest, PageResponse } from "cosmjs-types/cosmos/base/query/v1beta1/pagination";
|
|
4
4
|
import { Class, NFT } from "./nft";
|
|
5
5
|
export declare const protobufPackage = "coreum.nft.v1beta1";
|
|
6
6
|
/** QueryBalanceRequest is the request type for the Query/Balance RPC method */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
2
|
import Long from "long";
|
|
3
3
|
import _m0 from "protobufjs/minimal";
|
|
4
|
-
import { PageRequest, PageResponse } from "
|
|
4
|
+
import { PageRequest, PageResponse, } from "cosmjs-types/cosmos/base/query/v1beta1/pagination";
|
|
5
5
|
import { Class, NFT } from "./nft";
|
|
6
6
|
export const protobufPackage = "coreum.nft.v1beta1";
|
|
7
7
|
function createBaseQueryBalanceRequest() {
|
|
@@ -98,11 +98,14 @@ export const QueryBalanceResponse = {
|
|
|
98
98
|
return message;
|
|
99
99
|
},
|
|
100
100
|
fromJSON(object) {
|
|
101
|
-
return {
|
|
101
|
+
return {
|
|
102
|
+
amount: isSet(object.amount) ? Long.fromValue(object.amount) : Long.UZERO,
|
|
103
|
+
};
|
|
102
104
|
},
|
|
103
105
|
toJSON(message) {
|
|
104
106
|
const obj = {};
|
|
105
|
-
message.amount !== undefined &&
|
|
107
|
+
message.amount !== undefined &&
|
|
108
|
+
(obj.amount = (message.amount || Long.UZERO).toString());
|
|
106
109
|
return obj;
|
|
107
110
|
},
|
|
108
111
|
create(base) {
|
|
@@ -110,9 +113,10 @@ export const QueryBalanceResponse = {
|
|
|
110
113
|
},
|
|
111
114
|
fromPartial(object) {
|
|
112
115
|
const message = createBaseQueryBalanceResponse();
|
|
113
|
-
message.amount =
|
|
114
|
-
|
|
115
|
-
|
|
116
|
+
message.amount =
|
|
117
|
+
object.amount !== undefined && object.amount !== null
|
|
118
|
+
? Long.fromValue(object.amount)
|
|
119
|
+
: Long.UZERO;
|
|
116
120
|
return message;
|
|
117
121
|
},
|
|
118
122
|
};
|
|
@@ -306,11 +310,14 @@ export const QuerySupplyResponse = {
|
|
|
306
310
|
return message;
|
|
307
311
|
},
|
|
308
312
|
fromJSON(object) {
|
|
309
|
-
return {
|
|
313
|
+
return {
|
|
314
|
+
amount: isSet(object.amount) ? Long.fromValue(object.amount) : Long.UZERO,
|
|
315
|
+
};
|
|
310
316
|
},
|
|
311
317
|
toJSON(message) {
|
|
312
318
|
const obj = {};
|
|
313
|
-
message.amount !== undefined &&
|
|
319
|
+
message.amount !== undefined &&
|
|
320
|
+
(obj.amount = (message.amount || Long.UZERO).toString());
|
|
314
321
|
return obj;
|
|
315
322
|
},
|
|
316
323
|
create(base) {
|
|
@@ -318,9 +325,10 @@ export const QuerySupplyResponse = {
|
|
|
318
325
|
},
|
|
319
326
|
fromPartial(object) {
|
|
320
327
|
const message = createBaseQuerySupplyResponse();
|
|
321
|
-
message.amount =
|
|
322
|
-
|
|
323
|
-
|
|
328
|
+
message.amount =
|
|
329
|
+
object.amount !== undefined && object.amount !== null
|
|
330
|
+
? Long.fromValue(object.amount)
|
|
331
|
+
: Long.UZERO;
|
|
324
332
|
return message;
|
|
325
333
|
},
|
|
326
334
|
};
|
|
@@ -377,7 +385,9 @@ export const QueryNFTsRequest = {
|
|
|
377
385
|
return {
|
|
378
386
|
classId: isSet(object.classId) ? String(object.classId) : "",
|
|
379
387
|
owner: isSet(object.owner) ? String(object.owner) : "",
|
|
380
|
-
pagination: isSet(object.pagination)
|
|
388
|
+
pagination: isSet(object.pagination)
|
|
389
|
+
? PageRequest.fromJSON(object.pagination)
|
|
390
|
+
: undefined,
|
|
381
391
|
};
|
|
382
392
|
},
|
|
383
393
|
toJSON(message) {
|
|
@@ -385,7 +395,9 @@ export const QueryNFTsRequest = {
|
|
|
385
395
|
message.classId !== undefined && (obj.classId = message.classId);
|
|
386
396
|
message.owner !== undefined && (obj.owner = message.owner);
|
|
387
397
|
message.pagination !== undefined &&
|
|
388
|
-
(obj.pagination = message.pagination
|
|
398
|
+
(obj.pagination = message.pagination
|
|
399
|
+
? PageRequest.toJSON(message.pagination)
|
|
400
|
+
: undefined);
|
|
389
401
|
return obj;
|
|
390
402
|
},
|
|
391
403
|
create(base) {
|
|
@@ -395,9 +407,10 @@ export const QueryNFTsRequest = {
|
|
|
395
407
|
const message = createBaseQueryNFTsRequest();
|
|
396
408
|
message.classId = object.classId ?? "";
|
|
397
409
|
message.owner = object.owner ?? "";
|
|
398
|
-
message.pagination =
|
|
399
|
-
|
|
400
|
-
|
|
410
|
+
message.pagination =
|
|
411
|
+
object.pagination !== undefined && object.pagination !== null
|
|
412
|
+
? PageRequest.fromPartial(object.pagination)
|
|
413
|
+
: undefined;
|
|
401
414
|
return message;
|
|
402
415
|
},
|
|
403
416
|
};
|
|
@@ -443,20 +456,26 @@ export const QueryNFTsResponse = {
|
|
|
443
456
|
},
|
|
444
457
|
fromJSON(object) {
|
|
445
458
|
return {
|
|
446
|
-
nfts: Array.isArray(object?.nfts)
|
|
447
|
-
|
|
459
|
+
nfts: Array.isArray(object?.nfts)
|
|
460
|
+
? object.nfts.map((e) => NFT.fromJSON(e))
|
|
461
|
+
: [],
|
|
462
|
+
pagination: isSet(object.pagination)
|
|
463
|
+
? PageResponse.fromJSON(object.pagination)
|
|
464
|
+
: undefined,
|
|
448
465
|
};
|
|
449
466
|
},
|
|
450
467
|
toJSON(message) {
|
|
451
468
|
const obj = {};
|
|
452
469
|
if (message.nfts) {
|
|
453
|
-
obj.nfts = message.nfts.map((e) => e ? NFT.toJSON(e) : undefined);
|
|
470
|
+
obj.nfts = message.nfts.map((e) => (e ? NFT.toJSON(e) : undefined));
|
|
454
471
|
}
|
|
455
472
|
else {
|
|
456
473
|
obj.nfts = [];
|
|
457
474
|
}
|
|
458
475
|
message.pagination !== undefined &&
|
|
459
|
-
(obj.pagination = message.pagination
|
|
476
|
+
(obj.pagination = message.pagination
|
|
477
|
+
? PageResponse.toJSON(message.pagination)
|
|
478
|
+
: undefined);
|
|
460
479
|
return obj;
|
|
461
480
|
},
|
|
462
481
|
create(base) {
|
|
@@ -465,9 +484,10 @@ export const QueryNFTsResponse = {
|
|
|
465
484
|
fromPartial(object) {
|
|
466
485
|
const message = createBaseQueryNFTsResponse();
|
|
467
486
|
message.nfts = object.nfts?.map((e) => NFT.fromPartial(e)) || [];
|
|
468
|
-
message.pagination =
|
|
469
|
-
|
|
470
|
-
|
|
487
|
+
message.pagination =
|
|
488
|
+
object.pagination !== undefined && object.pagination !== null
|
|
489
|
+
? PageResponse.fromPartial(object.pagination)
|
|
490
|
+
: undefined;
|
|
471
491
|
return message;
|
|
472
492
|
},
|
|
473
493
|
};
|
|
@@ -569,7 +589,8 @@ export const QueryNFTResponse = {
|
|
|
569
589
|
},
|
|
570
590
|
toJSON(message) {
|
|
571
591
|
const obj = {};
|
|
572
|
-
message.nft !== undefined &&
|
|
592
|
+
message.nft !== undefined &&
|
|
593
|
+
(obj.nft = message.nft ? NFT.toJSON(message.nft) : undefined);
|
|
573
594
|
return obj;
|
|
574
595
|
},
|
|
575
596
|
create(base) {
|
|
@@ -577,7 +598,10 @@ export const QueryNFTResponse = {
|
|
|
577
598
|
},
|
|
578
599
|
fromPartial(object) {
|
|
579
600
|
const message = createBaseQueryNFTResponse();
|
|
580
|
-
message.nft =
|
|
601
|
+
message.nft =
|
|
602
|
+
object.nft !== undefined && object.nft !== null
|
|
603
|
+
? NFT.fromPartial(object.nft)
|
|
604
|
+
: undefined;
|
|
581
605
|
return message;
|
|
582
606
|
},
|
|
583
607
|
};
|
|
@@ -661,11 +685,14 @@ export const QueryClassResponse = {
|
|
|
661
685
|
return message;
|
|
662
686
|
},
|
|
663
687
|
fromJSON(object) {
|
|
664
|
-
return {
|
|
688
|
+
return {
|
|
689
|
+
class: isSet(object.class) ? Class.fromJSON(object.class) : undefined,
|
|
690
|
+
};
|
|
665
691
|
},
|
|
666
692
|
toJSON(message) {
|
|
667
693
|
const obj = {};
|
|
668
|
-
message.class !== undefined &&
|
|
694
|
+
message.class !== undefined &&
|
|
695
|
+
(obj.class = message.class ? Class.toJSON(message.class) : undefined);
|
|
669
696
|
return obj;
|
|
670
697
|
},
|
|
671
698
|
create(base) {
|
|
@@ -673,7 +700,10 @@ export const QueryClassResponse = {
|
|
|
673
700
|
},
|
|
674
701
|
fromPartial(object) {
|
|
675
702
|
const message = createBaseQueryClassResponse();
|
|
676
|
-
message.class =
|
|
703
|
+
message.class =
|
|
704
|
+
object.class !== undefined && object.class !== null
|
|
705
|
+
? Class.fromPartial(object.class)
|
|
706
|
+
: undefined;
|
|
677
707
|
return message;
|
|
678
708
|
},
|
|
679
709
|
};
|
|
@@ -709,12 +739,18 @@ export const QueryClassesRequest = {
|
|
|
709
739
|
return message;
|
|
710
740
|
},
|
|
711
741
|
fromJSON(object) {
|
|
712
|
-
return {
|
|
742
|
+
return {
|
|
743
|
+
pagination: isSet(object.pagination)
|
|
744
|
+
? PageRequest.fromJSON(object.pagination)
|
|
745
|
+
: undefined,
|
|
746
|
+
};
|
|
713
747
|
},
|
|
714
748
|
toJSON(message) {
|
|
715
749
|
const obj = {};
|
|
716
750
|
message.pagination !== undefined &&
|
|
717
|
-
(obj.pagination = message.pagination
|
|
751
|
+
(obj.pagination = message.pagination
|
|
752
|
+
? PageRequest.toJSON(message.pagination)
|
|
753
|
+
: undefined);
|
|
718
754
|
return obj;
|
|
719
755
|
},
|
|
720
756
|
create(base) {
|
|
@@ -722,9 +758,10 @@ export const QueryClassesRequest = {
|
|
|
722
758
|
},
|
|
723
759
|
fromPartial(object) {
|
|
724
760
|
const message = createBaseQueryClassesRequest();
|
|
725
|
-
message.pagination =
|
|
726
|
-
|
|
727
|
-
|
|
761
|
+
message.pagination =
|
|
762
|
+
object.pagination !== undefined && object.pagination !== null
|
|
763
|
+
? PageRequest.fromPartial(object.pagination)
|
|
764
|
+
: undefined;
|
|
728
765
|
return message;
|
|
729
766
|
},
|
|
730
767
|
};
|
|
@@ -770,8 +807,12 @@ export const QueryClassesResponse = {
|
|
|
770
807
|
},
|
|
771
808
|
fromJSON(object) {
|
|
772
809
|
return {
|
|
773
|
-
classes: Array.isArray(object?.classes)
|
|
774
|
-
|
|
810
|
+
classes: Array.isArray(object?.classes)
|
|
811
|
+
? object.classes.map((e) => Class.fromJSON(e))
|
|
812
|
+
: [],
|
|
813
|
+
pagination: isSet(object.pagination)
|
|
814
|
+
? PageResponse.fromJSON(object.pagination)
|
|
815
|
+
: undefined,
|
|
775
816
|
};
|
|
776
817
|
},
|
|
777
818
|
toJSON(message) {
|
|
@@ -783,7 +824,9 @@ export const QueryClassesResponse = {
|
|
|
783
824
|
obj.classes = [];
|
|
784
825
|
}
|
|
785
826
|
message.pagination !== undefined &&
|
|
786
|
-
(obj.pagination = message.pagination
|
|
827
|
+
(obj.pagination = message.pagination
|
|
828
|
+
? PageResponse.toJSON(message.pagination)
|
|
829
|
+
: undefined);
|
|
787
830
|
return obj;
|
|
788
831
|
},
|
|
789
832
|
create(base) {
|
|
@@ -792,9 +835,10 @@ export const QueryClassesResponse = {
|
|
|
792
835
|
fromPartial(object) {
|
|
793
836
|
const message = createBaseQueryClassesResponse();
|
|
794
837
|
message.classes = object.classes?.map((e) => Class.fromPartial(e)) || [];
|
|
795
|
-
message.pagination =
|
|
796
|
-
|
|
797
|
-
|
|
838
|
+
message.pagination =
|
|
839
|
+
object.pagination !== undefined && object.pagination !== null
|
|
840
|
+
? PageResponse.fromPartial(object.pagination)
|
|
841
|
+
: undefined;
|
|
798
842
|
return message;
|
|
799
843
|
},
|
|
800
844
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { PageRequest } from "
|
|
1
|
+
import { PageRequest } from "cosmjs-types/cosmos/base/query/v1beta1/pagination";
|
|
2
2
|
import { QueryClient } from "@cosmjs/stargate";
|
|
3
3
|
export declare function setupBankExtension(base: QueryClient): {
|
|
4
4
|
bank: {
|
|
5
|
-
balance: (address: string, denom: string) => Promise<import("
|
|
6
|
-
allBalances: (address: string) => Promise<import("
|
|
5
|
+
balance: (address: string, denom: string) => Promise<import("cosmjs-types/cosmos/base/v1beta1/coin").Coin>;
|
|
6
|
+
allBalances: (address: string) => Promise<import("cosmjs-types/cosmos/base/v1beta1/coin").Coin[]>;
|
|
7
7
|
totalSupply: (pagination?: PageRequest) => Promise<{
|
|
8
|
-
supply: import("
|
|
9
|
-
pagination: import("
|
|
8
|
+
supply: import("cosmjs-types/cosmos/base/v1beta1/coin").Coin[];
|
|
9
|
+
pagination: import("cosmjs-types/cosmos/base/query/v1beta1/pagination").PageResponse;
|
|
10
10
|
}>;
|
|
11
|
-
supplyOf: (denom: string) => Promise<import("
|
|
12
|
-
denomMetadata: (denom: string) => Promise<import("
|
|
13
|
-
denomsMetadata: (pagination?: PageRequest) => Promise<import("
|
|
11
|
+
supplyOf: (denom: string) => Promise<import("cosmjs-types/cosmos/base/v1beta1/coin").Coin>;
|
|
12
|
+
denomMetadata: (denom: string) => Promise<import("cosmjs-types/cosmos/bank/v1beta1/bank").Metadata>;
|
|
13
|
+
denomsMetadata: (pagination?: PageRequest) => Promise<import("cosmjs-types/cosmos/bank/v1beta1/bank").Metadata[]>;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { QueryAllBalancesRequest } from "
|
|
2
|
-
import { QueryClientImpl } from "
|
|
1
|
+
import { QueryAllBalancesRequest } from "cosmjs-types/cosmos/bank/v1beta1/query";
|
|
2
|
+
import { QueryClientImpl } from "cosmjs-types/cosmos/bank/v1beta1/query";
|
|
3
3
|
import { createProtobufRpcClient } from "@cosmjs/stargate";
|
|
4
4
|
export function setupBankExtension(base) {
|
|
5
5
|
const rpc = createProtobufRpcClient(base);
|