coreum-js 2.18.5 → 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.
|
@@ -265,8 +265,14 @@ exports.dexAminoConverters = {
|
|
|
265
265
|
price,
|
|
266
266
|
quantity,
|
|
267
267
|
side,
|
|
268
|
-
good_til: goodTil
|
|
269
|
-
|
|
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,8 +283,20 @@ exports.dexAminoConverters = {
|
|
|
277
283
|
price,
|
|
278
284
|
quantity,
|
|
279
285
|
side,
|
|
280
|
-
goodTil: good_til
|
|
281
|
-
|
|
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
|
|
@@ -262,8 +262,14 @@ export const dexAminoConverters = {
|
|
|
262
262
|
price,
|
|
263
263
|
quantity,
|
|
264
264
|
side,
|
|
265
|
-
good_til: goodTil
|
|
266
|
-
|
|
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,8 +280,20 @@ export const dexAminoConverters = {
|
|
|
274
280
|
price,
|
|
275
281
|
quantity,
|
|
276
282
|
side,
|
|
277
|
-
goodTil: good_til
|
|
278
|
-
|
|
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
|