coreum-js 2.8.19 → 2.8.21
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/coreum/asset/ft/v1/genesis.d.ts +10 -0
- package/dist/main/coreum/asset/ft/v1/query.d.ts +16 -0
- package/dist/main/coreum/asset/ft/v1/token.d.ts +117 -3
- package/dist/main/coreum/asset/ft/v1/token.js +299 -34
- package/dist/main/coreum/asset/nft/v1/query.d.ts +2 -2
- package/dist/main/coreum/nft/v1beta1/genesis.d.ts +6 -6
- package/dist/main/coreum/nft/v1beta1/query.d.ts +8 -8
- package/dist/main/cosmos/authz/v1beta1/genesis.d.ts +2 -2
- package/dist/main/cosmos/authz/v1beta1/query.d.ts +6 -6
- package/dist/main/cosmos/feegrant/v1beta1/genesis.d.ts +2 -2
- package/dist/main/cosmos/feegrant/v1beta1/query.d.ts +6 -6
- package/dist/main/cosmos/gov/v1beta1/genesis.d.ts +2 -2
- package/dist/main/cosmos/gov/v1beta1/query.d.ts +4 -4
- package/dist/main/cosmos/staking/v1beta1/genesis.d.ts +2 -2
- package/dist/main/cosmos/staking/v1beta1/query.d.ts +10 -10
- package/dist/main/cosmos/vesting/v1beta1/vesting.d.ts +10 -10
- package/dist/main/google/index.d.ts +1 -0
- package/dist/main/google/index.js +17 -0
- package/dist/main/google/protobuf/any.d.ts +2 -0
- package/dist/main/google/protobuf/any.js +6 -2
- package/dist/main/wasm/v1/genesis.d.ts +4 -4
- package/dist/main/wasm/v1/query.d.ts +2 -2
- package/dist/module/coreum/asset/ft/v1/genesis.d.ts +10 -0
- package/dist/module/coreum/asset/ft/v1/query.d.ts +16 -0
- package/dist/module/coreum/asset/ft/v1/token.d.ts +117 -3
- package/dist/module/coreum/asset/ft/v1/token.js +292 -29
- package/dist/module/coreum/asset/nft/v1/query.d.ts +2 -2
- package/dist/module/coreum/nft/v1beta1/genesis.d.ts +6 -6
- package/dist/module/coreum/nft/v1beta1/query.d.ts +8 -8
- package/dist/module/cosmos/authz/v1beta1/genesis.d.ts +2 -2
- package/dist/module/cosmos/authz/v1beta1/query.d.ts +6 -6
- package/dist/module/cosmos/feegrant/v1beta1/genesis.d.ts +2 -2
- package/dist/module/cosmos/feegrant/v1beta1/query.d.ts +6 -6
- package/dist/module/cosmos/gov/v1beta1/genesis.d.ts +2 -2
- package/dist/module/cosmos/gov/v1beta1/query.d.ts +4 -4
- package/dist/module/cosmos/staking/v1beta1/genesis.d.ts +2 -2
- package/dist/module/cosmos/staking/v1beta1/query.d.ts +10 -10
- package/dist/module/cosmos/vesting/v1beta1/vesting.d.ts +10 -10
- package/dist/module/google/index.d.ts +1 -0
- package/dist/module/google/index.js +1 -0
- package/dist/module/google/protobuf/any.d.ts +2 -0
- package/dist/module/google/protobuf/any.js +5 -3
- package/dist/module/wasm/v1/genesis.d.ts +4 -4
- package/dist/module/wasm/v1/query.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* eslint-disable */
|
|
2
|
-
import Long from "long";
|
|
3
2
|
import _m0 from "protobufjs/minimal";
|
|
3
|
+
import { Timestamp } from "../../../../google/protobuf/timestamp";
|
|
4
4
|
export const protobufPackage = "coreum.asset.ft.v1";
|
|
5
5
|
/** Feature defines possible features of fungible token. */
|
|
6
6
|
export var Feature;
|
|
@@ -11,6 +11,7 @@ export var Feature;
|
|
|
11
11
|
Feature[Feature["whitelisting"] = 3] = "whitelisting";
|
|
12
12
|
Feature[Feature["ibc"] = 4] = "ibc";
|
|
13
13
|
Feature[Feature["block_smart_contracts"] = 5] = "block_smart_contracts";
|
|
14
|
+
Feature[Feature["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
14
15
|
})(Feature || (Feature = {}));
|
|
15
16
|
export function featureFromJSON(object) {
|
|
16
17
|
switch (object) {
|
|
@@ -32,8 +33,10 @@ export function featureFromJSON(object) {
|
|
|
32
33
|
case 5:
|
|
33
34
|
case "block_smart_contracts":
|
|
34
35
|
return Feature.block_smart_contracts;
|
|
36
|
+
case -1:
|
|
37
|
+
case "UNRECOGNIZED":
|
|
35
38
|
default:
|
|
36
|
-
return
|
|
39
|
+
return Feature.UNRECOGNIZED;
|
|
37
40
|
}
|
|
38
41
|
}
|
|
39
42
|
export function featureToJSON(object) {
|
|
@@ -50,6 +53,9 @@ export function featureToJSON(object) {
|
|
|
50
53
|
return "ibc";
|
|
51
54
|
case Feature.block_smart_contracts:
|
|
52
55
|
return "block_smart_contracts";
|
|
56
|
+
case Feature.UNRECOGNIZED:
|
|
57
|
+
default:
|
|
58
|
+
return "UNRECOGNIZED";
|
|
53
59
|
}
|
|
54
60
|
}
|
|
55
61
|
function createBaseDefinition() {
|
|
@@ -59,6 +65,9 @@ function createBaseDefinition() {
|
|
|
59
65
|
features: [],
|
|
60
66
|
burnRate: "",
|
|
61
67
|
sendCommissionRate: "",
|
|
68
|
+
version: 0,
|
|
69
|
+
uri: "",
|
|
70
|
+
uriHash: "",
|
|
62
71
|
};
|
|
63
72
|
}
|
|
64
73
|
export const Definition = {
|
|
@@ -80,6 +89,15 @@ export const Definition = {
|
|
|
80
89
|
if (message.sendCommissionRate !== "") {
|
|
81
90
|
writer.uint32(42).string(message.sendCommissionRate);
|
|
82
91
|
}
|
|
92
|
+
if (message.version !== 0) {
|
|
93
|
+
writer.uint32(48).uint32(message.version);
|
|
94
|
+
}
|
|
95
|
+
if (message.uri !== "") {
|
|
96
|
+
writer.uint32(58).string(message.uri);
|
|
97
|
+
}
|
|
98
|
+
if (message.uriHash !== "") {
|
|
99
|
+
writer.uint32(66).string(message.uriHash);
|
|
100
|
+
}
|
|
83
101
|
return writer;
|
|
84
102
|
},
|
|
85
103
|
decode(input, length) {
|
|
@@ -90,23 +108,23 @@ export const Definition = {
|
|
|
90
108
|
const tag = reader.uint32();
|
|
91
109
|
switch (tag >>> 3) {
|
|
92
110
|
case 1:
|
|
93
|
-
if (tag
|
|
111
|
+
if (tag !== 10) {
|
|
94
112
|
break;
|
|
95
113
|
}
|
|
96
114
|
message.denom = reader.string();
|
|
97
115
|
continue;
|
|
98
116
|
case 2:
|
|
99
|
-
if (tag
|
|
117
|
+
if (tag !== 18) {
|
|
100
118
|
break;
|
|
101
119
|
}
|
|
102
120
|
message.issuer = reader.string();
|
|
103
121
|
continue;
|
|
104
122
|
case 3:
|
|
105
|
-
if (tag
|
|
123
|
+
if (tag === 24) {
|
|
106
124
|
message.features.push(reader.int32());
|
|
107
125
|
continue;
|
|
108
126
|
}
|
|
109
|
-
if (tag
|
|
127
|
+
if (tag === 26) {
|
|
110
128
|
const end2 = reader.uint32() + reader.pos;
|
|
111
129
|
while (reader.pos < end2) {
|
|
112
130
|
message.features.push(reader.int32());
|
|
@@ -115,19 +133,37 @@ export const Definition = {
|
|
|
115
133
|
}
|
|
116
134
|
break;
|
|
117
135
|
case 4:
|
|
118
|
-
if (tag
|
|
136
|
+
if (tag !== 34) {
|
|
119
137
|
break;
|
|
120
138
|
}
|
|
121
139
|
message.burnRate = reader.string();
|
|
122
140
|
continue;
|
|
123
141
|
case 5:
|
|
124
|
-
if (tag
|
|
142
|
+
if (tag !== 42) {
|
|
125
143
|
break;
|
|
126
144
|
}
|
|
127
145
|
message.sendCommissionRate = reader.string();
|
|
128
146
|
continue;
|
|
147
|
+
case 6:
|
|
148
|
+
if (tag !== 48) {
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
message.version = reader.uint32();
|
|
152
|
+
continue;
|
|
153
|
+
case 7:
|
|
154
|
+
if (tag !== 58) {
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
message.uri = reader.string();
|
|
158
|
+
continue;
|
|
159
|
+
case 8:
|
|
160
|
+
if (tag !== 66) {
|
|
161
|
+
break;
|
|
162
|
+
}
|
|
163
|
+
message.uriHash = reader.string();
|
|
164
|
+
continue;
|
|
129
165
|
}
|
|
130
|
-
if ((tag & 7)
|
|
166
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
131
167
|
break;
|
|
132
168
|
}
|
|
133
169
|
reader.skipType(tag & 7);
|
|
@@ -145,6 +181,9 @@ export const Definition = {
|
|
|
145
181
|
sendCommissionRate: isSet(object.sendCommissionRate)
|
|
146
182
|
? String(object.sendCommissionRate)
|
|
147
183
|
: "",
|
|
184
|
+
version: isSet(object.version) ? Number(object.version) : 0,
|
|
185
|
+
uri: isSet(object.uri) ? String(object.uri) : "",
|
|
186
|
+
uriHash: isSet(object.uriHash) ? String(object.uriHash) : "",
|
|
148
187
|
};
|
|
149
188
|
},
|
|
150
189
|
toJSON(message) {
|
|
@@ -160,6 +199,10 @@ export const Definition = {
|
|
|
160
199
|
message.burnRate !== undefined && (obj.burnRate = message.burnRate);
|
|
161
200
|
message.sendCommissionRate !== undefined &&
|
|
162
201
|
(obj.sendCommissionRate = message.sendCommissionRate);
|
|
202
|
+
message.version !== undefined &&
|
|
203
|
+
(obj.version = Math.round(message.version));
|
|
204
|
+
message.uri !== undefined && (obj.uri = message.uri);
|
|
205
|
+
message.uriHash !== undefined && (obj.uriHash = message.uriHash);
|
|
163
206
|
return obj;
|
|
164
207
|
},
|
|
165
208
|
create(base) {
|
|
@@ -172,6 +215,9 @@ export const Definition = {
|
|
|
172
215
|
message.features = object.features?.map((e) => e) || [];
|
|
173
216
|
message.burnRate = object.burnRate ?? "";
|
|
174
217
|
message.sendCommissionRate = object.sendCommissionRate ?? "";
|
|
218
|
+
message.version = object.version ?? 0;
|
|
219
|
+
message.uri = object.uri ?? "";
|
|
220
|
+
message.uriHash = object.uriHash ?? "";
|
|
175
221
|
return message;
|
|
176
222
|
},
|
|
177
223
|
};
|
|
@@ -187,6 +233,7 @@ function createBaseToken() {
|
|
|
187
233
|
features: [],
|
|
188
234
|
burnRate: "",
|
|
189
235
|
sendCommissionRate: "",
|
|
236
|
+
version: 0,
|
|
190
237
|
uri: "",
|
|
191
238
|
uriHash: "",
|
|
192
239
|
};
|
|
@@ -225,11 +272,14 @@ export const Token = {
|
|
|
225
272
|
if (message.sendCommissionRate !== "") {
|
|
226
273
|
writer.uint32(82).string(message.sendCommissionRate);
|
|
227
274
|
}
|
|
275
|
+
if (message.version !== 0) {
|
|
276
|
+
writer.uint32(88).uint32(message.version);
|
|
277
|
+
}
|
|
228
278
|
if (message.uri !== "") {
|
|
229
|
-
writer.uint32(
|
|
279
|
+
writer.uint32(98).string(message.uri);
|
|
230
280
|
}
|
|
231
281
|
if (message.uriHash !== "") {
|
|
232
|
-
writer.uint32(
|
|
282
|
+
writer.uint32(106).string(message.uriHash);
|
|
233
283
|
}
|
|
234
284
|
return writer;
|
|
235
285
|
},
|
|
@@ -241,53 +291,53 @@ export const Token = {
|
|
|
241
291
|
const tag = reader.uint32();
|
|
242
292
|
switch (tag >>> 3) {
|
|
243
293
|
case 1:
|
|
244
|
-
if (tag
|
|
294
|
+
if (tag !== 10) {
|
|
245
295
|
break;
|
|
246
296
|
}
|
|
247
297
|
message.denom = reader.string();
|
|
248
298
|
continue;
|
|
249
299
|
case 2:
|
|
250
|
-
if (tag
|
|
300
|
+
if (tag !== 18) {
|
|
251
301
|
break;
|
|
252
302
|
}
|
|
253
303
|
message.issuer = reader.string();
|
|
254
304
|
continue;
|
|
255
305
|
case 3:
|
|
256
|
-
if (tag
|
|
306
|
+
if (tag !== 26) {
|
|
257
307
|
break;
|
|
258
308
|
}
|
|
259
309
|
message.symbol = reader.string();
|
|
260
310
|
continue;
|
|
261
311
|
case 4:
|
|
262
|
-
if (tag
|
|
312
|
+
if (tag !== 34) {
|
|
263
313
|
break;
|
|
264
314
|
}
|
|
265
315
|
message.subunit = reader.string();
|
|
266
316
|
continue;
|
|
267
317
|
case 5:
|
|
268
|
-
if (tag
|
|
318
|
+
if (tag !== 40) {
|
|
269
319
|
break;
|
|
270
320
|
}
|
|
271
321
|
message.precision = reader.uint32();
|
|
272
322
|
continue;
|
|
273
323
|
case 6:
|
|
274
|
-
if (tag
|
|
324
|
+
if (tag !== 50) {
|
|
275
325
|
break;
|
|
276
326
|
}
|
|
277
327
|
message.description = reader.string();
|
|
278
328
|
continue;
|
|
279
329
|
case 7:
|
|
280
|
-
if (tag
|
|
330
|
+
if (tag !== 56) {
|
|
281
331
|
break;
|
|
282
332
|
}
|
|
283
333
|
message.globallyFrozen = reader.bool();
|
|
284
334
|
continue;
|
|
285
335
|
case 8:
|
|
286
|
-
if (tag
|
|
336
|
+
if (tag === 64) {
|
|
287
337
|
message.features.push(reader.int32());
|
|
288
338
|
continue;
|
|
289
339
|
}
|
|
290
|
-
if (tag
|
|
340
|
+
if (tag === 66) {
|
|
291
341
|
const end2 = reader.uint32() + reader.pos;
|
|
292
342
|
while (reader.pos < end2) {
|
|
293
343
|
message.features.push(reader.int32());
|
|
@@ -296,31 +346,37 @@ export const Token = {
|
|
|
296
346
|
}
|
|
297
347
|
break;
|
|
298
348
|
case 9:
|
|
299
|
-
if (tag
|
|
349
|
+
if (tag !== 74) {
|
|
300
350
|
break;
|
|
301
351
|
}
|
|
302
352
|
message.burnRate = reader.string();
|
|
303
353
|
continue;
|
|
304
354
|
case 10:
|
|
305
|
-
if (tag
|
|
355
|
+
if (tag !== 82) {
|
|
306
356
|
break;
|
|
307
357
|
}
|
|
308
358
|
message.sendCommissionRate = reader.string();
|
|
309
359
|
continue;
|
|
310
360
|
case 11:
|
|
311
|
-
if (tag
|
|
361
|
+
if (tag !== 88) {
|
|
312
362
|
break;
|
|
313
363
|
}
|
|
314
|
-
message.
|
|
364
|
+
message.version = reader.uint32();
|
|
315
365
|
continue;
|
|
316
366
|
case 12:
|
|
317
|
-
if (tag
|
|
367
|
+
if (tag !== 98) {
|
|
368
|
+
break;
|
|
369
|
+
}
|
|
370
|
+
message.uri = reader.string();
|
|
371
|
+
continue;
|
|
372
|
+
case 13:
|
|
373
|
+
if (tag !== 106) {
|
|
318
374
|
break;
|
|
319
375
|
}
|
|
320
376
|
message.uriHash = reader.string();
|
|
321
377
|
continue;
|
|
322
378
|
}
|
|
323
|
-
if ((tag & 7)
|
|
379
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
324
380
|
break;
|
|
325
381
|
}
|
|
326
382
|
reader.skipType(tag & 7);
|
|
@@ -345,6 +401,7 @@ export const Token = {
|
|
|
345
401
|
sendCommissionRate: isSet(object.sendCommissionRate)
|
|
346
402
|
? String(object.sendCommissionRate)
|
|
347
403
|
: "",
|
|
404
|
+
version: isSet(object.version) ? Number(object.version) : 0,
|
|
348
405
|
uri: isSet(object.uri) ? String(object.uri) : "",
|
|
349
406
|
uriHash: isSet(object.uriHash) ? String(object.uriHash) : "",
|
|
350
407
|
};
|
|
@@ -370,6 +427,8 @@ export const Token = {
|
|
|
370
427
|
message.burnRate !== undefined && (obj.burnRate = message.burnRate);
|
|
371
428
|
message.sendCommissionRate !== undefined &&
|
|
372
429
|
(obj.sendCommissionRate = message.sendCommissionRate);
|
|
430
|
+
message.version !== undefined &&
|
|
431
|
+
(obj.version = Math.round(message.version));
|
|
373
432
|
message.uri !== undefined && (obj.uri = message.uri);
|
|
374
433
|
message.uriHash !== undefined && (obj.uriHash = message.uriHash);
|
|
375
434
|
return obj;
|
|
@@ -389,14 +448,218 @@ export const Token = {
|
|
|
389
448
|
message.features = object.features?.map((e) => e) || [];
|
|
390
449
|
message.burnRate = object.burnRate ?? "";
|
|
391
450
|
message.sendCommissionRate = object.sendCommissionRate ?? "";
|
|
451
|
+
message.version = object.version ?? 0;
|
|
392
452
|
message.uri = object.uri ?? "";
|
|
393
453
|
message.uriHash = object.uriHash ?? "";
|
|
394
454
|
return message;
|
|
395
455
|
},
|
|
396
456
|
};
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
457
|
+
function createBaseDelayedTokenUpgradeV1() {
|
|
458
|
+
return { denom: "" };
|
|
459
|
+
}
|
|
460
|
+
export const DelayedTokenUpgradeV1 = {
|
|
461
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
462
|
+
if (message.denom !== "") {
|
|
463
|
+
writer.uint32(10).string(message.denom);
|
|
464
|
+
}
|
|
465
|
+
return writer;
|
|
466
|
+
},
|
|
467
|
+
decode(input, length) {
|
|
468
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
469
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
470
|
+
const message = createBaseDelayedTokenUpgradeV1();
|
|
471
|
+
while (reader.pos < end) {
|
|
472
|
+
const tag = reader.uint32();
|
|
473
|
+
switch (tag >>> 3) {
|
|
474
|
+
case 1:
|
|
475
|
+
if (tag !== 10) {
|
|
476
|
+
break;
|
|
477
|
+
}
|
|
478
|
+
message.denom = reader.string();
|
|
479
|
+
continue;
|
|
480
|
+
}
|
|
481
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
482
|
+
break;
|
|
483
|
+
}
|
|
484
|
+
reader.skipType(tag & 7);
|
|
485
|
+
}
|
|
486
|
+
return message;
|
|
487
|
+
},
|
|
488
|
+
fromJSON(object) {
|
|
489
|
+
return { denom: isSet(object.denom) ? String(object.denom) : "" };
|
|
490
|
+
},
|
|
491
|
+
toJSON(message) {
|
|
492
|
+
const obj = {};
|
|
493
|
+
message.denom !== undefined && (obj.denom = message.denom);
|
|
494
|
+
return obj;
|
|
495
|
+
},
|
|
496
|
+
create(base) {
|
|
497
|
+
return DelayedTokenUpgradeV1.fromPartial(base ?? {});
|
|
498
|
+
},
|
|
499
|
+
fromPartial(object) {
|
|
500
|
+
const message = createBaseDelayedTokenUpgradeV1();
|
|
501
|
+
message.denom = object.denom ?? "";
|
|
502
|
+
return message;
|
|
503
|
+
},
|
|
504
|
+
};
|
|
505
|
+
function createBaseTokenUpgradeV1Status() {
|
|
506
|
+
return { ibcEnabled: false, startTime: undefined, endTime: undefined };
|
|
507
|
+
}
|
|
508
|
+
export const TokenUpgradeV1Status = {
|
|
509
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
510
|
+
if (message.ibcEnabled === true) {
|
|
511
|
+
writer.uint32(8).bool(message.ibcEnabled);
|
|
512
|
+
}
|
|
513
|
+
if (message.startTime !== undefined) {
|
|
514
|
+
Timestamp.encode(toTimestamp(message.startTime), writer.uint32(18).fork()).ldelim();
|
|
515
|
+
}
|
|
516
|
+
if (message.endTime !== undefined) {
|
|
517
|
+
Timestamp.encode(toTimestamp(message.endTime), writer.uint32(26).fork()).ldelim();
|
|
518
|
+
}
|
|
519
|
+
return writer;
|
|
520
|
+
},
|
|
521
|
+
decode(input, length) {
|
|
522
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
523
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
524
|
+
const message = createBaseTokenUpgradeV1Status();
|
|
525
|
+
while (reader.pos < end) {
|
|
526
|
+
const tag = reader.uint32();
|
|
527
|
+
switch (tag >>> 3) {
|
|
528
|
+
case 1:
|
|
529
|
+
if (tag !== 8) {
|
|
530
|
+
break;
|
|
531
|
+
}
|
|
532
|
+
message.ibcEnabled = reader.bool();
|
|
533
|
+
continue;
|
|
534
|
+
case 2:
|
|
535
|
+
if (tag !== 18) {
|
|
536
|
+
break;
|
|
537
|
+
}
|
|
538
|
+
message.startTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
539
|
+
continue;
|
|
540
|
+
case 3:
|
|
541
|
+
if (tag !== 26) {
|
|
542
|
+
break;
|
|
543
|
+
}
|
|
544
|
+
message.endTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
|
|
545
|
+
continue;
|
|
546
|
+
}
|
|
547
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
548
|
+
break;
|
|
549
|
+
}
|
|
550
|
+
reader.skipType(tag & 7);
|
|
551
|
+
}
|
|
552
|
+
return message;
|
|
553
|
+
},
|
|
554
|
+
fromJSON(object) {
|
|
555
|
+
return {
|
|
556
|
+
ibcEnabled: isSet(object.ibcEnabled) ? Boolean(object.ibcEnabled) : false,
|
|
557
|
+
startTime: isSet(object.startTime)
|
|
558
|
+
? fromJsonTimestamp(object.startTime)
|
|
559
|
+
: undefined,
|
|
560
|
+
endTime: isSet(object.endTime)
|
|
561
|
+
? fromJsonTimestamp(object.endTime)
|
|
562
|
+
: undefined,
|
|
563
|
+
};
|
|
564
|
+
},
|
|
565
|
+
toJSON(message) {
|
|
566
|
+
const obj = {};
|
|
567
|
+
message.ibcEnabled !== undefined && (obj.ibcEnabled = message.ibcEnabled);
|
|
568
|
+
message.startTime !== undefined &&
|
|
569
|
+
(obj.startTime = message.startTime.toISOString());
|
|
570
|
+
message.endTime !== undefined &&
|
|
571
|
+
(obj.endTime = message.endTime.toISOString());
|
|
572
|
+
return obj;
|
|
573
|
+
},
|
|
574
|
+
create(base) {
|
|
575
|
+
return TokenUpgradeV1Status.fromPartial(base ?? {});
|
|
576
|
+
},
|
|
577
|
+
fromPartial(object) {
|
|
578
|
+
const message = createBaseTokenUpgradeV1Status();
|
|
579
|
+
message.ibcEnabled = object.ibcEnabled ?? false;
|
|
580
|
+
message.startTime = object.startTime ?? undefined;
|
|
581
|
+
message.endTime = object.endTime ?? undefined;
|
|
582
|
+
return message;
|
|
583
|
+
},
|
|
584
|
+
};
|
|
585
|
+
function createBaseTokenUpgradeStatuses() {
|
|
586
|
+
return { v1: undefined };
|
|
587
|
+
}
|
|
588
|
+
export const TokenUpgradeStatuses = {
|
|
589
|
+
encode(message, writer = _m0.Writer.create()) {
|
|
590
|
+
if (message.v1 !== undefined) {
|
|
591
|
+
TokenUpgradeV1Status.encode(message.v1, writer.uint32(10).fork()).ldelim();
|
|
592
|
+
}
|
|
593
|
+
return writer;
|
|
594
|
+
},
|
|
595
|
+
decode(input, length) {
|
|
596
|
+
const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
|
|
597
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
598
|
+
const message = createBaseTokenUpgradeStatuses();
|
|
599
|
+
while (reader.pos < end) {
|
|
600
|
+
const tag = reader.uint32();
|
|
601
|
+
switch (tag >>> 3) {
|
|
602
|
+
case 1:
|
|
603
|
+
if (tag !== 10) {
|
|
604
|
+
break;
|
|
605
|
+
}
|
|
606
|
+
message.v1 = TokenUpgradeV1Status.decode(reader, reader.uint32());
|
|
607
|
+
continue;
|
|
608
|
+
}
|
|
609
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
610
|
+
break;
|
|
611
|
+
}
|
|
612
|
+
reader.skipType(tag & 7);
|
|
613
|
+
}
|
|
614
|
+
return message;
|
|
615
|
+
},
|
|
616
|
+
fromJSON(object) {
|
|
617
|
+
return {
|
|
618
|
+
v1: isSet(object.v1)
|
|
619
|
+
? TokenUpgradeV1Status.fromJSON(object.v1)
|
|
620
|
+
: undefined,
|
|
621
|
+
};
|
|
622
|
+
},
|
|
623
|
+
toJSON(message) {
|
|
624
|
+
const obj = {};
|
|
625
|
+
message.v1 !== undefined &&
|
|
626
|
+
(obj.v1 = message.v1
|
|
627
|
+
? TokenUpgradeV1Status.toJSON(message.v1)
|
|
628
|
+
: undefined);
|
|
629
|
+
return obj;
|
|
630
|
+
},
|
|
631
|
+
create(base) {
|
|
632
|
+
return TokenUpgradeStatuses.fromPartial(base ?? {});
|
|
633
|
+
},
|
|
634
|
+
fromPartial(object) {
|
|
635
|
+
const message = createBaseTokenUpgradeStatuses();
|
|
636
|
+
message.v1 =
|
|
637
|
+
object.v1 !== undefined && object.v1 !== null
|
|
638
|
+
? TokenUpgradeV1Status.fromPartial(object.v1)
|
|
639
|
+
: undefined;
|
|
640
|
+
return message;
|
|
641
|
+
},
|
|
642
|
+
};
|
|
643
|
+
function toTimestamp(date) {
|
|
644
|
+
const seconds = date.getTime() / 1_000;
|
|
645
|
+
const nanos = (date.getTime() % 1_000) * 1_000_000;
|
|
646
|
+
return { seconds, nanos };
|
|
647
|
+
}
|
|
648
|
+
function fromTimestamp(t) {
|
|
649
|
+
let millis = (t.seconds || 0) * 1_000;
|
|
650
|
+
millis += (t.nanos || 0) / 1_000_000;
|
|
651
|
+
return new Date(millis);
|
|
652
|
+
}
|
|
653
|
+
function fromJsonTimestamp(o) {
|
|
654
|
+
if (o instanceof Date) {
|
|
655
|
+
return o;
|
|
656
|
+
}
|
|
657
|
+
else if (typeof o === "string") {
|
|
658
|
+
return new Date(o);
|
|
659
|
+
}
|
|
660
|
+
else {
|
|
661
|
+
return fromTimestamp(Timestamp.fromJSON(o));
|
|
662
|
+
}
|
|
400
663
|
}
|
|
401
664
|
function isSet(value) {
|
|
402
665
|
return value !== null && value !== undefined;
|
|
@@ -172,7 +172,7 @@ export declare const QueryClassResponse: {
|
|
|
172
172
|
} & {
|
|
173
173
|
typeUrl?: string;
|
|
174
174
|
value?: Uint8Array;
|
|
175
|
-
} & { [K in Exclude<keyof I["class"]["data"], keyof import("../../../../google
|
|
175
|
+
} & { [K in Exclude<keyof I["class"]["data"], keyof import("../../../../google").Any>]: never; };
|
|
176
176
|
features?: import("./nft").ClassFeature[] & import("./nft").ClassFeature[] & { [K_1 in Exclude<keyof I["class"]["features"], keyof import("./nft").ClassFeature[]>]: never; };
|
|
177
177
|
royaltyRate?: string;
|
|
178
178
|
} & { [K_2 in Exclude<keyof I["class"], keyof Class>]: never; };
|
|
@@ -222,7 +222,7 @@ export declare const QueryClassResponse: {
|
|
|
222
222
|
} & {
|
|
223
223
|
typeUrl?: string;
|
|
224
224
|
value?: Uint8Array;
|
|
225
|
-
} & { [K_4 in Exclude<keyof I_1["class"]["data"], keyof import("../../../../google
|
|
225
|
+
} & { [K_4 in Exclude<keyof I_1["class"]["data"], keyof import("../../../../google").Any>]: never; };
|
|
226
226
|
features?: import("./nft").ClassFeature[] & import("./nft").ClassFeature[] & { [K_5 in Exclude<keyof I_1["class"]["features"], keyof import("./nft").ClassFeature[]>]: never; };
|
|
227
227
|
royaltyRate?: string;
|
|
228
228
|
} & { [K_6 in Exclude<keyof I_1["class"], keyof Class>]: never; };
|
|
@@ -82,7 +82,7 @@ export declare const GenesisState: {
|
|
|
82
82
|
} & {
|
|
83
83
|
typeUrl?: string;
|
|
84
84
|
value?: Uint8Array;
|
|
85
|
-
} & { [K in Exclude<keyof I["classes"][number]["data"], keyof import("../../../google
|
|
85
|
+
} & { [K in Exclude<keyof I["classes"][number]["data"], keyof import("../../../google").Any>]: never; };
|
|
86
86
|
} & { [K_1 in Exclude<keyof I["classes"][number], keyof Class>]: never; })[] & { [K_2 in Exclude<keyof I["classes"], keyof {
|
|
87
87
|
id?: string;
|
|
88
88
|
name?: string;
|
|
@@ -150,7 +150,7 @@ export declare const GenesisState: {
|
|
|
150
150
|
} & {
|
|
151
151
|
typeUrl?: string;
|
|
152
152
|
value?: Uint8Array;
|
|
153
|
-
} & { [K_3 in Exclude<keyof I["entries"][number]["nfts"][number]["data"], keyof import("../../../google
|
|
153
|
+
} & { [K_3 in Exclude<keyof I["entries"][number]["nfts"][number]["data"], keyof import("../../../google").Any>]: never; };
|
|
154
154
|
} & { [K_4 in Exclude<keyof I["entries"][number]["nfts"][number], keyof NFT>]: never; })[] & { [K_5 in Exclude<keyof I["entries"][number]["nfts"], keyof {
|
|
155
155
|
classId?: string;
|
|
156
156
|
id?: string;
|
|
@@ -237,7 +237,7 @@ export declare const GenesisState: {
|
|
|
237
237
|
} & {
|
|
238
238
|
typeUrl?: string;
|
|
239
239
|
value?: Uint8Array;
|
|
240
|
-
} & { [K_9 in Exclude<keyof I_1["classes"][number]["data"], keyof import("../../../google
|
|
240
|
+
} & { [K_9 in Exclude<keyof I_1["classes"][number]["data"], keyof import("../../../google").Any>]: never; };
|
|
241
241
|
} & { [K_10 in Exclude<keyof I_1["classes"][number], keyof Class>]: never; })[] & { [K_11 in Exclude<keyof I_1["classes"], keyof {
|
|
242
242
|
id?: string;
|
|
243
243
|
name?: string;
|
|
@@ -305,7 +305,7 @@ export declare const GenesisState: {
|
|
|
305
305
|
} & {
|
|
306
306
|
typeUrl?: string;
|
|
307
307
|
value?: Uint8Array;
|
|
308
|
-
} & { [K_12 in Exclude<keyof I_1["entries"][number]["nfts"][number]["data"], keyof import("../../../google
|
|
308
|
+
} & { [K_12 in Exclude<keyof I_1["entries"][number]["nfts"][number]["data"], keyof import("../../../google").Any>]: never; };
|
|
309
309
|
} & { [K_13 in Exclude<keyof I_1["entries"][number]["nfts"][number], keyof NFT>]: never; })[] & { [K_14 in Exclude<keyof I_1["entries"][number]["nfts"], keyof {
|
|
310
310
|
classId?: string;
|
|
311
311
|
id?: string;
|
|
@@ -379,7 +379,7 @@ export declare const Entry: {
|
|
|
379
379
|
} & {
|
|
380
380
|
typeUrl?: string;
|
|
381
381
|
value?: Uint8Array;
|
|
382
|
-
} & { [K in Exclude<keyof I["nfts"][number]["data"], keyof import("../../../google
|
|
382
|
+
} & { [K in Exclude<keyof I["nfts"][number]["data"], keyof import("../../../google").Any>]: never; };
|
|
383
383
|
} & { [K_1 in Exclude<keyof I["nfts"][number], keyof NFT>]: never; })[] & { [K_2 in Exclude<keyof I["nfts"], keyof {
|
|
384
384
|
classId?: string;
|
|
385
385
|
id?: string;
|
|
@@ -434,7 +434,7 @@ export declare const Entry: {
|
|
|
434
434
|
} & {
|
|
435
435
|
typeUrl?: string;
|
|
436
436
|
value?: Uint8Array;
|
|
437
|
-
} & { [K_4 in Exclude<keyof I_1["nfts"][number]["data"], keyof import("../../../google
|
|
437
|
+
} & { [K_4 in Exclude<keyof I_1["nfts"][number]["data"], keyof import("../../../google").Any>]: never; };
|
|
438
438
|
} & { [K_5 in Exclude<keyof I_1["nfts"][number], keyof NFT>]: never; })[] & { [K_6 in Exclude<keyof I_1["nfts"], keyof {
|
|
439
439
|
classId?: string;
|
|
440
440
|
id?: string;
|
|
@@ -737,7 +737,7 @@ export declare const QueryNFTsResponse: {
|
|
|
737
737
|
} & {
|
|
738
738
|
typeUrl?: string;
|
|
739
739
|
value?: Uint8Array;
|
|
740
|
-
} & { [K in Exclude<keyof I["nfts"][number]["data"], keyof import("../../../google
|
|
740
|
+
} & { [K in Exclude<keyof I["nfts"][number]["data"], keyof import("../../../google").Any>]: never; };
|
|
741
741
|
} & { [K_1 in Exclude<keyof I["nfts"][number], keyof NFT>]: never; })[] & { [K_2 in Exclude<keyof I["nfts"], keyof {
|
|
742
742
|
classId?: string;
|
|
743
743
|
id?: string;
|
|
@@ -858,7 +858,7 @@ export declare const QueryNFTsResponse: {
|
|
|
858
858
|
} & {
|
|
859
859
|
typeUrl?: string;
|
|
860
860
|
value?: Uint8Array;
|
|
861
|
-
} & { [K_6 in Exclude<keyof I_1["nfts"][number]["data"], keyof import("../../../google
|
|
861
|
+
} & { [K_6 in Exclude<keyof I_1["nfts"][number]["data"], keyof import("../../../google").Any>]: never; };
|
|
862
862
|
} & { [K_7 in Exclude<keyof I_1["nfts"][number], keyof NFT>]: never; })[] & { [K_8 in Exclude<keyof I_1["nfts"], keyof {
|
|
863
863
|
classId?: string;
|
|
864
864
|
id?: string;
|
|
@@ -992,7 +992,7 @@ export declare const QueryNFTResponse: {
|
|
|
992
992
|
} & {
|
|
993
993
|
typeUrl?: string;
|
|
994
994
|
value?: Uint8Array;
|
|
995
|
-
} & { [K in Exclude<keyof I["nft"]["data"], keyof import("../../../google
|
|
995
|
+
} & { [K in Exclude<keyof I["nft"]["data"], keyof import("../../../google").Any>]: never; };
|
|
996
996
|
} & { [K_1 in Exclude<keyof I["nft"], keyof NFT>]: never; };
|
|
997
997
|
} & { [K_2 in Exclude<keyof I, "nft">]: never; }>(base?: I): QueryNFTResponse;
|
|
998
998
|
fromPartial<I_1 extends {
|
|
@@ -1027,7 +1027,7 @@ export declare const QueryNFTResponse: {
|
|
|
1027
1027
|
} & {
|
|
1028
1028
|
typeUrl?: string;
|
|
1029
1029
|
value?: Uint8Array;
|
|
1030
|
-
} & { [K_3 in Exclude<keyof I_1["nft"]["data"], keyof import("../../../google
|
|
1030
|
+
} & { [K_3 in Exclude<keyof I_1["nft"]["data"], keyof import("../../../google").Any>]: never; };
|
|
1031
1031
|
} & { [K_4 in Exclude<keyof I_1["nft"], keyof NFT>]: never; };
|
|
1032
1032
|
} & { [K_5 in Exclude<keyof I_1, "nft">]: never; }>(object: I_1): QueryNFTResponse;
|
|
1033
1033
|
};
|
|
@@ -1090,7 +1090,7 @@ export declare const QueryClassResponse: {
|
|
|
1090
1090
|
} & {
|
|
1091
1091
|
typeUrl?: string;
|
|
1092
1092
|
value?: Uint8Array;
|
|
1093
|
-
} & { [K in Exclude<keyof I["class"]["data"], keyof import("../../../google
|
|
1093
|
+
} & { [K in Exclude<keyof I["class"]["data"], keyof import("../../../google").Any>]: never; };
|
|
1094
1094
|
} & { [K_1 in Exclude<keyof I["class"], keyof Class>]: never; };
|
|
1095
1095
|
} & { [K_2 in Exclude<keyof I, "class">]: never; }>(base?: I): QueryClassResponse;
|
|
1096
1096
|
fromPartial<I_1 extends {
|
|
@@ -1131,7 +1131,7 @@ export declare const QueryClassResponse: {
|
|
|
1131
1131
|
} & {
|
|
1132
1132
|
typeUrl?: string;
|
|
1133
1133
|
value?: Uint8Array;
|
|
1134
|
-
} & { [K_3 in Exclude<keyof I_1["class"]["data"], keyof import("../../../google
|
|
1134
|
+
} & { [K_3 in Exclude<keyof I_1["class"]["data"], keyof import("../../../google").Any>]: never; };
|
|
1135
1135
|
} & { [K_4 in Exclude<keyof I_1["class"], keyof Class>]: never; };
|
|
1136
1136
|
} & { [K_5 in Exclude<keyof I_1, "class">]: never; }>(object: I_1): QueryClassResponse;
|
|
1137
1137
|
};
|
|
@@ -1473,7 +1473,7 @@ export declare const QueryClassesResponse: {
|
|
|
1473
1473
|
} & {
|
|
1474
1474
|
typeUrl?: string;
|
|
1475
1475
|
value?: Uint8Array;
|
|
1476
|
-
} & { [K in Exclude<keyof I["classes"][number]["data"], keyof import("../../../google
|
|
1476
|
+
} & { [K in Exclude<keyof I["classes"][number]["data"], keyof import("../../../google").Any>]: never; };
|
|
1477
1477
|
} & { [K_1 in Exclude<keyof I["classes"][number], keyof Class>]: never; })[] & { [K_2 in Exclude<keyof I["classes"], keyof {
|
|
1478
1478
|
id?: string;
|
|
1479
1479
|
name?: string;
|
|
@@ -1604,7 +1604,7 @@ export declare const QueryClassesResponse: {
|
|
|
1604
1604
|
} & {
|
|
1605
1605
|
typeUrl?: string;
|
|
1606
1606
|
value?: Uint8Array;
|
|
1607
|
-
} & { [K_6 in Exclude<keyof I_1["classes"][number]["data"], keyof import("../../../google
|
|
1607
|
+
} & { [K_6 in Exclude<keyof I_1["classes"][number]["data"], keyof import("../../../google").Any>]: never; };
|
|
1608
1608
|
} & { [K_7 in Exclude<keyof I_1["classes"][number], keyof Class>]: never; })[] & { [K_8 in Exclude<keyof I_1["classes"], keyof {
|
|
1609
1609
|
id?: string;
|
|
1610
1610
|
name?: string;
|