coreum-js 2.16.2 → 2.17.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.js +16 -17
- package/dist/main/coreum/asset/ft/v1/authz.d.ts +38 -0
- package/dist/main/coreum/asset/ft/v1/authz.js +122 -0
- package/dist/main/coreum/asset/ft/v1/event.d.ts +52 -120
- package/dist/main/coreum/asset/ft/v1/event.js +744 -138
- package/dist/main/coreum/asset/ft/v1/genesis.d.ts +31 -517
- package/dist/main/coreum/asset/ft/v1/genesis.js +273 -62
- package/dist/main/coreum/asset/ft/v1/params.d.ts +12 -63
- package/dist/main/coreum/asset/ft/v1/params.js +37 -33
- package/dist/main/coreum/asset/ft/v1/query.d.ts +86 -1950
- package/dist/main/coreum/asset/ft/v1/query.js +697 -217
- package/dist/main/coreum/asset/ft/v1/token.d.ts +17 -249
- package/dist/main/coreum/asset/ft/v1/token.js +273 -197
- package/dist/main/coreum/asset/ft/v1/tx.d.ts +30 -755
- package/dist/main/coreum/asset/ft/v1/tx.js +502 -386
- package/dist/main/coreum/asset/index.d.ts +2 -3
- package/dist/main/coreum/asset/nft/v1/authz.d.ts +33 -0
- package/dist/main/coreum/asset/nft/v1/authz.js +137 -0
- package/dist/main/coreum/asset/nft/v1/event.d.ts +35 -147
- package/dist/main/coreum/asset/nft/v1/event.js +475 -147
- package/dist/main/coreum/asset/nft/v1/genesis.d.ts +27 -286
- package/dist/main/coreum/asset/nft/v1/genesis.js +311 -119
- package/dist/main/coreum/asset/nft/v1/nft.d.ts +20 -108
- package/dist/main/coreum/asset/nft/v1/nft.js +136 -101
- package/dist/main/coreum/asset/nft/v1/params.d.ts +12 -38
- package/dist/main/coreum/asset/nft/v1/params.js +17 -20
- package/dist/main/coreum/asset/nft/v1/query.d.ts +110 -706
- package/dist/main/coreum/asset/nft/v1/query.js +1079 -185
- package/dist/main/coreum/asset/nft/v1/tx.d.ts +96 -266
- package/dist/main/coreum/asset/nft/v1/tx.js +865 -234
- package/dist/main/coreum/asset/nft/v1/types.d.ts +38 -19
- package/dist/main/coreum/asset/nft/v1/types.js +273 -45
- package/dist/main/coreum/customparams/v1/genesis.d.ts +12 -32
- package/dist/main/coreum/customparams/v1/genesis.js +26 -22
- package/dist/main/coreum/customparams/v1/params.d.ts +11 -19
- package/dist/main/coreum/customparams/v1/params.js +23 -20
- package/dist/main/coreum/customparams/v1/query.d.ts +14 -40
- package/dist/main/coreum/customparams/v1/query.js +35 -29
- package/dist/main/coreum/dex/index.d.ts +1 -0
- package/dist/main/coreum/dex/index.js +12 -0
- package/dist/main/coreum/dex/v1/event.d.ts +73 -0
- package/dist/main/coreum/dex/v1/event.js +470 -0
- package/dist/main/coreum/dex/v1/genesis.d.ts +49 -0
- package/dist/main/coreum/dex/v1/genesis.js +318 -0
- package/dist/main/coreum/dex/v1/order.d.ts +172 -0
- package/dist/main/coreum/dex/v1/order.js +1137 -0
- package/dist/main/coreum/dex/v1/params.d.ts +34 -0
- package/dist/main/coreum/dex/v1/params.js +139 -0
- package/dist/main/coreum/dex/v1/query.d.ts +133 -0
- package/dist/main/coreum/dex/v1/query.js +873 -0
- package/dist/main/coreum/dex/v1/tx.d.ts +102 -0
- package/dist/main/coreum/dex/v1/tx.js +521 -0
- package/dist/main/coreum/extensions/dex.d.ts +12 -0
- package/dist/main/coreum/extensions/dex.js +32 -0
- package/dist/main/coreum/feemodel/v1/genesis.d.ts +13 -233
- package/dist/main/coreum/feemodel/v1/genesis.js +23 -24
- package/dist/main/coreum/feemodel/v1/params.d.ts +14 -337
- package/dist/main/coreum/feemodel/v1/params.js +113 -66
- package/dist/main/coreum/feemodel/v1/query.d.ts +30 -261
- package/dist/main/coreum/feemodel/v1/query.js +196 -43
- package/dist/main/coreum/index.d.ts +46 -0
- package/dist/main/coreum/index.js +58 -1
- package/dist/main/coreum/nft/index.d.ts +1 -2
- package/dist/main/coreum/nft/v1beta1/event.d.ts +23 -79
- package/dist/main/coreum/nft/v1beta1/event.js +103 -77
- package/dist/main/coreum/nft/v1beta1/genesis.d.ts +13 -435
- package/dist/main/coreum/nft/v1beta1/genesis.js +50 -52
- package/dist/main/coreum/nft/v1beta1/nft.d.ts +15 -114
- package/dist/main/coreum/nft/v1beta1/nft.js +111 -81
- package/dist/main/coreum/nft/v1beta1/query.d.ts +54 -1628
- package/dist/main/coreum/nft/v1beta1/query.js +259 -223
- package/dist/main/coreum/nft/v1beta1/tx.d.ts +13 -39
- package/dist/main/coreum/nft/v1beta1/tx.js +54 -43
- package/dist/main/cosmos/extensions/distribution.d.ts +4 -4
- package/dist/main/cosmos/extensions/distribution.js +9 -9
- package/dist/main/cosmos/extensions/gov.d.ts +13 -13
- package/dist/main/cosmos/extensions/gov.js +14 -8
- package/dist/main/cosmos/index.d.ts +8 -8
- package/dist/main/google/api/http.js +18 -21
- package/dist/main/google/protobuf/any.js +3 -4
- package/dist/main/google/protobuf/duration.js +3 -4
- package/dist/main/google/protobuf/timestamp.js +3 -4
- package/dist/main/services/cosmostation.js +1 -1
- package/dist/main/tendermint/abci/types.js +183 -223
- package/dist/main/tendermint/crypto/keys.js +3 -4
- package/dist/main/tendermint/crypto/proof.js +19 -24
- package/dist/main/tendermint/types/params.js +15 -20
- package/dist/main/tendermint/types/types.js +57 -68
- package/dist/main/tendermint/types/validator.js +10 -13
- package/dist/main/tendermint/version/types.js +6 -8
- package/dist/main/types/core.d.ts +2 -1
- package/dist/main/types/core.js +2 -0
- package/dist/main/wasm/v1/authz.d.ts +20 -471
- package/dist/main/wasm/v1/authz.js +129 -148
- package/dist/main/wasm/v1/genesis.d.ts +14 -1020
- package/dist/main/wasm/v1/genesis.js +169 -140
- package/dist/main/wasm/v1/ibc.d.ts +13 -62
- package/dist/main/wasm/v1/ibc.js +91 -76
- package/dist/main/wasm/v1/index.d.ts +1 -2
- package/dist/main/wasm/v1/pagination.js +9 -11
- package/dist/main/wasm/v1/proposal.d.ts +23 -720
- package/dist/main/wasm/v1/proposal.js +634 -465
- package/dist/main/wasm/v1/query.d.ts +35 -1201
- package/dist/main/wasm/v1/query.js +370 -363
- package/dist/main/wasm/v1/tx.d.ts +37 -788
- package/dist/main/wasm/v1/tx.js +621 -497
- package/dist/main/wasm/v1/types.d.ts +19 -297
- package/dist/main/wasm/v1/types.js +219 -190
- package/dist/module/client/index.js +4 -3
- package/dist/module/coreum/asset/ft/v1/authz.d.ts +38 -0
- package/dist/module/coreum/asset/ft/v1/authz.js +119 -0
- package/dist/module/coreum/asset/ft/v1/event.d.ts +52 -120
- package/dist/module/coreum/asset/ft/v1/event.js +721 -109
- package/dist/module/coreum/asset/ft/v1/genesis.d.ts +31 -517
- package/dist/module/coreum/asset/ft/v1/genesis.js +266 -50
- package/dist/module/coreum/asset/ft/v1/params.d.ts +12 -63
- package/dist/module/coreum/asset/ft/v1/params.js +35 -27
- package/dist/module/coreum/asset/ft/v1/query.d.ts +86 -1950
- package/dist/module/coreum/asset/ft/v1/query.js +672 -180
- package/dist/module/coreum/asset/ft/v1/token.d.ts +17 -249
- package/dist/module/coreum/asset/ft/v1/token.js +236 -152
- package/dist/module/coreum/asset/ft/v1/tx.d.ts +30 -755
- package/dist/module/coreum/asset/ft/v1/tx.js +437 -301
- package/dist/module/coreum/asset/index.d.ts +2 -3
- package/dist/module/coreum/asset/nft/v1/authz.d.ts +33 -0
- package/dist/module/coreum/asset/nft/v1/authz.js +134 -0
- package/dist/module/coreum/asset/nft/v1/event.d.ts +35 -147
- package/dist/module/coreum/asset/nft/v1/event.js +448 -112
- package/dist/module/coreum/asset/nft/v1/genesis.d.ts +27 -286
- package/dist/module/coreum/asset/nft/v1/genesis.js +299 -100
- package/dist/module/coreum/asset/nft/v1/nft.d.ts +20 -108
- package/dist/module/coreum/asset/nft/v1/nft.js +121 -81
- package/dist/module/coreum/asset/nft/v1/params.d.ts +12 -38
- package/dist/module/coreum/asset/nft/v1/params.js +16 -16
- package/dist/module/coreum/asset/nft/v1/query.d.ts +110 -706
- package/dist/module/coreum/asset/nft/v1/query.js +1057 -153
- package/dist/module/coreum/asset/nft/v1/tx.d.ts +96 -266
- package/dist/module/coreum/asset/nft/v1/tx.js +825 -184
- package/dist/module/coreum/asset/nft/v1/types.d.ts +38 -19
- package/dist/module/coreum/asset/nft/v1/types.js +269 -39
- package/dist/module/coreum/customparams/v1/genesis.d.ts +12 -32
- package/dist/module/coreum/customparams/v1/genesis.js +25 -18
- package/dist/module/coreum/customparams/v1/params.d.ts +11 -19
- package/dist/module/coreum/customparams/v1/params.js +21 -14
- package/dist/module/coreum/customparams/v1/query.d.ts +14 -40
- package/dist/module/coreum/customparams/v1/query.js +32 -23
- package/dist/module/coreum/dex/index.d.ts +1 -0
- package/dist/module/coreum/dex/index.js +9 -0
- package/dist/module/coreum/dex/v1/event.d.ts +73 -0
- package/dist/module/coreum/dex/v1/event.js +467 -0
- package/dist/module/coreum/dex/v1/genesis.d.ts +49 -0
- package/dist/module/coreum/dex/v1/genesis.js +315 -0
- package/dist/module/coreum/dex/v1/order.d.ts +172 -0
- package/dist/module/coreum/dex/v1/order.js +1128 -0
- package/dist/module/coreum/dex/v1/params.d.ts +34 -0
- package/dist/module/coreum/dex/v1/params.js +136 -0
- package/dist/module/coreum/dex/v1/query.d.ts +133 -0
- package/dist/module/coreum/dex/v1/query.js +871 -0
- package/dist/module/coreum/dex/v1/tx.d.ts +102 -0
- package/dist/module/coreum/dex/v1/tx.js +519 -0
- package/dist/module/coreum/extensions/dex.d.ts +12 -0
- package/dist/module/coreum/extensions/dex.js +28 -0
- package/dist/module/coreum/feemodel/v1/genesis.d.ts +13 -233
- package/dist/module/coreum/feemodel/v1/genesis.js +22 -20
- package/dist/module/coreum/feemodel/v1/params.d.ts +14 -337
- package/dist/module/coreum/feemodel/v1/params.js +105 -54
- package/dist/module/coreum/feemodel/v1/query.d.ts +30 -261
- package/dist/module/coreum/feemodel/v1/query.js +191 -35
- package/dist/module/coreum/index.d.ts +46 -0
- package/dist/module/coreum/index.js +57 -0
- package/dist/module/coreum/nft/index.d.ts +1 -2
- package/dist/module/coreum/nft/v1beta1/event.d.ts +23 -79
- package/dist/module/coreum/nft/v1beta1/event.js +90 -58
- package/dist/module/coreum/nft/v1beta1/genesis.d.ts +13 -435
- package/dist/module/coreum/nft/v1beta1/genesis.js +44 -41
- package/dist/module/coreum/nft/v1beta1/nft.d.ts +15 -114
- package/dist/module/coreum/nft/v1beta1/nft.js +99 -64
- package/dist/module/coreum/nft/v1beta1/query.d.ts +54 -1628
- package/dist/module/coreum/nft/v1beta1/query.js +231 -183
- package/dist/module/coreum/nft/v1beta1/tx.d.ts +13 -39
- package/dist/module/coreum/nft/v1beta1/tx.js +47 -32
- package/dist/module/cosmos/extensions/distribution.d.ts +4 -4
- package/dist/module/cosmos/extensions/gov.d.ts +13 -13
- package/dist/module/cosmos/index.d.ts +8 -8
- package/dist/module/services/cosmostation.js +1 -1
- package/dist/module/types/core.d.ts +2 -1
- package/dist/module/types/core.js +2 -0
- package/dist/module/wasm/v1/authz.d.ts +20 -471
- package/dist/module/wasm/v1/authz.js +111 -119
- package/dist/module/wasm/v1/genesis.d.ts +14 -1020
- package/dist/module/wasm/v1/genesis.js +161 -125
- package/dist/module/wasm/v1/ibc.d.ts +13 -62
- package/dist/module/wasm/v1/ibc.js +83 -62
- package/dist/module/wasm/v1/index.d.ts +1 -2
- package/dist/module/wasm/v1/proposal.d.ts +23 -720
- package/dist/module/wasm/v1/proposal.js +562 -377
- package/dist/module/wasm/v1/query.d.ts +35 -1201
- package/dist/module/wasm/v1/query.js +330 -301
- package/dist/module/wasm/v1/tx.d.ts +37 -788
- package/dist/module/wasm/v1/tx.js +551 -404
- package/dist/module/wasm/v1/types.d.ts +19 -297
- package/dist/module/wasm/v1/types.js +196 -156
- package/package.json +11 -10
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.7.0
|
|
5
|
+
// protoc v3.21.12
|
|
6
|
+
// source: coreum-protos/nft/query.proto
|
|
5
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.QueryClientImpl = exports.QueryWhitelistedAccountsForNFTResponse = exports.QueryWhitelistedAccountsForNFTRequest = exports.QueryWhitelistedResponse = exports.QueryWhitelistedRequest = exports.QueryFrozenResponse = exports.QueryFrozenRequest = exports.QueryClassResponse = exports.QueryClassRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.protobufPackage = void 0;
|
|
8
|
+
exports.QueryClientImpl = exports.QueryServiceName = exports.QueryBurntNFTsInClassResponse = exports.QueryBurntNFTsInClassRequest = exports.QueryBurntNFTResponse = exports.QueryBurntNFTRequest = exports.QueryClassFrozenAccountsResponse = exports.QueryClassFrozenAccountsRequest = exports.QueryClassWhitelistedAccountsResponse = exports.QueryClassWhitelistedAccountsRequest = exports.QueryWhitelistedAccountsForNFTResponse = exports.QueryWhitelistedAccountsForNFTRequest = exports.QueryWhitelistedResponse = exports.QueryWhitelistedRequest = exports.QueryClassFrozenResponse = exports.QueryClassFrozenRequest = exports.QueryFrozenResponse = exports.QueryFrozenRequest = exports.QueryClassesResponse = exports.QueryClassesRequest = exports.QueryClassResponse = exports.QueryClassRequest = exports.QueryParamsResponse = exports.QueryParamsRequest = exports.protobufPackage = void 0;
|
|
7
9
|
/* eslint-disable */
|
|
8
|
-
const
|
|
9
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
const binary_1 = require("cosmjs-types/binary");
|
|
10
11
|
const pagination_1 = require("cosmjs-types/cosmos/base/query/v1beta1/pagination");
|
|
11
12
|
const nft_1 = require("./nft");
|
|
12
13
|
const params_1 = require("./params");
|
|
@@ -15,21 +16,21 @@ function createBaseQueryParamsRequest() {
|
|
|
15
16
|
return {};
|
|
16
17
|
}
|
|
17
18
|
exports.QueryParamsRequest = {
|
|
18
|
-
encode(_, writer =
|
|
19
|
+
encode(_, writer = new binary_1.BinaryWriter()) {
|
|
19
20
|
return writer;
|
|
20
21
|
},
|
|
21
22
|
decode(input, length) {
|
|
22
|
-
const reader = input instanceof
|
|
23
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
23
24
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
24
25
|
const message = createBaseQueryParamsRequest();
|
|
25
26
|
while (reader.pos < end) {
|
|
26
27
|
const tag = reader.uint32();
|
|
27
28
|
switch (tag >>> 3) {
|
|
28
29
|
}
|
|
29
|
-
if ((tag & 7)
|
|
30
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
30
31
|
break;
|
|
31
32
|
}
|
|
32
|
-
reader.
|
|
33
|
+
reader.skip(tag & 7);
|
|
33
34
|
}
|
|
34
35
|
return message;
|
|
35
36
|
},
|
|
@@ -41,7 +42,7 @@ exports.QueryParamsRequest = {
|
|
|
41
42
|
return obj;
|
|
42
43
|
},
|
|
43
44
|
create(base) {
|
|
44
|
-
return exports.QueryParamsRequest.fromPartial(base
|
|
45
|
+
return exports.QueryParamsRequest.fromPartial(base ?? {});
|
|
45
46
|
},
|
|
46
47
|
fromPartial(_) {
|
|
47
48
|
const message = createBaseQueryParamsRequest();
|
|
@@ -52,30 +53,31 @@ function createBaseQueryParamsResponse() {
|
|
|
52
53
|
return { params: undefined };
|
|
53
54
|
}
|
|
54
55
|
exports.QueryParamsResponse = {
|
|
55
|
-
encode(message, writer =
|
|
56
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
56
57
|
if (message.params !== undefined) {
|
|
57
58
|
params_1.Params.encode(message.params, writer.uint32(10).fork()).ldelim();
|
|
58
59
|
}
|
|
59
60
|
return writer;
|
|
60
61
|
},
|
|
61
62
|
decode(input, length) {
|
|
62
|
-
const reader = input instanceof
|
|
63
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
63
64
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
64
65
|
const message = createBaseQueryParamsResponse();
|
|
65
66
|
while (reader.pos < end) {
|
|
66
67
|
const tag = reader.uint32();
|
|
67
68
|
switch (tag >>> 3) {
|
|
68
|
-
case 1:
|
|
69
|
-
if (tag
|
|
69
|
+
case 1: {
|
|
70
|
+
if (tag !== 10) {
|
|
70
71
|
break;
|
|
71
72
|
}
|
|
72
73
|
message.params = params_1.Params.decode(reader, reader.uint32());
|
|
73
74
|
continue;
|
|
75
|
+
}
|
|
74
76
|
}
|
|
75
|
-
if ((tag & 7)
|
|
77
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
76
78
|
break;
|
|
77
79
|
}
|
|
78
|
-
reader.
|
|
80
|
+
reader.skip(tag & 7);
|
|
79
81
|
}
|
|
80
82
|
return message;
|
|
81
83
|
},
|
|
@@ -86,12 +88,13 @@ exports.QueryParamsResponse = {
|
|
|
86
88
|
},
|
|
87
89
|
toJSON(message) {
|
|
88
90
|
const obj = {};
|
|
89
|
-
message.params !== undefined
|
|
90
|
-
|
|
91
|
+
if (message.params !== undefined) {
|
|
92
|
+
obj.params = params_1.Params.toJSON(message.params);
|
|
93
|
+
}
|
|
91
94
|
return obj;
|
|
92
95
|
},
|
|
93
96
|
create(base) {
|
|
94
|
-
return exports.QueryParamsResponse.fromPartial(base
|
|
97
|
+
return exports.QueryParamsResponse.fromPartial(base ?? {});
|
|
95
98
|
},
|
|
96
99
|
fromPartial(object) {
|
|
97
100
|
const message = createBaseQueryParamsResponse();
|
|
@@ -106,48 +109,50 @@ function createBaseQueryClassRequest() {
|
|
|
106
109
|
return { id: "" };
|
|
107
110
|
}
|
|
108
111
|
exports.QueryClassRequest = {
|
|
109
|
-
encode(message, writer =
|
|
112
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
110
113
|
if (message.id !== "") {
|
|
111
114
|
writer.uint32(10).string(message.id);
|
|
112
115
|
}
|
|
113
116
|
return writer;
|
|
114
117
|
},
|
|
115
118
|
decode(input, length) {
|
|
116
|
-
const reader = input instanceof
|
|
119
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
117
120
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
118
121
|
const message = createBaseQueryClassRequest();
|
|
119
122
|
while (reader.pos < end) {
|
|
120
123
|
const tag = reader.uint32();
|
|
121
124
|
switch (tag >>> 3) {
|
|
122
|
-
case 1:
|
|
123
|
-
if (tag
|
|
125
|
+
case 1: {
|
|
126
|
+
if (tag !== 10) {
|
|
124
127
|
break;
|
|
125
128
|
}
|
|
126
129
|
message.id = reader.string();
|
|
127
130
|
continue;
|
|
131
|
+
}
|
|
128
132
|
}
|
|
129
|
-
if ((tag & 7)
|
|
133
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
130
134
|
break;
|
|
131
135
|
}
|
|
132
|
-
reader.
|
|
136
|
+
reader.skip(tag & 7);
|
|
133
137
|
}
|
|
134
138
|
return message;
|
|
135
139
|
},
|
|
136
140
|
fromJSON(object) {
|
|
137
|
-
return { id: isSet(object.id) ? String(object.id) : "" };
|
|
141
|
+
return { id: isSet(object.id) ? globalThis.String(object.id) : "" };
|
|
138
142
|
},
|
|
139
143
|
toJSON(message) {
|
|
140
144
|
const obj = {};
|
|
141
|
-
message.id !==
|
|
145
|
+
if (message.id !== "") {
|
|
146
|
+
obj.id = message.id;
|
|
147
|
+
}
|
|
142
148
|
return obj;
|
|
143
149
|
},
|
|
144
150
|
create(base) {
|
|
145
|
-
return exports.QueryClassRequest.fromPartial(base
|
|
151
|
+
return exports.QueryClassRequest.fromPartial(base ?? {});
|
|
146
152
|
},
|
|
147
153
|
fromPartial(object) {
|
|
148
|
-
var _a;
|
|
149
154
|
const message = createBaseQueryClassRequest();
|
|
150
|
-
message.id =
|
|
155
|
+
message.id = object.id ?? "";
|
|
151
156
|
return message;
|
|
152
157
|
},
|
|
153
158
|
};
|
|
@@ -155,30 +160,31 @@ function createBaseQueryClassResponse() {
|
|
|
155
160
|
return { class: undefined };
|
|
156
161
|
}
|
|
157
162
|
exports.QueryClassResponse = {
|
|
158
|
-
encode(message, writer =
|
|
163
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
159
164
|
if (message.class !== undefined) {
|
|
160
165
|
nft_1.Class.encode(message.class, writer.uint32(10).fork()).ldelim();
|
|
161
166
|
}
|
|
162
167
|
return writer;
|
|
163
168
|
},
|
|
164
169
|
decode(input, length) {
|
|
165
|
-
const reader = input instanceof
|
|
170
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
166
171
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
167
172
|
const message = createBaseQueryClassResponse();
|
|
168
173
|
while (reader.pos < end) {
|
|
169
174
|
const tag = reader.uint32();
|
|
170
175
|
switch (tag >>> 3) {
|
|
171
|
-
case 1:
|
|
172
|
-
if (tag
|
|
176
|
+
case 1: {
|
|
177
|
+
if (tag !== 10) {
|
|
173
178
|
break;
|
|
174
179
|
}
|
|
175
180
|
message.class = nft_1.Class.decode(reader, reader.uint32());
|
|
176
181
|
continue;
|
|
182
|
+
}
|
|
177
183
|
}
|
|
178
|
-
if ((tag & 7)
|
|
184
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
179
185
|
break;
|
|
180
186
|
}
|
|
181
|
-
reader.
|
|
187
|
+
reader.skip(tag & 7);
|
|
182
188
|
}
|
|
183
189
|
return message;
|
|
184
190
|
},
|
|
@@ -189,12 +195,13 @@ exports.QueryClassResponse = {
|
|
|
189
195
|
},
|
|
190
196
|
toJSON(message) {
|
|
191
197
|
const obj = {};
|
|
192
|
-
message.class !== undefined
|
|
193
|
-
|
|
198
|
+
if (message.class !== undefined) {
|
|
199
|
+
obj.class = nft_1.Class.toJSON(message.class);
|
|
200
|
+
}
|
|
194
201
|
return obj;
|
|
195
202
|
},
|
|
196
203
|
create(base) {
|
|
197
|
-
return exports.QueryClassResponse.fromPartial(base
|
|
204
|
+
return exports.QueryClassResponse.fromPartial(base ?? {});
|
|
198
205
|
},
|
|
199
206
|
fromPartial(object) {
|
|
200
207
|
const message = createBaseQueryClassResponse();
|
|
@@ -205,11 +212,159 @@ exports.QueryClassResponse = {
|
|
|
205
212
|
return message;
|
|
206
213
|
},
|
|
207
214
|
};
|
|
215
|
+
function createBaseQueryClassesRequest() {
|
|
216
|
+
return { pagination: undefined, issuer: "" };
|
|
217
|
+
}
|
|
218
|
+
exports.QueryClassesRequest = {
|
|
219
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
220
|
+
if (message.pagination !== undefined) {
|
|
221
|
+
pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
222
|
+
}
|
|
223
|
+
if (message.issuer !== "") {
|
|
224
|
+
writer.uint32(18).string(message.issuer);
|
|
225
|
+
}
|
|
226
|
+
return writer;
|
|
227
|
+
},
|
|
228
|
+
decode(input, length) {
|
|
229
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
230
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
231
|
+
const message = createBaseQueryClassesRequest();
|
|
232
|
+
while (reader.pos < end) {
|
|
233
|
+
const tag = reader.uint32();
|
|
234
|
+
switch (tag >>> 3) {
|
|
235
|
+
case 1: {
|
|
236
|
+
if (tag !== 10) {
|
|
237
|
+
break;
|
|
238
|
+
}
|
|
239
|
+
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
240
|
+
continue;
|
|
241
|
+
}
|
|
242
|
+
case 2: {
|
|
243
|
+
if (tag !== 18) {
|
|
244
|
+
break;
|
|
245
|
+
}
|
|
246
|
+
message.issuer = reader.string();
|
|
247
|
+
continue;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
251
|
+
break;
|
|
252
|
+
}
|
|
253
|
+
reader.skip(tag & 7);
|
|
254
|
+
}
|
|
255
|
+
return message;
|
|
256
|
+
},
|
|
257
|
+
fromJSON(object) {
|
|
258
|
+
return {
|
|
259
|
+
pagination: isSet(object.pagination)
|
|
260
|
+
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
261
|
+
: undefined,
|
|
262
|
+
issuer: isSet(object.issuer) ? globalThis.String(object.issuer) : "",
|
|
263
|
+
};
|
|
264
|
+
},
|
|
265
|
+
toJSON(message) {
|
|
266
|
+
const obj = {};
|
|
267
|
+
if (message.pagination !== undefined) {
|
|
268
|
+
obj.pagination = pagination_1.PageRequest.toJSON(message.pagination);
|
|
269
|
+
}
|
|
270
|
+
if (message.issuer !== "") {
|
|
271
|
+
obj.issuer = message.issuer;
|
|
272
|
+
}
|
|
273
|
+
return obj;
|
|
274
|
+
},
|
|
275
|
+
create(base) {
|
|
276
|
+
return exports.QueryClassesRequest.fromPartial(base ?? {});
|
|
277
|
+
},
|
|
278
|
+
fromPartial(object) {
|
|
279
|
+
const message = createBaseQueryClassesRequest();
|
|
280
|
+
message.pagination =
|
|
281
|
+
object.pagination !== undefined && object.pagination !== null
|
|
282
|
+
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
283
|
+
: undefined;
|
|
284
|
+
message.issuer = object.issuer ?? "";
|
|
285
|
+
return message;
|
|
286
|
+
},
|
|
287
|
+
};
|
|
288
|
+
function createBaseQueryClassesResponse() {
|
|
289
|
+
return { pagination: undefined, classes: [] };
|
|
290
|
+
}
|
|
291
|
+
exports.QueryClassesResponse = {
|
|
292
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
293
|
+
if (message.pagination !== undefined) {
|
|
294
|
+
pagination_1.PageResponse.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
295
|
+
}
|
|
296
|
+
for (const v of message.classes) {
|
|
297
|
+
nft_1.Class.encode(v, writer.uint32(18).fork()).ldelim();
|
|
298
|
+
}
|
|
299
|
+
return writer;
|
|
300
|
+
},
|
|
301
|
+
decode(input, length) {
|
|
302
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
303
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
304
|
+
const message = createBaseQueryClassesResponse();
|
|
305
|
+
while (reader.pos < end) {
|
|
306
|
+
const tag = reader.uint32();
|
|
307
|
+
switch (tag >>> 3) {
|
|
308
|
+
case 1: {
|
|
309
|
+
if (tag !== 10) {
|
|
310
|
+
break;
|
|
311
|
+
}
|
|
312
|
+
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
313
|
+
continue;
|
|
314
|
+
}
|
|
315
|
+
case 2: {
|
|
316
|
+
if (tag !== 18) {
|
|
317
|
+
break;
|
|
318
|
+
}
|
|
319
|
+
message.classes.push(nft_1.Class.decode(reader, reader.uint32()));
|
|
320
|
+
continue;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
324
|
+
break;
|
|
325
|
+
}
|
|
326
|
+
reader.skip(tag & 7);
|
|
327
|
+
}
|
|
328
|
+
return message;
|
|
329
|
+
},
|
|
330
|
+
fromJSON(object) {
|
|
331
|
+
return {
|
|
332
|
+
pagination: isSet(object.pagination)
|
|
333
|
+
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
334
|
+
: undefined,
|
|
335
|
+
classes: globalThis.Array.isArray(object?.classes)
|
|
336
|
+
? object.classes.map((e) => nft_1.Class.fromJSON(e))
|
|
337
|
+
: [],
|
|
338
|
+
};
|
|
339
|
+
},
|
|
340
|
+
toJSON(message) {
|
|
341
|
+
const obj = {};
|
|
342
|
+
if (message.pagination !== undefined) {
|
|
343
|
+
obj.pagination = pagination_1.PageResponse.toJSON(message.pagination);
|
|
344
|
+
}
|
|
345
|
+
if (message.classes?.length) {
|
|
346
|
+
obj.classes = message.classes.map((e) => nft_1.Class.toJSON(e));
|
|
347
|
+
}
|
|
348
|
+
return obj;
|
|
349
|
+
},
|
|
350
|
+
create(base) {
|
|
351
|
+
return exports.QueryClassesResponse.fromPartial(base ?? {});
|
|
352
|
+
},
|
|
353
|
+
fromPartial(object) {
|
|
354
|
+
const message = createBaseQueryClassesResponse();
|
|
355
|
+
message.pagination =
|
|
356
|
+
object.pagination !== undefined && object.pagination !== null
|
|
357
|
+
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
358
|
+
: undefined;
|
|
359
|
+
message.classes = object.classes?.map((e) => nft_1.Class.fromPartial(e)) || [];
|
|
360
|
+
return message;
|
|
361
|
+
},
|
|
362
|
+
};
|
|
208
363
|
function createBaseQueryFrozenRequest() {
|
|
209
364
|
return { id: "", classId: "" };
|
|
210
365
|
}
|
|
211
366
|
exports.QueryFrozenRequest = {
|
|
212
|
-
encode(message, writer =
|
|
367
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
213
368
|
if (message.id !== "") {
|
|
214
369
|
writer.uint32(10).string(message.id);
|
|
215
370
|
}
|
|
@@ -219,52 +374,57 @@ exports.QueryFrozenRequest = {
|
|
|
219
374
|
return writer;
|
|
220
375
|
},
|
|
221
376
|
decode(input, length) {
|
|
222
|
-
const reader = input instanceof
|
|
377
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
223
378
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
224
379
|
const message = createBaseQueryFrozenRequest();
|
|
225
380
|
while (reader.pos < end) {
|
|
226
381
|
const tag = reader.uint32();
|
|
227
382
|
switch (tag >>> 3) {
|
|
228
|
-
case 1:
|
|
229
|
-
if (tag
|
|
383
|
+
case 1: {
|
|
384
|
+
if (tag !== 10) {
|
|
230
385
|
break;
|
|
231
386
|
}
|
|
232
387
|
message.id = reader.string();
|
|
233
388
|
continue;
|
|
234
|
-
|
|
235
|
-
|
|
389
|
+
}
|
|
390
|
+
case 2: {
|
|
391
|
+
if (tag !== 18) {
|
|
236
392
|
break;
|
|
237
393
|
}
|
|
238
394
|
message.classId = reader.string();
|
|
239
395
|
continue;
|
|
396
|
+
}
|
|
240
397
|
}
|
|
241
|
-
if ((tag & 7)
|
|
398
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
242
399
|
break;
|
|
243
400
|
}
|
|
244
|
-
reader.
|
|
401
|
+
reader.skip(tag & 7);
|
|
245
402
|
}
|
|
246
403
|
return message;
|
|
247
404
|
},
|
|
248
405
|
fromJSON(object) {
|
|
249
406
|
return {
|
|
250
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
251
|
-
classId: isSet(object.classId) ? String(object.classId) : "",
|
|
407
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
408
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
252
409
|
};
|
|
253
410
|
},
|
|
254
411
|
toJSON(message) {
|
|
255
412
|
const obj = {};
|
|
256
|
-
message.id !==
|
|
257
|
-
|
|
413
|
+
if (message.id !== "") {
|
|
414
|
+
obj.id = message.id;
|
|
415
|
+
}
|
|
416
|
+
if (message.classId !== "") {
|
|
417
|
+
obj.classId = message.classId;
|
|
418
|
+
}
|
|
258
419
|
return obj;
|
|
259
420
|
},
|
|
260
421
|
create(base) {
|
|
261
|
-
return exports.QueryFrozenRequest.fromPartial(base
|
|
422
|
+
return exports.QueryFrozenRequest.fromPartial(base ?? {});
|
|
262
423
|
},
|
|
263
424
|
fromPartial(object) {
|
|
264
|
-
var _a, _b;
|
|
265
425
|
const message = createBaseQueryFrozenRequest();
|
|
266
|
-
message.id =
|
|
267
|
-
message.classId =
|
|
426
|
+
message.id = object.id ?? "";
|
|
427
|
+
message.classId = object.classId ?? "";
|
|
268
428
|
return message;
|
|
269
429
|
},
|
|
270
430
|
};
|
|
@@ -272,48 +432,173 @@ function createBaseQueryFrozenResponse() {
|
|
|
272
432
|
return { frozen: false };
|
|
273
433
|
}
|
|
274
434
|
exports.QueryFrozenResponse = {
|
|
275
|
-
encode(message, writer =
|
|
276
|
-
if (message.frozen
|
|
435
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
436
|
+
if (message.frozen !== false) {
|
|
277
437
|
writer.uint32(8).bool(message.frozen);
|
|
278
438
|
}
|
|
279
439
|
return writer;
|
|
280
440
|
},
|
|
281
441
|
decode(input, length) {
|
|
282
|
-
const reader = input instanceof
|
|
442
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
283
443
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
284
444
|
const message = createBaseQueryFrozenResponse();
|
|
285
445
|
while (reader.pos < end) {
|
|
286
446
|
const tag = reader.uint32();
|
|
287
447
|
switch (tag >>> 3) {
|
|
288
|
-
case 1:
|
|
289
|
-
if (tag
|
|
448
|
+
case 1: {
|
|
449
|
+
if (tag !== 8) {
|
|
290
450
|
break;
|
|
291
451
|
}
|
|
292
452
|
message.frozen = reader.bool();
|
|
293
453
|
continue;
|
|
454
|
+
}
|
|
294
455
|
}
|
|
295
|
-
if ((tag & 7)
|
|
456
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
296
457
|
break;
|
|
297
458
|
}
|
|
298
|
-
reader.
|
|
459
|
+
reader.skip(tag & 7);
|
|
299
460
|
}
|
|
300
461
|
return message;
|
|
301
462
|
},
|
|
302
463
|
fromJSON(object) {
|
|
303
|
-
return {
|
|
464
|
+
return {
|
|
465
|
+
frozen: isSet(object.frozen) ? globalThis.Boolean(object.frozen) : false,
|
|
466
|
+
};
|
|
304
467
|
},
|
|
305
468
|
toJSON(message) {
|
|
306
469
|
const obj = {};
|
|
307
|
-
message.frozen !==
|
|
470
|
+
if (message.frozen !== false) {
|
|
471
|
+
obj.frozen = message.frozen;
|
|
472
|
+
}
|
|
308
473
|
return obj;
|
|
309
474
|
},
|
|
310
475
|
create(base) {
|
|
311
|
-
return exports.QueryFrozenResponse.fromPartial(base
|
|
476
|
+
return exports.QueryFrozenResponse.fromPartial(base ?? {});
|
|
312
477
|
},
|
|
313
478
|
fromPartial(object) {
|
|
314
|
-
var _a;
|
|
315
479
|
const message = createBaseQueryFrozenResponse();
|
|
316
|
-
message.frozen =
|
|
480
|
+
message.frozen = object.frozen ?? false;
|
|
481
|
+
return message;
|
|
482
|
+
},
|
|
483
|
+
};
|
|
484
|
+
function createBaseQueryClassFrozenRequest() {
|
|
485
|
+
return { classId: "", account: "" };
|
|
486
|
+
}
|
|
487
|
+
exports.QueryClassFrozenRequest = {
|
|
488
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
489
|
+
if (message.classId !== "") {
|
|
490
|
+
writer.uint32(10).string(message.classId);
|
|
491
|
+
}
|
|
492
|
+
if (message.account !== "") {
|
|
493
|
+
writer.uint32(18).string(message.account);
|
|
494
|
+
}
|
|
495
|
+
return writer;
|
|
496
|
+
},
|
|
497
|
+
decode(input, length) {
|
|
498
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
499
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
500
|
+
const message = createBaseQueryClassFrozenRequest();
|
|
501
|
+
while (reader.pos < end) {
|
|
502
|
+
const tag = reader.uint32();
|
|
503
|
+
switch (tag >>> 3) {
|
|
504
|
+
case 1: {
|
|
505
|
+
if (tag !== 10) {
|
|
506
|
+
break;
|
|
507
|
+
}
|
|
508
|
+
message.classId = reader.string();
|
|
509
|
+
continue;
|
|
510
|
+
}
|
|
511
|
+
case 2: {
|
|
512
|
+
if (tag !== 18) {
|
|
513
|
+
break;
|
|
514
|
+
}
|
|
515
|
+
message.account = reader.string();
|
|
516
|
+
continue;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
520
|
+
break;
|
|
521
|
+
}
|
|
522
|
+
reader.skip(tag & 7);
|
|
523
|
+
}
|
|
524
|
+
return message;
|
|
525
|
+
},
|
|
526
|
+
fromJSON(object) {
|
|
527
|
+
return {
|
|
528
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
529
|
+
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
530
|
+
};
|
|
531
|
+
},
|
|
532
|
+
toJSON(message) {
|
|
533
|
+
const obj = {};
|
|
534
|
+
if (message.classId !== "") {
|
|
535
|
+
obj.classId = message.classId;
|
|
536
|
+
}
|
|
537
|
+
if (message.account !== "") {
|
|
538
|
+
obj.account = message.account;
|
|
539
|
+
}
|
|
540
|
+
return obj;
|
|
541
|
+
},
|
|
542
|
+
create(base) {
|
|
543
|
+
return exports.QueryClassFrozenRequest.fromPartial(base ?? {});
|
|
544
|
+
},
|
|
545
|
+
fromPartial(object) {
|
|
546
|
+
const message = createBaseQueryClassFrozenRequest();
|
|
547
|
+
message.classId = object.classId ?? "";
|
|
548
|
+
message.account = object.account ?? "";
|
|
549
|
+
return message;
|
|
550
|
+
},
|
|
551
|
+
};
|
|
552
|
+
function createBaseQueryClassFrozenResponse() {
|
|
553
|
+
return { frozen: false };
|
|
554
|
+
}
|
|
555
|
+
exports.QueryClassFrozenResponse = {
|
|
556
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
557
|
+
if (message.frozen !== false) {
|
|
558
|
+
writer.uint32(8).bool(message.frozen);
|
|
559
|
+
}
|
|
560
|
+
return writer;
|
|
561
|
+
},
|
|
562
|
+
decode(input, length) {
|
|
563
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
564
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
565
|
+
const message = createBaseQueryClassFrozenResponse();
|
|
566
|
+
while (reader.pos < end) {
|
|
567
|
+
const tag = reader.uint32();
|
|
568
|
+
switch (tag >>> 3) {
|
|
569
|
+
case 1: {
|
|
570
|
+
if (tag !== 8) {
|
|
571
|
+
break;
|
|
572
|
+
}
|
|
573
|
+
message.frozen = reader.bool();
|
|
574
|
+
continue;
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
578
|
+
break;
|
|
579
|
+
}
|
|
580
|
+
reader.skip(tag & 7);
|
|
581
|
+
}
|
|
582
|
+
return message;
|
|
583
|
+
},
|
|
584
|
+
fromJSON(object) {
|
|
585
|
+
return {
|
|
586
|
+
frozen: isSet(object.frozen) ? globalThis.Boolean(object.frozen) : false,
|
|
587
|
+
};
|
|
588
|
+
},
|
|
589
|
+
toJSON(message) {
|
|
590
|
+
const obj = {};
|
|
591
|
+
if (message.frozen !== false) {
|
|
592
|
+
obj.frozen = message.frozen;
|
|
593
|
+
}
|
|
594
|
+
return obj;
|
|
595
|
+
},
|
|
596
|
+
create(base) {
|
|
597
|
+
return exports.QueryClassFrozenResponse.fromPartial(base ?? {});
|
|
598
|
+
},
|
|
599
|
+
fromPartial(object) {
|
|
600
|
+
const message = createBaseQueryClassFrozenResponse();
|
|
601
|
+
message.frozen = object.frozen ?? false;
|
|
317
602
|
return message;
|
|
318
603
|
},
|
|
319
604
|
};
|
|
@@ -321,7 +606,7 @@ function createBaseQueryWhitelistedRequest() {
|
|
|
321
606
|
return { id: "", classId: "", account: "" };
|
|
322
607
|
}
|
|
323
608
|
exports.QueryWhitelistedRequest = {
|
|
324
|
-
encode(message, writer =
|
|
609
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
325
610
|
if (message.id !== "") {
|
|
326
611
|
writer.uint32(10).string(message.id);
|
|
327
612
|
}
|
|
@@ -334,61 +619,69 @@ exports.QueryWhitelistedRequest = {
|
|
|
334
619
|
return writer;
|
|
335
620
|
},
|
|
336
621
|
decode(input, length) {
|
|
337
|
-
const reader = input instanceof
|
|
622
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
338
623
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
339
624
|
const message = createBaseQueryWhitelistedRequest();
|
|
340
625
|
while (reader.pos < end) {
|
|
341
626
|
const tag = reader.uint32();
|
|
342
627
|
switch (tag >>> 3) {
|
|
343
|
-
case 1:
|
|
344
|
-
if (tag
|
|
628
|
+
case 1: {
|
|
629
|
+
if (tag !== 10) {
|
|
345
630
|
break;
|
|
346
631
|
}
|
|
347
632
|
message.id = reader.string();
|
|
348
633
|
continue;
|
|
349
|
-
|
|
350
|
-
|
|
634
|
+
}
|
|
635
|
+
case 2: {
|
|
636
|
+
if (tag !== 18) {
|
|
351
637
|
break;
|
|
352
638
|
}
|
|
353
639
|
message.classId = reader.string();
|
|
354
640
|
continue;
|
|
355
|
-
|
|
356
|
-
|
|
641
|
+
}
|
|
642
|
+
case 3: {
|
|
643
|
+
if (tag !== 26) {
|
|
357
644
|
break;
|
|
358
645
|
}
|
|
359
646
|
message.account = reader.string();
|
|
360
647
|
continue;
|
|
648
|
+
}
|
|
361
649
|
}
|
|
362
|
-
if ((tag & 7)
|
|
650
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
363
651
|
break;
|
|
364
652
|
}
|
|
365
|
-
reader.
|
|
653
|
+
reader.skip(tag & 7);
|
|
366
654
|
}
|
|
367
655
|
return message;
|
|
368
656
|
},
|
|
369
657
|
fromJSON(object) {
|
|
370
658
|
return {
|
|
371
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
372
|
-
classId: isSet(object.classId) ? String(object.classId) : "",
|
|
373
|
-
account: isSet(object.account) ? String(object.account) : "",
|
|
659
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
660
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
661
|
+
account: isSet(object.account) ? globalThis.String(object.account) : "",
|
|
374
662
|
};
|
|
375
663
|
},
|
|
376
664
|
toJSON(message) {
|
|
377
665
|
const obj = {};
|
|
378
|
-
message.id !==
|
|
379
|
-
|
|
380
|
-
|
|
666
|
+
if (message.id !== "") {
|
|
667
|
+
obj.id = message.id;
|
|
668
|
+
}
|
|
669
|
+
if (message.classId !== "") {
|
|
670
|
+
obj.classId = message.classId;
|
|
671
|
+
}
|
|
672
|
+
if (message.account !== "") {
|
|
673
|
+
obj.account = message.account;
|
|
674
|
+
}
|
|
381
675
|
return obj;
|
|
382
676
|
},
|
|
383
677
|
create(base) {
|
|
384
|
-
return exports.QueryWhitelistedRequest.fromPartial(base
|
|
678
|
+
return exports.QueryWhitelistedRequest.fromPartial(base ?? {});
|
|
385
679
|
},
|
|
386
680
|
fromPartial(object) {
|
|
387
|
-
var _a, _b, _c;
|
|
388
681
|
const message = createBaseQueryWhitelistedRequest();
|
|
389
|
-
message.id =
|
|
390
|
-
message.classId =
|
|
391
|
-
message.account =
|
|
682
|
+
message.id = object.id ?? "";
|
|
683
|
+
message.classId = object.classId ?? "";
|
|
684
|
+
message.account = object.account ?? "";
|
|
392
685
|
return message;
|
|
393
686
|
},
|
|
394
687
|
};
|
|
@@ -396,53 +689,54 @@ function createBaseQueryWhitelistedResponse() {
|
|
|
396
689
|
return { whitelisted: false };
|
|
397
690
|
}
|
|
398
691
|
exports.QueryWhitelistedResponse = {
|
|
399
|
-
encode(message, writer =
|
|
400
|
-
if (message.whitelisted
|
|
692
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
693
|
+
if (message.whitelisted !== false) {
|
|
401
694
|
writer.uint32(8).bool(message.whitelisted);
|
|
402
695
|
}
|
|
403
696
|
return writer;
|
|
404
697
|
},
|
|
405
698
|
decode(input, length) {
|
|
406
|
-
const reader = input instanceof
|
|
699
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
407
700
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
408
701
|
const message = createBaseQueryWhitelistedResponse();
|
|
409
702
|
while (reader.pos < end) {
|
|
410
703
|
const tag = reader.uint32();
|
|
411
704
|
switch (tag >>> 3) {
|
|
412
|
-
case 1:
|
|
413
|
-
if (tag
|
|
705
|
+
case 1: {
|
|
706
|
+
if (tag !== 8) {
|
|
414
707
|
break;
|
|
415
708
|
}
|
|
416
709
|
message.whitelisted = reader.bool();
|
|
417
710
|
continue;
|
|
711
|
+
}
|
|
418
712
|
}
|
|
419
|
-
if ((tag & 7)
|
|
713
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
420
714
|
break;
|
|
421
715
|
}
|
|
422
|
-
reader.
|
|
716
|
+
reader.skip(tag & 7);
|
|
423
717
|
}
|
|
424
718
|
return message;
|
|
425
719
|
},
|
|
426
720
|
fromJSON(object) {
|
|
427
721
|
return {
|
|
428
722
|
whitelisted: isSet(object.whitelisted)
|
|
429
|
-
? Boolean(object.whitelisted)
|
|
723
|
+
? globalThis.Boolean(object.whitelisted)
|
|
430
724
|
: false,
|
|
431
725
|
};
|
|
432
726
|
},
|
|
433
727
|
toJSON(message) {
|
|
434
728
|
const obj = {};
|
|
435
|
-
message.whitelisted !==
|
|
436
|
-
|
|
729
|
+
if (message.whitelisted !== false) {
|
|
730
|
+
obj.whitelisted = message.whitelisted;
|
|
731
|
+
}
|
|
437
732
|
return obj;
|
|
438
733
|
},
|
|
439
734
|
create(base) {
|
|
440
|
-
return exports.QueryWhitelistedResponse.fromPartial(base
|
|
735
|
+
return exports.QueryWhitelistedResponse.fromPartial(base ?? {});
|
|
441
736
|
},
|
|
442
737
|
fromPartial(object) {
|
|
443
|
-
var _a;
|
|
444
738
|
const message = createBaseQueryWhitelistedResponse();
|
|
445
|
-
message.whitelisted =
|
|
739
|
+
message.whitelisted = object.whitelisted ?? false;
|
|
446
740
|
return message;
|
|
447
741
|
},
|
|
448
742
|
};
|
|
@@ -450,7 +744,7 @@ function createBaseQueryWhitelistedAccountsForNFTRequest() {
|
|
|
450
744
|
return { pagination: undefined, id: "", classId: "" };
|
|
451
745
|
}
|
|
452
746
|
exports.QueryWhitelistedAccountsForNFTRequest = {
|
|
453
|
-
encode(message, writer =
|
|
747
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
454
748
|
if (message.pagination !== undefined) {
|
|
455
749
|
pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
456
750
|
}
|
|
@@ -463,35 +757,38 @@ exports.QueryWhitelistedAccountsForNFTRequest = {
|
|
|
463
757
|
return writer;
|
|
464
758
|
},
|
|
465
759
|
decode(input, length) {
|
|
466
|
-
const reader = input instanceof
|
|
760
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
467
761
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
468
762
|
const message = createBaseQueryWhitelistedAccountsForNFTRequest();
|
|
469
763
|
while (reader.pos < end) {
|
|
470
764
|
const tag = reader.uint32();
|
|
471
765
|
switch (tag >>> 3) {
|
|
472
|
-
case 1:
|
|
473
|
-
if (tag
|
|
766
|
+
case 1: {
|
|
767
|
+
if (tag !== 10) {
|
|
474
768
|
break;
|
|
475
769
|
}
|
|
476
770
|
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
477
771
|
continue;
|
|
478
|
-
|
|
479
|
-
|
|
772
|
+
}
|
|
773
|
+
case 2: {
|
|
774
|
+
if (tag !== 18) {
|
|
480
775
|
break;
|
|
481
776
|
}
|
|
482
777
|
message.id = reader.string();
|
|
483
778
|
continue;
|
|
484
|
-
|
|
485
|
-
|
|
779
|
+
}
|
|
780
|
+
case 3: {
|
|
781
|
+
if (tag !== 26) {
|
|
486
782
|
break;
|
|
487
783
|
}
|
|
488
784
|
message.classId = reader.string();
|
|
489
785
|
continue;
|
|
786
|
+
}
|
|
490
787
|
}
|
|
491
|
-
if ((tag & 7)
|
|
788
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
492
789
|
break;
|
|
493
790
|
}
|
|
494
|
-
reader.
|
|
791
|
+
reader.skip(tag & 7);
|
|
495
792
|
}
|
|
496
793
|
return message;
|
|
497
794
|
},
|
|
@@ -500,32 +797,34 @@ exports.QueryWhitelistedAccountsForNFTRequest = {
|
|
|
500
797
|
pagination: isSet(object.pagination)
|
|
501
798
|
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
502
799
|
: undefined,
|
|
503
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
504
|
-
classId: isSet(object.classId) ? String(object.classId) : "",
|
|
800
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
801
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
505
802
|
};
|
|
506
803
|
},
|
|
507
804
|
toJSON(message) {
|
|
508
805
|
const obj = {};
|
|
509
|
-
message.pagination !== undefined
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
806
|
+
if (message.pagination !== undefined) {
|
|
807
|
+
obj.pagination = pagination_1.PageRequest.toJSON(message.pagination);
|
|
808
|
+
}
|
|
809
|
+
if (message.id !== "") {
|
|
810
|
+
obj.id = message.id;
|
|
811
|
+
}
|
|
812
|
+
if (message.classId !== "") {
|
|
813
|
+
obj.classId = message.classId;
|
|
814
|
+
}
|
|
515
815
|
return obj;
|
|
516
816
|
},
|
|
517
817
|
create(base) {
|
|
518
|
-
return exports.QueryWhitelistedAccountsForNFTRequest.fromPartial(base
|
|
818
|
+
return exports.QueryWhitelistedAccountsForNFTRequest.fromPartial(base ?? {});
|
|
519
819
|
},
|
|
520
820
|
fromPartial(object) {
|
|
521
|
-
var _a, _b;
|
|
522
821
|
const message = createBaseQueryWhitelistedAccountsForNFTRequest();
|
|
523
822
|
message.pagination =
|
|
524
823
|
object.pagination !== undefined && object.pagination !== null
|
|
525
824
|
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
526
825
|
: undefined;
|
|
527
|
-
message.id =
|
|
528
|
-
message.classId =
|
|
826
|
+
message.id = object.id ?? "";
|
|
827
|
+
message.classId = object.classId ?? "";
|
|
529
828
|
return message;
|
|
530
829
|
},
|
|
531
830
|
};
|
|
@@ -533,7 +832,7 @@ function createBaseQueryWhitelistedAccountsForNFTResponse() {
|
|
|
533
832
|
return { pagination: undefined, accounts: [] };
|
|
534
833
|
}
|
|
535
834
|
exports.QueryWhitelistedAccountsForNFTResponse = {
|
|
536
|
-
encode(message, writer =
|
|
835
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
537
836
|
if (message.pagination !== undefined) {
|
|
538
837
|
pagination_1.PageResponse.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
539
838
|
}
|
|
@@ -543,29 +842,31 @@ exports.QueryWhitelistedAccountsForNFTResponse = {
|
|
|
543
842
|
return writer;
|
|
544
843
|
},
|
|
545
844
|
decode(input, length) {
|
|
546
|
-
const reader = input instanceof
|
|
845
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
547
846
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
548
847
|
const message = createBaseQueryWhitelistedAccountsForNFTResponse();
|
|
549
848
|
while (reader.pos < end) {
|
|
550
849
|
const tag = reader.uint32();
|
|
551
850
|
switch (tag >>> 3) {
|
|
552
|
-
case 1:
|
|
553
|
-
if (tag
|
|
851
|
+
case 1: {
|
|
852
|
+
if (tag !== 10) {
|
|
554
853
|
break;
|
|
555
854
|
}
|
|
556
855
|
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
557
856
|
continue;
|
|
558
|
-
|
|
559
|
-
|
|
857
|
+
}
|
|
858
|
+
case 2: {
|
|
859
|
+
if (tag !== 18) {
|
|
560
860
|
break;
|
|
561
861
|
}
|
|
562
862
|
message.accounts.push(reader.string());
|
|
563
863
|
continue;
|
|
864
|
+
}
|
|
564
865
|
}
|
|
565
|
-
if ((tag & 7)
|
|
866
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
566
867
|
break;
|
|
567
868
|
}
|
|
568
|
-
reader.
|
|
869
|
+
reader.skip(tag & 7);
|
|
569
870
|
}
|
|
570
871
|
return message;
|
|
571
872
|
},
|
|
@@ -574,80 +875,673 @@ exports.QueryWhitelistedAccountsForNFTResponse = {
|
|
|
574
875
|
pagination: isSet(object.pagination)
|
|
575
876
|
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
576
877
|
: undefined,
|
|
577
|
-
accounts: Array.isArray(object
|
|
578
|
-
? object.accounts.map((e) => String(e))
|
|
878
|
+
accounts: globalThis.Array.isArray(object?.accounts)
|
|
879
|
+
? object.accounts.map((e) => globalThis.String(e))
|
|
579
880
|
: [],
|
|
580
881
|
};
|
|
581
882
|
},
|
|
582
883
|
toJSON(message) {
|
|
583
884
|
const obj = {};
|
|
584
|
-
message.pagination !== undefined
|
|
585
|
-
|
|
586
|
-
? pagination_1.PageResponse.toJSON(message.pagination)
|
|
587
|
-
: undefined);
|
|
588
|
-
if (message.accounts) {
|
|
589
|
-
obj.accounts = message.accounts.map((e) => e);
|
|
885
|
+
if (message.pagination !== undefined) {
|
|
886
|
+
obj.pagination = pagination_1.PageResponse.toJSON(message.pagination);
|
|
590
887
|
}
|
|
591
|
-
|
|
592
|
-
obj.accounts =
|
|
888
|
+
if (message.accounts?.length) {
|
|
889
|
+
obj.accounts = message.accounts;
|
|
593
890
|
}
|
|
594
891
|
return obj;
|
|
595
892
|
},
|
|
596
893
|
create(base) {
|
|
597
|
-
return exports.QueryWhitelistedAccountsForNFTResponse.fromPartial(base
|
|
894
|
+
return exports.QueryWhitelistedAccountsForNFTResponse.fromPartial(base ?? {});
|
|
598
895
|
},
|
|
599
896
|
fromPartial(object) {
|
|
600
|
-
var _a;
|
|
601
897
|
const message = createBaseQueryWhitelistedAccountsForNFTResponse();
|
|
602
898
|
message.pagination =
|
|
603
899
|
object.pagination !== undefined && object.pagination !== null
|
|
604
900
|
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
605
901
|
: undefined;
|
|
606
|
-
message.accounts =
|
|
902
|
+
message.accounts = object.accounts?.map((e) => e) || [];
|
|
607
903
|
return message;
|
|
608
904
|
},
|
|
609
905
|
};
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
this.service = (opts === null || opts === void 0 ? void 0 : opts.service) || "coreum.asset.nft.v1.Query";
|
|
613
|
-
this.rpc = rpc;
|
|
614
|
-
this.Params = this.Params.bind(this);
|
|
615
|
-
this.Class = this.Class.bind(this);
|
|
616
|
-
this.Frozen = this.Frozen.bind(this);
|
|
617
|
-
this.Whitelisted = this.Whitelisted.bind(this);
|
|
618
|
-
this.WhitelistedAccountsForNFT = this.WhitelistedAccountsForNFT.bind(this);
|
|
619
|
-
}
|
|
620
|
-
Params(request) {
|
|
621
|
-
const data = exports.QueryParamsRequest.encode(request).finish();
|
|
622
|
-
const promise = this.rpc.request(this.service, "Params", data);
|
|
623
|
-
return promise.then((data) => exports.QueryParamsResponse.decode(minimal_1.default.Reader.create(data)));
|
|
624
|
-
}
|
|
625
|
-
Class(request) {
|
|
626
|
-
const data = exports.QueryClassRequest.encode(request).finish();
|
|
627
|
-
const promise = this.rpc.request(this.service, "Class", data);
|
|
628
|
-
return promise.then((data) => exports.QueryClassResponse.decode(minimal_1.default.Reader.create(data)));
|
|
629
|
-
}
|
|
630
|
-
Frozen(request) {
|
|
631
|
-
const data = exports.QueryFrozenRequest.encode(request).finish();
|
|
632
|
-
const promise = this.rpc.request(this.service, "Frozen", data);
|
|
633
|
-
return promise.then((data) => exports.QueryFrozenResponse.decode(minimal_1.default.Reader.create(data)));
|
|
634
|
-
}
|
|
635
|
-
Whitelisted(request) {
|
|
636
|
-
const data = exports.QueryWhitelistedRequest.encode(request).finish();
|
|
637
|
-
const promise = this.rpc.request(this.service, "Whitelisted", data);
|
|
638
|
-
return promise.then((data) => exports.QueryWhitelistedResponse.decode(minimal_1.default.Reader.create(data)));
|
|
639
|
-
}
|
|
640
|
-
WhitelistedAccountsForNFT(request) {
|
|
641
|
-
const data = exports.QueryWhitelistedAccountsForNFTRequest.encode(request).finish();
|
|
642
|
-
const promise = this.rpc.request(this.service, "WhitelistedAccountsForNFT", data);
|
|
643
|
-
return promise.then((data) => exports.QueryWhitelistedAccountsForNFTResponse.decode(minimal_1.default.Reader.create(data)));
|
|
644
|
-
}
|
|
645
|
-
}
|
|
646
|
-
exports.QueryClientImpl = QueryClientImpl;
|
|
647
|
-
if (minimal_1.default.util.Long !== long_1.default) {
|
|
648
|
-
minimal_1.default.util.Long = long_1.default;
|
|
649
|
-
minimal_1.default.configure();
|
|
906
|
+
function createBaseQueryClassWhitelistedAccountsRequest() {
|
|
907
|
+
return { pagination: undefined, classId: "" };
|
|
650
908
|
}
|
|
909
|
+
exports.QueryClassWhitelistedAccountsRequest = {
|
|
910
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
911
|
+
if (message.pagination !== undefined) {
|
|
912
|
+
pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
913
|
+
}
|
|
914
|
+
if (message.classId !== "") {
|
|
915
|
+
writer.uint32(18).string(message.classId);
|
|
916
|
+
}
|
|
917
|
+
return writer;
|
|
918
|
+
},
|
|
919
|
+
decode(input, length) {
|
|
920
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
921
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
922
|
+
const message = createBaseQueryClassWhitelistedAccountsRequest();
|
|
923
|
+
while (reader.pos < end) {
|
|
924
|
+
const tag = reader.uint32();
|
|
925
|
+
switch (tag >>> 3) {
|
|
926
|
+
case 1: {
|
|
927
|
+
if (tag !== 10) {
|
|
928
|
+
break;
|
|
929
|
+
}
|
|
930
|
+
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
931
|
+
continue;
|
|
932
|
+
}
|
|
933
|
+
case 2: {
|
|
934
|
+
if (tag !== 18) {
|
|
935
|
+
break;
|
|
936
|
+
}
|
|
937
|
+
message.classId = reader.string();
|
|
938
|
+
continue;
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
942
|
+
break;
|
|
943
|
+
}
|
|
944
|
+
reader.skip(tag & 7);
|
|
945
|
+
}
|
|
946
|
+
return message;
|
|
947
|
+
},
|
|
948
|
+
fromJSON(object) {
|
|
949
|
+
return {
|
|
950
|
+
pagination: isSet(object.pagination)
|
|
951
|
+
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
952
|
+
: undefined,
|
|
953
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
954
|
+
};
|
|
955
|
+
},
|
|
956
|
+
toJSON(message) {
|
|
957
|
+
const obj = {};
|
|
958
|
+
if (message.pagination !== undefined) {
|
|
959
|
+
obj.pagination = pagination_1.PageRequest.toJSON(message.pagination);
|
|
960
|
+
}
|
|
961
|
+
if (message.classId !== "") {
|
|
962
|
+
obj.classId = message.classId;
|
|
963
|
+
}
|
|
964
|
+
return obj;
|
|
965
|
+
},
|
|
966
|
+
create(base) {
|
|
967
|
+
return exports.QueryClassWhitelistedAccountsRequest.fromPartial(base ?? {});
|
|
968
|
+
},
|
|
969
|
+
fromPartial(object) {
|
|
970
|
+
const message = createBaseQueryClassWhitelistedAccountsRequest();
|
|
971
|
+
message.pagination =
|
|
972
|
+
object.pagination !== undefined && object.pagination !== null
|
|
973
|
+
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
974
|
+
: undefined;
|
|
975
|
+
message.classId = object.classId ?? "";
|
|
976
|
+
return message;
|
|
977
|
+
},
|
|
978
|
+
};
|
|
979
|
+
function createBaseQueryClassWhitelistedAccountsResponse() {
|
|
980
|
+
return { pagination: undefined, accounts: [] };
|
|
981
|
+
}
|
|
982
|
+
exports.QueryClassWhitelistedAccountsResponse = {
|
|
983
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
984
|
+
if (message.pagination !== undefined) {
|
|
985
|
+
pagination_1.PageResponse.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
986
|
+
}
|
|
987
|
+
for (const v of message.accounts) {
|
|
988
|
+
writer.uint32(18).string(v);
|
|
989
|
+
}
|
|
990
|
+
return writer;
|
|
991
|
+
},
|
|
992
|
+
decode(input, length) {
|
|
993
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
994
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
995
|
+
const message = createBaseQueryClassWhitelistedAccountsResponse();
|
|
996
|
+
while (reader.pos < end) {
|
|
997
|
+
const tag = reader.uint32();
|
|
998
|
+
switch (tag >>> 3) {
|
|
999
|
+
case 1: {
|
|
1000
|
+
if (tag !== 10) {
|
|
1001
|
+
break;
|
|
1002
|
+
}
|
|
1003
|
+
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
1004
|
+
continue;
|
|
1005
|
+
}
|
|
1006
|
+
case 2: {
|
|
1007
|
+
if (tag !== 18) {
|
|
1008
|
+
break;
|
|
1009
|
+
}
|
|
1010
|
+
message.accounts.push(reader.string());
|
|
1011
|
+
continue;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1015
|
+
break;
|
|
1016
|
+
}
|
|
1017
|
+
reader.skip(tag & 7);
|
|
1018
|
+
}
|
|
1019
|
+
return message;
|
|
1020
|
+
},
|
|
1021
|
+
fromJSON(object) {
|
|
1022
|
+
return {
|
|
1023
|
+
pagination: isSet(object.pagination)
|
|
1024
|
+
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
1025
|
+
: undefined,
|
|
1026
|
+
accounts: globalThis.Array.isArray(object?.accounts)
|
|
1027
|
+
? object.accounts.map((e) => globalThis.String(e))
|
|
1028
|
+
: [],
|
|
1029
|
+
};
|
|
1030
|
+
},
|
|
1031
|
+
toJSON(message) {
|
|
1032
|
+
const obj = {};
|
|
1033
|
+
if (message.pagination !== undefined) {
|
|
1034
|
+
obj.pagination = pagination_1.PageResponse.toJSON(message.pagination);
|
|
1035
|
+
}
|
|
1036
|
+
if (message.accounts?.length) {
|
|
1037
|
+
obj.accounts = message.accounts;
|
|
1038
|
+
}
|
|
1039
|
+
return obj;
|
|
1040
|
+
},
|
|
1041
|
+
create(base) {
|
|
1042
|
+
return exports.QueryClassWhitelistedAccountsResponse.fromPartial(base ?? {});
|
|
1043
|
+
},
|
|
1044
|
+
fromPartial(object) {
|
|
1045
|
+
const message = createBaseQueryClassWhitelistedAccountsResponse();
|
|
1046
|
+
message.pagination =
|
|
1047
|
+
object.pagination !== undefined && object.pagination !== null
|
|
1048
|
+
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
1049
|
+
: undefined;
|
|
1050
|
+
message.accounts = object.accounts?.map((e) => e) || [];
|
|
1051
|
+
return message;
|
|
1052
|
+
},
|
|
1053
|
+
};
|
|
1054
|
+
function createBaseQueryClassFrozenAccountsRequest() {
|
|
1055
|
+
return { pagination: undefined, classId: "" };
|
|
1056
|
+
}
|
|
1057
|
+
exports.QueryClassFrozenAccountsRequest = {
|
|
1058
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
1059
|
+
if (message.pagination !== undefined) {
|
|
1060
|
+
pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
1061
|
+
}
|
|
1062
|
+
if (message.classId !== "") {
|
|
1063
|
+
writer.uint32(18).string(message.classId);
|
|
1064
|
+
}
|
|
1065
|
+
return writer;
|
|
1066
|
+
},
|
|
1067
|
+
decode(input, length) {
|
|
1068
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1069
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1070
|
+
const message = createBaseQueryClassFrozenAccountsRequest();
|
|
1071
|
+
while (reader.pos < end) {
|
|
1072
|
+
const tag = reader.uint32();
|
|
1073
|
+
switch (tag >>> 3) {
|
|
1074
|
+
case 1: {
|
|
1075
|
+
if (tag !== 10) {
|
|
1076
|
+
break;
|
|
1077
|
+
}
|
|
1078
|
+
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
1079
|
+
continue;
|
|
1080
|
+
}
|
|
1081
|
+
case 2: {
|
|
1082
|
+
if (tag !== 18) {
|
|
1083
|
+
break;
|
|
1084
|
+
}
|
|
1085
|
+
message.classId = reader.string();
|
|
1086
|
+
continue;
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1090
|
+
break;
|
|
1091
|
+
}
|
|
1092
|
+
reader.skip(tag & 7);
|
|
1093
|
+
}
|
|
1094
|
+
return message;
|
|
1095
|
+
},
|
|
1096
|
+
fromJSON(object) {
|
|
1097
|
+
return {
|
|
1098
|
+
pagination: isSet(object.pagination)
|
|
1099
|
+
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
1100
|
+
: undefined,
|
|
1101
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
1102
|
+
};
|
|
1103
|
+
},
|
|
1104
|
+
toJSON(message) {
|
|
1105
|
+
const obj = {};
|
|
1106
|
+
if (message.pagination !== undefined) {
|
|
1107
|
+
obj.pagination = pagination_1.PageRequest.toJSON(message.pagination);
|
|
1108
|
+
}
|
|
1109
|
+
if (message.classId !== "") {
|
|
1110
|
+
obj.classId = message.classId;
|
|
1111
|
+
}
|
|
1112
|
+
return obj;
|
|
1113
|
+
},
|
|
1114
|
+
create(base) {
|
|
1115
|
+
return exports.QueryClassFrozenAccountsRequest.fromPartial(base ?? {});
|
|
1116
|
+
},
|
|
1117
|
+
fromPartial(object) {
|
|
1118
|
+
const message = createBaseQueryClassFrozenAccountsRequest();
|
|
1119
|
+
message.pagination =
|
|
1120
|
+
object.pagination !== undefined && object.pagination !== null
|
|
1121
|
+
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
1122
|
+
: undefined;
|
|
1123
|
+
message.classId = object.classId ?? "";
|
|
1124
|
+
return message;
|
|
1125
|
+
},
|
|
1126
|
+
};
|
|
1127
|
+
function createBaseQueryClassFrozenAccountsResponse() {
|
|
1128
|
+
return { pagination: undefined, accounts: [] };
|
|
1129
|
+
}
|
|
1130
|
+
exports.QueryClassFrozenAccountsResponse = {
|
|
1131
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
1132
|
+
if (message.pagination !== undefined) {
|
|
1133
|
+
pagination_1.PageResponse.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
1134
|
+
}
|
|
1135
|
+
for (const v of message.accounts) {
|
|
1136
|
+
writer.uint32(18).string(v);
|
|
1137
|
+
}
|
|
1138
|
+
return writer;
|
|
1139
|
+
},
|
|
1140
|
+
decode(input, length) {
|
|
1141
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1142
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1143
|
+
const message = createBaseQueryClassFrozenAccountsResponse();
|
|
1144
|
+
while (reader.pos < end) {
|
|
1145
|
+
const tag = reader.uint32();
|
|
1146
|
+
switch (tag >>> 3) {
|
|
1147
|
+
case 1: {
|
|
1148
|
+
if (tag !== 10) {
|
|
1149
|
+
break;
|
|
1150
|
+
}
|
|
1151
|
+
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
1152
|
+
continue;
|
|
1153
|
+
}
|
|
1154
|
+
case 2: {
|
|
1155
|
+
if (tag !== 18) {
|
|
1156
|
+
break;
|
|
1157
|
+
}
|
|
1158
|
+
message.accounts.push(reader.string());
|
|
1159
|
+
continue;
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1163
|
+
break;
|
|
1164
|
+
}
|
|
1165
|
+
reader.skip(tag & 7);
|
|
1166
|
+
}
|
|
1167
|
+
return message;
|
|
1168
|
+
},
|
|
1169
|
+
fromJSON(object) {
|
|
1170
|
+
return {
|
|
1171
|
+
pagination: isSet(object.pagination)
|
|
1172
|
+
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
1173
|
+
: undefined,
|
|
1174
|
+
accounts: globalThis.Array.isArray(object?.accounts)
|
|
1175
|
+
? object.accounts.map((e) => globalThis.String(e))
|
|
1176
|
+
: [],
|
|
1177
|
+
};
|
|
1178
|
+
},
|
|
1179
|
+
toJSON(message) {
|
|
1180
|
+
const obj = {};
|
|
1181
|
+
if (message.pagination !== undefined) {
|
|
1182
|
+
obj.pagination = pagination_1.PageResponse.toJSON(message.pagination);
|
|
1183
|
+
}
|
|
1184
|
+
if (message.accounts?.length) {
|
|
1185
|
+
obj.accounts = message.accounts;
|
|
1186
|
+
}
|
|
1187
|
+
return obj;
|
|
1188
|
+
},
|
|
1189
|
+
create(base) {
|
|
1190
|
+
return exports.QueryClassFrozenAccountsResponse.fromPartial(base ?? {});
|
|
1191
|
+
},
|
|
1192
|
+
fromPartial(object) {
|
|
1193
|
+
const message = createBaseQueryClassFrozenAccountsResponse();
|
|
1194
|
+
message.pagination =
|
|
1195
|
+
object.pagination !== undefined && object.pagination !== null
|
|
1196
|
+
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
1197
|
+
: undefined;
|
|
1198
|
+
message.accounts = object.accounts?.map((e) => e) || [];
|
|
1199
|
+
return message;
|
|
1200
|
+
},
|
|
1201
|
+
};
|
|
1202
|
+
function createBaseQueryBurntNFTRequest() {
|
|
1203
|
+
return { classId: "", nftId: "" };
|
|
1204
|
+
}
|
|
1205
|
+
exports.QueryBurntNFTRequest = {
|
|
1206
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
1207
|
+
if (message.classId !== "") {
|
|
1208
|
+
writer.uint32(10).string(message.classId);
|
|
1209
|
+
}
|
|
1210
|
+
if (message.nftId !== "") {
|
|
1211
|
+
writer.uint32(18).string(message.nftId);
|
|
1212
|
+
}
|
|
1213
|
+
return writer;
|
|
1214
|
+
},
|
|
1215
|
+
decode(input, length) {
|
|
1216
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1217
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1218
|
+
const message = createBaseQueryBurntNFTRequest();
|
|
1219
|
+
while (reader.pos < end) {
|
|
1220
|
+
const tag = reader.uint32();
|
|
1221
|
+
switch (tag >>> 3) {
|
|
1222
|
+
case 1: {
|
|
1223
|
+
if (tag !== 10) {
|
|
1224
|
+
break;
|
|
1225
|
+
}
|
|
1226
|
+
message.classId = reader.string();
|
|
1227
|
+
continue;
|
|
1228
|
+
}
|
|
1229
|
+
case 2: {
|
|
1230
|
+
if (tag !== 18) {
|
|
1231
|
+
break;
|
|
1232
|
+
}
|
|
1233
|
+
message.nftId = reader.string();
|
|
1234
|
+
continue;
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1238
|
+
break;
|
|
1239
|
+
}
|
|
1240
|
+
reader.skip(tag & 7);
|
|
1241
|
+
}
|
|
1242
|
+
return message;
|
|
1243
|
+
},
|
|
1244
|
+
fromJSON(object) {
|
|
1245
|
+
return {
|
|
1246
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
1247
|
+
nftId: isSet(object.nftId) ? globalThis.String(object.nftId) : "",
|
|
1248
|
+
};
|
|
1249
|
+
},
|
|
1250
|
+
toJSON(message) {
|
|
1251
|
+
const obj = {};
|
|
1252
|
+
if (message.classId !== "") {
|
|
1253
|
+
obj.classId = message.classId;
|
|
1254
|
+
}
|
|
1255
|
+
if (message.nftId !== "") {
|
|
1256
|
+
obj.nftId = message.nftId;
|
|
1257
|
+
}
|
|
1258
|
+
return obj;
|
|
1259
|
+
},
|
|
1260
|
+
create(base) {
|
|
1261
|
+
return exports.QueryBurntNFTRequest.fromPartial(base ?? {});
|
|
1262
|
+
},
|
|
1263
|
+
fromPartial(object) {
|
|
1264
|
+
const message = createBaseQueryBurntNFTRequest();
|
|
1265
|
+
message.classId = object.classId ?? "";
|
|
1266
|
+
message.nftId = object.nftId ?? "";
|
|
1267
|
+
return message;
|
|
1268
|
+
},
|
|
1269
|
+
};
|
|
1270
|
+
function createBaseQueryBurntNFTResponse() {
|
|
1271
|
+
return { burnt: false };
|
|
1272
|
+
}
|
|
1273
|
+
exports.QueryBurntNFTResponse = {
|
|
1274
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
1275
|
+
if (message.burnt !== false) {
|
|
1276
|
+
writer.uint32(8).bool(message.burnt);
|
|
1277
|
+
}
|
|
1278
|
+
return writer;
|
|
1279
|
+
},
|
|
1280
|
+
decode(input, length) {
|
|
1281
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1282
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1283
|
+
const message = createBaseQueryBurntNFTResponse();
|
|
1284
|
+
while (reader.pos < end) {
|
|
1285
|
+
const tag = reader.uint32();
|
|
1286
|
+
switch (tag >>> 3) {
|
|
1287
|
+
case 1: {
|
|
1288
|
+
if (tag !== 8) {
|
|
1289
|
+
break;
|
|
1290
|
+
}
|
|
1291
|
+
message.burnt = reader.bool();
|
|
1292
|
+
continue;
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1296
|
+
break;
|
|
1297
|
+
}
|
|
1298
|
+
reader.skip(tag & 7);
|
|
1299
|
+
}
|
|
1300
|
+
return message;
|
|
1301
|
+
},
|
|
1302
|
+
fromJSON(object) {
|
|
1303
|
+
return {
|
|
1304
|
+
burnt: isSet(object.burnt) ? globalThis.Boolean(object.burnt) : false,
|
|
1305
|
+
};
|
|
1306
|
+
},
|
|
1307
|
+
toJSON(message) {
|
|
1308
|
+
const obj = {};
|
|
1309
|
+
if (message.burnt !== false) {
|
|
1310
|
+
obj.burnt = message.burnt;
|
|
1311
|
+
}
|
|
1312
|
+
return obj;
|
|
1313
|
+
},
|
|
1314
|
+
create(base) {
|
|
1315
|
+
return exports.QueryBurntNFTResponse.fromPartial(base ?? {});
|
|
1316
|
+
},
|
|
1317
|
+
fromPartial(object) {
|
|
1318
|
+
const message = createBaseQueryBurntNFTResponse();
|
|
1319
|
+
message.burnt = object.burnt ?? false;
|
|
1320
|
+
return message;
|
|
1321
|
+
},
|
|
1322
|
+
};
|
|
1323
|
+
function createBaseQueryBurntNFTsInClassRequest() {
|
|
1324
|
+
return { pagination: undefined, classId: "" };
|
|
1325
|
+
}
|
|
1326
|
+
exports.QueryBurntNFTsInClassRequest = {
|
|
1327
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
1328
|
+
if (message.pagination !== undefined) {
|
|
1329
|
+
pagination_1.PageRequest.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
1330
|
+
}
|
|
1331
|
+
if (message.classId !== "") {
|
|
1332
|
+
writer.uint32(18).string(message.classId);
|
|
1333
|
+
}
|
|
1334
|
+
return writer;
|
|
1335
|
+
},
|
|
1336
|
+
decode(input, length) {
|
|
1337
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1338
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1339
|
+
const message = createBaseQueryBurntNFTsInClassRequest();
|
|
1340
|
+
while (reader.pos < end) {
|
|
1341
|
+
const tag = reader.uint32();
|
|
1342
|
+
switch (tag >>> 3) {
|
|
1343
|
+
case 1: {
|
|
1344
|
+
if (tag !== 10) {
|
|
1345
|
+
break;
|
|
1346
|
+
}
|
|
1347
|
+
message.pagination = pagination_1.PageRequest.decode(reader, reader.uint32());
|
|
1348
|
+
continue;
|
|
1349
|
+
}
|
|
1350
|
+
case 2: {
|
|
1351
|
+
if (tag !== 18) {
|
|
1352
|
+
break;
|
|
1353
|
+
}
|
|
1354
|
+
message.classId = reader.string();
|
|
1355
|
+
continue;
|
|
1356
|
+
}
|
|
1357
|
+
}
|
|
1358
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1359
|
+
break;
|
|
1360
|
+
}
|
|
1361
|
+
reader.skip(tag & 7);
|
|
1362
|
+
}
|
|
1363
|
+
return message;
|
|
1364
|
+
},
|
|
1365
|
+
fromJSON(object) {
|
|
1366
|
+
return {
|
|
1367
|
+
pagination: isSet(object.pagination)
|
|
1368
|
+
? pagination_1.PageRequest.fromJSON(object.pagination)
|
|
1369
|
+
: undefined,
|
|
1370
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
1371
|
+
};
|
|
1372
|
+
},
|
|
1373
|
+
toJSON(message) {
|
|
1374
|
+
const obj = {};
|
|
1375
|
+
if (message.pagination !== undefined) {
|
|
1376
|
+
obj.pagination = pagination_1.PageRequest.toJSON(message.pagination);
|
|
1377
|
+
}
|
|
1378
|
+
if (message.classId !== "") {
|
|
1379
|
+
obj.classId = message.classId;
|
|
1380
|
+
}
|
|
1381
|
+
return obj;
|
|
1382
|
+
},
|
|
1383
|
+
create(base) {
|
|
1384
|
+
return exports.QueryBurntNFTsInClassRequest.fromPartial(base ?? {});
|
|
1385
|
+
},
|
|
1386
|
+
fromPartial(object) {
|
|
1387
|
+
const message = createBaseQueryBurntNFTsInClassRequest();
|
|
1388
|
+
message.pagination =
|
|
1389
|
+
object.pagination !== undefined && object.pagination !== null
|
|
1390
|
+
? pagination_1.PageRequest.fromPartial(object.pagination)
|
|
1391
|
+
: undefined;
|
|
1392
|
+
message.classId = object.classId ?? "";
|
|
1393
|
+
return message;
|
|
1394
|
+
},
|
|
1395
|
+
};
|
|
1396
|
+
function createBaseQueryBurntNFTsInClassResponse() {
|
|
1397
|
+
return { pagination: undefined, nftIds: [] };
|
|
1398
|
+
}
|
|
1399
|
+
exports.QueryBurntNFTsInClassResponse = {
|
|
1400
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
1401
|
+
if (message.pagination !== undefined) {
|
|
1402
|
+
pagination_1.PageResponse.encode(message.pagination, writer.uint32(10).fork()).ldelim();
|
|
1403
|
+
}
|
|
1404
|
+
for (const v of message.nftIds) {
|
|
1405
|
+
writer.uint32(18).string(v);
|
|
1406
|
+
}
|
|
1407
|
+
return writer;
|
|
1408
|
+
},
|
|
1409
|
+
decode(input, length) {
|
|
1410
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
1411
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1412
|
+
const message = createBaseQueryBurntNFTsInClassResponse();
|
|
1413
|
+
while (reader.pos < end) {
|
|
1414
|
+
const tag = reader.uint32();
|
|
1415
|
+
switch (tag >>> 3) {
|
|
1416
|
+
case 1: {
|
|
1417
|
+
if (tag !== 10) {
|
|
1418
|
+
break;
|
|
1419
|
+
}
|
|
1420
|
+
message.pagination = pagination_1.PageResponse.decode(reader, reader.uint32());
|
|
1421
|
+
continue;
|
|
1422
|
+
}
|
|
1423
|
+
case 2: {
|
|
1424
|
+
if (tag !== 18) {
|
|
1425
|
+
break;
|
|
1426
|
+
}
|
|
1427
|
+
message.nftIds.push(reader.string());
|
|
1428
|
+
continue;
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1432
|
+
break;
|
|
1433
|
+
}
|
|
1434
|
+
reader.skip(tag & 7);
|
|
1435
|
+
}
|
|
1436
|
+
return message;
|
|
1437
|
+
},
|
|
1438
|
+
fromJSON(object) {
|
|
1439
|
+
return {
|
|
1440
|
+
pagination: isSet(object.pagination)
|
|
1441
|
+
? pagination_1.PageResponse.fromJSON(object.pagination)
|
|
1442
|
+
: undefined,
|
|
1443
|
+
nftIds: globalThis.Array.isArray(object?.nftIds)
|
|
1444
|
+
? object.nftIds.map((e) => globalThis.String(e))
|
|
1445
|
+
: [],
|
|
1446
|
+
};
|
|
1447
|
+
},
|
|
1448
|
+
toJSON(message) {
|
|
1449
|
+
const obj = {};
|
|
1450
|
+
if (message.pagination !== undefined) {
|
|
1451
|
+
obj.pagination = pagination_1.PageResponse.toJSON(message.pagination);
|
|
1452
|
+
}
|
|
1453
|
+
if (message.nftIds?.length) {
|
|
1454
|
+
obj.nftIds = message.nftIds;
|
|
1455
|
+
}
|
|
1456
|
+
return obj;
|
|
1457
|
+
},
|
|
1458
|
+
create(base) {
|
|
1459
|
+
return exports.QueryBurntNFTsInClassResponse.fromPartial(base ?? {});
|
|
1460
|
+
},
|
|
1461
|
+
fromPartial(object) {
|
|
1462
|
+
const message = createBaseQueryBurntNFTsInClassResponse();
|
|
1463
|
+
message.pagination =
|
|
1464
|
+
object.pagination !== undefined && object.pagination !== null
|
|
1465
|
+
? pagination_1.PageResponse.fromPartial(object.pagination)
|
|
1466
|
+
: undefined;
|
|
1467
|
+
message.nftIds = object.nftIds?.map((e) => e) || [];
|
|
1468
|
+
return message;
|
|
1469
|
+
},
|
|
1470
|
+
};
|
|
1471
|
+
exports.QueryServiceName = "coreum.asset.nft.v1.Query";
|
|
1472
|
+
class QueryClientImpl {
|
|
1473
|
+
constructor(rpc, opts) {
|
|
1474
|
+
this.service = opts?.service || exports.QueryServiceName;
|
|
1475
|
+
this.rpc = rpc;
|
|
1476
|
+
this.Params = this.Params.bind(this);
|
|
1477
|
+
this.Class = this.Class.bind(this);
|
|
1478
|
+
this.Classes = this.Classes.bind(this);
|
|
1479
|
+
this.Frozen = this.Frozen.bind(this);
|
|
1480
|
+
this.ClassFrozen = this.ClassFrozen.bind(this);
|
|
1481
|
+
this.ClassFrozenAccounts = this.ClassFrozenAccounts.bind(this);
|
|
1482
|
+
this.Whitelisted = this.Whitelisted.bind(this);
|
|
1483
|
+
this.WhitelistedAccountsForNFT = this.WhitelistedAccountsForNFT.bind(this);
|
|
1484
|
+
this.ClassWhitelistedAccounts = this.ClassWhitelistedAccounts.bind(this);
|
|
1485
|
+
this.BurntNFT = this.BurntNFT.bind(this);
|
|
1486
|
+
this.BurntNFTsInClass = this.BurntNFTsInClass.bind(this);
|
|
1487
|
+
}
|
|
1488
|
+
Params(request) {
|
|
1489
|
+
const data = exports.QueryParamsRequest.encode(request).finish();
|
|
1490
|
+
const promise = this.rpc.request(this.service, "Params", data);
|
|
1491
|
+
return promise.then((data) => exports.QueryParamsResponse.decode(new binary_1.BinaryReader(data)));
|
|
1492
|
+
}
|
|
1493
|
+
Class(request) {
|
|
1494
|
+
const data = exports.QueryClassRequest.encode(request).finish();
|
|
1495
|
+
const promise = this.rpc.request(this.service, "Class", data);
|
|
1496
|
+
return promise.then((data) => exports.QueryClassResponse.decode(new binary_1.BinaryReader(data)));
|
|
1497
|
+
}
|
|
1498
|
+
Classes(request) {
|
|
1499
|
+
const data = exports.QueryClassesRequest.encode(request).finish();
|
|
1500
|
+
const promise = this.rpc.request(this.service, "Classes", data);
|
|
1501
|
+
return promise.then((data) => exports.QueryClassesResponse.decode(new binary_1.BinaryReader(data)));
|
|
1502
|
+
}
|
|
1503
|
+
Frozen(request) {
|
|
1504
|
+
const data = exports.QueryFrozenRequest.encode(request).finish();
|
|
1505
|
+
const promise = this.rpc.request(this.service, "Frozen", data);
|
|
1506
|
+
return promise.then((data) => exports.QueryFrozenResponse.decode(new binary_1.BinaryReader(data)));
|
|
1507
|
+
}
|
|
1508
|
+
ClassFrozen(request) {
|
|
1509
|
+
const data = exports.QueryClassFrozenRequest.encode(request).finish();
|
|
1510
|
+
const promise = this.rpc.request(this.service, "ClassFrozen", data);
|
|
1511
|
+
return promise.then((data) => exports.QueryClassFrozenResponse.decode(new binary_1.BinaryReader(data)));
|
|
1512
|
+
}
|
|
1513
|
+
ClassFrozenAccounts(request) {
|
|
1514
|
+
const data = exports.QueryClassFrozenAccountsRequest.encode(request).finish();
|
|
1515
|
+
const promise = this.rpc.request(this.service, "ClassFrozenAccounts", data);
|
|
1516
|
+
return promise.then((data) => exports.QueryClassFrozenAccountsResponse.decode(new binary_1.BinaryReader(data)));
|
|
1517
|
+
}
|
|
1518
|
+
Whitelisted(request) {
|
|
1519
|
+
const data = exports.QueryWhitelistedRequest.encode(request).finish();
|
|
1520
|
+
const promise = this.rpc.request(this.service, "Whitelisted", data);
|
|
1521
|
+
return promise.then((data) => exports.QueryWhitelistedResponse.decode(new binary_1.BinaryReader(data)));
|
|
1522
|
+
}
|
|
1523
|
+
WhitelistedAccountsForNFT(request) {
|
|
1524
|
+
const data = exports.QueryWhitelistedAccountsForNFTRequest.encode(request).finish();
|
|
1525
|
+
const promise = this.rpc.request(this.service, "WhitelistedAccountsForNFT", data);
|
|
1526
|
+
return promise.then((data) => exports.QueryWhitelistedAccountsForNFTResponse.decode(new binary_1.BinaryReader(data)));
|
|
1527
|
+
}
|
|
1528
|
+
ClassWhitelistedAccounts(request) {
|
|
1529
|
+
const data = exports.QueryClassWhitelistedAccountsRequest.encode(request).finish();
|
|
1530
|
+
const promise = this.rpc.request(this.service, "ClassWhitelistedAccounts", data);
|
|
1531
|
+
return promise.then((data) => exports.QueryClassWhitelistedAccountsResponse.decode(new binary_1.BinaryReader(data)));
|
|
1532
|
+
}
|
|
1533
|
+
BurntNFT(request) {
|
|
1534
|
+
const data = exports.QueryBurntNFTRequest.encode(request).finish();
|
|
1535
|
+
const promise = this.rpc.request(this.service, "BurntNFT", data);
|
|
1536
|
+
return promise.then((data) => exports.QueryBurntNFTResponse.decode(new binary_1.BinaryReader(data)));
|
|
1537
|
+
}
|
|
1538
|
+
BurntNFTsInClass(request) {
|
|
1539
|
+
const data = exports.QueryBurntNFTsInClassRequest.encode(request).finish();
|
|
1540
|
+
const promise = this.rpc.request(this.service, "BurntNFTsInClass", data);
|
|
1541
|
+
return promise.then((data) => exports.QueryBurntNFTsInClassResponse.decode(new binary_1.BinaryReader(data)));
|
|
1542
|
+
}
|
|
1543
|
+
}
|
|
1544
|
+
exports.QueryClientImpl = QueryClientImpl;
|
|
651
1545
|
function isSet(value) {
|
|
652
1546
|
return value !== null && value !== undefined;
|
|
653
1547
|
}
|