coreum-js 2.13.0 → 2.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main/coreum/asset/ft/v1/genesis.d.ts +119 -17
- package/dist/main/coreum/asset/ft/v1/params.d.ts +37 -7
- package/dist/main/coreum/asset/ft/v1/params.js +68 -7
- package/dist/main/coreum/asset/ft/v1/query.d.ts +161 -17
- package/dist/main/coreum/asset/ft/v1/token.d.ts +80 -5
- package/dist/main/coreum/asset/ft/v1/token.js +185 -3
- package/dist/main/coreum/asset/ft/v1/tx.d.ts +548 -12
- package/dist/main/coreum/asset/ft/v1/tx.js +898 -50
- package/dist/main/coreum/asset/index.js +1 -0
- package/dist/main/coreum/index.d.ts +11 -1
- package/dist/main/coreum/index.js +12 -0
- package/dist/main/types/msgs.d.ts +5 -0
- package/dist/module/coreum/asset/ft/v1/genesis.d.ts +119 -17
- package/dist/module/coreum/asset/ft/v1/params.d.ts +37 -7
- package/dist/module/coreum/asset/ft/v1/params.js +67 -7
- package/dist/module/coreum/asset/ft/v1/query.d.ts +161 -17
- package/dist/module/coreum/asset/ft/v1/token.d.ts +80 -5
- package/dist/module/coreum/asset/ft/v1/token.js +185 -4
- package/dist/module/coreum/asset/ft/v1/tx.d.ts +548 -12
- package/dist/module/coreum/asset/ft/v1/tx.js +892 -53
- package/dist/module/coreum/asset/index.js +2 -1
- package/dist/module/coreum/index.d.ts +11 -1
- package/dist/module/coreum/index.js +13 -1
- package/dist/module/types/msgs.d.ts +5 -0
- package/package.json +1 -1
|
@@ -33,6 +33,11 @@ export declare const GenesisState: {
|
|
|
33
33
|
denom?: string;
|
|
34
34
|
amount?: string;
|
|
35
35
|
};
|
|
36
|
+
tokenUpgradeDecisionTimeout?: Date;
|
|
37
|
+
tokenUpgradeGracePeriod?: {
|
|
38
|
+
seconds?: number;
|
|
39
|
+
nanos?: number;
|
|
40
|
+
};
|
|
36
41
|
};
|
|
37
42
|
tokens?: {
|
|
38
43
|
denom?: string;
|
|
@@ -48,6 +53,12 @@ export declare const GenesisState: {
|
|
|
48
53
|
version?: number;
|
|
49
54
|
uri?: string;
|
|
50
55
|
uriHash?: string;
|
|
56
|
+
extensionCwAddress?: string;
|
|
57
|
+
admin?: string;
|
|
58
|
+
dexSettings?: {
|
|
59
|
+
unifiedRefAmount?: string;
|
|
60
|
+
whitelistedDenoms?: string[];
|
|
61
|
+
};
|
|
51
62
|
}[];
|
|
52
63
|
frozenBalances?: {
|
|
53
64
|
address?: string;
|
|
@@ -69,6 +80,11 @@ export declare const GenesisState: {
|
|
|
69
80
|
denom?: string;
|
|
70
81
|
amount?: string;
|
|
71
82
|
};
|
|
83
|
+
tokenUpgradeDecisionTimeout?: Date;
|
|
84
|
+
tokenUpgradeGracePeriod?: {
|
|
85
|
+
seconds?: number;
|
|
86
|
+
nanos?: number;
|
|
87
|
+
};
|
|
72
88
|
} & {
|
|
73
89
|
issueFee?: {
|
|
74
90
|
denom?: string;
|
|
@@ -77,7 +93,15 @@ export declare const GenesisState: {
|
|
|
77
93
|
denom?: string;
|
|
78
94
|
amount?: string;
|
|
79
95
|
} & { [K in Exclude<keyof I["params"]["issueFee"], keyof Coin>]: never; };
|
|
80
|
-
|
|
96
|
+
tokenUpgradeDecisionTimeout?: Date;
|
|
97
|
+
tokenUpgradeGracePeriod?: {
|
|
98
|
+
seconds?: number;
|
|
99
|
+
nanos?: number;
|
|
100
|
+
} & {
|
|
101
|
+
seconds?: number;
|
|
102
|
+
nanos?: number;
|
|
103
|
+
} & { [K_1 in Exclude<keyof I["params"]["tokenUpgradeGracePeriod"], keyof import("../../../../google/protobuf/duration").Duration>]: never; };
|
|
104
|
+
} & { [K_2 in Exclude<keyof I["params"], keyof Params>]: never; };
|
|
81
105
|
tokens?: {
|
|
82
106
|
denom?: string;
|
|
83
107
|
issuer?: string;
|
|
@@ -92,6 +116,12 @@ export declare const GenesisState: {
|
|
|
92
116
|
version?: number;
|
|
93
117
|
uri?: string;
|
|
94
118
|
uriHash?: string;
|
|
119
|
+
extensionCwAddress?: string;
|
|
120
|
+
admin?: string;
|
|
121
|
+
dexSettings?: {
|
|
122
|
+
unifiedRefAmount?: string;
|
|
123
|
+
whitelistedDenoms?: string[];
|
|
124
|
+
};
|
|
95
125
|
}[] & ({
|
|
96
126
|
denom?: string;
|
|
97
127
|
issuer?: string;
|
|
@@ -106,6 +136,12 @@ export declare const GenesisState: {
|
|
|
106
136
|
version?: number;
|
|
107
137
|
uri?: string;
|
|
108
138
|
uriHash?: string;
|
|
139
|
+
extensionCwAddress?: string;
|
|
140
|
+
admin?: string;
|
|
141
|
+
dexSettings?: {
|
|
142
|
+
unifiedRefAmount?: string;
|
|
143
|
+
whitelistedDenoms?: string[];
|
|
144
|
+
};
|
|
109
145
|
} & {
|
|
110
146
|
denom?: string;
|
|
111
147
|
issuer?: string;
|
|
@@ -114,13 +150,22 @@ export declare const GenesisState: {
|
|
|
114
150
|
precision?: number;
|
|
115
151
|
description?: string;
|
|
116
152
|
globallyFrozen?: boolean;
|
|
117
|
-
features?: import("./token").Feature[] & import("./token").Feature[] & { [
|
|
153
|
+
features?: import("./token").Feature[] & import("./token").Feature[] & { [K_3 in Exclude<keyof I["tokens"][number]["features"], keyof import("./token").Feature[]>]: never; };
|
|
118
154
|
burnRate?: string;
|
|
119
155
|
sendCommissionRate?: string;
|
|
120
156
|
version?: number;
|
|
121
157
|
uri?: string;
|
|
122
158
|
uriHash?: string;
|
|
123
|
-
|
|
159
|
+
extensionCwAddress?: string;
|
|
160
|
+
admin?: string;
|
|
161
|
+
dexSettings?: {
|
|
162
|
+
unifiedRefAmount?: string;
|
|
163
|
+
whitelistedDenoms?: string[];
|
|
164
|
+
} & {
|
|
165
|
+
unifiedRefAmount?: string;
|
|
166
|
+
whitelistedDenoms?: string[] & string[] & { [K_4 in Exclude<keyof I["tokens"][number]["dexSettings"]["whitelistedDenoms"], keyof string[]>]: never; };
|
|
167
|
+
} & { [K_5 in Exclude<keyof I["tokens"][number]["dexSettings"], keyof import("./token").DEXSettings>]: never; };
|
|
168
|
+
} & { [K_6 in Exclude<keyof I["tokens"][number], keyof Token>]: never; })[] & { [K_7 in Exclude<keyof I["tokens"], keyof {
|
|
124
169
|
denom?: string;
|
|
125
170
|
issuer?: string;
|
|
126
171
|
symbol?: string;
|
|
@@ -134,6 +179,12 @@ export declare const GenesisState: {
|
|
|
134
179
|
version?: number;
|
|
135
180
|
uri?: string;
|
|
136
181
|
uriHash?: string;
|
|
182
|
+
extensionCwAddress?: string;
|
|
183
|
+
admin?: string;
|
|
184
|
+
dexSettings?: {
|
|
185
|
+
unifiedRefAmount?: string;
|
|
186
|
+
whitelistedDenoms?: string[];
|
|
187
|
+
};
|
|
137
188
|
}[]>]: never; };
|
|
138
189
|
frozenBalances?: {
|
|
139
190
|
address?: string;
|
|
@@ -158,11 +209,11 @@ export declare const GenesisState: {
|
|
|
158
209
|
} & {
|
|
159
210
|
denom?: string;
|
|
160
211
|
amount?: string;
|
|
161
|
-
} & { [
|
|
212
|
+
} & { [K_8 in Exclude<keyof I["frozenBalances"][number]["coins"][number], keyof Coin>]: never; })[] & { [K_9 in Exclude<keyof I["frozenBalances"][number]["coins"], keyof {
|
|
162
213
|
denom?: string;
|
|
163
214
|
amount?: string;
|
|
164
215
|
}[]>]: never; };
|
|
165
|
-
} & { [
|
|
216
|
+
} & { [K_10 in Exclude<keyof I["frozenBalances"][number], keyof Balance>]: never; })[] & { [K_11 in Exclude<keyof I["frozenBalances"], keyof {
|
|
166
217
|
address?: string;
|
|
167
218
|
coins?: {
|
|
168
219
|
denom?: string;
|
|
@@ -192,24 +243,29 @@ export declare const GenesisState: {
|
|
|
192
243
|
} & {
|
|
193
244
|
denom?: string;
|
|
194
245
|
amount?: string;
|
|
195
|
-
} & { [
|
|
246
|
+
} & { [K_12 in Exclude<keyof I["whitelistedBalances"][number]["coins"][number], keyof Coin>]: never; })[] & { [K_13 in Exclude<keyof I["whitelistedBalances"][number]["coins"], keyof {
|
|
196
247
|
denom?: string;
|
|
197
248
|
amount?: string;
|
|
198
249
|
}[]>]: never; };
|
|
199
|
-
} & { [
|
|
250
|
+
} & { [K_14 in Exclude<keyof I["whitelistedBalances"][number], keyof Balance>]: never; })[] & { [K_15 in Exclude<keyof I["whitelistedBalances"], keyof {
|
|
200
251
|
address?: string;
|
|
201
252
|
coins?: {
|
|
202
253
|
denom?: string;
|
|
203
254
|
amount?: string;
|
|
204
255
|
}[];
|
|
205
256
|
}[]>]: never; };
|
|
206
|
-
} & { [
|
|
257
|
+
} & { [K_16 in Exclude<keyof I, keyof GenesisState>]: never; }>(base?: I): GenesisState;
|
|
207
258
|
fromPartial<I_1 extends {
|
|
208
259
|
params?: {
|
|
209
260
|
issueFee?: {
|
|
210
261
|
denom?: string;
|
|
211
262
|
amount?: string;
|
|
212
263
|
};
|
|
264
|
+
tokenUpgradeDecisionTimeout?: Date;
|
|
265
|
+
tokenUpgradeGracePeriod?: {
|
|
266
|
+
seconds?: number;
|
|
267
|
+
nanos?: number;
|
|
268
|
+
};
|
|
213
269
|
};
|
|
214
270
|
tokens?: {
|
|
215
271
|
denom?: string;
|
|
@@ -225,6 +281,12 @@ export declare const GenesisState: {
|
|
|
225
281
|
version?: number;
|
|
226
282
|
uri?: string;
|
|
227
283
|
uriHash?: string;
|
|
284
|
+
extensionCwAddress?: string;
|
|
285
|
+
admin?: string;
|
|
286
|
+
dexSettings?: {
|
|
287
|
+
unifiedRefAmount?: string;
|
|
288
|
+
whitelistedDenoms?: string[];
|
|
289
|
+
};
|
|
228
290
|
}[];
|
|
229
291
|
frozenBalances?: {
|
|
230
292
|
address?: string;
|
|
@@ -246,6 +308,11 @@ export declare const GenesisState: {
|
|
|
246
308
|
denom?: string;
|
|
247
309
|
amount?: string;
|
|
248
310
|
};
|
|
311
|
+
tokenUpgradeDecisionTimeout?: Date;
|
|
312
|
+
tokenUpgradeGracePeriod?: {
|
|
313
|
+
seconds?: number;
|
|
314
|
+
nanos?: number;
|
|
315
|
+
};
|
|
249
316
|
} & {
|
|
250
317
|
issueFee?: {
|
|
251
318
|
denom?: string;
|
|
@@ -253,8 +320,16 @@ export declare const GenesisState: {
|
|
|
253
320
|
} & {
|
|
254
321
|
denom?: string;
|
|
255
322
|
amount?: string;
|
|
256
|
-
} & { [
|
|
257
|
-
|
|
323
|
+
} & { [K_17 in Exclude<keyof I_1["params"]["issueFee"], keyof Coin>]: never; };
|
|
324
|
+
tokenUpgradeDecisionTimeout?: Date;
|
|
325
|
+
tokenUpgradeGracePeriod?: {
|
|
326
|
+
seconds?: number;
|
|
327
|
+
nanos?: number;
|
|
328
|
+
} & {
|
|
329
|
+
seconds?: number;
|
|
330
|
+
nanos?: number;
|
|
331
|
+
} & { [K_18 in Exclude<keyof I_1["params"]["tokenUpgradeGracePeriod"], keyof import("../../../../google/protobuf/duration").Duration>]: never; };
|
|
332
|
+
} & { [K_19 in Exclude<keyof I_1["params"], keyof Params>]: never; };
|
|
258
333
|
tokens?: {
|
|
259
334
|
denom?: string;
|
|
260
335
|
issuer?: string;
|
|
@@ -269,6 +344,12 @@ export declare const GenesisState: {
|
|
|
269
344
|
version?: number;
|
|
270
345
|
uri?: string;
|
|
271
346
|
uriHash?: string;
|
|
347
|
+
extensionCwAddress?: string;
|
|
348
|
+
admin?: string;
|
|
349
|
+
dexSettings?: {
|
|
350
|
+
unifiedRefAmount?: string;
|
|
351
|
+
whitelistedDenoms?: string[];
|
|
352
|
+
};
|
|
272
353
|
}[] & ({
|
|
273
354
|
denom?: string;
|
|
274
355
|
issuer?: string;
|
|
@@ -283,6 +364,12 @@ export declare const GenesisState: {
|
|
|
283
364
|
version?: number;
|
|
284
365
|
uri?: string;
|
|
285
366
|
uriHash?: string;
|
|
367
|
+
extensionCwAddress?: string;
|
|
368
|
+
admin?: string;
|
|
369
|
+
dexSettings?: {
|
|
370
|
+
unifiedRefAmount?: string;
|
|
371
|
+
whitelistedDenoms?: string[];
|
|
372
|
+
};
|
|
286
373
|
} & {
|
|
287
374
|
denom?: string;
|
|
288
375
|
issuer?: string;
|
|
@@ -291,13 +378,22 @@ export declare const GenesisState: {
|
|
|
291
378
|
precision?: number;
|
|
292
379
|
description?: string;
|
|
293
380
|
globallyFrozen?: boolean;
|
|
294
|
-
features?: import("./token").Feature[] & import("./token").Feature[] & { [
|
|
381
|
+
features?: import("./token").Feature[] & import("./token").Feature[] & { [K_20 in Exclude<keyof I_1["tokens"][number]["features"], keyof import("./token").Feature[]>]: never; };
|
|
295
382
|
burnRate?: string;
|
|
296
383
|
sendCommissionRate?: string;
|
|
297
384
|
version?: number;
|
|
298
385
|
uri?: string;
|
|
299
386
|
uriHash?: string;
|
|
300
|
-
|
|
387
|
+
extensionCwAddress?: string;
|
|
388
|
+
admin?: string;
|
|
389
|
+
dexSettings?: {
|
|
390
|
+
unifiedRefAmount?: string;
|
|
391
|
+
whitelistedDenoms?: string[];
|
|
392
|
+
} & {
|
|
393
|
+
unifiedRefAmount?: string;
|
|
394
|
+
whitelistedDenoms?: string[] & string[] & { [K_21 in Exclude<keyof I_1["tokens"][number]["dexSettings"]["whitelistedDenoms"], keyof string[]>]: never; };
|
|
395
|
+
} & { [K_22 in Exclude<keyof I_1["tokens"][number]["dexSettings"], keyof import("./token").DEXSettings>]: never; };
|
|
396
|
+
} & { [K_23 in Exclude<keyof I_1["tokens"][number], keyof Token>]: never; })[] & { [K_24 in Exclude<keyof I_1["tokens"], keyof {
|
|
301
397
|
denom?: string;
|
|
302
398
|
issuer?: string;
|
|
303
399
|
symbol?: string;
|
|
@@ -311,6 +407,12 @@ export declare const GenesisState: {
|
|
|
311
407
|
version?: number;
|
|
312
408
|
uri?: string;
|
|
313
409
|
uriHash?: string;
|
|
410
|
+
extensionCwAddress?: string;
|
|
411
|
+
admin?: string;
|
|
412
|
+
dexSettings?: {
|
|
413
|
+
unifiedRefAmount?: string;
|
|
414
|
+
whitelistedDenoms?: string[];
|
|
415
|
+
};
|
|
314
416
|
}[]>]: never; };
|
|
315
417
|
frozenBalances?: {
|
|
316
418
|
address?: string;
|
|
@@ -335,11 +437,11 @@ export declare const GenesisState: {
|
|
|
335
437
|
} & {
|
|
336
438
|
denom?: string;
|
|
337
439
|
amount?: string;
|
|
338
|
-
} & { [
|
|
440
|
+
} & { [K_25 in Exclude<keyof I_1["frozenBalances"][number]["coins"][number], keyof Coin>]: never; })[] & { [K_26 in Exclude<keyof I_1["frozenBalances"][number]["coins"], keyof {
|
|
339
441
|
denom?: string;
|
|
340
442
|
amount?: string;
|
|
341
443
|
}[]>]: never; };
|
|
342
|
-
} & { [
|
|
444
|
+
} & { [K_27 in Exclude<keyof I_1["frozenBalances"][number], keyof Balance>]: never; })[] & { [K_28 in Exclude<keyof I_1["frozenBalances"], keyof {
|
|
343
445
|
address?: string;
|
|
344
446
|
coins?: {
|
|
345
447
|
denom?: string;
|
|
@@ -369,18 +471,18 @@ export declare const GenesisState: {
|
|
|
369
471
|
} & {
|
|
370
472
|
denom?: string;
|
|
371
473
|
amount?: string;
|
|
372
|
-
} & { [
|
|
474
|
+
} & { [K_29 in Exclude<keyof I_1["whitelistedBalances"][number]["coins"][number], keyof Coin>]: never; })[] & { [K_30 in Exclude<keyof I_1["whitelistedBalances"][number]["coins"], keyof {
|
|
373
475
|
denom?: string;
|
|
374
476
|
amount?: string;
|
|
375
477
|
}[]>]: never; };
|
|
376
|
-
} & { [
|
|
478
|
+
} & { [K_31 in Exclude<keyof I_1["whitelistedBalances"][number], keyof Balance>]: never; })[] & { [K_32 in Exclude<keyof I_1["whitelistedBalances"], keyof {
|
|
377
479
|
address?: string;
|
|
378
480
|
coins?: {
|
|
379
481
|
denom?: string;
|
|
380
482
|
amount?: string;
|
|
381
483
|
}[];
|
|
382
484
|
}[]>]: never; };
|
|
383
|
-
} & { [
|
|
485
|
+
} & { [K_33 in Exclude<keyof I_1, keyof GenesisState>]: never; }>(object: I_1): GenesisState;
|
|
384
486
|
};
|
|
385
487
|
export declare const Balance: {
|
|
386
488
|
encode(message: Balance, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import Long from "long";
|
|
2
1
|
import _m0 from "protobufjs/minimal";
|
|
3
2
|
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
3
|
+
import { Duration } from "../../../../google/protobuf/duration";
|
|
4
4
|
export declare const protobufPackage = "coreum.asset.ft.v1";
|
|
5
5
|
/** Params store gov manageable parameters. */
|
|
6
6
|
export interface Params {
|
|
7
|
-
/** issue_fee is the fee burnt each time new token is issued */
|
|
8
|
-
issueFee
|
|
7
|
+
/** issue_fee is the fee burnt each time new token is issued. */
|
|
8
|
+
issueFee: Coin | undefined;
|
|
9
|
+
/** token_upgrade_decision_timeout defines the end of the decision period for upgrading the token. */
|
|
10
|
+
tokenUpgradeDecisionTimeout: Date | undefined;
|
|
11
|
+
/** token_upgrade_grace_period the period after which the token upgrade is executed effectively. */
|
|
12
|
+
tokenUpgradeGracePeriod: Duration | undefined;
|
|
9
13
|
}
|
|
10
14
|
export declare const Params: {
|
|
11
15
|
encode(message: Params, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -17,6 +21,11 @@ export declare const Params: {
|
|
|
17
21
|
denom?: string;
|
|
18
22
|
amount?: string;
|
|
19
23
|
};
|
|
24
|
+
tokenUpgradeDecisionTimeout?: Date | undefined;
|
|
25
|
+
tokenUpgradeGracePeriod?: {
|
|
26
|
+
seconds?: number;
|
|
27
|
+
nanos?: number;
|
|
28
|
+
};
|
|
20
29
|
} & {
|
|
21
30
|
issueFee?: {
|
|
22
31
|
denom?: string;
|
|
@@ -25,12 +34,25 @@ export declare const Params: {
|
|
|
25
34
|
denom?: string;
|
|
26
35
|
amount?: string;
|
|
27
36
|
} & { [K in Exclude<keyof I["issueFee"], keyof Coin>]: never; };
|
|
28
|
-
|
|
37
|
+
tokenUpgradeDecisionTimeout?: Date | undefined;
|
|
38
|
+
tokenUpgradeGracePeriod?: {
|
|
39
|
+
seconds?: number;
|
|
40
|
+
nanos?: number;
|
|
41
|
+
} & {
|
|
42
|
+
seconds?: number;
|
|
43
|
+
nanos?: number;
|
|
44
|
+
} & { [K_1 in Exclude<keyof I["tokenUpgradeGracePeriod"], keyof Duration>]: never; };
|
|
45
|
+
} & { [K_2 in Exclude<keyof I, keyof Params>]: never; }>(base?: I): Params;
|
|
29
46
|
fromPartial<I_1 extends {
|
|
30
47
|
issueFee?: {
|
|
31
48
|
denom?: string;
|
|
32
49
|
amount?: string;
|
|
33
50
|
};
|
|
51
|
+
tokenUpgradeDecisionTimeout?: Date | undefined;
|
|
52
|
+
tokenUpgradeGracePeriod?: {
|
|
53
|
+
seconds?: number;
|
|
54
|
+
nanos?: number;
|
|
55
|
+
};
|
|
34
56
|
} & {
|
|
35
57
|
issueFee?: {
|
|
36
58
|
denom?: string;
|
|
@@ -38,11 +60,19 @@ export declare const Params: {
|
|
|
38
60
|
} & {
|
|
39
61
|
denom?: string;
|
|
40
62
|
amount?: string;
|
|
41
|
-
} & { [
|
|
42
|
-
|
|
63
|
+
} & { [K_3 in Exclude<keyof I_1["issueFee"], keyof Coin>]: never; };
|
|
64
|
+
tokenUpgradeDecisionTimeout?: Date | undefined;
|
|
65
|
+
tokenUpgradeGracePeriod?: {
|
|
66
|
+
seconds?: number;
|
|
67
|
+
nanos?: number;
|
|
68
|
+
} & {
|
|
69
|
+
seconds?: number;
|
|
70
|
+
nanos?: number;
|
|
71
|
+
} & { [K_4 in Exclude<keyof I_1["tokenUpgradeGracePeriod"], keyof Duration>]: never; };
|
|
72
|
+
} & { [K_5 in Exclude<keyof I_1, keyof Params>]: never; }>(object: I_1): Params;
|
|
43
73
|
};
|
|
44
74
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
45
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends
|
|
75
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
46
76
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
47
77
|
} : Partial<T>;
|
|
48
78
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
@@ -5,18 +5,29 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.Params = exports.protobufPackage = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
|
-
const long_1 = __importDefault(require("long"));
|
|
9
8
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
9
|
const coin_1 = require("cosmjs-types/cosmos/base/v1beta1/coin");
|
|
10
|
+
const duration_1 = require("../../../../google/protobuf/duration");
|
|
11
|
+
const timestamp_1 = require("../../../../google/protobuf/timestamp");
|
|
11
12
|
exports.protobufPackage = "coreum.asset.ft.v1";
|
|
12
13
|
function createBaseParams() {
|
|
13
|
-
return {
|
|
14
|
+
return {
|
|
15
|
+
issueFee: undefined,
|
|
16
|
+
tokenUpgradeDecisionTimeout: undefined,
|
|
17
|
+
tokenUpgradeGracePeriod: undefined,
|
|
18
|
+
};
|
|
14
19
|
}
|
|
15
20
|
exports.Params = {
|
|
16
21
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
17
22
|
if (message.issueFee !== undefined) {
|
|
18
23
|
coin_1.Coin.encode(message.issueFee, writer.uint32(10).fork()).ldelim();
|
|
19
24
|
}
|
|
25
|
+
if (message.tokenUpgradeDecisionTimeout !== undefined) {
|
|
26
|
+
timestamp_1.Timestamp.encode(toTimestamp(message.tokenUpgradeDecisionTimeout), writer.uint32(18).fork()).ldelim();
|
|
27
|
+
}
|
|
28
|
+
if (message.tokenUpgradeGracePeriod !== undefined) {
|
|
29
|
+
duration_1.Duration.encode(message.tokenUpgradeGracePeriod, writer.uint32(26).fork()).ldelim();
|
|
30
|
+
}
|
|
20
31
|
return writer;
|
|
21
32
|
},
|
|
22
33
|
decode(input, length) {
|
|
@@ -27,13 +38,25 @@ exports.Params = {
|
|
|
27
38
|
const tag = reader.uint32();
|
|
28
39
|
switch (tag >>> 3) {
|
|
29
40
|
case 1:
|
|
30
|
-
if (tag
|
|
41
|
+
if (tag !== 10) {
|
|
31
42
|
break;
|
|
32
43
|
}
|
|
33
44
|
message.issueFee = coin_1.Coin.decode(reader, reader.uint32());
|
|
34
45
|
continue;
|
|
46
|
+
case 2:
|
|
47
|
+
if (tag !== 18) {
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
message.tokenUpgradeDecisionTimeout = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
|
|
51
|
+
continue;
|
|
52
|
+
case 3:
|
|
53
|
+
if (tag !== 26) {
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
message.tokenUpgradeGracePeriod = duration_1.Duration.decode(reader, reader.uint32());
|
|
57
|
+
continue;
|
|
35
58
|
}
|
|
36
|
-
if ((tag & 7)
|
|
59
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
37
60
|
break;
|
|
38
61
|
}
|
|
39
62
|
reader.skipType(tag & 7);
|
|
@@ -45,6 +68,12 @@ exports.Params = {
|
|
|
45
68
|
issueFee: isSet(object.issueFee)
|
|
46
69
|
? coin_1.Coin.fromJSON(object.issueFee)
|
|
47
70
|
: undefined,
|
|
71
|
+
tokenUpgradeDecisionTimeout: isSet(object.tokenUpgradeDecisionTimeout)
|
|
72
|
+
? fromJsonTimestamp(object.tokenUpgradeDecisionTimeout)
|
|
73
|
+
: undefined,
|
|
74
|
+
tokenUpgradeGracePeriod: isSet(object.tokenUpgradeGracePeriod)
|
|
75
|
+
? duration_1.Duration.fromJSON(object.tokenUpgradeGracePeriod)
|
|
76
|
+
: undefined,
|
|
48
77
|
};
|
|
49
78
|
},
|
|
50
79
|
toJSON(message) {
|
|
@@ -53,23 +82,55 @@ exports.Params = {
|
|
|
53
82
|
(obj.issueFee = message.issueFee
|
|
54
83
|
? coin_1.Coin.toJSON(message.issueFee)
|
|
55
84
|
: undefined);
|
|
85
|
+
message.tokenUpgradeDecisionTimeout !== undefined &&
|
|
86
|
+
(obj.tokenUpgradeDecisionTimeout =
|
|
87
|
+
message.tokenUpgradeDecisionTimeout.toISOString());
|
|
88
|
+
message.tokenUpgradeGracePeriod !== undefined &&
|
|
89
|
+
(obj.tokenUpgradeGracePeriod = message.tokenUpgradeGracePeriod
|
|
90
|
+
? duration_1.Duration.toJSON(message.tokenUpgradeGracePeriod)
|
|
91
|
+
: undefined);
|
|
56
92
|
return obj;
|
|
57
93
|
},
|
|
58
94
|
create(base) {
|
|
59
95
|
return exports.Params.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
60
96
|
},
|
|
61
97
|
fromPartial(object) {
|
|
98
|
+
var _a;
|
|
62
99
|
const message = createBaseParams();
|
|
63
100
|
message.issueFee =
|
|
64
101
|
object.issueFee !== undefined && object.issueFee !== null
|
|
65
102
|
? coin_1.Coin.fromPartial(object.issueFee)
|
|
66
103
|
: undefined;
|
|
104
|
+
message.tokenUpgradeDecisionTimeout =
|
|
105
|
+
(_a = object.tokenUpgradeDecisionTimeout) !== null && _a !== void 0 ? _a : undefined;
|
|
106
|
+
message.tokenUpgradeGracePeriod =
|
|
107
|
+
object.tokenUpgradeGracePeriod !== undefined &&
|
|
108
|
+
object.tokenUpgradeGracePeriod !== null
|
|
109
|
+
? duration_1.Duration.fromPartial(object.tokenUpgradeGracePeriod)
|
|
110
|
+
: undefined;
|
|
67
111
|
return message;
|
|
68
112
|
},
|
|
69
113
|
};
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
114
|
+
function toTimestamp(date) {
|
|
115
|
+
const seconds = date.getTime() / 1000;
|
|
116
|
+
const nanos = (date.getTime() % 1000) * 1000000;
|
|
117
|
+
return { seconds, nanos };
|
|
118
|
+
}
|
|
119
|
+
function fromTimestamp(t) {
|
|
120
|
+
let millis = (t.seconds || 0) * 1000;
|
|
121
|
+
millis += (t.nanos || 0) / 1000000;
|
|
122
|
+
return new Date(millis);
|
|
123
|
+
}
|
|
124
|
+
function fromJsonTimestamp(o) {
|
|
125
|
+
if (o instanceof Date) {
|
|
126
|
+
return o;
|
|
127
|
+
}
|
|
128
|
+
else if (typeof o === "string") {
|
|
129
|
+
return new Date(o);
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
return fromTimestamp(timestamp_1.Timestamp.fromJSON(o));
|
|
133
|
+
}
|
|
73
134
|
}
|
|
74
135
|
function isSet(value) {
|
|
75
136
|
return value !== null && value !== undefined;
|