@dhedge/backend-flatcoin-core 0.1.42 → 0.1.44

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.
@@ -131,6 +131,22 @@ exports.FlatcoinErrors = [
131
131
  name: 'NotEnoughBalanceForWithdraw',
132
132
  type: 'error',
133
133
  },
134
+ {
135
+ inputs: [
136
+ {
137
+ internalType: 'uint256',
138
+ name: 'withdrawAmount',
139
+ type: 'uint256',
140
+ },
141
+ {
142
+ internalType: 'uint256',
143
+ name: 'keeperFee',
144
+ type: 'uint256',
145
+ },
146
+ ],
147
+ name: 'WithdrawalTooSmall',
148
+ type: 'error',
149
+ },
134
150
  {
135
151
  inputs: [
136
152
  {
@@ -179,6 +195,11 @@ exports.FlatcoinErrors = [
179
195
  name: 'OrderHasExpired',
180
196
  type: 'error',
181
197
  },
198
+ {
199
+ inputs: [],
200
+ name: 'InsufficientGlobalMargin',
201
+ type: 'error',
202
+ },
182
203
  {
183
204
  inputs: [],
184
205
  name: 'OrderHasNotExpired',
@@ -255,6 +276,17 @@ exports.FlatcoinErrors = [
255
276
  name: 'MaxSkewReached',
256
277
  type: 'error',
257
278
  },
279
+ {
280
+ inputs: [
281
+ {
282
+ internalType: 'uint256',
283
+ name: 'maxVelocitySkew',
284
+ type: 'uint256',
285
+ },
286
+ ],
287
+ name: 'InvalidMaxVelocitySkew',
288
+ type: 'error',
289
+ },
258
290
  {
259
291
  inputs: [
260
292
  {
@@ -378,11 +410,43 @@ exports.FlatcoinErrors = [
378
410
  name: 'ETHPriceExpired',
379
411
  type: 'error',
380
412
  },
413
+ {
414
+ inputs: [],
415
+ name: 'PositionCreatesBadDebt',
416
+ type: 'error',
417
+ },
381
418
  {
382
419
  inputs: [],
383
420
  name: 'ETHPriceInvalid',
384
421
  type: 'error',
385
422
  },
423
+ {
424
+ inputs: [],
425
+ name: 'ETHPriceStale',
426
+ type: 'error',
427
+ },
428
+ {
429
+ inputs: [
430
+ {
431
+ internalType: 'enum FlatcoinErrors.PriceSource',
432
+ name: 'priceSource',
433
+ type: 'uint8',
434
+ },
435
+ ],
436
+ name: 'PriceInvalid',
437
+ type: 'error',
438
+ },
439
+ {
440
+ inputs: [
441
+ {
442
+ internalType: 'enum FlatcoinErrors.PriceSource',
443
+ name: 'priceSource',
444
+ type: 'uint8',
445
+ },
446
+ ],
447
+ name: 'PriceStale',
448
+ type: 'error',
449
+ },
386
450
  {
387
451
  inputs: [
388
452
  {
@@ -463,6 +527,17 @@ exports.FlatcoinErrors = [
463
527
  name: 'LimitOrderInvalid',
464
528
  type: 'error',
465
529
  },
530
+ {
531
+ inputs: [
532
+ {
533
+ internalType: 'uint256',
534
+ name: 'amount',
535
+ type: 'uint256',
536
+ },
537
+ ],
538
+ name: 'MintAmountTooLow',
539
+ type: 'error',
540
+ },
466
541
  {
467
542
  inputs: [
468
543
  {
@@ -244,23 +244,17 @@ exports.LimitOrder = [
244
244
  {
245
245
  indexed: false,
246
246
  internalType: 'address',
247
- name: 'account',
247
+ name: 'account"',
248
248
  type: 'address',
249
249
  },
250
- {
251
- indexed: false,
252
- internalType: 'enum FlatcoinStructs.OrderType',
253
- name: 'orderType',
254
- type: 'uint8',
255
- },
256
250
  {
257
251
  indexed: false,
258
252
  internalType: 'uint256',
259
- name: 'keeperFee',
253
+ name: 'tokenId',
260
254
  type: 'uint256',
261
255
  },
262
256
  ],
263
- name: 'OrderCancelled',
257
+ name: 'LimitOrderCancelled',
264
258
  type: 'event',
265
259
  },
266
260
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhedge/backend-flatcoin-core",
3
- "version": "0.1.42",
3
+ "version": "0.1.44",
4
4
  "description": "Backend Flatcoin Core",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",