@chainflip/sdk 0.1.3 → 0.1.5

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.
Files changed (2) hide show
  1. package/dist/swap.d.ts +8 -2
  2. package/package.json +1 -1
package/dist/swap.d.ts CHANGED
@@ -415,18 +415,20 @@ interface SwapStatusRequest {
415
415
  }
416
416
  interface CommonStatusFields extends ChainsAndAssets {
417
417
  destAddress: string;
418
- depositAddress: string;
419
- expectedDepositAmount: string;
418
+ depositAddress: string | undefined;
419
+ expectedDepositAmount: string | undefined;
420
420
  }
421
421
  type SwapStatusResponse = CommonStatusFields & ({
422
422
  state: 'AWAITING_DEPOSIT';
423
423
  } | {
424
424
  state: 'DEPOSIT_RECEIVED';
425
+ swapId: string;
425
426
  depositAmount: string;
426
427
  depositReceivedAt: number;
427
428
  depositReceivedBlockIndex: string;
428
429
  } | {
429
430
  state: 'SWAP_EXECUTED';
431
+ swapId: string;
430
432
  depositAmount: string;
431
433
  depositReceivedAt: number;
432
434
  depositReceivedBlockIndex: string;
@@ -434,6 +436,7 @@ type SwapStatusResponse = CommonStatusFields & ({
434
436
  swapExecutedBlockIndex: string;
435
437
  } | {
436
438
  state: 'EGRESS_SCHEDULED';
439
+ swapId: string;
437
440
  depositAmount: string;
438
441
  depositReceivedAt: number;
439
442
  depositReceivedBlockIndex: string;
@@ -444,6 +447,7 @@ type SwapStatusResponse = CommonStatusFields & ({
444
447
  egressScheduledBlockIndex: string;
445
448
  } | {
446
449
  state: 'BROADCAST_REQUESTED';
450
+ swapId: string;
447
451
  depositAmount: string;
448
452
  depositReceivedAt: number;
449
453
  depositReceivedBlockIndex: string;
@@ -456,6 +460,7 @@ type SwapStatusResponse = CommonStatusFields & ({
456
460
  broadcastRequestedBlockIndex: string;
457
461
  } | {
458
462
  state: 'BROADCAST_ABORTED';
463
+ swapId: string;
459
464
  depositAmount: string;
460
465
  depositReceivedAt: number;
461
466
  depositReceivedBlockIndex: string;
@@ -470,6 +475,7 @@ type SwapStatusResponse = CommonStatusFields & ({
470
475
  broadcastAbortedBlockIndex: string;
471
476
  } | {
472
477
  state: 'COMPLETE';
478
+ swapId: string;
473
479
  depositAmount: string;
474
480
  depositReceivedAt: number;
475
481
  depositReceivedBlockIndex: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainflip/sdk",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "",
5
5
  "exports": {
6
6
  "./swap": {