@chainflip/sdk 1.6.0-alpha.4 → 1.6.0-alpha.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.
package/dist/swap.d.mts CHANGED
@@ -338,7 +338,7 @@ interface Ccm {
338
338
  }
339
339
  interface Failure {
340
340
  failedAt: number;
341
- failedAtBlockIndex: string;
341
+ failedBlockIndex: string;
342
342
  mode: FailureMode;
343
343
  reason: {
344
344
  code: string;
@@ -365,7 +365,6 @@ interface DepositChannelFields {
365
365
  affiliateBrokers: AffiliateBroker[];
366
366
  fillOrKillParams: FillOrKillParams | undefined;
367
367
  dcaParams: DcaParameters | undefined;
368
- srcChainRequiredBlockConfirmations: number | null | undefined;
369
368
  }
370
369
  interface DepositFields {
371
370
  amount: string | undefined;
@@ -386,12 +385,13 @@ interface SwapChunk {
386
385
  latestSwapRescheduledAt: number | undefined;
387
386
  latestSwapRescheduledBlockIndex: number | undefined;
388
387
  fees: SwapFee[];
388
+ isDca: false;
389
389
  }
390
390
  interface SwapFields {
391
391
  totalInputAmountSwapped: string | undefined;
392
392
  totalOutputAmountSwapped: string | undefined;
393
393
  totalChunksExecuted: number;
394
- isDcaSwap: boolean;
394
+ isDca: true;
395
395
  lastExecutedChunk: SwapChunk | undefined;
396
396
  currentChunk: SwapChunk;
397
397
  type: SwapType;
@@ -401,11 +401,13 @@ interface EgressFields {
401
401
  amount: string;
402
402
  scheduledAt: number;
403
403
  scheduledBlockIndex: string;
404
- sentTxRef: string | undefined;
405
- sentAt: number | undefined;
406
- sentAtBlockIndex: string | undefined;
404
+ txRef: string | undefined;
405
+ confirmedAt: number | undefined;
406
+ confirmedBlockIndex: string | undefined;
407
407
  ignoredAmount: string | undefined;
408
408
  failure: Failure | undefined;
409
+ failedAt: number | undefined;
410
+ failedBlockIndex: string | undefined;
409
411
  }
410
412
  interface SwapStatusResponseCommonFields extends ChainsAndAssets {
411
413
  swapId: string;
@@ -413,6 +415,7 @@ interface SwapStatusResponseCommonFields extends ChainsAndAssets {
413
415
  ccm: Ccm | undefined;
414
416
  boost: Boost | undefined;
415
417
  estimatedDurationSeconds: number | null | undefined;
418
+ srcChainRequiredBlockConfirmations: number | null;
416
419
  }
417
420
  interface VaultSwapCommonFields extends Exclude<SwapStatusResponseCommonFields, 'boost'> {
418
421
  }
package/dist/swap.d.ts CHANGED
@@ -338,7 +338,7 @@ interface Ccm {
338
338
  }
339
339
  interface Failure {
340
340
  failedAt: number;
341
- failedAtBlockIndex: string;
341
+ failedBlockIndex: string;
342
342
  mode: FailureMode;
343
343
  reason: {
344
344
  code: string;
@@ -365,7 +365,6 @@ interface DepositChannelFields {
365
365
  affiliateBrokers: AffiliateBroker[];
366
366
  fillOrKillParams: FillOrKillParams | undefined;
367
367
  dcaParams: DcaParameters | undefined;
368
- srcChainRequiredBlockConfirmations: number | null | undefined;
369
368
  }
370
369
  interface DepositFields {
371
370
  amount: string | undefined;
@@ -386,12 +385,13 @@ interface SwapChunk {
386
385
  latestSwapRescheduledAt: number | undefined;
387
386
  latestSwapRescheduledBlockIndex: number | undefined;
388
387
  fees: SwapFee[];
388
+ isDca: false;
389
389
  }
390
390
  interface SwapFields {
391
391
  totalInputAmountSwapped: string | undefined;
392
392
  totalOutputAmountSwapped: string | undefined;
393
393
  totalChunksExecuted: number;
394
- isDcaSwap: boolean;
394
+ isDca: true;
395
395
  lastExecutedChunk: SwapChunk | undefined;
396
396
  currentChunk: SwapChunk;
397
397
  type: SwapType;
@@ -401,11 +401,13 @@ interface EgressFields {
401
401
  amount: string;
402
402
  scheduledAt: number;
403
403
  scheduledBlockIndex: string;
404
- sentTxRef: string | undefined;
405
- sentAt: number | undefined;
406
- sentAtBlockIndex: string | undefined;
404
+ txRef: string | undefined;
405
+ confirmedAt: number | undefined;
406
+ confirmedBlockIndex: string | undefined;
407
407
  ignoredAmount: string | undefined;
408
408
  failure: Failure | undefined;
409
+ failedAt: number | undefined;
410
+ failedBlockIndex: string | undefined;
409
411
  }
410
412
  interface SwapStatusResponseCommonFields extends ChainsAndAssets {
411
413
  swapId: string;
@@ -413,6 +415,7 @@ interface SwapStatusResponseCommonFields extends ChainsAndAssets {
413
415
  ccm: Ccm | undefined;
414
416
  boost: Boost | undefined;
415
417
  estimatedDurationSeconds: number | null | undefined;
418
+ srcChainRequiredBlockConfirmations: number | null;
416
419
  }
417
420
  interface VaultSwapCommonFields extends Exclude<SwapStatusResponseCommonFields, 'boost'> {
418
421
  }
package/dist/swap.js CHANGED
@@ -10029,7 +10029,7 @@ var getChainData = /* @__PURE__ */ __name((chain2, network, env) => ({
10029
10029
  }), "getChainData");
10030
10030
 
10031
10031
  // package.json
10032
- var version = "1.6.0-alpha.4";
10032
+ var version = "1.6.0-alpha.5";
10033
10033
 
10034
10034
  // src/swap/consts.ts
10035
10035
  var CF_SDK_VERSION_HEADERS = {
package/dist/swap.mjs CHANGED
@@ -8307,7 +8307,7 @@ var getChainData = /* @__PURE__ */ __name((chain2, network, env) => ({
8307
8307
  }), "getChainData");
8308
8308
 
8309
8309
  // package.json
8310
- var version = "1.6.0-alpha.4";
8310
+ var version = "1.6.0-alpha.5";
8311
8311
 
8312
8312
  // src/swap/consts.ts
8313
8313
  var CF_SDK_VERSION_HEADERS = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainflip/sdk",
3
- "version": "1.6.0-alpha.4",
3
+ "version": "1.6.0-alpha.5",
4
4
  "description": "",
5
5
  "exports": {
6
6
  "./swap": {