coreum-js 2.11.0 → 2.13.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/token.d.ts +1 -0
- package/dist/main/coreum/asset/ft/v1/token.js +6 -0
- 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/token.d.ts +1 -0
- package/dist/module/coreum/asset/ft/v1/token.js +6 -0
- 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,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 } from "./nft";
|
|
5
5
|
import { Params } from "./params";
|
|
6
6
|
export declare const protobufPackage = "coreum.asset.nft.v1";
|
|
@@ -79,7 +79,7 @@ export declare const QueryParamsResponse: {
|
|
|
79
79
|
} & {
|
|
80
80
|
denom?: string;
|
|
81
81
|
amount?: string;
|
|
82
|
-
} & { [K in Exclude<keyof I["params"]["mintFee"], keyof import("
|
|
82
|
+
} & { [K in Exclude<keyof I["params"]["mintFee"], keyof import("cosmjs-types/cosmos/base/v1beta1/coin").Coin>]: never; };
|
|
83
83
|
} & { [K_1 in Exclude<keyof I["params"], "mintFee">]: never; };
|
|
84
84
|
} & { [K_2 in Exclude<keyof I, "params">]: never; }>(base?: I): QueryParamsResponse;
|
|
85
85
|
fromPartial<I_1 extends {
|
|
@@ -102,7 +102,7 @@ export declare const QueryParamsResponse: {
|
|
|
102
102
|
} & {
|
|
103
103
|
denom?: string;
|
|
104
104
|
amount?: string;
|
|
105
|
-
} & { [K_3 in Exclude<keyof I_1["params"]["mintFee"], keyof import("
|
|
105
|
+
} & { [K_3 in Exclude<keyof I_1["params"]["mintFee"], keyof import("cosmjs-types/cosmos/base/v1beta1/coin").Coin>]: never; };
|
|
106
106
|
} & { [K_4 in Exclude<keyof I_1["params"], "mintFee">]: never; };
|
|
107
107
|
} & { [K_5 in Exclude<keyof I_1, "params">]: never; }>(object: I_1): QueryParamsResponse;
|
|
108
108
|
};
|
|
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QueryWhitelistedAccountsForNFTResponse = expor
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const pagination_1 = require("
|
|
10
|
+
const pagination_1 = require("cosmjs-types/cosmos/base/query/v1beta1/pagination");
|
|
11
11
|
const nft_1 = require("./nft");
|
|
12
12
|
const params_1 = require("./params");
|
|
13
13
|
exports.protobufPackage = "coreum.asset.nft.v1";
|
|
@@ -80,11 +80,14 @@ exports.QueryParamsResponse = {
|
|
|
80
80
|
return message;
|
|
81
81
|
},
|
|
82
82
|
fromJSON(object) {
|
|
83
|
-
return {
|
|
83
|
+
return {
|
|
84
|
+
params: isSet(object.params) ? params_1.Params.fromJSON(object.params) : undefined,
|
|
85
|
+
};
|
|
84
86
|
},
|
|
85
87
|
toJSON(message) {
|
|
86
88
|
const obj = {};
|
|
87
|
-
message.params !== undefined &&
|
|
89
|
+
message.params !== undefined &&
|
|
90
|
+
(obj.params = message.params ? params_1.Params.toJSON(message.params) : undefined);
|
|
88
91
|
return obj;
|
|
89
92
|
},
|
|
90
93
|
create(base) {
|
|
@@ -92,9 +95,10 @@ exports.QueryParamsResponse = {
|
|
|
92
95
|
},
|
|
93
96
|
fromPartial(object) {
|
|
94
97
|
const message = createBaseQueryParamsResponse();
|
|
95
|
-
message.params =
|
|
96
|
-
|
|
97
|
-
|
|
98
|
+
message.params =
|
|
99
|
+
object.params !== undefined && object.params !== null
|
|
100
|
+
? params_1.Params.fromPartial(object.params)
|
|
101
|
+
: undefined;
|
|
98
102
|
return message;
|
|
99
103
|
},
|
|
100
104
|
};
|
|
@@ -179,11 +183,14 @@ exports.QueryClassResponse = {
|
|
|
179
183
|
return message;
|
|
180
184
|
},
|
|
181
185
|
fromJSON(object) {
|
|
182
|
-
return {
|
|
186
|
+
return {
|
|
187
|
+
class: isSet(object.class) ? nft_1.Class.fromJSON(object.class) : undefined,
|
|
188
|
+
};
|
|
183
189
|
},
|
|
184
190
|
toJSON(message) {
|
|
185
191
|
const obj = {};
|
|
186
|
-
message.class !== undefined &&
|
|
192
|
+
message.class !== undefined &&
|
|
193
|
+
(obj.class = message.class ? nft_1.Class.toJSON(message.class) : undefined);
|
|
187
194
|
return obj;
|
|
188
195
|
},
|
|
189
196
|
create(base) {
|
|
@@ -191,7 +198,10 @@ exports.QueryClassResponse = {
|
|
|
191
198
|
},
|
|
192
199
|
fromPartial(object) {
|
|
193
200
|
const message = createBaseQueryClassResponse();
|
|
194
|
-
message.class =
|
|
201
|
+
message.class =
|
|
202
|
+
object.class !== undefined && object.class !== null
|
|
203
|
+
? nft_1.Class.fromPartial(object.class)
|
|
204
|
+
: undefined;
|
|
195
205
|
return message;
|
|
196
206
|
},
|
|
197
207
|
};
|
|
@@ -414,11 +424,16 @@ exports.QueryWhitelistedResponse = {
|
|
|
414
424
|
return message;
|
|
415
425
|
},
|
|
416
426
|
fromJSON(object) {
|
|
417
|
-
return {
|
|
427
|
+
return {
|
|
428
|
+
whitelisted: isSet(object.whitelisted)
|
|
429
|
+
? Boolean(object.whitelisted)
|
|
430
|
+
: false,
|
|
431
|
+
};
|
|
418
432
|
},
|
|
419
433
|
toJSON(message) {
|
|
420
434
|
const obj = {};
|
|
421
|
-
message.whitelisted !== undefined &&
|
|
435
|
+
message.whitelisted !== undefined &&
|
|
436
|
+
(obj.whitelisted = message.whitelisted);
|
|
422
437
|
return obj;
|
|
423
438
|
},
|
|
424
439
|
create(base) {
|
|
@@ -482,7 +497,9 @@ exports.QueryWhitelistedAccountsForNFTRequest = {
|
|
|
482
497
|
},
|
|
483
498
|
fromJSON(object) {
|
|
484
499
|
return {
|
|
485
|
-
pagination: isSet(object.pagination)
|
|
500
|
+
pagination: isSet(object.pagination)
|
|
501
|
+
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
502
|
+
: undefined,
|
|
486
503
|
id: isSet(object.id) ? String(object.id) : "",
|
|
487
504
|
classId: isSet(object.classId) ? String(object.classId) : "",
|
|
488
505
|
};
|
|
@@ -490,7 +507,9 @@ exports.QueryWhitelistedAccountsForNFTRequest = {
|
|
|
490
507
|
toJSON(message) {
|
|
491
508
|
const obj = {};
|
|
492
509
|
message.pagination !== undefined &&
|
|
493
|
-
(obj.pagination = message.pagination
|
|
510
|
+
(obj.pagination = message.pagination
|
|
511
|
+
? pagination_1.PageRequest.toJSON(message.pagination)
|
|
512
|
+
: undefined);
|
|
494
513
|
message.id !== undefined && (obj.id = message.id);
|
|
495
514
|
message.classId !== undefined && (obj.classId = message.classId);
|
|
496
515
|
return obj;
|
|
@@ -501,9 +520,10 @@ exports.QueryWhitelistedAccountsForNFTRequest = {
|
|
|
501
520
|
fromPartial(object) {
|
|
502
521
|
var _a, _b;
|
|
503
522
|
const message = createBaseQueryWhitelistedAccountsForNFTRequest();
|
|
504
|
-
message.pagination =
|
|
505
|
-
|
|
506
|
-
|
|
523
|
+
message.pagination =
|
|
524
|
+
object.pagination !== undefined && object.pagination !== null
|
|
525
|
+
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
526
|
+
: undefined;
|
|
507
527
|
message.id = (_a = object.id) !== null && _a !== void 0 ? _a : "";
|
|
508
528
|
message.classId = (_b = object.classId) !== null && _b !== void 0 ? _b : "";
|
|
509
529
|
return message;
|
|
@@ -551,14 +571,20 @@ exports.QueryWhitelistedAccountsForNFTResponse = {
|
|
|
551
571
|
},
|
|
552
572
|
fromJSON(object) {
|
|
553
573
|
return {
|
|
554
|
-
pagination: isSet(object.pagination)
|
|
555
|
-
|
|
574
|
+
pagination: isSet(object.pagination)
|
|
575
|
+
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
576
|
+
: undefined,
|
|
577
|
+
accounts: Array.isArray(object === null || object === void 0 ? void 0 : object.accounts)
|
|
578
|
+
? object.accounts.map((e) => String(e))
|
|
579
|
+
: [],
|
|
556
580
|
};
|
|
557
581
|
},
|
|
558
582
|
toJSON(message) {
|
|
559
583
|
const obj = {};
|
|
560
584
|
message.pagination !== undefined &&
|
|
561
|
-
(obj.pagination = message.pagination
|
|
585
|
+
(obj.pagination = message.pagination
|
|
586
|
+
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
587
|
+
: undefined);
|
|
562
588
|
if (message.accounts) {
|
|
563
589
|
obj.accounts = message.accounts.map((e) => e);
|
|
564
590
|
}
|
|
@@ -573,9 +599,10 @@ exports.QueryWhitelistedAccountsForNFTResponse = {
|
|
|
573
599
|
fromPartial(object) {
|
|
574
600
|
var _a;
|
|
575
601
|
const message = createBaseQueryWhitelistedAccountsForNFTResponse();
|
|
576
|
-
message.pagination =
|
|
577
|
-
|
|
578
|
-
|
|
602
|
+
message.pagination =
|
|
603
|
+
object.pagination !== undefined && object.pagination !== null
|
|
604
|
+
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
605
|
+
: undefined;
|
|
579
606
|
message.accounts = ((_a = object.accounts) === null || _a === void 0 ? void 0 : _a.map((e) => e)) || [];
|
|
580
607
|
return message;
|
|
581
608
|
},
|
|
@@ -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. */
|
|
@@ -7,7 +7,7 @@ exports.GenesisState = exports.protobufPackage = void 0;
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const coin_1 = require("
|
|
10
|
+
const coin_1 = require("cosmjs-types/cosmos/base/v1beta1/coin");
|
|
11
11
|
const params_1 = require("./params");
|
|
12
12
|
exports.protobufPackage = "coreum.feemodel.v1";
|
|
13
13
|
function createBaseGenesisState() {
|
|
@@ -53,14 +53,19 @@ exports.GenesisState = {
|
|
|
53
53
|
fromJSON(object) {
|
|
54
54
|
return {
|
|
55
55
|
params: isSet(object.params) ? params_1.Params.fromJSON(object.params) : undefined,
|
|
56
|
-
minGasPrice: isSet(object.minGasPrice)
|
|
56
|
+
minGasPrice: isSet(object.minGasPrice)
|
|
57
|
+
? coin_1.DecCoin.fromJSON(object.minGasPrice)
|
|
58
|
+
: undefined,
|
|
57
59
|
};
|
|
58
60
|
},
|
|
59
61
|
toJSON(message) {
|
|
60
62
|
const obj = {};
|
|
61
|
-
message.params !== undefined &&
|
|
63
|
+
message.params !== undefined &&
|
|
64
|
+
(obj.params = message.params ? params_1.Params.toJSON(message.params) : undefined);
|
|
62
65
|
message.minGasPrice !== undefined &&
|
|
63
|
-
(obj.minGasPrice = message.minGasPrice
|
|
66
|
+
(obj.minGasPrice = message.minGasPrice
|
|
67
|
+
? coin_1.DecCoin.toJSON(message.minGasPrice)
|
|
68
|
+
: undefined);
|
|
64
69
|
return obj;
|
|
65
70
|
},
|
|
66
71
|
create(base) {
|
|
@@ -68,12 +73,14 @@ exports.GenesisState = {
|
|
|
68
73
|
},
|
|
69
74
|
fromPartial(object) {
|
|
70
75
|
const message = createBaseGenesisState();
|
|
71
|
-
message.params =
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
76
|
+
message.params =
|
|
77
|
+
object.params !== undefined && object.params !== null
|
|
78
|
+
? params_1.Params.fromPartial(object.params)
|
|
79
|
+
: undefined;
|
|
80
|
+
message.minGasPrice =
|
|
81
|
+
object.minGasPrice !== undefined && object.minGasPrice !== null
|
|
82
|
+
? coin_1.DecCoin.fromPartial(object.minGasPrice)
|
|
83
|
+
: undefined;
|
|
77
84
|
return message;
|
|
78
85
|
},
|
|
79
86
|
};
|
|
@@ -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. */
|
|
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QueryParamsResponse = exports.QueryParamsReque
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const coin_1 = require("
|
|
10
|
+
const coin_1 = require("cosmjs-types/cosmos/base/v1beta1/coin");
|
|
11
11
|
const params_1 = require("./params");
|
|
12
12
|
exports.protobufPackage = "coreum.feemodel.v1";
|
|
13
13
|
function createBaseQueryMinGasPriceRequest() {
|
|
@@ -79,12 +79,18 @@ exports.QueryMinGasPriceResponse = {
|
|
|
79
79
|
return message;
|
|
80
80
|
},
|
|
81
81
|
fromJSON(object) {
|
|
82
|
-
return {
|
|
82
|
+
return {
|
|
83
|
+
minGasPrice: isSet(object.minGasPrice)
|
|
84
|
+
? coin_1.DecCoin.fromJSON(object.minGasPrice)
|
|
85
|
+
: undefined,
|
|
86
|
+
};
|
|
83
87
|
},
|
|
84
88
|
toJSON(message) {
|
|
85
89
|
const obj = {};
|
|
86
90
|
message.minGasPrice !== undefined &&
|
|
87
|
-
(obj.minGasPrice = message.minGasPrice
|
|
91
|
+
(obj.minGasPrice = message.minGasPrice
|
|
92
|
+
? coin_1.DecCoin.toJSON(message.minGasPrice)
|
|
93
|
+
: undefined);
|
|
88
94
|
return obj;
|
|
89
95
|
},
|
|
90
96
|
create(base) {
|
|
@@ -92,9 +98,10 @@ exports.QueryMinGasPriceResponse = {
|
|
|
92
98
|
},
|
|
93
99
|
fromPartial(object) {
|
|
94
100
|
const message = createBaseQueryMinGasPriceResponse();
|
|
95
|
-
message.minGasPrice =
|
|
96
|
-
|
|
97
|
-
|
|
101
|
+
message.minGasPrice =
|
|
102
|
+
object.minGasPrice !== undefined && object.minGasPrice !== null
|
|
103
|
+
? coin_1.DecCoin.fromPartial(object.minGasPrice)
|
|
104
|
+
: undefined;
|
|
98
105
|
return message;
|
|
99
106
|
},
|
|
100
107
|
};
|
|
@@ -167,11 +174,14 @@ exports.QueryParamsResponse = {
|
|
|
167
174
|
return message;
|
|
168
175
|
},
|
|
169
176
|
fromJSON(object) {
|
|
170
|
-
return {
|
|
177
|
+
return {
|
|
178
|
+
params: isSet(object.params) ? params_1.Params.fromJSON(object.params) : undefined,
|
|
179
|
+
};
|
|
171
180
|
},
|
|
172
181
|
toJSON(message) {
|
|
173
182
|
const obj = {};
|
|
174
|
-
message.params !== undefined &&
|
|
183
|
+
message.params !== undefined &&
|
|
184
|
+
(obj.params = message.params ? params_1.Params.toJSON(message.params) : undefined);
|
|
175
185
|
return obj;
|
|
176
186
|
},
|
|
177
187
|
create(base) {
|
|
@@ -179,9 +189,10 @@ exports.QueryParamsResponse = {
|
|
|
179
189
|
},
|
|
180
190
|
fromPartial(object) {
|
|
181
191
|
const message = createBaseQueryParamsResponse();
|
|
182
|
-
message.params =
|
|
183
|
-
|
|
184
|
-
|
|
192
|
+
message.params =
|
|
193
|
+
object.params !== undefined && object.params !== null
|
|
194
|
+
? params_1.Params.fromPartial(object.params)
|
|
195
|
+
: undefined;
|
|
185
196
|
return message;
|
|
186
197
|
},
|
|
187
198
|
};
|
|
@@ -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 */
|
|
@@ -7,7 +7,7 @@ exports.QueryClientImpl = exports.QueryClassesResponse = exports.QueryClassesReq
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
const long_1 = __importDefault(require("long"));
|
|
9
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
-
const pagination_1 = require("
|
|
10
|
+
const pagination_1 = require("cosmjs-types/cosmos/base/query/v1beta1/pagination");
|
|
11
11
|
const nft_1 = require("./nft");
|
|
12
12
|
exports.protobufPackage = "coreum.nft.v1beta1";
|
|
13
13
|
function createBaseQueryBalanceRequest() {
|
|
@@ -105,11 +105,14 @@ exports.QueryBalanceResponse = {
|
|
|
105
105
|
return message;
|
|
106
106
|
},
|
|
107
107
|
fromJSON(object) {
|
|
108
|
-
return {
|
|
108
|
+
return {
|
|
109
|
+
amount: isSet(object.amount) ? long_1.default.fromValue(object.amount) : long_1.default.UZERO,
|
|
110
|
+
};
|
|
109
111
|
},
|
|
110
112
|
toJSON(message) {
|
|
111
113
|
const obj = {};
|
|
112
|
-
message.amount !== undefined &&
|
|
114
|
+
message.amount !== undefined &&
|
|
115
|
+
(obj.amount = (message.amount || long_1.default.UZERO).toString());
|
|
113
116
|
return obj;
|
|
114
117
|
},
|
|
115
118
|
create(base) {
|
|
@@ -117,9 +120,10 @@ exports.QueryBalanceResponse = {
|
|
|
117
120
|
},
|
|
118
121
|
fromPartial(object) {
|
|
119
122
|
const message = createBaseQueryBalanceResponse();
|
|
120
|
-
message.amount =
|
|
121
|
-
|
|
122
|
-
|
|
123
|
+
message.amount =
|
|
124
|
+
object.amount !== undefined && object.amount !== null
|
|
125
|
+
? long_1.default.fromValue(object.amount)
|
|
126
|
+
: long_1.default.UZERO;
|
|
123
127
|
return message;
|
|
124
128
|
},
|
|
125
129
|
};
|
|
@@ -316,11 +320,14 @@ exports.QuerySupplyResponse = {
|
|
|
316
320
|
return message;
|
|
317
321
|
},
|
|
318
322
|
fromJSON(object) {
|
|
319
|
-
return {
|
|
323
|
+
return {
|
|
324
|
+
amount: isSet(object.amount) ? long_1.default.fromValue(object.amount) : long_1.default.UZERO,
|
|
325
|
+
};
|
|
320
326
|
},
|
|
321
327
|
toJSON(message) {
|
|
322
328
|
const obj = {};
|
|
323
|
-
message.amount !== undefined &&
|
|
329
|
+
message.amount !== undefined &&
|
|
330
|
+
(obj.amount = (message.amount || long_1.default.UZERO).toString());
|
|
324
331
|
return obj;
|
|
325
332
|
},
|
|
326
333
|
create(base) {
|
|
@@ -328,9 +335,10 @@ exports.QuerySupplyResponse = {
|
|
|
328
335
|
},
|
|
329
336
|
fromPartial(object) {
|
|
330
337
|
const message = createBaseQuerySupplyResponse();
|
|
331
|
-
message.amount =
|
|
332
|
-
|
|
333
|
-
|
|
338
|
+
message.amount =
|
|
339
|
+
object.amount !== undefined && object.amount !== null
|
|
340
|
+
? long_1.default.fromValue(object.amount)
|
|
341
|
+
: long_1.default.UZERO;
|
|
334
342
|
return message;
|
|
335
343
|
},
|
|
336
344
|
};
|
|
@@ -387,7 +395,9 @@ exports.QueryNFTsRequest = {
|
|
|
387
395
|
return {
|
|
388
396
|
classId: isSet(object.classId) ? String(object.classId) : "",
|
|
389
397
|
owner: isSet(object.owner) ? String(object.owner) : "",
|
|
390
|
-
pagination: isSet(object.pagination)
|
|
398
|
+
pagination: isSet(object.pagination)
|
|
399
|
+
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
400
|
+
: undefined,
|
|
391
401
|
};
|
|
392
402
|
},
|
|
393
403
|
toJSON(message) {
|
|
@@ -395,7 +405,9 @@ exports.QueryNFTsRequest = {
|
|
|
395
405
|
message.classId !== undefined && (obj.classId = message.classId);
|
|
396
406
|
message.owner !== undefined && (obj.owner = message.owner);
|
|
397
407
|
message.pagination !== undefined &&
|
|
398
|
-
(obj.pagination = message.pagination
|
|
408
|
+
(obj.pagination = message.pagination
|
|
409
|
+
? pagination_1.PageRequest.toJSON(message.pagination)
|
|
410
|
+
: undefined);
|
|
399
411
|
return obj;
|
|
400
412
|
},
|
|
401
413
|
create(base) {
|
|
@@ -406,9 +418,10 @@ exports.QueryNFTsRequest = {
|
|
|
406
418
|
const message = createBaseQueryNFTsRequest();
|
|
407
419
|
message.classId = (_a = object.classId) !== null && _a !== void 0 ? _a : "";
|
|
408
420
|
message.owner = (_b = object.owner) !== null && _b !== void 0 ? _b : "";
|
|
409
|
-
message.pagination =
|
|
410
|
-
|
|
411
|
-
|
|
421
|
+
message.pagination =
|
|
422
|
+
object.pagination !== undefined && object.pagination !== null
|
|
423
|
+
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
424
|
+
: undefined;
|
|
412
425
|
return message;
|
|
413
426
|
},
|
|
414
427
|
};
|
|
@@ -454,20 +467,26 @@ exports.QueryNFTsResponse = {
|
|
|
454
467
|
},
|
|
455
468
|
fromJSON(object) {
|
|
456
469
|
return {
|
|
457
|
-
nfts: Array.isArray(object === null || object === void 0 ? void 0 : object.nfts)
|
|
458
|
-
|
|
470
|
+
nfts: Array.isArray(object === null || object === void 0 ? void 0 : object.nfts)
|
|
471
|
+
? object.nfts.map((e) => nft_1.NFT.fromJSON(e))
|
|
472
|
+
: [],
|
|
473
|
+
pagination: isSet(object.pagination)
|
|
474
|
+
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
475
|
+
: undefined,
|
|
459
476
|
};
|
|
460
477
|
},
|
|
461
478
|
toJSON(message) {
|
|
462
479
|
const obj = {};
|
|
463
480
|
if (message.nfts) {
|
|
464
|
-
obj.nfts = message.nfts.map((e) => e ? nft_1.NFT.toJSON(e) : undefined);
|
|
481
|
+
obj.nfts = message.nfts.map((e) => (e ? nft_1.NFT.toJSON(e) : undefined));
|
|
465
482
|
}
|
|
466
483
|
else {
|
|
467
484
|
obj.nfts = [];
|
|
468
485
|
}
|
|
469
486
|
message.pagination !== undefined &&
|
|
470
|
-
(obj.pagination = message.pagination
|
|
487
|
+
(obj.pagination = message.pagination
|
|
488
|
+
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
489
|
+
: undefined);
|
|
471
490
|
return obj;
|
|
472
491
|
},
|
|
473
492
|
create(base) {
|
|
@@ -477,9 +496,10 @@ exports.QueryNFTsResponse = {
|
|
|
477
496
|
var _a;
|
|
478
497
|
const message = createBaseQueryNFTsResponse();
|
|
479
498
|
message.nfts = ((_a = object.nfts) === null || _a === void 0 ? void 0 : _a.map((e) => nft_1.NFT.fromPartial(e))) || [];
|
|
480
|
-
message.pagination =
|
|
481
|
-
|
|
482
|
-
|
|
499
|
+
message.pagination =
|
|
500
|
+
object.pagination !== undefined && object.pagination !== null
|
|
501
|
+
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
502
|
+
: undefined;
|
|
483
503
|
return message;
|
|
484
504
|
},
|
|
485
505
|
};
|
|
@@ -582,7 +602,8 @@ exports.QueryNFTResponse = {
|
|
|
582
602
|
},
|
|
583
603
|
toJSON(message) {
|
|
584
604
|
const obj = {};
|
|
585
|
-
message.nft !== undefined &&
|
|
605
|
+
message.nft !== undefined &&
|
|
606
|
+
(obj.nft = message.nft ? nft_1.NFT.toJSON(message.nft) : undefined);
|
|
586
607
|
return obj;
|
|
587
608
|
},
|
|
588
609
|
create(base) {
|
|
@@ -590,7 +611,10 @@ exports.QueryNFTResponse = {
|
|
|
590
611
|
},
|
|
591
612
|
fromPartial(object) {
|
|
592
613
|
const message = createBaseQueryNFTResponse();
|
|
593
|
-
message.nft =
|
|
614
|
+
message.nft =
|
|
615
|
+
object.nft !== undefined && object.nft !== null
|
|
616
|
+
? nft_1.NFT.fromPartial(object.nft)
|
|
617
|
+
: undefined;
|
|
594
618
|
return message;
|
|
595
619
|
},
|
|
596
620
|
};
|
|
@@ -675,11 +699,14 @@ exports.QueryClassResponse = {
|
|
|
675
699
|
return message;
|
|
676
700
|
},
|
|
677
701
|
fromJSON(object) {
|
|
678
|
-
return {
|
|
702
|
+
return {
|
|
703
|
+
class: isSet(object.class) ? nft_1.Class.fromJSON(object.class) : undefined,
|
|
704
|
+
};
|
|
679
705
|
},
|
|
680
706
|
toJSON(message) {
|
|
681
707
|
const obj = {};
|
|
682
|
-
message.class !== undefined &&
|
|
708
|
+
message.class !== undefined &&
|
|
709
|
+
(obj.class = message.class ? nft_1.Class.toJSON(message.class) : undefined);
|
|
683
710
|
return obj;
|
|
684
711
|
},
|
|
685
712
|
create(base) {
|
|
@@ -687,7 +714,10 @@ exports.QueryClassResponse = {
|
|
|
687
714
|
},
|
|
688
715
|
fromPartial(object) {
|
|
689
716
|
const message = createBaseQueryClassResponse();
|
|
690
|
-
message.class =
|
|
717
|
+
message.class =
|
|
718
|
+
object.class !== undefined && object.class !== null
|
|
719
|
+
? nft_1.Class.fromPartial(object.class)
|
|
720
|
+
: undefined;
|
|
691
721
|
return message;
|
|
692
722
|
},
|
|
693
723
|
};
|
|
@@ -723,12 +753,18 @@ exports.QueryClassesRequest = {
|
|
|
723
753
|
return message;
|
|
724
754
|
},
|
|
725
755
|
fromJSON(object) {
|
|
726
|
-
return {
|
|
756
|
+
return {
|
|
757
|
+
pagination: isSet(object.pagination)
|
|
758
|
+
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
759
|
+
: undefined,
|
|
760
|
+
};
|
|
727
761
|
},
|
|
728
762
|
toJSON(message) {
|
|
729
763
|
const obj = {};
|
|
730
764
|
message.pagination !== undefined &&
|
|
731
|
-
(obj.pagination = message.pagination
|
|
765
|
+
(obj.pagination = message.pagination
|
|
766
|
+
? pagination_1.PageRequest.toJSON(message.pagination)
|
|
767
|
+
: undefined);
|
|
732
768
|
return obj;
|
|
733
769
|
},
|
|
734
770
|
create(base) {
|
|
@@ -736,9 +772,10 @@ exports.QueryClassesRequest = {
|
|
|
736
772
|
},
|
|
737
773
|
fromPartial(object) {
|
|
738
774
|
const message = createBaseQueryClassesRequest();
|
|
739
|
-
message.pagination =
|
|
740
|
-
|
|
741
|
-
|
|
775
|
+
message.pagination =
|
|
776
|
+
object.pagination !== undefined && object.pagination !== null
|
|
777
|
+
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
778
|
+
: undefined;
|
|
742
779
|
return message;
|
|
743
780
|
},
|
|
744
781
|
};
|
|
@@ -784,8 +821,12 @@ exports.QueryClassesResponse = {
|
|
|
784
821
|
},
|
|
785
822
|
fromJSON(object) {
|
|
786
823
|
return {
|
|
787
|
-
classes: Array.isArray(object === null || object === void 0 ? void 0 : object.classes)
|
|
788
|
-
|
|
824
|
+
classes: Array.isArray(object === null || object === void 0 ? void 0 : object.classes)
|
|
825
|
+
? object.classes.map((e) => nft_1.Class.fromJSON(e))
|
|
826
|
+
: [],
|
|
827
|
+
pagination: isSet(object.pagination)
|
|
828
|
+
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
829
|
+
: undefined,
|
|
789
830
|
};
|
|
790
831
|
},
|
|
791
832
|
toJSON(message) {
|
|
@@ -797,7 +838,9 @@ exports.QueryClassesResponse = {
|
|
|
797
838
|
obj.classes = [];
|
|
798
839
|
}
|
|
799
840
|
message.pagination !== undefined &&
|
|
800
|
-
(obj.pagination = message.pagination
|
|
841
|
+
(obj.pagination = message.pagination
|
|
842
|
+
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
843
|
+
: undefined);
|
|
801
844
|
return obj;
|
|
802
845
|
},
|
|
803
846
|
create(base) {
|
|
@@ -807,9 +850,10 @@ exports.QueryClassesResponse = {
|
|
|
807
850
|
var _a;
|
|
808
851
|
const message = createBaseQueryClassesResponse();
|
|
809
852
|
message.classes = ((_a = object.classes) === null || _a === void 0 ? void 0 : _a.map((e) => nft_1.Class.fromPartial(e))) || [];
|
|
810
|
-
message.pagination =
|
|
811
|
-
|
|
812
|
-
|
|
853
|
+
message.pagination =
|
|
854
|
+
object.pagination !== undefined && object.pagination !== null
|
|
855
|
+
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
856
|
+
: undefined;
|
|
813
857
|
return message;
|
|
814
858
|
},
|
|
815
859
|
};
|
|
@@ -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,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.setupBankExtension = void 0;
|
|
4
|
-
const query_1 = require("
|
|
5
|
-
const query_2 = require("
|
|
4
|
+
const query_1 = require("cosmjs-types/cosmos/bank/v1beta1/query");
|
|
5
|
+
const query_2 = require("cosmjs-types/cosmos/bank/v1beta1/query");
|
|
6
6
|
const stargate_1 = require("@cosmjs/stargate");
|
|
7
7
|
function setupBankExtension(base) {
|
|
8
8
|
const rpc = (0, stargate_1.createProtobufRpcClient)(base);
|