@chainflip/sdk 1.6.0-beta.1 → 1.6.0-beta.2
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 +19 -26
- package/dist/swap.d.ts +19 -26
- package/dist/swap.js +1 -1
- package/dist/swap.mjs +1 -1
- package/package.json +1 -1
package/dist/swap.d.mts
CHANGED
|
@@ -383,36 +383,29 @@ interface DepositFields {
|
|
|
383
383
|
failedAt: number | undefined;
|
|
384
384
|
failedBlockIndex: string | undefined;
|
|
385
385
|
}
|
|
386
|
+
type ChunkInfo = {
|
|
387
|
+
inputAmount: string;
|
|
388
|
+
intermediateAmount?: string;
|
|
389
|
+
outputAmount?: string;
|
|
390
|
+
scheduledAt: number;
|
|
391
|
+
scheduledBlockIndex: string;
|
|
392
|
+
executedAt?: number;
|
|
393
|
+
executedBlockIndex?: string;
|
|
394
|
+
retryCount: number;
|
|
395
|
+
};
|
|
396
|
+
type PickRequired<T> = {
|
|
397
|
+
[K in keyof T as undefined extends T[K] ? never : K]: T[K];
|
|
398
|
+
} & {};
|
|
386
399
|
interface SwapFields {
|
|
387
400
|
originalInputAmount: string;
|
|
388
401
|
remainingInputAmount: string;
|
|
389
402
|
swappedInputAmount: string;
|
|
403
|
+
swappedIntermediateAmount: string;
|
|
390
404
|
swappedOutputAmount: string;
|
|
391
|
-
regular?:
|
|
392
|
-
inputAmount: string;
|
|
393
|
-
outputAmount: string;
|
|
394
|
-
scheduledAt: number;
|
|
395
|
-
scheduledBlockIndex: string;
|
|
396
|
-
executedAt?: number;
|
|
397
|
-
executedBlockIndex?: string;
|
|
398
|
-
retryCount: 0;
|
|
399
|
-
};
|
|
405
|
+
regular?: ChunkInfo;
|
|
400
406
|
dca?: {
|
|
401
|
-
lastExecutedChunk:
|
|
402
|
-
|
|
403
|
-
outputAmount: string;
|
|
404
|
-
scheduledAt: number;
|
|
405
|
-
scheduledBlockIndex: string;
|
|
406
|
-
executedAt: number;
|
|
407
|
-
executedBlockIndex: string;
|
|
408
|
-
retryCount: number;
|
|
409
|
-
} | null;
|
|
410
|
-
currentChunk: {
|
|
411
|
-
inputAmount: string;
|
|
412
|
-
scheduledAt: number;
|
|
413
|
-
scheduledBlockIndex: string;
|
|
414
|
-
retryCount: number;
|
|
415
|
-
} | null;
|
|
407
|
+
lastExecutedChunk: ChunkInfo | null;
|
|
408
|
+
currentChunk: PickRequired<ChunkInfo> | null;
|
|
416
409
|
executedChunks: number;
|
|
417
410
|
remainingChunks: number;
|
|
418
411
|
};
|
|
@@ -420,8 +413,8 @@ interface SwapFields {
|
|
|
420
413
|
}
|
|
421
414
|
interface EgressFields {
|
|
422
415
|
amount: string;
|
|
423
|
-
scheduledAt: number;
|
|
424
|
-
scheduledBlockIndex: string;
|
|
416
|
+
scheduledAt: number | undefined;
|
|
417
|
+
scheduledBlockIndex: string | undefined;
|
|
425
418
|
txRef: string | undefined;
|
|
426
419
|
witnessedAt: number | undefined;
|
|
427
420
|
witnessedBlockIndex: string | undefined;
|
package/dist/swap.d.ts
CHANGED
|
@@ -383,36 +383,29 @@ interface DepositFields {
|
|
|
383
383
|
failedAt: number | undefined;
|
|
384
384
|
failedBlockIndex: string | undefined;
|
|
385
385
|
}
|
|
386
|
+
type ChunkInfo = {
|
|
387
|
+
inputAmount: string;
|
|
388
|
+
intermediateAmount?: string;
|
|
389
|
+
outputAmount?: string;
|
|
390
|
+
scheduledAt: number;
|
|
391
|
+
scheduledBlockIndex: string;
|
|
392
|
+
executedAt?: number;
|
|
393
|
+
executedBlockIndex?: string;
|
|
394
|
+
retryCount: number;
|
|
395
|
+
};
|
|
396
|
+
type PickRequired<T> = {
|
|
397
|
+
[K in keyof T as undefined extends T[K] ? never : K]: T[K];
|
|
398
|
+
} & {};
|
|
386
399
|
interface SwapFields {
|
|
387
400
|
originalInputAmount: string;
|
|
388
401
|
remainingInputAmount: string;
|
|
389
402
|
swappedInputAmount: string;
|
|
403
|
+
swappedIntermediateAmount: string;
|
|
390
404
|
swappedOutputAmount: string;
|
|
391
|
-
regular?:
|
|
392
|
-
inputAmount: string;
|
|
393
|
-
outputAmount: string;
|
|
394
|
-
scheduledAt: number;
|
|
395
|
-
scheduledBlockIndex: string;
|
|
396
|
-
executedAt?: number;
|
|
397
|
-
executedBlockIndex?: string;
|
|
398
|
-
retryCount: 0;
|
|
399
|
-
};
|
|
405
|
+
regular?: ChunkInfo;
|
|
400
406
|
dca?: {
|
|
401
|
-
lastExecutedChunk:
|
|
402
|
-
|
|
403
|
-
outputAmount: string;
|
|
404
|
-
scheduledAt: number;
|
|
405
|
-
scheduledBlockIndex: string;
|
|
406
|
-
executedAt: number;
|
|
407
|
-
executedBlockIndex: string;
|
|
408
|
-
retryCount: number;
|
|
409
|
-
} | null;
|
|
410
|
-
currentChunk: {
|
|
411
|
-
inputAmount: string;
|
|
412
|
-
scheduledAt: number;
|
|
413
|
-
scheduledBlockIndex: string;
|
|
414
|
-
retryCount: number;
|
|
415
|
-
} | null;
|
|
407
|
+
lastExecutedChunk: ChunkInfo | null;
|
|
408
|
+
currentChunk: PickRequired<ChunkInfo> | null;
|
|
416
409
|
executedChunks: number;
|
|
417
410
|
remainingChunks: number;
|
|
418
411
|
};
|
|
@@ -420,8 +413,8 @@ interface SwapFields {
|
|
|
420
413
|
}
|
|
421
414
|
interface EgressFields {
|
|
422
415
|
amount: string;
|
|
423
|
-
scheduledAt: number;
|
|
424
|
-
scheduledBlockIndex: string;
|
|
416
|
+
scheduledAt: number | undefined;
|
|
417
|
+
scheduledBlockIndex: string | undefined;
|
|
425
418
|
txRef: string | undefined;
|
|
426
419
|
witnessedAt: number | undefined;
|
|
427
420
|
witnessedBlockIndex: string | undefined;
|
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-beta.
|
|
10032
|
+
var version = "1.6.0-beta.2";
|
|
10033
10033
|
|
|
10034
10034
|
// src/swap/consts.ts
|
|
10035
10035
|
var CF_SDK_VERSION_HEADERS = {
|
package/dist/swap.mjs
CHANGED
|
@@ -8304,7 +8304,7 @@ var getChainData = /* @__PURE__ */ __name((chain2, network, env) => ({
|
|
|
8304
8304
|
}), "getChainData");
|
|
8305
8305
|
|
|
8306
8306
|
// package.json
|
|
8307
|
-
var version = "1.6.0-beta.
|
|
8307
|
+
var version = "1.6.0-beta.2";
|
|
8308
8308
|
|
|
8309
8309
|
// src/swap/consts.ts
|
|
8310
8310
|
var CF_SDK_VERSION_HEADERS = {
|