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