@chainflip/sdk 1.6.0-beta.1 → 1.6.0
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 +20 -27
- package/dist/swap.d.ts +20 -27
- package/dist/swap.js +1 -1
- package/dist/swap.mjs +1 -1
- package/package.json +1 -1
package/dist/swap.d.mts
CHANGED
|
@@ -383,45 +383,37 @@ 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
|
};
|
|
419
|
-
fees: PaidFee[];
|
|
420
412
|
}
|
|
421
413
|
interface EgressFields {
|
|
422
414
|
amount: string;
|
|
423
|
-
scheduledAt: number;
|
|
424
|
-
scheduledBlockIndex: string;
|
|
415
|
+
scheduledAt: number | undefined;
|
|
416
|
+
scheduledBlockIndex: string | undefined;
|
|
425
417
|
txRef: string | undefined;
|
|
426
418
|
witnessedAt: number | undefined;
|
|
427
419
|
witnessedBlockIndex: string | undefined;
|
|
@@ -437,6 +429,7 @@ interface SwapStatusResponseCommonFields extends ChainsAndAssets {
|
|
|
437
429
|
boost: Boost | undefined;
|
|
438
430
|
estimatedDurationSeconds: number | null | undefined;
|
|
439
431
|
srcChainRequiredBlockConfirmations: number | null;
|
|
432
|
+
fees: PaidFee[];
|
|
440
433
|
}
|
|
441
434
|
interface Waiting extends SwapStatusResponseCommonFields {
|
|
442
435
|
depositChannel: DepositChannelFields;
|
package/dist/swap.d.ts
CHANGED
|
@@ -383,45 +383,37 @@ 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
|
};
|
|
419
|
-
fees: PaidFee[];
|
|
420
412
|
}
|
|
421
413
|
interface EgressFields {
|
|
422
414
|
amount: string;
|
|
423
|
-
scheduledAt: number;
|
|
424
|
-
scheduledBlockIndex: string;
|
|
415
|
+
scheduledAt: number | undefined;
|
|
416
|
+
scheduledBlockIndex: string | undefined;
|
|
425
417
|
txRef: string | undefined;
|
|
426
418
|
witnessedAt: number | undefined;
|
|
427
419
|
witnessedBlockIndex: string | undefined;
|
|
@@ -437,6 +429,7 @@ interface SwapStatusResponseCommonFields extends ChainsAndAssets {
|
|
|
437
429
|
boost: Boost | undefined;
|
|
438
430
|
estimatedDurationSeconds: number | null | undefined;
|
|
439
431
|
srcChainRequiredBlockConfirmations: number | null;
|
|
432
|
+
fees: PaidFee[];
|
|
440
433
|
}
|
|
441
434
|
interface Waiting extends SwapStatusResponseCommonFields {
|
|
442
435
|
depositChannel: DepositChannelFields;
|
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
|
|
10032
|
+
var version = "1.6.0";
|
|
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
|
|
8307
|
+
var version = "1.6.0";
|
|
8308
8308
|
|
|
8309
8309
|
// src/swap/consts.ts
|
|
8310
8310
|
var CF_SDK_VERSION_HEADERS = {
|