coreum-js 2.18.4 → 2.18.6

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.
@@ -6,7 +6,7 @@ const stargate_1 = require("@cosmjs/stargate");
6
6
  exports.ftAminoConverters = {
7
7
  // MsgIssue - Issue new fungible token
8
8
  "/coreum.asset.ft.v1.MsgIssue": {
9
- aminoType: "cosmos-sdk/MsgIssue",
9
+ aminoType: "aseestft/MsgIssue",
10
10
  toAmino: ({ issuer, symbol, subunit, precision, initialAmount, description, features, burnRate, sendCommissionRate, uri, uriHash, extensionSettings, dexSettings, }) => ({
11
11
  issuer,
12
12
  symbol,
@@ -40,7 +40,7 @@ exports.ftAminoConverters = {
40
40
  },
41
41
  // MsgMint - Mint new fungible tokens
42
42
  "/coreum.asset.ft.v1.MsgMint": {
43
- aminoType: "cosmos-sdk/MsgMint",
43
+ aminoType: "aseestft/MsgMint",
44
44
  toAmino: ({ sender, coin, recipient }) => ({
45
45
  sender,
46
46
  coin,
@@ -54,7 +54,7 @@ exports.ftAminoConverters = {
54
54
  },
55
55
  // MsgBurn - Burn fungible tokens
56
56
  "/coreum.asset.ft.v1.MsgBurn": {
57
- aminoType: "cosmos-sdk/MsgBurn",
57
+ aminoType: "aseestft/MsgBurn",
58
58
  toAmino: ({ sender, coin }) => ({
59
59
  sender,
60
60
  coin,
@@ -66,7 +66,7 @@ exports.ftAminoConverters = {
66
66
  },
67
67
  // MsgFreeze - Freeze fungible tokens
68
68
  "/coreum.asset.ft.v1.MsgFreeze": {
69
- aminoType: "cosmos-sdk/MsgFreeze",
69
+ aminoType: "aseestft/MsgFreeze",
70
70
  toAmino: ({ sender, account, coin }) => ({
71
71
  sender,
72
72
  account,
@@ -80,7 +80,7 @@ exports.ftAminoConverters = {
80
80
  },
81
81
  // MsgUnfreeze - Unfreeze fungible tokens
82
82
  "/coreum.asset.ft.v1.MsgUnfreeze": {
83
- aminoType: "cosmos-sdk/MsgUnfreeze",
83
+ aminoType: "aseestft/MsgUnfreeze",
84
84
  toAmino: ({ sender, account, coin }) => ({
85
85
  sender,
86
86
  account,
@@ -94,7 +94,7 @@ exports.ftAminoConverters = {
94
94
  },
95
95
  // MsgSetFrozen - Set frozen amount
96
96
  "/coreum.asset.ft.v1.MsgSetFrozen": {
97
- aminoType: "cosmos-sdk/MsgSetFrozen",
97
+ aminoType: "aseestft/MsgSetFrozen",
98
98
  toAmino: ({ sender, account, coin }) => ({
99
99
  sender,
100
100
  account,
@@ -108,7 +108,7 @@ exports.ftAminoConverters = {
108
108
  },
109
109
  // MsgGloballyFreeze - Globally freeze token
110
110
  "/coreum.asset.ft.v1.MsgGloballyFreeze": {
111
- aminoType: "cosmos-sdk/MsgGloballyFreeze",
111
+ aminoType: "aseestft/MsgGloballyFreeze",
112
112
  toAmino: ({ sender, denom }) => ({
113
113
  sender,
114
114
  denom,
@@ -120,7 +120,7 @@ exports.ftAminoConverters = {
120
120
  },
121
121
  // MsgGloballyUnfreeze - Globally unfreeze token
122
122
  "/coreum.asset.ft.v1.MsgGloballyUnfreeze": {
123
- aminoType: "cosmos-sdk/MsgGloballyUnfreeze",
123
+ aminoType: "aseestft/MsgGloballyUnfreeze",
124
124
  toAmino: ({ sender, denom }) => ({
125
125
  sender,
126
126
  denom,
@@ -132,7 +132,7 @@ exports.ftAminoConverters = {
132
132
  },
133
133
  // MsgClawback - Clawback tokens
134
134
  "/coreum.asset.ft.v1.MsgClawback": {
135
- aminoType: "cosmos-sdk/MsgClawback",
135
+ aminoType: "aseestft/MsgClawback",
136
136
  toAmino: ({ sender, account, coin }) => ({
137
137
  sender,
138
138
  account,
@@ -146,7 +146,7 @@ exports.ftAminoConverters = {
146
146
  },
147
147
  // MsgSetWhitelistedLimit - Set whitelisted limit
148
148
  "/coreum.asset.ft.v1.MsgSetWhitelistedLimit": {
149
- aminoType: "cosmos-sdk/MsgSetWhitelistedLimit",
149
+ aminoType: "aseestft/MsgSetWhitelistedLimit",
150
150
  toAmino: ({ sender, account, coin }) => ({
151
151
  sender,
152
152
  account,
@@ -160,7 +160,7 @@ exports.ftAminoConverters = {
160
160
  },
161
161
  // MsgTransferAdmin - Transfer admin
162
162
  "/coreum.asset.ft.v1.MsgTransferAdmin": {
163
- aminoType: "cosmos-sdk/MsgTransferAdmin",
163
+ aminoType: "aseestft/MsgTransferAdmin",
164
164
  toAmino: ({ sender, account, denom }) => ({
165
165
  sender,
166
166
  account,
@@ -174,7 +174,7 @@ exports.ftAminoConverters = {
174
174
  },
175
175
  // MsgClearAdmin - Clear admin
176
176
  "/coreum.asset.ft.v1.MsgClearAdmin": {
177
- aminoType: "cosmos-sdk/MsgClearAdmin",
177
+ aminoType: "aseestft/MsgClearAdmin",
178
178
  toAmino: ({ sender, denom }) => ({
179
179
  sender,
180
180
  denom,
@@ -186,7 +186,7 @@ exports.ftAminoConverters = {
186
186
  },
187
187
  // MsgUpgradeTokenV1 - Upgrade token to V1
188
188
  "/coreum.asset.ft.v1.MsgUpgradeTokenV1": {
189
- aminoType: "cosmos-sdk/MsgUpgradeTokenV1",
189
+ aminoType: "aseestft/MsgUpgradeTokenV1",
190
190
  toAmino: ({ sender, denom, ibcEnabled }) => ({
191
191
  sender,
192
192
  denom,
@@ -200,7 +200,7 @@ exports.ftAminoConverters = {
200
200
  },
201
201
  // MsgUpdateParams - Update parameters
202
202
  "/coreum.asset.ft.v1.MsgUpdateParams": {
203
- aminoType: "cosmos-sdk/MsgUpdateParams",
203
+ aminoType: "aseestft/MsgUpdateParams",
204
204
  toAmino: ({ authority, params }) => ({
205
205
  authority,
206
206
  params,
@@ -212,7 +212,7 @@ exports.ftAminoConverters = {
212
212
  },
213
213
  // MsgUpdateDEXUnifiedRefAmount - Update DEX unified ref amount
214
214
  "/coreum.asset.ft.v1.MsgUpdateDEXUnifiedRefAmount": {
215
- aminoType: "cosmos-sdk/MsgUpdateDEXUnifiedRefAmount",
215
+ aminoType: "aseestft/MsgUpdateDEXUnifiedRefAmount",
216
216
  toAmino: ({ sender, denom, unifiedRefAmount, }) => ({
217
217
  sender,
218
218
  denom,
@@ -226,7 +226,7 @@ exports.ftAminoConverters = {
226
226
  },
227
227
  // MsgUpdateDEXWhitelistedDenoms - Update DEX whitelisted denoms
228
228
  "/coreum.asset.ft.v1.MsgUpdateDEXWhitelistedDenoms": {
229
- aminoType: "cosmos-sdk/MsgUpdateDEXWhitelistedDenoms",
229
+ aminoType: "aseestft/MsgUpdateDEXWhitelistedDenoms",
230
230
  toAmino: ({ sender, denom, whitelistedDenoms, }) => ({
231
231
  sender,
232
232
  denom,
@@ -243,7 +243,7 @@ exports.ftAminoConverters = {
243
243
  exports.dexAminoConverters = {
244
244
  // MsgUpdateParams - Update DEX parameters
245
245
  "/coreum.dex.v1.MsgUpdateParams": {
246
- aminoType: "cosmos-sdk/MsgUpdateParams",
246
+ aminoType: "dex/MsgUpdateParams",
247
247
  toAmino: ({ authority, params }) => ({
248
248
  authority,
249
249
  params,
@@ -255,7 +255,7 @@ exports.dexAminoConverters = {
255
255
  },
256
256
  // MsgPlaceOrder - Place order on DEX
257
257
  "/coreum.dex.v1.MsgPlaceOrder": {
258
- aminoType: "cosmos-sdk/MsgPlaceOrder",
258
+ aminoType: "dex/MsgPlaceOrder",
259
259
  toAmino: ({ sender, type, id, baseDenom, quoteDenom, price, quantity, side, goodTil, timeInForce, }) => ({
260
260
  sender,
261
261
  type,
@@ -265,8 +265,14 @@ exports.dexAminoConverters = {
265
265
  price,
266
266
  quantity,
267
267
  side,
268
- good_til: goodTil,
269
- time_in_force: timeInForce,
268
+ good_til: goodTil
269
+ ? goodTil.goodTilBlockHeight != null
270
+ ? { blocks: String(goodTil.goodTilBlockHeight) }
271
+ : goodTil.goodTilBlockTime
272
+ ? { time: goodTil.goodTilBlockTime.toISOString() }
273
+ : undefined
274
+ : undefined,
275
+ time_in_force: timeInForce, // number
270
276
  }),
271
277
  fromAmino: ({ sender, type, id, base_denom, quote_denom, price, quantity, side, good_til, time_in_force, }) => ({
272
278
  sender,
@@ -277,13 +283,25 @@ exports.dexAminoConverters = {
277
283
  price,
278
284
  quantity,
279
285
  side,
280
- goodTil: good_til,
281
- timeInForce: time_in_force,
286
+ goodTil: good_til
287
+ ? good_til.blocks != null
288
+ ? {
289
+ goodTilBlockHeight: Number(good_til.blocks),
290
+ goodTilBlockTime: undefined,
291
+ }
292
+ : good_til.time != null
293
+ ? {
294
+ goodTilBlockHeight: undefined,
295
+ goodTilBlockTime: new Date(good_til.time),
296
+ }
297
+ : undefined
298
+ : undefined,
299
+ timeInForce: time_in_force, // number -> enum
282
300
  }),
283
301
  },
284
302
  // MsgCancelOrder - Cancel order
285
303
  "/coreum.dex.v1.MsgCancelOrder": {
286
- aminoType: "cosmos-sdk/MsgCancelOrder",
304
+ aminoType: "dex/MsgCancelOrder",
287
305
  toAmino: ({ sender, id }) => ({
288
306
  sender,
289
307
  id,
@@ -295,7 +313,7 @@ exports.dexAminoConverters = {
295
313
  },
296
314
  // MsgCancelOrdersByDenom - Cancel orders by denom
297
315
  "/coreum.dex.v1.MsgCancelOrdersByDenom": {
298
- aminoType: "cosmos-sdk/MsgCancelOrdersByDenom",
316
+ aminoType: "dex/MsgCancelOrdersByDenom",
299
317
  toAmino: ({ sender, account, denom }) => ({
300
318
  sender,
301
319
  account,
@@ -312,7 +330,7 @@ exports.dexAminoConverters = {
312
330
  exports.nftAminoConverters = {
313
331
  // MsgIssueClass - Issue new NFT class
314
332
  "/coreum.asset.nft.v1.MsgIssueClass": {
315
- aminoType: "cosmos-sdk/MsgIssueClass",
333
+ aminoType: "assetnft/MsgIssueClass",
316
334
  toAmino: ({ issuer, symbol, name, description, uri, uriHash, data, features, royaltyRate, }) => ({
317
335
  issuer,
318
336
  symbol,
@@ -338,7 +356,7 @@ exports.nftAminoConverters = {
338
356
  },
339
357
  // MsgMint - Mint NFT
340
358
  "/coreum.asset.nft.v1.MsgMint": {
341
- aminoType: "cosmos-sdk/MsgMint",
359
+ aminoType: "assetnft/MsgMint",
342
360
  toAmino: ({ sender, classId, id, uri, uriHash, data, recipient, }) => ({
343
361
  sender,
344
362
  class_id: classId,
@@ -360,7 +378,7 @@ exports.nftAminoConverters = {
360
378
  },
361
379
  // MsgUpdateData - Update NFT data
362
380
  "/coreum.asset.nft.v1.MsgUpdateData": {
363
- aminoType: "cosmos-sdk/MsgUpdateData",
381
+ aminoType: "assetnft/MsgUpdateData",
364
382
  toAmino: ({ sender, classId, id, items }) => ({
365
383
  sender,
366
384
  class_id: classId,
@@ -376,7 +394,7 @@ exports.nftAminoConverters = {
376
394
  },
377
395
  // MsgBurn - Burn NFT
378
396
  "/coreum.asset.nft.v1.MsgBurn": {
379
- aminoType: "cosmos-sdk/MsgBurn",
397
+ aminoType: "assetnft/MsgBurn",
380
398
  toAmino: ({ sender, classId, id }) => ({
381
399
  sender,
382
400
  class_id: classId,
@@ -390,7 +408,7 @@ exports.nftAminoConverters = {
390
408
  },
391
409
  // MsgFreeze - Freeze NFT
392
410
  "/coreum.asset.nft.v1.MsgFreeze": {
393
- aminoType: "cosmos-sdk/MsgFreeze",
411
+ aminoType: "assetnft/MsgFreeze",
394
412
  toAmino: ({ sender, classId, id }) => ({
395
413
  sender,
396
414
  class_id: classId,
@@ -404,7 +422,7 @@ exports.nftAminoConverters = {
404
422
  },
405
423
  // MsgUnfreeze - Unfreeze NFT
406
424
  "/coreum.asset.nft.v1.MsgUnfreeze": {
407
- aminoType: "cosmos-sdk/MsgUnfreeze",
425
+ aminoType: "assetnft/MsgUnfreeze",
408
426
  toAmino: ({ sender, classId, id }) => ({
409
427
  sender,
410
428
  class_id: classId,
@@ -418,7 +436,7 @@ exports.nftAminoConverters = {
418
436
  },
419
437
  // MsgClassFreeze - Freeze NFT class for account
420
438
  "/coreum.asset.nft.v1.MsgClassFreeze": {
421
- aminoType: "cosmos-sdk/MsgClassFreeze",
439
+ aminoType: "assetnft/MsgClassFreeze",
422
440
  toAmino: ({ sender, classId, account }) => ({
423
441
  sender,
424
442
  class_id: classId,
@@ -432,7 +450,7 @@ exports.nftAminoConverters = {
432
450
  },
433
451
  // MsgClassUnfreeze - Unfreeze NFT class for account
434
452
  "/coreum.asset.nft.v1.MsgClassUnfreeze": {
435
- aminoType: "cosmos-sdk/MsgClassUnfreeze",
453
+ aminoType: "assetnft/MsgClassUnfreeze",
436
454
  toAmino: ({ sender, classId, account }) => ({
437
455
  sender,
438
456
  class_id: classId,
@@ -446,7 +464,7 @@ exports.nftAminoConverters = {
446
464
  },
447
465
  // MsgAddToWhitelist - Add account to NFT whitelist
448
466
  "/coreum.asset.nft.v1.MsgAddToWhitelist": {
449
- aminoType: "cosmos-sdk/MsgAddToWhitelist",
467
+ aminoType: "assetnft/MsgAddToWhitelist",
450
468
  toAmino: ({ sender, classId, id, account }) => ({
451
469
  sender,
452
470
  class_id: classId,
@@ -462,7 +480,7 @@ exports.nftAminoConverters = {
462
480
  },
463
481
  // MsgRemoveFromWhitelist - Remove account from NFT whitelist
464
482
  "/coreum.asset.nft.v1.MsgRemoveFromWhitelist": {
465
- aminoType: "cosmos-sdk/MsgRemoveFromWhitelist",
483
+ aminoType: "assetnft/MsgRemoveFromWhitelist",
466
484
  toAmino: ({ sender, classId, id, account }) => ({
467
485
  sender,
468
486
  class_id: classId,
@@ -478,7 +496,7 @@ exports.nftAminoConverters = {
478
496
  },
479
497
  // MsgAddToClassWhitelist - Add account to NFT class whitelist
480
498
  "/coreum.asset.nft.v1.MsgAddToClassWhitelist": {
481
- aminoType: "cosmos-sdk/MsgAddToClassWhitelist",
499
+ aminoType: "assetnft/MsgAddToClassWhitelist",
482
500
  toAmino: ({ sender, classId, account }) => ({
483
501
  sender,
484
502
  class_id: classId,
@@ -492,7 +510,7 @@ exports.nftAminoConverters = {
492
510
  },
493
511
  // MsgRemoveFromClassWhitelist - Remove account from NFT class whitelist
494
512
  "/coreum.asset.nft.v1.MsgRemoveFromClassWhitelist": {
495
- aminoType: "cosmos-sdk/MsgRemoveFromClassWhitelist",
513
+ aminoType: "assetnft/MsgRemoveFromClassWhitelist",
496
514
  toAmino: ({ sender, classId, account }) => ({
497
515
  sender,
498
516
  class_id: classId,
@@ -506,7 +524,7 @@ exports.nftAminoConverters = {
506
524
  },
507
525
  // MsgUpdateParams - Update NFT module parameters
508
526
  "/coreum.asset.nft.v1.MsgUpdateParams": {
509
- aminoType: "cosmos-sdk/MsgUpdateParams",
527
+ aminoType: "assetnft/MsgUpdateParams",
510
528
  toAmino: ({ authority, params }) => ({
511
529
  authority,
512
530
  params,
@@ -3,7 +3,7 @@ import { AminoTypes } from "@cosmjs/stargate";
3
3
  export const ftAminoConverters = {
4
4
  // MsgIssue - Issue new fungible token
5
5
  "/coreum.asset.ft.v1.MsgIssue": {
6
- aminoType: "cosmos-sdk/MsgIssue",
6
+ aminoType: "aseestft/MsgIssue",
7
7
  toAmino: ({ issuer, symbol, subunit, precision, initialAmount, description, features, burnRate, sendCommissionRate, uri, uriHash, extensionSettings, dexSettings, }) => ({
8
8
  issuer,
9
9
  symbol,
@@ -37,7 +37,7 @@ export const ftAminoConverters = {
37
37
  },
38
38
  // MsgMint - Mint new fungible tokens
39
39
  "/coreum.asset.ft.v1.MsgMint": {
40
- aminoType: "cosmos-sdk/MsgMint",
40
+ aminoType: "aseestft/MsgMint",
41
41
  toAmino: ({ sender, coin, recipient }) => ({
42
42
  sender,
43
43
  coin,
@@ -51,7 +51,7 @@ export const ftAminoConverters = {
51
51
  },
52
52
  // MsgBurn - Burn fungible tokens
53
53
  "/coreum.asset.ft.v1.MsgBurn": {
54
- aminoType: "cosmos-sdk/MsgBurn",
54
+ aminoType: "aseestft/MsgBurn",
55
55
  toAmino: ({ sender, coin }) => ({
56
56
  sender,
57
57
  coin,
@@ -63,7 +63,7 @@ export const ftAminoConverters = {
63
63
  },
64
64
  // MsgFreeze - Freeze fungible tokens
65
65
  "/coreum.asset.ft.v1.MsgFreeze": {
66
- aminoType: "cosmos-sdk/MsgFreeze",
66
+ aminoType: "aseestft/MsgFreeze",
67
67
  toAmino: ({ sender, account, coin }) => ({
68
68
  sender,
69
69
  account,
@@ -77,7 +77,7 @@ export const ftAminoConverters = {
77
77
  },
78
78
  // MsgUnfreeze - Unfreeze fungible tokens
79
79
  "/coreum.asset.ft.v1.MsgUnfreeze": {
80
- aminoType: "cosmos-sdk/MsgUnfreeze",
80
+ aminoType: "aseestft/MsgUnfreeze",
81
81
  toAmino: ({ sender, account, coin }) => ({
82
82
  sender,
83
83
  account,
@@ -91,7 +91,7 @@ export const ftAminoConverters = {
91
91
  },
92
92
  // MsgSetFrozen - Set frozen amount
93
93
  "/coreum.asset.ft.v1.MsgSetFrozen": {
94
- aminoType: "cosmos-sdk/MsgSetFrozen",
94
+ aminoType: "aseestft/MsgSetFrozen",
95
95
  toAmino: ({ sender, account, coin }) => ({
96
96
  sender,
97
97
  account,
@@ -105,7 +105,7 @@ export const ftAminoConverters = {
105
105
  },
106
106
  // MsgGloballyFreeze - Globally freeze token
107
107
  "/coreum.asset.ft.v1.MsgGloballyFreeze": {
108
- aminoType: "cosmos-sdk/MsgGloballyFreeze",
108
+ aminoType: "aseestft/MsgGloballyFreeze",
109
109
  toAmino: ({ sender, denom }) => ({
110
110
  sender,
111
111
  denom,
@@ -117,7 +117,7 @@ export const ftAminoConverters = {
117
117
  },
118
118
  // MsgGloballyUnfreeze - Globally unfreeze token
119
119
  "/coreum.asset.ft.v1.MsgGloballyUnfreeze": {
120
- aminoType: "cosmos-sdk/MsgGloballyUnfreeze",
120
+ aminoType: "aseestft/MsgGloballyUnfreeze",
121
121
  toAmino: ({ sender, denom }) => ({
122
122
  sender,
123
123
  denom,
@@ -129,7 +129,7 @@ export const ftAminoConverters = {
129
129
  },
130
130
  // MsgClawback - Clawback tokens
131
131
  "/coreum.asset.ft.v1.MsgClawback": {
132
- aminoType: "cosmos-sdk/MsgClawback",
132
+ aminoType: "aseestft/MsgClawback",
133
133
  toAmino: ({ sender, account, coin }) => ({
134
134
  sender,
135
135
  account,
@@ -143,7 +143,7 @@ export const ftAminoConverters = {
143
143
  },
144
144
  // MsgSetWhitelistedLimit - Set whitelisted limit
145
145
  "/coreum.asset.ft.v1.MsgSetWhitelistedLimit": {
146
- aminoType: "cosmos-sdk/MsgSetWhitelistedLimit",
146
+ aminoType: "aseestft/MsgSetWhitelistedLimit",
147
147
  toAmino: ({ sender, account, coin }) => ({
148
148
  sender,
149
149
  account,
@@ -157,7 +157,7 @@ export const ftAminoConverters = {
157
157
  },
158
158
  // MsgTransferAdmin - Transfer admin
159
159
  "/coreum.asset.ft.v1.MsgTransferAdmin": {
160
- aminoType: "cosmos-sdk/MsgTransferAdmin",
160
+ aminoType: "aseestft/MsgTransferAdmin",
161
161
  toAmino: ({ sender, account, denom }) => ({
162
162
  sender,
163
163
  account,
@@ -171,7 +171,7 @@ export const ftAminoConverters = {
171
171
  },
172
172
  // MsgClearAdmin - Clear admin
173
173
  "/coreum.asset.ft.v1.MsgClearAdmin": {
174
- aminoType: "cosmos-sdk/MsgClearAdmin",
174
+ aminoType: "aseestft/MsgClearAdmin",
175
175
  toAmino: ({ sender, denom }) => ({
176
176
  sender,
177
177
  denom,
@@ -183,7 +183,7 @@ export const ftAminoConverters = {
183
183
  },
184
184
  // MsgUpgradeTokenV1 - Upgrade token to V1
185
185
  "/coreum.asset.ft.v1.MsgUpgradeTokenV1": {
186
- aminoType: "cosmos-sdk/MsgUpgradeTokenV1",
186
+ aminoType: "aseestft/MsgUpgradeTokenV1",
187
187
  toAmino: ({ sender, denom, ibcEnabled }) => ({
188
188
  sender,
189
189
  denom,
@@ -197,7 +197,7 @@ export const ftAminoConverters = {
197
197
  },
198
198
  // MsgUpdateParams - Update parameters
199
199
  "/coreum.asset.ft.v1.MsgUpdateParams": {
200
- aminoType: "cosmos-sdk/MsgUpdateParams",
200
+ aminoType: "aseestft/MsgUpdateParams",
201
201
  toAmino: ({ authority, params }) => ({
202
202
  authority,
203
203
  params,
@@ -209,7 +209,7 @@ export const ftAminoConverters = {
209
209
  },
210
210
  // MsgUpdateDEXUnifiedRefAmount - Update DEX unified ref amount
211
211
  "/coreum.asset.ft.v1.MsgUpdateDEXUnifiedRefAmount": {
212
- aminoType: "cosmos-sdk/MsgUpdateDEXUnifiedRefAmount",
212
+ aminoType: "aseestft/MsgUpdateDEXUnifiedRefAmount",
213
213
  toAmino: ({ sender, denom, unifiedRefAmount, }) => ({
214
214
  sender,
215
215
  denom,
@@ -223,7 +223,7 @@ export const ftAminoConverters = {
223
223
  },
224
224
  // MsgUpdateDEXWhitelistedDenoms - Update DEX whitelisted denoms
225
225
  "/coreum.asset.ft.v1.MsgUpdateDEXWhitelistedDenoms": {
226
- aminoType: "cosmos-sdk/MsgUpdateDEXWhitelistedDenoms",
226
+ aminoType: "aseestft/MsgUpdateDEXWhitelistedDenoms",
227
227
  toAmino: ({ sender, denom, whitelistedDenoms, }) => ({
228
228
  sender,
229
229
  denom,
@@ -240,7 +240,7 @@ export const ftAminoConverters = {
240
240
  export const dexAminoConverters = {
241
241
  // MsgUpdateParams - Update DEX parameters
242
242
  "/coreum.dex.v1.MsgUpdateParams": {
243
- aminoType: "cosmos-sdk/MsgUpdateParams",
243
+ aminoType: "dex/MsgUpdateParams",
244
244
  toAmino: ({ authority, params }) => ({
245
245
  authority,
246
246
  params,
@@ -252,7 +252,7 @@ export const dexAminoConverters = {
252
252
  },
253
253
  // MsgPlaceOrder - Place order on DEX
254
254
  "/coreum.dex.v1.MsgPlaceOrder": {
255
- aminoType: "cosmos-sdk/MsgPlaceOrder",
255
+ aminoType: "dex/MsgPlaceOrder",
256
256
  toAmino: ({ sender, type, id, baseDenom, quoteDenom, price, quantity, side, goodTil, timeInForce, }) => ({
257
257
  sender,
258
258
  type,
@@ -262,8 +262,14 @@ export const dexAminoConverters = {
262
262
  price,
263
263
  quantity,
264
264
  side,
265
- good_til: goodTil,
266
- time_in_force: timeInForce,
265
+ good_til: goodTil
266
+ ? goodTil.goodTilBlockHeight != null
267
+ ? { blocks: String(goodTil.goodTilBlockHeight) }
268
+ : goodTil.goodTilBlockTime
269
+ ? { time: goodTil.goodTilBlockTime.toISOString() }
270
+ : undefined
271
+ : undefined,
272
+ time_in_force: timeInForce, // number
267
273
  }),
268
274
  fromAmino: ({ sender, type, id, base_denom, quote_denom, price, quantity, side, good_til, time_in_force, }) => ({
269
275
  sender,
@@ -274,13 +280,25 @@ export const dexAminoConverters = {
274
280
  price,
275
281
  quantity,
276
282
  side,
277
- goodTil: good_til,
278
- timeInForce: time_in_force,
283
+ goodTil: good_til
284
+ ? good_til.blocks != null
285
+ ? {
286
+ goodTilBlockHeight: Number(good_til.blocks),
287
+ goodTilBlockTime: undefined,
288
+ }
289
+ : good_til.time != null
290
+ ? {
291
+ goodTilBlockHeight: undefined,
292
+ goodTilBlockTime: new Date(good_til.time),
293
+ }
294
+ : undefined
295
+ : undefined,
296
+ timeInForce: time_in_force, // number -> enum
279
297
  }),
280
298
  },
281
299
  // MsgCancelOrder - Cancel order
282
300
  "/coreum.dex.v1.MsgCancelOrder": {
283
- aminoType: "cosmos-sdk/MsgCancelOrder",
301
+ aminoType: "dex/MsgCancelOrder",
284
302
  toAmino: ({ sender, id }) => ({
285
303
  sender,
286
304
  id,
@@ -292,7 +310,7 @@ export const dexAminoConverters = {
292
310
  },
293
311
  // MsgCancelOrdersByDenom - Cancel orders by denom
294
312
  "/coreum.dex.v1.MsgCancelOrdersByDenom": {
295
- aminoType: "cosmos-sdk/MsgCancelOrdersByDenom",
313
+ aminoType: "dex/MsgCancelOrdersByDenom",
296
314
  toAmino: ({ sender, account, denom }) => ({
297
315
  sender,
298
316
  account,
@@ -309,7 +327,7 @@ export const dexAminoConverters = {
309
327
  export const nftAminoConverters = {
310
328
  // MsgIssueClass - Issue new NFT class
311
329
  "/coreum.asset.nft.v1.MsgIssueClass": {
312
- aminoType: "cosmos-sdk/MsgIssueClass",
330
+ aminoType: "assetnft/MsgIssueClass",
313
331
  toAmino: ({ issuer, symbol, name, description, uri, uriHash, data, features, royaltyRate, }) => ({
314
332
  issuer,
315
333
  symbol,
@@ -335,7 +353,7 @@ export const nftAminoConverters = {
335
353
  },
336
354
  // MsgMint - Mint NFT
337
355
  "/coreum.asset.nft.v1.MsgMint": {
338
- aminoType: "cosmos-sdk/MsgMint",
356
+ aminoType: "assetnft/MsgMint",
339
357
  toAmino: ({ sender, classId, id, uri, uriHash, data, recipient, }) => ({
340
358
  sender,
341
359
  class_id: classId,
@@ -357,7 +375,7 @@ export const nftAminoConverters = {
357
375
  },
358
376
  // MsgUpdateData - Update NFT data
359
377
  "/coreum.asset.nft.v1.MsgUpdateData": {
360
- aminoType: "cosmos-sdk/MsgUpdateData",
378
+ aminoType: "assetnft/MsgUpdateData",
361
379
  toAmino: ({ sender, classId, id, items }) => ({
362
380
  sender,
363
381
  class_id: classId,
@@ -373,7 +391,7 @@ export const nftAminoConverters = {
373
391
  },
374
392
  // MsgBurn - Burn NFT
375
393
  "/coreum.asset.nft.v1.MsgBurn": {
376
- aminoType: "cosmos-sdk/MsgBurn",
394
+ aminoType: "assetnft/MsgBurn",
377
395
  toAmino: ({ sender, classId, id }) => ({
378
396
  sender,
379
397
  class_id: classId,
@@ -387,7 +405,7 @@ export const nftAminoConverters = {
387
405
  },
388
406
  // MsgFreeze - Freeze NFT
389
407
  "/coreum.asset.nft.v1.MsgFreeze": {
390
- aminoType: "cosmos-sdk/MsgFreeze",
408
+ aminoType: "assetnft/MsgFreeze",
391
409
  toAmino: ({ sender, classId, id }) => ({
392
410
  sender,
393
411
  class_id: classId,
@@ -401,7 +419,7 @@ export const nftAminoConverters = {
401
419
  },
402
420
  // MsgUnfreeze - Unfreeze NFT
403
421
  "/coreum.asset.nft.v1.MsgUnfreeze": {
404
- aminoType: "cosmos-sdk/MsgUnfreeze",
422
+ aminoType: "assetnft/MsgUnfreeze",
405
423
  toAmino: ({ sender, classId, id }) => ({
406
424
  sender,
407
425
  class_id: classId,
@@ -415,7 +433,7 @@ export const nftAminoConverters = {
415
433
  },
416
434
  // MsgClassFreeze - Freeze NFT class for account
417
435
  "/coreum.asset.nft.v1.MsgClassFreeze": {
418
- aminoType: "cosmos-sdk/MsgClassFreeze",
436
+ aminoType: "assetnft/MsgClassFreeze",
419
437
  toAmino: ({ sender, classId, account }) => ({
420
438
  sender,
421
439
  class_id: classId,
@@ -429,7 +447,7 @@ export const nftAminoConverters = {
429
447
  },
430
448
  // MsgClassUnfreeze - Unfreeze NFT class for account
431
449
  "/coreum.asset.nft.v1.MsgClassUnfreeze": {
432
- aminoType: "cosmos-sdk/MsgClassUnfreeze",
450
+ aminoType: "assetnft/MsgClassUnfreeze",
433
451
  toAmino: ({ sender, classId, account }) => ({
434
452
  sender,
435
453
  class_id: classId,
@@ -443,7 +461,7 @@ export const nftAminoConverters = {
443
461
  },
444
462
  // MsgAddToWhitelist - Add account to NFT whitelist
445
463
  "/coreum.asset.nft.v1.MsgAddToWhitelist": {
446
- aminoType: "cosmos-sdk/MsgAddToWhitelist",
464
+ aminoType: "assetnft/MsgAddToWhitelist",
447
465
  toAmino: ({ sender, classId, id, account }) => ({
448
466
  sender,
449
467
  class_id: classId,
@@ -459,7 +477,7 @@ export const nftAminoConverters = {
459
477
  },
460
478
  // MsgRemoveFromWhitelist - Remove account from NFT whitelist
461
479
  "/coreum.asset.nft.v1.MsgRemoveFromWhitelist": {
462
- aminoType: "cosmos-sdk/MsgRemoveFromWhitelist",
480
+ aminoType: "assetnft/MsgRemoveFromWhitelist",
463
481
  toAmino: ({ sender, classId, id, account }) => ({
464
482
  sender,
465
483
  class_id: classId,
@@ -475,7 +493,7 @@ export const nftAminoConverters = {
475
493
  },
476
494
  // MsgAddToClassWhitelist - Add account to NFT class whitelist
477
495
  "/coreum.asset.nft.v1.MsgAddToClassWhitelist": {
478
- aminoType: "cosmos-sdk/MsgAddToClassWhitelist",
496
+ aminoType: "assetnft/MsgAddToClassWhitelist",
479
497
  toAmino: ({ sender, classId, account }) => ({
480
498
  sender,
481
499
  class_id: classId,
@@ -489,7 +507,7 @@ export const nftAminoConverters = {
489
507
  },
490
508
  // MsgRemoveFromClassWhitelist - Remove account from NFT class whitelist
491
509
  "/coreum.asset.nft.v1.MsgRemoveFromClassWhitelist": {
492
- aminoType: "cosmos-sdk/MsgRemoveFromClassWhitelist",
510
+ aminoType: "assetnft/MsgRemoveFromClassWhitelist",
493
511
  toAmino: ({ sender, classId, account }) => ({
494
512
  sender,
495
513
  class_id: classId,
@@ -503,7 +521,7 @@ export const nftAminoConverters = {
503
521
  },
504
522
  // MsgUpdateParams - Update NFT module parameters
505
523
  "/coreum.asset.nft.v1.MsgUpdateParams": {
506
- aminoType: "cosmos-sdk/MsgUpdateParams",
524
+ aminoType: "assetnft/MsgUpdateParams",
507
525
  toAmino: ({ authority, params }) => ({
508
526
  authority,
509
527
  params,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coreum-js",
3
- "version": "2.18.4",
3
+ "version": "2.18.6",
4
4
  "description": "JS/TS Library to to easily make use of the Coreum Blockchain",
5
5
  "main": "dist/main/index.js",
6
6
  "module": "dist/module/index.js",