@chainflip/processor 1.5.0 → 1.5.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/100/common.cjs +15 -6
- package/dist/100/common.d.cts +25 -25
- package/dist/100/common.d.ts +25 -25
- package/dist/100/common.mjs +14 -5
- package/dist/100/liquidityProvider/accountCredited.d.cts +6 -6
- package/dist/100/liquidityProvider/accountCredited.d.ts +6 -6
- package/dist/100/liquidityProvider/accountDebited.d.cts +6 -6
- package/dist/100/liquidityProvider/accountDebited.d.ts +6 -6
- package/dist/100/liquidityProvider/liquidityDepositAddressReady.d.cts +23 -23
- package/dist/100/liquidityProvider/liquidityDepositAddressReady.d.ts +23 -23
- package/dist/100/liquidityProvider/withdrawalEgressScheduled.d.cts +21 -21
- package/dist/100/liquidityProvider/withdrawalEgressScheduled.d.ts +21 -21
- package/dist/100/polkadotIngressEgress/ccmEgressInvalid.d.cts +16 -16
- package/dist/100/polkadotIngressEgress/ccmEgressInvalid.d.ts +16 -16
- package/dist/100/polkadotIngressEgress/depositFetchesScheduled.d.cts +2 -2
- package/dist/100/polkadotIngressEgress/depositFetchesScheduled.d.ts +2 -2
- package/dist/100/polkadotIngressEgress/depositIgnored.d.cts +2 -2
- package/dist/100/polkadotIngressEgress/depositIgnored.d.ts +2 -2
- package/dist/100/polkadotIngressEgress/depositReceived.d.cts +2 -2
- package/dist/100/polkadotIngressEgress/depositReceived.d.ts +2 -2
- package/dist/100/polkadotIngressEgress/depositWitnessRejected.d.cts +20 -20
- package/dist/100/polkadotIngressEgress/depositWitnessRejected.d.ts +20 -20
- package/dist/100/swapping/batchSwapFailed.d.cts +2 -2
- package/dist/100/swapping/batchSwapFailed.d.ts +2 -2
- package/dist/100/swapping/ccmDepositReceived.d.cts +19 -19
- package/dist/100/swapping/ccmDepositReceived.d.ts +19 -19
- package/dist/100/swapping/ccmFailed.d.cts +15 -15
- package/dist/100/swapping/ccmFailed.d.ts +15 -15
- package/dist/100/swapping/swapAmountTooLow.d.cts +35 -35
- package/dist/100/swapping/swapAmountTooLow.d.ts +35 -35
- package/dist/100/swapping/swapDepositAddressReady.d.cts +36 -36
- package/dist/100/swapping/swapDepositAddressReady.d.ts +36 -36
- package/dist/100/swapping/swapScheduled.d.cts +37 -37
- package/dist/100/swapping/swapScheduled.d.ts +37 -37
- package/dist/100/swapping/withdrawalRequested.d.cts +15 -15
- package/dist/100/swapping/withdrawalRequested.d.ts +15 -15
- package/dist/100/witnesser/witnessExecutionFailed.d.cts +2 -2
- package/dist/100/witnesser/witnessExecutionFailed.d.ts +2 -2
- package/dist/102/common.cjs +3 -3
- package/dist/102/common.mjs +2 -2
- package/dist/111/common.cjs +3 -3
- package/dist/111/common.mjs +2 -2
- package/dist/120/common.cjs +15 -6
- package/dist/120/common.d.cts +10 -10
- package/dist/120/common.d.ts +10 -10
- package/dist/120/common.mjs +14 -5
- package/dist/120/liquidityProvider/withdrawalEgressScheduled.d.cts +15 -15
- package/dist/120/liquidityProvider/withdrawalEgressScheduled.d.ts +15 -15
- package/dist/120/swapping/ccmFailed.d.cts +79 -79
- package/dist/120/swapping/ccmFailed.d.ts +79 -79
- package/dist/120/swapping/swapEgressIgnored.d.cts +24 -24
- package/dist/120/swapping/swapEgressIgnored.d.ts +24 -24
- package/dist/120/swapping/swapEgressScheduled.d.cts +6 -6
- package/dist/120/swapping/swapEgressScheduled.d.ts +6 -6
- package/dist/120/swapping/swapExecuted.d.cts +12 -12
- package/dist/120/swapping/swapExecuted.d.ts +12 -12
- package/dist/120/swapping/withdrawalRequested.d.cts +23 -23
- package/dist/120/swapping/withdrawalRequested.d.ts +23 -23
- package/dist/131/bitcoinBroadcaster/transactionBroadcastRequest.d.cts +2 -2
- package/dist/131/bitcoinBroadcaster/transactionBroadcastRequest.d.ts +2 -2
- package/dist/131/common.cjs +15 -6
- package/dist/131/common.d.cts +25 -25
- package/dist/131/common.d.ts +25 -25
- package/dist/131/common.mjs +14 -5
- package/dist/131/environment/runtimeSafeModeUpdated.d.cts +40 -40
- package/dist/131/environment/runtimeSafeModeUpdated.d.ts +40 -40
- package/dist/131/liquidityPools/limitOrderUpdated.d.cts +8 -8
- package/dist/131/liquidityPools/limitOrderUpdated.d.ts +8 -8
- package/dist/131/liquidityPools/rangeOrderUpdated.d.cts +8 -8
- package/dist/131/liquidityPools/rangeOrderUpdated.d.ts +8 -8
- package/dist/131/liquidityProvider/liquidityDepositAddressReady.d.cts +15 -15
- package/dist/131/liquidityProvider/liquidityDepositAddressReady.d.ts +15 -15
- package/dist/131/liquidityProvider/withdrawalEgressScheduled.d.cts +15 -15
- package/dist/131/liquidityProvider/withdrawalEgressScheduled.d.ts +15 -15
- package/dist/131/swapping/batchSwapFailed.d.cts +8 -8
- package/dist/131/swapping/batchSwapFailed.d.ts +8 -8
- package/dist/131/swapping/ccmFailed.d.cts +35 -35
- package/dist/131/swapping/ccmFailed.d.ts +35 -35
- package/dist/131/swapping/maximumSwapAmountSet.d.cts +6 -6
- package/dist/131/swapping/maximumSwapAmountSet.d.ts +6 -6
- package/dist/131/swapping/swapAmountConfiscated.d.cts +12 -12
- package/dist/131/swapping/swapAmountConfiscated.d.ts +12 -12
- package/dist/131/swapping/swapDepositAddressReady.d.cts +48 -48
- package/dist/131/swapping/swapDepositAddressReady.d.ts +48 -48
- package/dist/131/swapping/swapEgressIgnored.d.cts +12 -12
- package/dist/131/swapping/swapEgressIgnored.d.ts +12 -12
- package/dist/131/swapping/swapEgressScheduled.d.cts +8 -8
- package/dist/131/swapping/swapEgressScheduled.d.ts +8 -8
- package/dist/131/swapping/swapExecuted.d.cts +12 -12
- package/dist/131/swapping/swapExecuted.d.ts +12 -12
- package/dist/131/swapping/swapScheduled.d.cts +49 -49
- package/dist/131/swapping/swapScheduled.d.ts +49 -49
- package/dist/131/swapping/withdrawalRequested.d.cts +21 -21
- package/dist/131/swapping/withdrawalRequested.d.ts +21 -21
- package/dist/141/bitcoinIngressEgress/boostFundsAdded.d.cts +2 -2
- package/dist/141/bitcoinIngressEgress/boostFundsAdded.d.ts +2 -2
- package/dist/141/bitcoinIngressEgress/depositBoosted.d.cts +4 -4
- package/dist/141/bitcoinIngressEgress/depositBoosted.d.ts +4 -4
- package/dist/141/bitcoinIngressEgress/depositFinalised.d.cts +4 -4
- package/dist/141/bitcoinIngressEgress/depositFinalised.d.ts +4 -4
- package/dist/141/bitcoinIngressEgress/insufficientBoostLiquidity.d.cts +3 -3
- package/dist/141/bitcoinIngressEgress/insufficientBoostLiquidity.d.ts +3 -3
- package/dist/141/common.cjs +19 -7
- package/dist/141/common.d.cts +30 -30
- package/dist/141/common.d.ts +30 -30
- package/dist/141/common.mjs +18 -6
- package/dist/141/ethereumIngressEgress/boostFundsAdded.d.cts +4 -4
- package/dist/141/ethereumIngressEgress/boostFundsAdded.d.ts +4 -4
- package/dist/141/ethereumIngressEgress/ccmEgressInvalid.d.cts +16 -16
- package/dist/141/ethereumIngressEgress/ccmEgressInvalid.d.ts +16 -16
- package/dist/141/ethereumIngressEgress/depositBoosted.d.cts +4 -4
- package/dist/141/ethereumIngressEgress/depositBoosted.d.ts +4 -4
- package/dist/141/ethereumIngressEgress/depositFinalised.d.cts +4 -4
- package/dist/141/ethereumIngressEgress/depositFinalised.d.ts +4 -4
- package/dist/141/ethereumIngressEgress/insufficientBoostLiquidity.d.cts +3 -3
- package/dist/141/ethereumIngressEgress/insufficientBoostLiquidity.d.ts +3 -3
- package/dist/141/ethereumIngressEgress/stoppedBoosting.d.cts +2 -2
- package/dist/141/ethereumIngressEgress/stoppedBoosting.d.ts +2 -2
- package/dist/141/liquidityProvider/liquidityDepositAddressReady.d.cts +18 -18
- package/dist/141/liquidityProvider/liquidityDepositAddressReady.d.ts +18 -18
- package/dist/141/liquidityProvider/withdrawalEgressScheduled.d.cts +18 -18
- package/dist/141/liquidityProvider/withdrawalEgressScheduled.d.ts +18 -18
- package/dist/141/swapping/ccmDepositReceived.d.cts +18 -18
- package/dist/141/swapping/ccmDepositReceived.d.ts +18 -18
- package/dist/141/swapping/ccmFailed.d.cts +42 -42
- package/dist/141/swapping/ccmFailed.d.ts +42 -42
- package/dist/141/swapping/swapDepositAddressReady.d.cts +36 -36
- package/dist/141/swapping/swapDepositAddressReady.d.ts +36 -36
- package/dist/141/swapping/swapScheduled.d.cts +42 -42
- package/dist/141/swapping/swapScheduled.d.ts +42 -42
- package/dist/141/swapping/withdrawalRequested.d.cts +18 -18
- package/dist/141/swapping/withdrawalRequested.d.ts +18 -18
- package/dist/150/assetBalances/refundScheduled.d.cts +52 -52
- package/dist/150/assetBalances/refundScheduled.d.ts +52 -52
- package/dist/150/assetBalances/refundSkipped.d.cts +70 -70
- package/dist/150/assetBalances/refundSkipped.d.ts +70 -70
- package/dist/150/common.cjs +40 -23
- package/dist/150/common.d.cts +205 -338
- package/dist/150/common.d.ts +205 -338
- package/dist/150/common.mjs +39 -22
- package/dist/150/ethereumIngressEgress/ccmEgressInvalid.d.cts +16 -16
- package/dist/150/ethereumIngressEgress/ccmEgressInvalid.d.ts +16 -16
- package/dist/150/ethereumIngressEgress/depositBoosted.d.cts +4 -4
- package/dist/150/ethereumIngressEgress/depositBoosted.d.ts +4 -4
- package/dist/150/ethereumIngressEgress/depositFinalised.d.cts +2 -2
- package/dist/150/ethereumIngressEgress/depositFinalised.d.ts +2 -2
- package/dist/150/ethereumIngressEgress/depositWitnessRejected.d.cts +16 -16
- package/dist/150/ethereumIngressEgress/depositWitnessRejected.d.ts +16 -16
- package/dist/150/liquidityPools/limitOrderUpdated.d.cts +8 -8
- package/dist/150/liquidityPools/limitOrderUpdated.d.ts +8 -8
- package/dist/150/liquidityPools/rangeOrderUpdated.d.cts +8 -8
- package/dist/150/liquidityPools/rangeOrderUpdated.d.ts +8 -8
- package/dist/150/liquidityProvider/liquidityDepositAddressReady.d.cts +24 -24
- package/dist/150/liquidityProvider/liquidityDepositAddressReady.d.ts +24 -24
- package/dist/150/liquidityProvider/withdrawalEgressScheduled.d.cts +24 -24
- package/dist/150/liquidityProvider/withdrawalEgressScheduled.d.ts +24 -24
- package/dist/150/polkadotIngressEgress/ccmBroadcastRequested.d.cts +2 -2
- package/dist/150/polkadotIngressEgress/ccmBroadcastRequested.d.ts +2 -2
- package/dist/150/polkadotIngressEgress/ccmEgressInvalid.d.cts +4 -4
- package/dist/150/polkadotIngressEgress/ccmEgressInvalid.d.ts +4 -4
- package/dist/150/solanaThresholdSigner/failureReportProcessed.d.cts +2 -2
- package/dist/150/solanaThresholdSigner/failureReportProcessed.d.ts +2 -2
- package/dist/150/solanaThresholdSigner/retryRequested.d.cts +2 -2
- package/dist/150/solanaThresholdSigner/retryRequested.d.ts +2 -2
- package/dist/150/solanaThresholdSigner/thresholdDispatchComplete.d.cts +2 -2
- package/dist/150/solanaThresholdSigner/thresholdDispatchComplete.d.ts +2 -2
- package/dist/150/solanaThresholdSigner/thresholdSignatureFailed.d.cts +2 -2
- package/dist/150/solanaThresholdSigner/thresholdSignatureFailed.d.ts +2 -2
- package/dist/150/solanaThresholdSigner/thresholdSignatureRequest.d.cts +2 -2
- package/dist/150/solanaThresholdSigner/thresholdSignatureRequest.d.ts +2 -2
- package/dist/150/solanaThresholdSigner/thresholdSignatureSuccess.d.cts +2 -2
- package/dist/150/solanaThresholdSigner/thresholdSignatureSuccess.d.ts +2 -2
- package/dist/150/swapping/ccmDepositReceived.d.cts +24 -24
- package/dist/150/swapping/ccmDepositReceived.d.ts +24 -24
- package/dist/150/swapping/ccmFailed.d.cts +56 -56
- package/dist/150/swapping/ccmFailed.d.ts +56 -56
- package/dist/150/swapping/swapDepositAddressReady.cjs +1 -1
- package/dist/150/swapping/swapDepositAddressReady.d.cts +83 -254
- package/dist/150/swapping/swapDepositAddressReady.d.ts +83 -254
- package/dist/150/swapping/swapDepositAddressReady.mjs +2 -2
- package/dist/150/swapping/swapScheduled.d.cts +56 -56
- package/dist/150/swapping/swapScheduled.d.ts +56 -56
- package/dist/150/swapping/withdrawalRequested.d.cts +24 -24
- package/dist/150/swapping/withdrawalRequested.d.ts +24 -24
- package/dist/160/arbitrumIngressEgress/ccmEgressInvalid.d.cts +61 -61
- package/dist/160/arbitrumIngressEgress/ccmEgressInvalid.d.ts +61 -61
- package/dist/160/arbitrumIngressEgress/depositBoosted.d.cts +10 -10
- package/dist/160/arbitrumIngressEgress/depositBoosted.d.ts +10 -10
- package/dist/160/arbitrumIngressEgress/depositFinalised.d.cts +4 -4
- package/dist/160/arbitrumIngressEgress/depositFinalised.d.ts +4 -4
- package/dist/160/bitcoinIngressEgress/ccmEgressInvalid.d.cts +14 -14
- package/dist/160/bitcoinIngressEgress/ccmEgressInvalid.d.ts +14 -14
- package/dist/160/bitcoinIngressEgress/depositBoosted.d.cts +10 -10
- package/dist/160/bitcoinIngressEgress/depositBoosted.d.ts +10 -10
- package/dist/160/bitcoinIngressEgress/depositFinalised.d.cts +4 -4
- package/dist/160/bitcoinIngressEgress/depositFinalised.d.ts +4 -4
- package/dist/160/common.cjs +25 -8
- package/dist/160/common.d.cts +88 -88
- package/dist/160/common.d.ts +88 -88
- package/dist/160/common.mjs +24 -7
- package/dist/160/ethereumIngressEgress/ccmEgressInvalid.d.cts +61 -61
- package/dist/160/ethereumIngressEgress/ccmEgressInvalid.d.ts +61 -61
- package/dist/160/ethereumIngressEgress/depositBoosted.d.cts +10 -10
- package/dist/160/ethereumIngressEgress/depositBoosted.d.ts +10 -10
- package/dist/160/ethereumIngressEgress/depositFinalised.d.cts +4 -4
- package/dist/160/ethereumIngressEgress/depositFinalised.d.ts +4 -4
- package/dist/160/liquidityPools/limitOrderUpdated.d.cts +2 -2
- package/dist/160/liquidityPools/limitOrderUpdated.d.ts +2 -2
- package/dist/160/liquidityPools/rangeOrderUpdated.d.cts +2 -2
- package/dist/160/liquidityPools/rangeOrderUpdated.d.ts +2 -2
- package/dist/160/liquidityProvider/accountCredited.d.cts +2 -2
- package/dist/160/liquidityProvider/accountCredited.d.ts +2 -2
- package/dist/160/liquidityProvider/accountDebited.d.cts +2 -2
- package/dist/160/liquidityProvider/accountDebited.d.ts +2 -2
- package/dist/160/liquidityProvider/liquidityDepositAddressReady.d.cts +28 -28
- package/dist/160/liquidityProvider/liquidityDepositAddressReady.d.ts +28 -28
- package/dist/160/liquidityProvider/liquidityDepositCredited.d.cts +2 -2
- package/dist/160/liquidityProvider/liquidityDepositCredited.d.ts +2 -2
- package/dist/160/liquidityProvider/withdrawalEgressScheduled.d.cts +24 -24
- package/dist/160/liquidityProvider/withdrawalEgressScheduled.d.ts +24 -24
- package/dist/160/polkadotIngressEgress/ccmEgressInvalid.d.cts +61 -61
- package/dist/160/polkadotIngressEgress/ccmEgressInvalid.d.ts +61 -61
- package/dist/160/polkadotIngressEgress/depositBoosted.d.cts +8 -8
- package/dist/160/polkadotIngressEgress/depositBoosted.d.ts +8 -8
- package/dist/160/polkadotIngressEgress/depositFinalised.d.cts +6 -6
- package/dist/160/polkadotIngressEgress/depositFinalised.d.ts +6 -6
- package/dist/160/solanaBroadcaster/transactionBroadcastRequest.d.cts +2 -2
- package/dist/160/solanaBroadcaster/transactionBroadcastRequest.d.ts +2 -2
- package/dist/160/swapping/batchSwapFailed.d.cts +8 -8
- package/dist/160/swapping/batchSwapFailed.d.ts +8 -8
- package/dist/160/swapping/ccmFailed.d.cts +56 -56
- package/dist/160/swapping/ccmFailed.d.ts +56 -56
- package/dist/160/swapping/maximumSwapAmountSet.d.cts +6 -6
- package/dist/160/swapping/maximumSwapAmountSet.d.ts +6 -6
- package/dist/160/swapping/refundEgressIgnored.d.cts +12 -12
- package/dist/160/swapping/refundEgressIgnored.d.ts +12 -12
- package/dist/160/swapping/refundEgressScheduled.d.cts +8 -8
- package/dist/160/swapping/refundEgressScheduled.d.ts +8 -8
- package/dist/160/swapping/swapAmountConfiscated.d.cts +7 -7
- package/dist/160/swapping/swapAmountConfiscated.d.ts +7 -7
- package/dist/160/swapping/swapDepositAddressReady.d.cts +66 -66
- package/dist/160/swapping/swapDepositAddressReady.d.ts +66 -66
- package/dist/160/swapping/swapEgressIgnored.d.cts +12 -12
- package/dist/160/swapping/swapEgressIgnored.d.ts +12 -12
- package/dist/160/swapping/swapEgressScheduled.d.cts +8 -8
- package/dist/160/swapping/swapEgressScheduled.d.ts +8 -8
- package/dist/160/swapping/swapExecuted.d.cts +12 -12
- package/dist/160/swapping/swapExecuted.d.ts +12 -12
- package/dist/160/swapping/swapRequested.d.cts +110 -110
- package/dist/160/swapping/swapRequested.d.ts +110 -110
- package/dist/160/swapping/withdrawalRequested.d.cts +30 -30
- package/dist/160/swapping/withdrawalRequested.d.ts +30 -30
- package/dist/Processor.cjs +7 -1
- package/dist/Processor.mjs +7 -1
- package/package.json +1 -1
|
@@ -5,11 +5,11 @@ declare const swappingSwapEgressIgnored: z.ZodObject<{
|
|
|
5
5
|
asset: z.ZodEffects<z.ZodObject<{
|
|
6
6
|
__kind: z.ZodEnum<["Eth", "Flip", "Usdc", "Dot", "Btc"]>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
__kind: "Eth" | "
|
|
8
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
9
9
|
}, {
|
|
10
|
-
__kind: "Eth" | "
|
|
11
|
-
}>, "Eth" | "
|
|
12
|
-
__kind: "Eth" | "
|
|
10
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
11
|
+
}>, "Eth" | "Dot" | "Btc" | "Flip" | "Usdc", {
|
|
12
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
13
13
|
}>;
|
|
14
14
|
amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
15
15
|
reason: z.ZodUnion<[z.ZodObject<{
|
|
@@ -43,17 +43,17 @@ declare const swappingSwapEgressIgnored: z.ZodObject<{
|
|
|
43
43
|
error: string;
|
|
44
44
|
}>;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
|
+
__kind: "Module";
|
|
46
47
|
value: {
|
|
47
48
|
index: number;
|
|
48
49
|
error: `0x${string}`;
|
|
49
50
|
};
|
|
50
|
-
__kind: "Module";
|
|
51
51
|
}, {
|
|
52
|
+
__kind: "Module";
|
|
52
53
|
value: {
|
|
53
54
|
index: number;
|
|
54
55
|
error: string;
|
|
55
56
|
};
|
|
56
|
-
__kind: "Module";
|
|
57
57
|
}>, z.ZodObject<{
|
|
58
58
|
__kind: z.ZodLiteral<"ConsumerRemaining">;
|
|
59
59
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -84,13 +84,13 @@ declare const swappingSwapEgressIgnored: z.ZodObject<{
|
|
|
84
84
|
__kind: "FundsUnavailable" | "OnlyProvider" | "BelowMinimum" | "CannotCreate" | "UnknownAsset" | "Frozen" | "Unsupported" | "CannotCreateHold" | "NotExpendable" | "Blocked";
|
|
85
85
|
}>;
|
|
86
86
|
}, "strip", z.ZodTypeAny, {
|
|
87
|
-
value: "FundsUnavailable" | "OnlyProvider" | "BelowMinimum" | "CannotCreate" | "UnknownAsset" | "Frozen" | "Unsupported" | "CannotCreateHold" | "NotExpendable" | "Blocked";
|
|
88
87
|
__kind: "Token";
|
|
88
|
+
value: "FundsUnavailable" | "OnlyProvider" | "BelowMinimum" | "CannotCreate" | "UnknownAsset" | "Frozen" | "Unsupported" | "CannotCreateHold" | "NotExpendable" | "Blocked";
|
|
89
89
|
}, {
|
|
90
|
+
__kind: "Token";
|
|
90
91
|
value: {
|
|
91
92
|
__kind: "FundsUnavailable" | "OnlyProvider" | "BelowMinimum" | "CannotCreate" | "UnknownAsset" | "Frozen" | "Unsupported" | "CannotCreateHold" | "NotExpendable" | "Blocked";
|
|
92
93
|
};
|
|
93
|
-
__kind: "Token";
|
|
94
94
|
}>, z.ZodObject<{
|
|
95
95
|
__kind: z.ZodLiteral<"Arithmetic">;
|
|
96
96
|
value: z.ZodEffects<z.ZodObject<{
|
|
@@ -103,13 +103,13 @@ declare const swappingSwapEgressIgnored: z.ZodObject<{
|
|
|
103
103
|
__kind: "Underflow" | "Overflow" | "DivisionByZero";
|
|
104
104
|
}>;
|
|
105
105
|
}, "strip", z.ZodTypeAny, {
|
|
106
|
-
value: "Underflow" | "Overflow" | "DivisionByZero";
|
|
107
106
|
__kind: "Arithmetic";
|
|
107
|
+
value: "Underflow" | "Overflow" | "DivisionByZero";
|
|
108
108
|
}, {
|
|
109
|
+
__kind: "Arithmetic";
|
|
109
110
|
value: {
|
|
110
111
|
__kind: "Underflow" | "Overflow" | "DivisionByZero";
|
|
111
112
|
};
|
|
112
|
-
__kind: "Arithmetic";
|
|
113
113
|
}>, z.ZodObject<{
|
|
114
114
|
__kind: z.ZodLiteral<"Transactional">;
|
|
115
115
|
value: z.ZodEffects<z.ZodObject<{
|
|
@@ -122,13 +122,13 @@ declare const swappingSwapEgressIgnored: z.ZodObject<{
|
|
|
122
122
|
__kind: "LimitReached" | "NoLayer";
|
|
123
123
|
}>;
|
|
124
124
|
}, "strip", z.ZodTypeAny, {
|
|
125
|
-
value: "LimitReached" | "NoLayer";
|
|
126
125
|
__kind: "Transactional";
|
|
126
|
+
value: "LimitReached" | "NoLayer";
|
|
127
127
|
}, {
|
|
128
|
+
__kind: "Transactional";
|
|
128
129
|
value: {
|
|
129
130
|
__kind: "LimitReached" | "NoLayer";
|
|
130
131
|
};
|
|
131
|
-
__kind: "Transactional";
|
|
132
132
|
}>, z.ZodObject<{
|
|
133
133
|
__kind: z.ZodLiteral<"Exhausted">;
|
|
134
134
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -155,7 +155,6 @@ declare const swappingSwapEgressIgnored: z.ZodObject<{
|
|
|
155
155
|
__kind: "RootNotAllowed";
|
|
156
156
|
}>]>;
|
|
157
157
|
}, "strip", z.ZodTypeAny, {
|
|
158
|
-
swapId: bigint;
|
|
159
158
|
reason: {
|
|
160
159
|
__kind: "Other";
|
|
161
160
|
} | {
|
|
@@ -163,11 +162,11 @@ declare const swappingSwapEgressIgnored: z.ZodObject<{
|
|
|
163
162
|
} | {
|
|
164
163
|
__kind: "BadOrigin";
|
|
165
164
|
} | {
|
|
165
|
+
__kind: "Module";
|
|
166
166
|
value: {
|
|
167
167
|
index: number;
|
|
168
168
|
error: `0x${string}`;
|
|
169
169
|
};
|
|
170
|
-
__kind: "Module";
|
|
171
170
|
} | {
|
|
172
171
|
__kind: "ConsumerRemaining";
|
|
173
172
|
} | {
|
|
@@ -175,14 +174,14 @@ declare const swappingSwapEgressIgnored: z.ZodObject<{
|
|
|
175
174
|
} | {
|
|
176
175
|
__kind: "TooManyConsumers";
|
|
177
176
|
} | {
|
|
178
|
-
value: "FundsUnavailable" | "OnlyProvider" | "BelowMinimum" | "CannotCreate" | "UnknownAsset" | "Frozen" | "Unsupported" | "CannotCreateHold" | "NotExpendable" | "Blocked";
|
|
179
177
|
__kind: "Token";
|
|
178
|
+
value: "FundsUnavailable" | "OnlyProvider" | "BelowMinimum" | "CannotCreate" | "UnknownAsset" | "Frozen" | "Unsupported" | "CannotCreateHold" | "NotExpendable" | "Blocked";
|
|
180
179
|
} | {
|
|
181
|
-
value: "Underflow" | "Overflow" | "DivisionByZero";
|
|
182
180
|
__kind: "Arithmetic";
|
|
181
|
+
value: "Underflow" | "Overflow" | "DivisionByZero";
|
|
183
182
|
} | {
|
|
184
|
-
value: "LimitReached" | "NoLayer";
|
|
185
183
|
__kind: "Transactional";
|
|
184
|
+
value: "LimitReached" | "NoLayer";
|
|
186
185
|
} | {
|
|
187
186
|
__kind: "Exhausted";
|
|
188
187
|
} | {
|
|
@@ -192,10 +191,10 @@ declare const swappingSwapEgressIgnored: z.ZodObject<{
|
|
|
192
191
|
} | {
|
|
193
192
|
__kind: "RootNotAllowed";
|
|
194
193
|
};
|
|
195
|
-
|
|
194
|
+
swapId: bigint;
|
|
195
|
+
asset: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
196
196
|
amount: bigint;
|
|
197
197
|
}, {
|
|
198
|
-
swapId: string | number;
|
|
199
198
|
reason: {
|
|
200
199
|
__kind: "Other";
|
|
201
200
|
} | {
|
|
@@ -203,11 +202,11 @@ declare const swappingSwapEgressIgnored: z.ZodObject<{
|
|
|
203
202
|
} | {
|
|
204
203
|
__kind: "BadOrigin";
|
|
205
204
|
} | {
|
|
205
|
+
__kind: "Module";
|
|
206
206
|
value: {
|
|
207
207
|
index: number;
|
|
208
208
|
error: string;
|
|
209
209
|
};
|
|
210
|
-
__kind: "Module";
|
|
211
210
|
} | {
|
|
212
211
|
__kind: "ConsumerRemaining";
|
|
213
212
|
} | {
|
|
@@ -215,20 +214,20 @@ declare const swappingSwapEgressIgnored: z.ZodObject<{
|
|
|
215
214
|
} | {
|
|
216
215
|
__kind: "TooManyConsumers";
|
|
217
216
|
} | {
|
|
217
|
+
__kind: "Token";
|
|
218
218
|
value: {
|
|
219
219
|
__kind: "FundsUnavailable" | "OnlyProvider" | "BelowMinimum" | "CannotCreate" | "UnknownAsset" | "Frozen" | "Unsupported" | "CannotCreateHold" | "NotExpendable" | "Blocked";
|
|
220
220
|
};
|
|
221
|
-
__kind: "Token";
|
|
222
221
|
} | {
|
|
222
|
+
__kind: "Arithmetic";
|
|
223
223
|
value: {
|
|
224
224
|
__kind: "Underflow" | "Overflow" | "DivisionByZero";
|
|
225
225
|
};
|
|
226
|
-
__kind: "Arithmetic";
|
|
227
226
|
} | {
|
|
227
|
+
__kind: "Transactional";
|
|
228
228
|
value: {
|
|
229
229
|
__kind: "LimitReached" | "NoLayer";
|
|
230
230
|
};
|
|
231
|
-
__kind: "Transactional";
|
|
232
231
|
} | {
|
|
233
232
|
__kind: "Exhausted";
|
|
234
233
|
} | {
|
|
@@ -238,8 +237,9 @@ declare const swappingSwapEgressIgnored: z.ZodObject<{
|
|
|
238
237
|
} | {
|
|
239
238
|
__kind: "RootNotAllowed";
|
|
240
239
|
};
|
|
240
|
+
swapId: string | number;
|
|
241
241
|
asset: {
|
|
242
|
-
__kind: "Eth" | "
|
|
242
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
243
243
|
};
|
|
244
244
|
amount: string | number;
|
|
245
245
|
}>;
|
|
@@ -14,24 +14,24 @@ declare const swappingSwapEgressScheduled: z.ZodObject<{
|
|
|
14
14
|
asset: z.ZodEffects<z.ZodObject<{
|
|
15
15
|
__kind: z.ZodEnum<["Eth", "Flip", "Usdc", "Dot", "Btc"]>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
__kind: "Eth" | "
|
|
17
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
18
18
|
}, {
|
|
19
|
-
__kind: "Eth" | "
|
|
20
|
-
}>, "Eth" | "
|
|
21
|
-
__kind: "Eth" | "
|
|
19
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
20
|
+
}>, "Eth" | "Dot" | "Btc" | "Flip" | "Usdc", {
|
|
21
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
22
22
|
}>;
|
|
23
23
|
amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
24
24
|
fee: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
swapId: bigint;
|
|
27
|
-
asset: "Eth" | "
|
|
27
|
+
asset: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
28
28
|
amount: bigint;
|
|
29
29
|
egressId: ["Ethereum" | "Polkadot" | "Bitcoin", bigint];
|
|
30
30
|
fee: bigint;
|
|
31
31
|
}, {
|
|
32
32
|
swapId: string | number;
|
|
33
33
|
asset: {
|
|
34
|
-
__kind: "Eth" | "
|
|
34
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
35
35
|
};
|
|
36
36
|
amount: string | number;
|
|
37
37
|
egressId: [{
|
|
@@ -14,24 +14,24 @@ declare const swappingSwapEgressScheduled: z.ZodObject<{
|
|
|
14
14
|
asset: z.ZodEffects<z.ZodObject<{
|
|
15
15
|
__kind: z.ZodEnum<["Eth", "Flip", "Usdc", "Dot", "Btc"]>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
__kind: "Eth" | "
|
|
17
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
18
18
|
}, {
|
|
19
|
-
__kind: "Eth" | "
|
|
20
|
-
}>, "Eth" | "
|
|
21
|
-
__kind: "Eth" | "
|
|
19
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
20
|
+
}>, "Eth" | "Dot" | "Btc" | "Flip" | "Usdc", {
|
|
21
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
22
22
|
}>;
|
|
23
23
|
amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
24
24
|
fee: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
26
|
swapId: bigint;
|
|
27
|
-
asset: "Eth" | "
|
|
27
|
+
asset: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
28
28
|
amount: bigint;
|
|
29
29
|
egressId: ["Ethereum" | "Polkadot" | "Bitcoin", bigint];
|
|
30
30
|
fee: bigint;
|
|
31
31
|
}, {
|
|
32
32
|
swapId: string | number;
|
|
33
33
|
asset: {
|
|
34
|
-
__kind: "Eth" | "
|
|
34
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
35
35
|
};
|
|
36
36
|
amount: string | number;
|
|
37
37
|
egressId: [{
|
|
@@ -5,44 +5,44 @@ declare const swappingSwapExecuted: z.ZodObject<{
|
|
|
5
5
|
sourceAsset: z.ZodEffects<z.ZodObject<{
|
|
6
6
|
__kind: z.ZodEnum<["Eth", "Flip", "Usdc", "Dot", "Btc"]>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
__kind: "Eth" | "
|
|
8
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
9
9
|
}, {
|
|
10
|
-
__kind: "Eth" | "
|
|
11
|
-
}>, "Eth" | "
|
|
12
|
-
__kind: "Eth" | "
|
|
10
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
11
|
+
}>, "Eth" | "Dot" | "Btc" | "Flip" | "Usdc", {
|
|
12
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
13
13
|
}>;
|
|
14
14
|
depositAmount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
15
15
|
swapInput: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
16
16
|
destinationAsset: z.ZodEffects<z.ZodObject<{
|
|
17
17
|
__kind: z.ZodEnum<["Eth", "Flip", "Usdc", "Dot", "Btc"]>;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
__kind: "Eth" | "
|
|
19
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
20
20
|
}, {
|
|
21
|
-
__kind: "Eth" | "
|
|
22
|
-
}>, "Eth" | "
|
|
23
|
-
__kind: "Eth" | "
|
|
21
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
22
|
+
}>, "Eth" | "Dot" | "Btc" | "Flip" | "Usdc", {
|
|
23
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
24
24
|
}>;
|
|
25
25
|
egressAmount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
26
26
|
swapOutput: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
27
27
|
intermediateAmount: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>>>;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
29
|
swapId: bigint;
|
|
30
|
-
sourceAsset: "Eth" | "
|
|
30
|
+
sourceAsset: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
31
31
|
depositAmount: bigint;
|
|
32
32
|
swapInput: bigint;
|
|
33
|
-
destinationAsset: "Eth" | "
|
|
33
|
+
destinationAsset: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
34
34
|
egressAmount: bigint;
|
|
35
35
|
swapOutput: bigint;
|
|
36
36
|
intermediateAmount?: bigint | null | undefined;
|
|
37
37
|
}, {
|
|
38
38
|
swapId: string | number;
|
|
39
39
|
sourceAsset: {
|
|
40
|
-
__kind: "Eth" | "
|
|
40
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
41
41
|
};
|
|
42
42
|
depositAmount: string | number;
|
|
43
43
|
swapInput: string | number;
|
|
44
44
|
destinationAsset: {
|
|
45
|
-
__kind: "Eth" | "
|
|
45
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
46
46
|
};
|
|
47
47
|
egressAmount: string | number;
|
|
48
48
|
swapOutput: string | number;
|
|
@@ -5,44 +5,44 @@ declare const swappingSwapExecuted: z.ZodObject<{
|
|
|
5
5
|
sourceAsset: z.ZodEffects<z.ZodObject<{
|
|
6
6
|
__kind: z.ZodEnum<["Eth", "Flip", "Usdc", "Dot", "Btc"]>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
__kind: "Eth" | "
|
|
8
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
9
9
|
}, {
|
|
10
|
-
__kind: "Eth" | "
|
|
11
|
-
}>, "Eth" | "
|
|
12
|
-
__kind: "Eth" | "
|
|
10
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
11
|
+
}>, "Eth" | "Dot" | "Btc" | "Flip" | "Usdc", {
|
|
12
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
13
13
|
}>;
|
|
14
14
|
depositAmount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
15
15
|
swapInput: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
16
16
|
destinationAsset: z.ZodEffects<z.ZodObject<{
|
|
17
17
|
__kind: z.ZodEnum<["Eth", "Flip", "Usdc", "Dot", "Btc"]>;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
__kind: "Eth" | "
|
|
19
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
20
20
|
}, {
|
|
21
|
-
__kind: "Eth" | "
|
|
22
|
-
}>, "Eth" | "
|
|
23
|
-
__kind: "Eth" | "
|
|
21
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
22
|
+
}>, "Eth" | "Dot" | "Btc" | "Flip" | "Usdc", {
|
|
23
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
24
24
|
}>;
|
|
25
25
|
egressAmount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
26
26
|
swapOutput: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
27
27
|
intermediateAmount: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>>>;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
29
|
swapId: bigint;
|
|
30
|
-
sourceAsset: "Eth" | "
|
|
30
|
+
sourceAsset: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
31
31
|
depositAmount: bigint;
|
|
32
32
|
swapInput: bigint;
|
|
33
|
-
destinationAsset: "Eth" | "
|
|
33
|
+
destinationAsset: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
34
34
|
egressAmount: bigint;
|
|
35
35
|
swapOutput: bigint;
|
|
36
36
|
intermediateAmount?: bigint | null | undefined;
|
|
37
37
|
}, {
|
|
38
38
|
swapId: string | number;
|
|
39
39
|
sourceAsset: {
|
|
40
|
-
__kind: "Eth" | "
|
|
40
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
41
41
|
};
|
|
42
42
|
depositAmount: string | number;
|
|
43
43
|
swapInput: string | number;
|
|
44
44
|
destinationAsset: {
|
|
45
|
-
__kind: "Eth" | "
|
|
45
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc";
|
|
46
46
|
};
|
|
47
47
|
egressAmount: string | number;
|
|
48
48
|
swapOutput: string | number;
|
|
@@ -13,62 +13,62 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
|
|
|
13
13
|
egressAmount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
14
14
|
egressFee: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
15
15
|
destinationAddress: z.ZodUnion<[z.ZodObject<{
|
|
16
|
-
__kind: z.ZodLiteral<"Eth">;
|
|
16
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
|
|
17
17
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
__kind: "Ethereum";
|
|
19
20
|
value: `0x${string}`;
|
|
20
|
-
__kind: "Eth";
|
|
21
21
|
}, {
|
|
22
|
-
value: string;
|
|
23
22
|
__kind: "Eth";
|
|
23
|
+
value: string;
|
|
24
24
|
}>, z.ZodObject<{
|
|
25
|
-
__kind: z.ZodLiteral<"Dot">;
|
|
26
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
25
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
|
|
26
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
|
|
29
|
-
__kind: "Dot";
|
|
30
|
-
}, {
|
|
28
|
+
__kind: "Polkadot";
|
|
31
29
|
value: string;
|
|
30
|
+
}, {
|
|
32
31
|
__kind: "Dot";
|
|
32
|
+
value: string;
|
|
33
33
|
}>, z.ZodObject<{
|
|
34
|
-
__kind: z.ZodLiteral<"Btc">;
|
|
35
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
34
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
|
|
35
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
|
|
38
|
-
__kind: "Btc";
|
|
39
|
-
}, {
|
|
37
|
+
__kind: "Bitcoin";
|
|
40
38
|
value: string;
|
|
39
|
+
}, {
|
|
41
40
|
__kind: "Btc";
|
|
41
|
+
value: string;
|
|
42
42
|
}>]>;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
|
-
egressAmount: bigint;
|
|
45
44
|
destinationAddress: {
|
|
45
|
+
__kind: "Ethereum";
|
|
46
46
|
value: `0x${string}`;
|
|
47
|
-
__kind: "Eth";
|
|
48
47
|
} | {
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
__kind: "Polkadot";
|
|
49
|
+
value: string;
|
|
51
50
|
} | {
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
__kind: "Bitcoin";
|
|
52
|
+
value: string;
|
|
54
53
|
};
|
|
55
54
|
egressId: ["Ethereum" | "Polkadot" | "Bitcoin", bigint];
|
|
55
|
+
egressAmount: bigint;
|
|
56
56
|
egressFee: bigint;
|
|
57
57
|
}, {
|
|
58
|
-
egressAmount: string | number;
|
|
59
58
|
destinationAddress: {
|
|
60
|
-
value: string;
|
|
61
59
|
__kind: "Eth";
|
|
62
|
-
} | {
|
|
63
60
|
value: string;
|
|
64
|
-
__kind: "Dot";
|
|
65
61
|
} | {
|
|
62
|
+
__kind: "Dot";
|
|
66
63
|
value: string;
|
|
64
|
+
} | {
|
|
67
65
|
__kind: "Btc";
|
|
66
|
+
value: string;
|
|
68
67
|
};
|
|
69
68
|
egressId: [{
|
|
70
69
|
__kind: "Ethereum" | "Polkadot" | "Bitcoin";
|
|
71
70
|
}, string | number];
|
|
71
|
+
egressAmount: string | number;
|
|
72
72
|
egressFee: string | number;
|
|
73
73
|
}>;
|
|
74
74
|
|
|
@@ -13,62 +13,62 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
|
|
|
13
13
|
egressAmount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
14
14
|
egressFee: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
15
15
|
destinationAddress: z.ZodUnion<[z.ZodObject<{
|
|
16
|
-
__kind: z.ZodLiteral<"Eth">;
|
|
16
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
|
|
17
17
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
18
18
|
}, "strip", z.ZodTypeAny, {
|
|
19
|
+
__kind: "Ethereum";
|
|
19
20
|
value: `0x${string}`;
|
|
20
|
-
__kind: "Eth";
|
|
21
21
|
}, {
|
|
22
|
-
value: string;
|
|
23
22
|
__kind: "Eth";
|
|
23
|
+
value: string;
|
|
24
24
|
}>, z.ZodObject<{
|
|
25
|
-
__kind: z.ZodLiteral<"Dot">;
|
|
26
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
25
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
|
|
26
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
|
|
29
|
-
__kind: "Dot";
|
|
30
|
-
}, {
|
|
28
|
+
__kind: "Polkadot";
|
|
31
29
|
value: string;
|
|
30
|
+
}, {
|
|
32
31
|
__kind: "Dot";
|
|
32
|
+
value: string;
|
|
33
33
|
}>, z.ZodObject<{
|
|
34
|
-
__kind: z.ZodLiteral<"Btc">;
|
|
35
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
34
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
|
|
35
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
|
|
38
|
-
__kind: "Btc";
|
|
39
|
-
}, {
|
|
37
|
+
__kind: "Bitcoin";
|
|
40
38
|
value: string;
|
|
39
|
+
}, {
|
|
41
40
|
__kind: "Btc";
|
|
41
|
+
value: string;
|
|
42
42
|
}>]>;
|
|
43
43
|
}, "strip", z.ZodTypeAny, {
|
|
44
|
-
egressAmount: bigint;
|
|
45
44
|
destinationAddress: {
|
|
45
|
+
__kind: "Ethereum";
|
|
46
46
|
value: `0x${string}`;
|
|
47
|
-
__kind: "Eth";
|
|
48
47
|
} | {
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
__kind: "Polkadot";
|
|
49
|
+
value: string;
|
|
51
50
|
} | {
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
__kind: "Bitcoin";
|
|
52
|
+
value: string;
|
|
54
53
|
};
|
|
55
54
|
egressId: ["Ethereum" | "Polkadot" | "Bitcoin", bigint];
|
|
55
|
+
egressAmount: bigint;
|
|
56
56
|
egressFee: bigint;
|
|
57
57
|
}, {
|
|
58
|
-
egressAmount: string | number;
|
|
59
58
|
destinationAddress: {
|
|
60
|
-
value: string;
|
|
61
59
|
__kind: "Eth";
|
|
62
|
-
} | {
|
|
63
60
|
value: string;
|
|
64
|
-
__kind: "Dot";
|
|
65
61
|
} | {
|
|
62
|
+
__kind: "Dot";
|
|
66
63
|
value: string;
|
|
64
|
+
} | {
|
|
67
65
|
__kind: "Btc";
|
|
66
|
+
value: string;
|
|
68
67
|
};
|
|
69
68
|
egressId: [{
|
|
70
69
|
__kind: "Ethereum" | "Polkadot" | "Bitcoin";
|
|
71
70
|
}, string | number];
|
|
71
|
+
egressAmount: string | number;
|
|
72
72
|
egressFee: string | number;
|
|
73
73
|
}>;
|
|
74
74
|
|
|
@@ -13,18 +13,18 @@ declare const bitcoinBroadcasterTransactionBroadcastRequest: z.ZodObject<{
|
|
|
13
13
|
transactionOutId: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
15
|
broadcastId: number;
|
|
16
|
+
transactionOutId: `0x${string}`;
|
|
16
17
|
nominee: string;
|
|
17
18
|
transactionPayload: {
|
|
18
19
|
encodedTransaction: `0x${string}`;
|
|
19
20
|
};
|
|
20
|
-
transactionOutId: `0x${string}`;
|
|
21
21
|
}, {
|
|
22
22
|
broadcastId: number;
|
|
23
|
+
transactionOutId: string;
|
|
23
24
|
nominee: string;
|
|
24
25
|
transactionPayload: {
|
|
25
26
|
encodedTransaction: string;
|
|
26
27
|
};
|
|
27
|
-
transactionOutId: string;
|
|
28
28
|
}>;
|
|
29
29
|
|
|
30
30
|
export { bitcoinBroadcasterTransactionBroadcastRequest };
|
|
@@ -13,18 +13,18 @@ declare const bitcoinBroadcasterTransactionBroadcastRequest: z.ZodObject<{
|
|
|
13
13
|
transactionOutId: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
14
14
|
}, "strip", z.ZodTypeAny, {
|
|
15
15
|
broadcastId: number;
|
|
16
|
+
transactionOutId: `0x${string}`;
|
|
16
17
|
nominee: string;
|
|
17
18
|
transactionPayload: {
|
|
18
19
|
encodedTransaction: `0x${string}`;
|
|
19
20
|
};
|
|
20
|
-
transactionOutId: `0x${string}`;
|
|
21
21
|
}, {
|
|
22
22
|
broadcastId: number;
|
|
23
|
+
transactionOutId: string;
|
|
23
24
|
nominee: string;
|
|
24
25
|
transactionPayload: {
|
|
25
26
|
encodedTransaction: string;
|
|
26
27
|
};
|
|
27
|
-
transactionOutId: string;
|
|
28
28
|
}>;
|
|
29
29
|
|
|
30
30
|
export { bitcoinBroadcasterTransactionBroadcastRequest };
|
package/dist/131/common.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true})
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }// generated/131/common.ts
|
|
2
2
|
var _zod = require('zod');
|
|
3
|
-
var _ss58 = require('@chainflip/utils/ss58');
|
|
3
|
+
var _ss58 = require('@chainflip/utils/ss58'); var ss58 = _interopRequireWildcard(_ss58);
|
|
4
4
|
var hexString = _zod.z.string().refine((v) => /^0x[\da-f]*$/i.test(v), { message: "Invalid hex string" });
|
|
5
5
|
var simpleEnum = (values) => _zod.z.object({ __kind: _zod.z.enum(values) }).transform(({ __kind }) => __kind);
|
|
6
6
|
var cfPrimitivesChainsAssetsEthAsset = simpleEnum(["Eth", "Flip", "Usdc", "Usdt"]);
|
|
@@ -111,7 +111,7 @@ var spRuntimeDispatchError = _zod.z.union([
|
|
|
111
111
|
var accountId = _zod.z.union([
|
|
112
112
|
hexString,
|
|
113
113
|
_zod.z.string().regex(/^[0-9a-f]+$/).transform((v) => `0x${v}`)
|
|
114
|
-
]).transform((value) =>
|
|
114
|
+
]).transform((value) => ss58.encode({ data: value, ss58Format: 2112 }));
|
|
115
115
|
var stateChainRuntimeChainflipOffencesOffence = simpleEnum([
|
|
116
116
|
"ParticipateSigningFailed",
|
|
117
117
|
"ParticipateKeygenFailed",
|
|
@@ -144,9 +144,18 @@ var cfChainsDotPolkadotTransactionId = _zod.z.object({
|
|
|
144
144
|
});
|
|
145
145
|
var cfChainsBtcBitcoinTransactionData = _zod.z.object({ encodedTransaction: hexString });
|
|
146
146
|
var cfChainsAddressEncodedAddress = _zod.z.union([
|
|
147
|
-
_zod.z.object({
|
|
148
|
-
|
|
149
|
-
|
|
147
|
+
_zod.z.object({
|
|
148
|
+
__kind: _zod.z.literal("Eth").transform(() => "Ethereum"),
|
|
149
|
+
value: hexString
|
|
150
|
+
}),
|
|
151
|
+
_zod.z.object({
|
|
152
|
+
__kind: _zod.z.literal("Dot").transform(() => "Polkadot"),
|
|
153
|
+
value: hexString.transform((value) => ss58.encode({ data: value, ss58Format: 0 }))
|
|
154
|
+
}),
|
|
155
|
+
_zod.z.object({
|
|
156
|
+
__kind: _zod.z.literal("Btc").transform(() => "Bitcoin"),
|
|
157
|
+
value: hexString.transform((value) => Buffer.from(value.slice(2), "hex").toString("utf8"))
|
|
158
|
+
})
|
|
150
159
|
]);
|
|
151
160
|
var cfPrimitivesChainsAssetsAnyAsset = simpleEnum([
|
|
152
161
|
"Eth",
|