@chainflip/processor 1.5.1 → 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/bitcoinBroadcaster/transactionBroadcastRequest.d.cts +2 -2
- package/dist/100/bitcoinBroadcaster/transactionBroadcastRequest.d.ts +2 -2
- 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/environment/runtimeSafeModeUpdated.d.cts +28 -28
- package/dist/100/environment/runtimeSafeModeUpdated.d.ts +28 -28
- package/dist/100/funding/boundExecutorAddress.d.cts +2 -2
- package/dist/100/funding/boundExecutorAddress.d.ts +2 -2
- package/dist/100/funding/boundRedeemAddress.d.cts +2 -2
- package/dist/100/funding/boundRedeemAddress.d.ts +2 -2
- package/dist/100/funding/failedFundingAttempt.d.cts +2 -2
- package/dist/100/funding/failedFundingAttempt.d.ts +2 -2
- package/dist/100/funding/funded.d.cts +2 -2
- package/dist/100/funding/funded.d.ts +2 -2
- package/dist/100/funding/redemptionRequested.d.cts +2 -2
- package/dist/100/funding/redemptionRequested.d.ts +2 -2
- package/dist/100/liquidityProvider/liquidityDepositAddressReady.d.cts +15 -15
- package/dist/100/liquidityProvider/liquidityDepositAddressReady.d.ts +15 -15
- package/dist/100/liquidityProvider/withdrawalEgressScheduled.d.cts +15 -15
- package/dist/100/liquidityProvider/withdrawalEgressScheduled.d.ts +15 -15
- 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/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/111/liquidityPools/scheduledLimitOrderUpdateDispatchFailure.d.cts +2 -2
- package/dist/111/liquidityPools/scheduledLimitOrderUpdateDispatchFailure.d.ts +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 +15 -15
- package/dist/120/swapping/ccmFailed.d.ts +15 -15
- package/dist/120/swapping/withdrawalRequested.d.cts +15 -15
- package/dist/120/swapping/withdrawalRequested.d.ts +15 -15
- 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/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/evmThresholdSigner/failureReportProcessed.d.cts +2 -2
- package/dist/141/evmThresholdSigner/failureReportProcessed.d.ts +2 -2
- package/dist/141/evmThresholdSigner/retryRequested.d.cts +2 -2
- package/dist/141/evmThresholdSigner/retryRequested.d.ts +2 -2
- package/dist/141/evmThresholdSigner/thresholdDispatchComplete.d.cts +2 -2
- package/dist/141/evmThresholdSigner/thresholdDispatchComplete.d.ts +2 -2
- package/dist/141/evmThresholdSigner/thresholdSignatureFailed.d.cts +2 -2
- package/dist/141/evmThresholdSigner/thresholdSignatureFailed.d.ts +2 -2
- package/dist/141/evmThresholdSigner/thresholdSignatureRequest.d.cts +2 -2
- package/dist/141/evmThresholdSigner/thresholdSignatureRequest.d.ts +2 -2
- package/dist/141/evmThresholdSigner/thresholdSignatureSuccess.d.cts +2 -2
- package/dist/141/evmThresholdSigner/thresholdSignatureSuccess.d.ts +2 -2
- package/dist/141/liquidityPools/limitOrderUpdated.d.cts +4 -4
- package/dist/141/liquidityPools/limitOrderUpdated.d.ts +4 -4
- package/dist/141/liquidityPools/rangeOrderUpdated.d.cts +4 -4
- package/dist/141/liquidityPools/rangeOrderUpdated.d.ts +4 -4
- 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/polkadotIngressEgress/boostFundsAdded.d.cts +2 -2
- package/dist/141/polkadotIngressEgress/boostFundsAdded.d.ts +2 -2
- package/dist/141/polkadotIngressEgress/ccmEgressInvalid.d.cts +16 -16
- package/dist/141/polkadotIngressEgress/ccmEgressInvalid.d.ts +16 -16
- package/dist/141/polkadotIngressEgress/stoppedBoosting.d.cts +2 -2
- package/dist/141/polkadotIngressEgress/stoppedBoosting.d.ts +2 -2
- package/dist/141/swapping/batchSwapFailed.d.cts +8 -8
- package/dist/141/swapping/batchSwapFailed.d.ts +8 -8
- package/dist/141/swapping/ccmDepositReceived.d.cts +90 -90
- package/dist/141/swapping/ccmDepositReceived.d.ts +90 -90
- package/dist/141/swapping/ccmFailed.d.cts +126 -126
- package/dist/141/swapping/ccmFailed.d.ts +126 -126
- package/dist/141/swapping/maximumSwapAmountSet.d.cts +6 -6
- package/dist/141/swapping/maximumSwapAmountSet.d.ts +6 -6
- package/dist/141/swapping/swapAmountConfiscated.d.cts +12 -12
- package/dist/141/swapping/swapAmountConfiscated.d.ts +12 -12
- package/dist/141/swapping/swapDepositAddressReady.d.cts +64 -64
- package/dist/141/swapping/swapDepositAddressReady.d.ts +64 -64
- package/dist/141/swapping/swapEgressIgnored.d.cts +24 -24
- package/dist/141/swapping/swapEgressIgnored.d.ts +24 -24
- package/dist/141/swapping/swapEgressScheduled.d.cts +11 -11
- package/dist/141/swapping/swapEgressScheduled.d.ts +11 -11
- package/dist/141/swapping/swapExecuted.d.cts +88 -88
- package/dist/141/swapping/swapExecuted.d.ts +88 -88
- package/dist/141/swapping/swapScheduled.d.cts +150 -150
- package/dist/141/swapping/swapScheduled.d.ts +150 -150
- package/dist/141/swapping/withdrawalRequested.d.cts +36 -36
- package/dist/141/swapping/withdrawalRequested.d.ts +36 -36
- package/dist/150/arbitrumIngressEgress/ccmBroadcastRequested.d.cts +2 -2
- package/dist/150/arbitrumIngressEgress/ccmBroadcastRequested.d.ts +2 -2
- package/dist/150/arbitrumIngressEgress/ccmEgressInvalid.d.cts +4 -4
- package/dist/150/arbitrumIngressEgress/ccmEgressInvalid.d.ts +4 -4
- package/dist/150/assetBalances/refundScheduled.d.cts +50 -50
- package/dist/150/assetBalances/refundScheduled.d.ts +50 -50
- package/dist/150/assetBalances/refundSkipped.d.cts +70 -70
- package/dist/150/assetBalances/refundSkipped.d.ts +70 -70
- package/dist/150/common.cjs +25 -8
- package/dist/150/common.d.cts +64 -64
- package/dist/150/common.d.ts +64 -64
- package/dist/150/common.mjs +24 -7
- 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/ccmEgressInvalid.d.cts +4 -4
- package/dist/150/polkadotIngressEgress/ccmEgressInvalid.d.ts +4 -4
- package/dist/150/solanaIngressEgress/boostFundsAdded.d.cts +2 -2
- package/dist/150/solanaIngressEgress/boostFundsAdded.d.ts +2 -2
- package/dist/150/solanaIngressEgress/ccmEgressInvalid.d.cts +16 -16
- package/dist/150/solanaIngressEgress/ccmEgressInvalid.d.ts +16 -16
- package/dist/150/solanaIngressEgress/depositFinalised.d.cts +2 -2
- package/dist/150/solanaIngressEgress/depositFinalised.d.ts +2 -2
- package/dist/150/solanaIngressEgress/depositIgnored.d.cts +2 -2
- package/dist/150/solanaIngressEgress/depositIgnored.d.ts +2 -2
- package/dist/150/solanaIngressEgress/depositWitnessRejected.d.cts +20 -20
- package/dist/150/solanaIngressEgress/depositWitnessRejected.d.ts +20 -20
- package/dist/150/solanaIngressEgress/failedToBuildAllBatchCall.d.cts +28 -28
- package/dist/150/solanaIngressEgress/failedToBuildAllBatchCall.d.ts +28 -28
- 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/batchSwapFailed.d.cts +8 -8
- package/dist/150/swapping/batchSwapFailed.d.ts +8 -8
- package/dist/150/swapping/ccmDepositReceived.d.cts +104 -104
- package/dist/150/swapping/ccmDepositReceived.d.ts +104 -104
- package/dist/150/swapping/ccmFailed.d.cts +151 -151
- package/dist/150/swapping/ccmFailed.d.ts +151 -151
- package/dist/150/swapping/maximumSwapAmountSet.d.cts +6 -6
- package/dist/150/swapping/maximumSwapAmountSet.d.ts +6 -6
- package/dist/150/swapping/refundEgressIgnored.d.cts +24 -24
- package/dist/150/swapping/refundEgressIgnored.d.ts +24 -24
- package/dist/150/swapping/refundEgressScheduled.d.cts +8 -8
- package/dist/150/swapping/refundEgressScheduled.d.ts +8 -8
- package/dist/150/swapping/swapAmountConfiscated.d.cts +12 -12
- package/dist/150/swapping/swapAmountConfiscated.d.ts +12 -12
- package/dist/150/swapping/swapDepositAddressReady.d.cts +127 -127
- package/dist/150/swapping/swapDepositAddressReady.d.ts +127 -127
- package/dist/150/swapping/swapEgressIgnored.d.cts +24 -24
- package/dist/150/swapping/swapEgressIgnored.d.ts +24 -24
- package/dist/150/swapping/swapEgressScheduled.d.cts +8 -8
- package/dist/150/swapping/swapEgressScheduled.d.ts +8 -8
- package/dist/150/swapping/swapExecuted.d.cts +94 -94
- package/dist/150/swapping/swapExecuted.d.ts +94 -94
- package/dist/150/swapping/swapScheduled.d.cts +175 -175
- package/dist/150/swapping/swapScheduled.d.ts +175 -175
- package/dist/150/swapping/withdrawalRequested.d.cts +40 -40
- package/dist/150/swapping/withdrawalRequested.d.ts +40 -40
- 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 +8 -8
- package/dist/160/arbitrumIngressEgress/depositBoosted.d.ts +8 -8
- package/dist/160/arbitrumIngressEgress/depositFinalised.d.cts +6 -6
- package/dist/160/arbitrumIngressEgress/depositFinalised.d.ts +6 -6
- 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 +8 -8
- package/dist/160/bitcoinIngressEgress/depositBoosted.d.ts +8 -8
- package/dist/160/bitcoinIngressEgress/depositFinalised.d.cts +6 -6
- package/dist/160/bitcoinIngressEgress/depositFinalised.d.ts +6 -6
- 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/liquidityPools/limitOrderUpdated.d.cts +8 -8
- package/dist/160/liquidityPools/limitOrderUpdated.d.ts +8 -8
- package/dist/160/liquidityPools/rangeOrderUpdated.d.cts +8 -8
- package/dist/160/liquidityPools/rangeOrderUpdated.d.ts +8 -8
- 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/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
|
@@ -12,43 +12,43 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
|
|
|
12
12
|
}>, z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>], null>;
|
|
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
|
destinationAddress: z.ZodUnion<[z.ZodObject<{
|
|
15
|
-
__kind: z.ZodLiteral<"Eth">;
|
|
15
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
|
|
16
16
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
__kind: "
|
|
18
|
+
__kind: "Ethereum";
|
|
19
19
|
value: `0x${string}`;
|
|
20
20
|
}, {
|
|
21
21
|
__kind: "Eth";
|
|
22
22
|
value: string;
|
|
23
23
|
}>, z.ZodObject<{
|
|
24
|
-
__kind: z.ZodLiteral<"Dot">;
|
|
25
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
24
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
|
|
25
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
__kind: "
|
|
28
|
-
value:
|
|
27
|
+
__kind: "Polkadot";
|
|
28
|
+
value: string;
|
|
29
29
|
}, {
|
|
30
30
|
__kind: "Dot";
|
|
31
31
|
value: string;
|
|
32
32
|
}>, z.ZodObject<{
|
|
33
|
-
__kind: z.ZodLiteral<"Btc">;
|
|
34
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
33
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
|
|
34
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
__kind: "
|
|
37
|
-
value:
|
|
36
|
+
__kind: "Bitcoin";
|
|
37
|
+
value: string;
|
|
38
38
|
}, {
|
|
39
39
|
__kind: "Btc";
|
|
40
40
|
value: string;
|
|
41
41
|
}>]>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
43
|
destinationAddress: {
|
|
44
|
-
__kind: "
|
|
44
|
+
__kind: "Ethereum";
|
|
45
45
|
value: `0x${string}`;
|
|
46
46
|
} | {
|
|
47
|
-
__kind: "
|
|
48
|
-
value:
|
|
47
|
+
__kind: "Polkadot";
|
|
48
|
+
value: string;
|
|
49
49
|
} | {
|
|
50
|
-
__kind: "
|
|
51
|
-
value:
|
|
50
|
+
__kind: "Bitcoin";
|
|
51
|
+
value: string;
|
|
52
52
|
};
|
|
53
53
|
egressId: ["Ethereum" | "Polkadot" | "Bitcoin", bigint];
|
|
54
54
|
egressAmount: bigint;
|
|
@@ -12,43 +12,43 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
|
|
|
12
12
|
}>, z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>], null>;
|
|
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
|
destinationAddress: z.ZodUnion<[z.ZodObject<{
|
|
15
|
-
__kind: z.ZodLiteral<"Eth">;
|
|
15
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
|
|
16
16
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
__kind: "
|
|
18
|
+
__kind: "Ethereum";
|
|
19
19
|
value: `0x${string}`;
|
|
20
20
|
}, {
|
|
21
21
|
__kind: "Eth";
|
|
22
22
|
value: string;
|
|
23
23
|
}>, z.ZodObject<{
|
|
24
|
-
__kind: z.ZodLiteral<"Dot">;
|
|
25
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
24
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
|
|
25
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
__kind: "
|
|
28
|
-
value:
|
|
27
|
+
__kind: "Polkadot";
|
|
28
|
+
value: string;
|
|
29
29
|
}, {
|
|
30
30
|
__kind: "Dot";
|
|
31
31
|
value: string;
|
|
32
32
|
}>, z.ZodObject<{
|
|
33
|
-
__kind: z.ZodLiteral<"Btc">;
|
|
34
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
33
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
|
|
34
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
__kind: "
|
|
37
|
-
value:
|
|
36
|
+
__kind: "Bitcoin";
|
|
37
|
+
value: string;
|
|
38
38
|
}, {
|
|
39
39
|
__kind: "Btc";
|
|
40
40
|
value: string;
|
|
41
41
|
}>]>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, {
|
|
43
43
|
destinationAddress: {
|
|
44
|
-
__kind: "
|
|
44
|
+
__kind: "Ethereum";
|
|
45
45
|
value: `0x${string}`;
|
|
46
46
|
} | {
|
|
47
|
-
__kind: "
|
|
48
|
-
value:
|
|
47
|
+
__kind: "Polkadot";
|
|
48
|
+
value: string;
|
|
49
49
|
} | {
|
|
50
|
-
__kind: "
|
|
51
|
-
value:
|
|
50
|
+
__kind: "Bitcoin";
|
|
51
|
+
value: string;
|
|
52
52
|
};
|
|
53
53
|
egressId: ["Ethereum" | "Polkadot" | "Bitcoin", bigint];
|
|
54
54
|
egressAmount: bigint;
|
package/dist/102/common.cjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
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/102/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 accountId = _zod.z.union([
|
|
6
6
|
hexString,
|
|
7
7
|
_zod.z.string().regex(/^[0-9a-f]+$/).transform((v) => `0x${v}`)
|
|
8
|
-
]).transform((value) =>
|
|
8
|
+
]).transform((value) => ss58.encode({ data: value, ss58Format: 2112 }));
|
|
9
9
|
var simpleEnum = (values) => _zod.z.object({ __kind: _zod.z.enum(values) }).transform(({ __kind }) => __kind);
|
|
10
10
|
var cfPrimitivesAccountRole = simpleEnum([
|
|
11
11
|
"Unregistered",
|
package/dist/102/common.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// generated/102/common.ts
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import
|
|
3
|
+
import * as ss58 from "@chainflip/utils/ss58";
|
|
4
4
|
var hexString = z.string().refine((v) => /^0x[\da-f]*$/i.test(v), { message: "Invalid hex string" });
|
|
5
5
|
var accountId = z.union([
|
|
6
6
|
hexString,
|
|
7
7
|
z.string().regex(/^[0-9a-f]+$/).transform((v) => `0x${v}`)
|
|
8
|
-
]).transform((value) => encode({ data: value, ss58Format: 2112 }));
|
|
8
|
+
]).transform((value) => ss58.encode({ data: value, ss58Format: 2112 }));
|
|
9
9
|
var simpleEnum = (values) => z.object({ __kind: z.enum(values) }).transform(({ __kind }) => __kind);
|
|
10
10
|
var cfPrimitivesAccountRole = simpleEnum([
|
|
11
11
|
"Unregistered",
|
package/dist/111/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/111/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 palletCfBroadcastBroadcastAttemptId = _zod.z.object({
|
|
5
5
|
broadcastId: _zod.z.number(),
|
|
6
6
|
attemptCount: _zod.z.number()
|
|
@@ -24,7 +24,7 @@ var cfPrimitivesChainsAssetsAnyAsset = simpleEnum(["Eth", "Flip", "Usdc", "Dot",
|
|
|
24
24
|
var accountId = _zod.z.union([
|
|
25
25
|
hexString,
|
|
26
26
|
_zod.z.string().regex(/^[0-9a-f]+$/).transform((v) => `0x${v}`)
|
|
27
|
-
]).transform((value) =>
|
|
27
|
+
]).transform((value) => ss58.encode({ data: value, ss58Format: 2112 }));
|
|
28
28
|
var palletCfPoolsAssetsMapU128 = _zod.z.object({ base: numberOrHex, quote: numberOrHex });
|
|
29
29
|
var palletCfPoolsRangeOrderChange = _zod.z.object({
|
|
30
30
|
liquidity: numberOrHex,
|
package/dist/111/common.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// generated/111/common.ts
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import
|
|
3
|
+
import * as ss58 from "@chainflip/utils/ss58";
|
|
4
4
|
var palletCfBroadcastBroadcastAttemptId = z.object({
|
|
5
5
|
broadcastId: z.number(),
|
|
6
6
|
attemptCount: z.number()
|
|
@@ -24,7 +24,7 @@ var cfPrimitivesChainsAssetsAnyAsset = simpleEnum(["Eth", "Flip", "Usdc", "Dot",
|
|
|
24
24
|
var accountId = z.union([
|
|
25
25
|
hexString,
|
|
26
26
|
z.string().regex(/^[0-9a-f]+$/).transform((v) => `0x${v}`)
|
|
27
|
-
]).transform((value) => encode({ data: value, ss58Format: 2112 }));
|
|
27
|
+
]).transform((value) => ss58.encode({ data: value, ss58Format: 2112 }));
|
|
28
28
|
var palletCfPoolsAssetsMapU128 = z.object({ base: numberOrHex, quote: numberOrHex });
|
|
29
29
|
var palletCfPoolsRangeOrderChange = z.object({
|
|
30
30
|
liquidity: numberOrHex,
|
|
@@ -147,6 +147,7 @@ declare const liquidityPoolsScheduledLimitOrderUpdateDispatchFailure: z.ZodObjec
|
|
|
147
147
|
}>]>;
|
|
148
148
|
}, "strip", z.ZodTypeAny, {
|
|
149
149
|
lp: string;
|
|
150
|
+
orderId: bigint;
|
|
150
151
|
error: {
|
|
151
152
|
__kind: "Other";
|
|
152
153
|
} | {
|
|
@@ -183,9 +184,9 @@ declare const liquidityPoolsScheduledLimitOrderUpdateDispatchFailure: z.ZodObjec
|
|
|
183
184
|
} | {
|
|
184
185
|
__kind: "RootNotAllowed";
|
|
185
186
|
};
|
|
186
|
-
orderId: bigint;
|
|
187
187
|
}, {
|
|
188
188
|
lp: string;
|
|
189
|
+
orderId: string | number;
|
|
189
190
|
error: {
|
|
190
191
|
__kind: "Other";
|
|
191
192
|
} | {
|
|
@@ -228,7 +229,6 @@ declare const liquidityPoolsScheduledLimitOrderUpdateDispatchFailure: z.ZodObjec
|
|
|
228
229
|
} | {
|
|
229
230
|
__kind: "RootNotAllowed";
|
|
230
231
|
};
|
|
231
|
-
orderId: string | number;
|
|
232
232
|
}>;
|
|
233
233
|
|
|
234
234
|
export { liquidityPoolsScheduledLimitOrderUpdateDispatchFailure };
|
|
@@ -147,6 +147,7 @@ declare const liquidityPoolsScheduledLimitOrderUpdateDispatchFailure: z.ZodObjec
|
|
|
147
147
|
}>]>;
|
|
148
148
|
}, "strip", z.ZodTypeAny, {
|
|
149
149
|
lp: string;
|
|
150
|
+
orderId: bigint;
|
|
150
151
|
error: {
|
|
151
152
|
__kind: "Other";
|
|
152
153
|
} | {
|
|
@@ -183,9 +184,9 @@ declare const liquidityPoolsScheduledLimitOrderUpdateDispatchFailure: z.ZodObjec
|
|
|
183
184
|
} | {
|
|
184
185
|
__kind: "RootNotAllowed";
|
|
185
186
|
};
|
|
186
|
-
orderId: bigint;
|
|
187
187
|
}, {
|
|
188
188
|
lp: string;
|
|
189
|
+
orderId: string | number;
|
|
189
190
|
error: {
|
|
190
191
|
__kind: "Other";
|
|
191
192
|
} | {
|
|
@@ -228,7 +229,6 @@ declare const liquidityPoolsScheduledLimitOrderUpdateDispatchFailure: z.ZodObjec
|
|
|
228
229
|
} | {
|
|
229
230
|
__kind: "RootNotAllowed";
|
|
230
231
|
};
|
|
231
|
-
orderId: string | number;
|
|
232
232
|
}>;
|
|
233
233
|
|
|
234
234
|
export { liquidityPoolsScheduledLimitOrderUpdateDispatchFailure };
|
package/dist/120/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/120/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 cfChainsBtcConsolidationParameters = _zod.z.object({
|
|
5
5
|
consolidationThreshold: _zod.z.number(),
|
|
6
6
|
consolidationSize: _zod.z.number()
|
|
@@ -9,7 +9,7 @@ var hexString = _zod.z.string().refine((v) => /^0x[\da-f]*$/i.test(v), { message
|
|
|
9
9
|
var accountId = _zod.z.union([
|
|
10
10
|
hexString,
|
|
11
11
|
_zod.z.string().regex(/^[0-9a-f]+$/).transform((v) => `0x${v}`)
|
|
12
|
-
]).transform((value) =>
|
|
12
|
+
]).transform((value) => ss58.encode({ data: value, ss58Format: 2112 }));
|
|
13
13
|
var numericString = _zod.z.string().refine((v) => /^\d+$/.test(v), { message: "Invalid numeric string" });
|
|
14
14
|
var numberOrHex = _zod.z.union([_zod.z.number(), hexString, numericString]).transform((n) => BigInt(n));
|
|
15
15
|
var simpleEnum = (values) => _zod.z.object({ __kind: _zod.z.enum(values) }).transform(({ __kind }) => __kind);
|
|
@@ -68,9 +68,18 @@ var cfChainsDotPolkadotTransactionData = _zod.z.object({ encodedExtrinsic: hexSt
|
|
|
68
68
|
var cfChainsBtcBitcoinTransactionData = _zod.z.object({ encodedTransaction: hexString });
|
|
69
69
|
var cfPrimitivesChainsAssetsAnyAsset = simpleEnum(["Eth", "Flip", "Usdc", "Dot", "Btc"]);
|
|
70
70
|
var cfChainsAddressEncodedAddress = _zod.z.union([
|
|
71
|
-
_zod.z.object({
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
_zod.z.object({
|
|
72
|
+
__kind: _zod.z.literal("Eth").transform(() => "Ethereum"),
|
|
73
|
+
value: hexString
|
|
74
|
+
}),
|
|
75
|
+
_zod.z.object({
|
|
76
|
+
__kind: _zod.z.literal("Dot").transform(() => "Polkadot"),
|
|
77
|
+
value: hexString.transform((value) => ss58.encode({ data: value, ss58Format: 0 }))
|
|
78
|
+
}),
|
|
79
|
+
_zod.z.object({
|
|
80
|
+
__kind: _zod.z.literal("Btc").transform(() => "Bitcoin"),
|
|
81
|
+
value: hexString.transform((value) => Buffer.from(value.slice(2), "hex").toString("utf8"))
|
|
82
|
+
})
|
|
74
83
|
]);
|
|
75
84
|
var palletCfSwappingCcmFailReason = simpleEnum([
|
|
76
85
|
"UnsupportedForTargetChain",
|
package/dist/120/common.d.cts
CHANGED
|
@@ -336,29 +336,29 @@ declare const cfPrimitivesChainsAssetsAnyAsset: z.ZodEffects<z.ZodObject<{
|
|
|
336
336
|
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
|
|
337
337
|
}>;
|
|
338
338
|
declare const cfChainsAddressEncodedAddress: z.ZodUnion<[z.ZodObject<{
|
|
339
|
-
__kind: z.ZodLiteral<"Eth">;
|
|
339
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
|
|
340
340
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
341
341
|
}, "strip", z.ZodTypeAny, {
|
|
342
342
|
value: `0x${string}`;
|
|
343
|
-
__kind: "
|
|
343
|
+
__kind: "Ethereum";
|
|
344
344
|
}, {
|
|
345
345
|
value: string;
|
|
346
346
|
__kind: "Eth";
|
|
347
347
|
}>, z.ZodObject<{
|
|
348
|
-
__kind: z.ZodLiteral<"Dot">;
|
|
349
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
348
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
|
|
349
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
350
350
|
}, "strip", z.ZodTypeAny, {
|
|
351
|
-
value:
|
|
352
|
-
__kind: "
|
|
351
|
+
value: string;
|
|
352
|
+
__kind: "Polkadot";
|
|
353
353
|
}, {
|
|
354
354
|
value: string;
|
|
355
355
|
__kind: "Dot";
|
|
356
356
|
}>, z.ZodObject<{
|
|
357
|
-
__kind: z.ZodLiteral<"Btc">;
|
|
358
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
357
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
|
|
358
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
359
359
|
}, "strip", z.ZodTypeAny, {
|
|
360
|
-
value:
|
|
361
|
-
__kind: "
|
|
360
|
+
value: string;
|
|
361
|
+
__kind: "Bitcoin";
|
|
362
362
|
}, {
|
|
363
363
|
value: string;
|
|
364
364
|
__kind: "Btc";
|
package/dist/120/common.d.ts
CHANGED
|
@@ -336,29 +336,29 @@ declare const cfPrimitivesChainsAssetsAnyAsset: z.ZodEffects<z.ZodObject<{
|
|
|
336
336
|
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc";
|
|
337
337
|
}>;
|
|
338
338
|
declare const cfChainsAddressEncodedAddress: z.ZodUnion<[z.ZodObject<{
|
|
339
|
-
__kind: z.ZodLiteral<"Eth">;
|
|
339
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
|
|
340
340
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
341
341
|
}, "strip", z.ZodTypeAny, {
|
|
342
342
|
value: `0x${string}`;
|
|
343
|
-
__kind: "
|
|
343
|
+
__kind: "Ethereum";
|
|
344
344
|
}, {
|
|
345
345
|
value: string;
|
|
346
346
|
__kind: "Eth";
|
|
347
347
|
}>, z.ZodObject<{
|
|
348
|
-
__kind: z.ZodLiteral<"Dot">;
|
|
349
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
348
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
|
|
349
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
350
350
|
}, "strip", z.ZodTypeAny, {
|
|
351
|
-
value:
|
|
352
|
-
__kind: "
|
|
351
|
+
value: string;
|
|
352
|
+
__kind: "Polkadot";
|
|
353
353
|
}, {
|
|
354
354
|
value: string;
|
|
355
355
|
__kind: "Dot";
|
|
356
356
|
}>, z.ZodObject<{
|
|
357
|
-
__kind: z.ZodLiteral<"Btc">;
|
|
358
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
357
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
|
|
358
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
359
359
|
}, "strip", z.ZodTypeAny, {
|
|
360
|
-
value:
|
|
361
|
-
__kind: "
|
|
360
|
+
value: string;
|
|
361
|
+
__kind: "Bitcoin";
|
|
362
362
|
}, {
|
|
363
363
|
value: string;
|
|
364
364
|
__kind: "Btc";
|
package/dist/120/common.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// generated/120/common.ts
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import
|
|
3
|
+
import * as ss58 from "@chainflip/utils/ss58";
|
|
4
4
|
var cfChainsBtcConsolidationParameters = z.object({
|
|
5
5
|
consolidationThreshold: z.number(),
|
|
6
6
|
consolidationSize: z.number()
|
|
@@ -9,7 +9,7 @@ var hexString = z.string().refine((v) => /^0x[\da-f]*$/i.test(v), { message: "In
|
|
|
9
9
|
var accountId = z.union([
|
|
10
10
|
hexString,
|
|
11
11
|
z.string().regex(/^[0-9a-f]+$/).transform((v) => `0x${v}`)
|
|
12
|
-
]).transform((value) => encode({ data: value, ss58Format: 2112 }));
|
|
12
|
+
]).transform((value) => ss58.encode({ data: value, ss58Format: 2112 }));
|
|
13
13
|
var numericString = z.string().refine((v) => /^\d+$/.test(v), { message: "Invalid numeric string" });
|
|
14
14
|
var numberOrHex = z.union([z.number(), hexString, numericString]).transform((n) => BigInt(n));
|
|
15
15
|
var simpleEnum = (values) => z.object({ __kind: z.enum(values) }).transform(({ __kind }) => __kind);
|
|
@@ -68,9 +68,18 @@ var cfChainsDotPolkadotTransactionData = z.object({ encodedExtrinsic: hexString
|
|
|
68
68
|
var cfChainsBtcBitcoinTransactionData = z.object({ encodedTransaction: hexString });
|
|
69
69
|
var cfPrimitivesChainsAssetsAnyAsset = simpleEnum(["Eth", "Flip", "Usdc", "Dot", "Btc"]);
|
|
70
70
|
var cfChainsAddressEncodedAddress = z.union([
|
|
71
|
-
z.object({
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
z.object({
|
|
72
|
+
__kind: z.literal("Eth").transform(() => "Ethereum"),
|
|
73
|
+
value: hexString
|
|
74
|
+
}),
|
|
75
|
+
z.object({
|
|
76
|
+
__kind: z.literal("Dot").transform(() => "Polkadot"),
|
|
77
|
+
value: hexString.transform((value) => ss58.encode({ data: value, ss58Format: 0 }))
|
|
78
|
+
}),
|
|
79
|
+
z.object({
|
|
80
|
+
__kind: z.literal("Btc").transform(() => "Bitcoin"),
|
|
81
|
+
value: hexString.transform((value) => Buffer.from(value.slice(2), "hex").toString("utf8"))
|
|
82
|
+
})
|
|
74
83
|
]);
|
|
75
84
|
var palletCfSwappingCcmFailReason = simpleEnum([
|
|
76
85
|
"UnsupportedForTargetChain",
|
|
@@ -21,29 +21,29 @@ declare const liquidityProviderWithdrawalEgressScheduled: z.ZodObject<{
|
|
|
21
21
|
}>;
|
|
22
22
|
amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
23
23
|
destinationAddress: z.ZodUnion<[z.ZodObject<{
|
|
24
|
-
__kind: z.ZodLiteral<"Eth">;
|
|
24
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
|
|
25
25
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
27
|
value: `0x${string}`;
|
|
28
|
-
__kind: "
|
|
28
|
+
__kind: "Ethereum";
|
|
29
29
|
}, {
|
|
30
30
|
value: string;
|
|
31
31
|
__kind: "Eth";
|
|
32
32
|
}>, z.ZodObject<{
|
|
33
|
-
__kind: z.ZodLiteral<"Dot">;
|
|
34
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
33
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
|
|
34
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
value:
|
|
37
|
-
__kind: "
|
|
36
|
+
value: string;
|
|
37
|
+
__kind: "Polkadot";
|
|
38
38
|
}, {
|
|
39
39
|
value: string;
|
|
40
40
|
__kind: "Dot";
|
|
41
41
|
}>, z.ZodObject<{
|
|
42
|
-
__kind: z.ZodLiteral<"Btc">;
|
|
43
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
42
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
|
|
43
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
value:
|
|
46
|
-
__kind: "
|
|
45
|
+
value: string;
|
|
46
|
+
__kind: "Bitcoin";
|
|
47
47
|
}, {
|
|
48
48
|
value: string;
|
|
49
49
|
__kind: "Btc";
|
|
@@ -55,13 +55,13 @@ declare const liquidityProviderWithdrawalEgressScheduled: z.ZodObject<{
|
|
|
55
55
|
amount: bigint;
|
|
56
56
|
destinationAddress: {
|
|
57
57
|
value: `0x${string}`;
|
|
58
|
-
__kind: "
|
|
58
|
+
__kind: "Ethereum";
|
|
59
59
|
} | {
|
|
60
|
-
value:
|
|
61
|
-
__kind: "
|
|
60
|
+
value: string;
|
|
61
|
+
__kind: "Polkadot";
|
|
62
62
|
} | {
|
|
63
|
-
value:
|
|
64
|
-
__kind: "
|
|
63
|
+
value: string;
|
|
64
|
+
__kind: "Bitcoin";
|
|
65
65
|
};
|
|
66
66
|
fee: bigint;
|
|
67
67
|
}, {
|
|
@@ -21,29 +21,29 @@ declare const liquidityProviderWithdrawalEgressScheduled: z.ZodObject<{
|
|
|
21
21
|
}>;
|
|
22
22
|
amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
23
23
|
destinationAddress: z.ZodUnion<[z.ZodObject<{
|
|
24
|
-
__kind: z.ZodLiteral<"Eth">;
|
|
24
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
|
|
25
25
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
27
|
value: `0x${string}`;
|
|
28
|
-
__kind: "
|
|
28
|
+
__kind: "Ethereum";
|
|
29
29
|
}, {
|
|
30
30
|
value: string;
|
|
31
31
|
__kind: "Eth";
|
|
32
32
|
}>, z.ZodObject<{
|
|
33
|
-
__kind: z.ZodLiteral<"Dot">;
|
|
34
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
33
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
|
|
34
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
value:
|
|
37
|
-
__kind: "
|
|
36
|
+
value: string;
|
|
37
|
+
__kind: "Polkadot";
|
|
38
38
|
}, {
|
|
39
39
|
value: string;
|
|
40
40
|
__kind: "Dot";
|
|
41
41
|
}>, z.ZodObject<{
|
|
42
|
-
__kind: z.ZodLiteral<"Btc">;
|
|
43
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
42
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
|
|
43
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
44
44
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
value:
|
|
46
|
-
__kind: "
|
|
45
|
+
value: string;
|
|
46
|
+
__kind: "Bitcoin";
|
|
47
47
|
}, {
|
|
48
48
|
value: string;
|
|
49
49
|
__kind: "Btc";
|
|
@@ -55,13 +55,13 @@ declare const liquidityProviderWithdrawalEgressScheduled: z.ZodObject<{
|
|
|
55
55
|
amount: bigint;
|
|
56
56
|
destinationAddress: {
|
|
57
57
|
value: `0x${string}`;
|
|
58
|
-
__kind: "
|
|
58
|
+
__kind: "Ethereum";
|
|
59
59
|
} | {
|
|
60
|
-
value:
|
|
61
|
-
__kind: "
|
|
60
|
+
value: string;
|
|
61
|
+
__kind: "Polkadot";
|
|
62
62
|
} | {
|
|
63
|
-
value:
|
|
64
|
-
__kind: "
|
|
63
|
+
value: string;
|
|
64
|
+
__kind: "Bitcoin";
|
|
65
65
|
};
|
|
66
66
|
fee: bigint;
|
|
67
67
|
}, {
|
|
@@ -11,29 +11,29 @@ declare const swappingCcmFailed: z.ZodObject<{
|
|
|
11
11
|
__kind: "UnsupportedForTargetChain" | "InsufficientDepositAmount";
|
|
12
12
|
}>;
|
|
13
13
|
destinationAddress: z.ZodUnion<[z.ZodObject<{
|
|
14
|
-
__kind: z.ZodLiteral<"Eth">;
|
|
14
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
|
|
15
15
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
__kind: "
|
|
17
|
+
__kind: "Ethereum";
|
|
18
18
|
value: `0x${string}`;
|
|
19
19
|
}, {
|
|
20
20
|
__kind: "Eth";
|
|
21
21
|
value: string;
|
|
22
22
|
}>, z.ZodObject<{
|
|
23
|
-
__kind: z.ZodLiteral<"Dot">;
|
|
24
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
23
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
|
|
24
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
__kind: "
|
|
27
|
-
value:
|
|
26
|
+
__kind: "Polkadot";
|
|
27
|
+
value: string;
|
|
28
28
|
}, {
|
|
29
29
|
__kind: "Dot";
|
|
30
30
|
value: string;
|
|
31
31
|
}>, z.ZodObject<{
|
|
32
|
-
__kind: z.ZodLiteral<"Btc">;
|
|
33
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
32
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
|
|
33
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
__kind: "
|
|
36
|
-
value:
|
|
35
|
+
__kind: "Bitcoin";
|
|
36
|
+
value: string;
|
|
37
37
|
}, {
|
|
38
38
|
__kind: "Btc";
|
|
39
39
|
value: string;
|
|
@@ -262,14 +262,14 @@ declare const swappingCcmFailed: z.ZodObject<{
|
|
|
262
262
|
}, "strip", z.ZodTypeAny, {
|
|
263
263
|
reason: "UnsupportedForTargetChain" | "InsufficientDepositAmount";
|
|
264
264
|
destinationAddress: {
|
|
265
|
-
__kind: "
|
|
265
|
+
__kind: "Ethereum";
|
|
266
266
|
value: `0x${string}`;
|
|
267
267
|
} | {
|
|
268
|
-
__kind: "
|
|
269
|
-
value:
|
|
268
|
+
__kind: "Polkadot";
|
|
269
|
+
value: string;
|
|
270
270
|
} | {
|
|
271
|
-
__kind: "
|
|
272
|
-
value:
|
|
271
|
+
__kind: "Bitcoin";
|
|
272
|
+
value: string;
|
|
273
273
|
};
|
|
274
274
|
depositMetadata: {
|
|
275
275
|
sourceChain: "Ethereum" | "Polkadot" | "Bitcoin";
|
|
@@ -11,29 +11,29 @@ declare const swappingCcmFailed: z.ZodObject<{
|
|
|
11
11
|
__kind: "UnsupportedForTargetChain" | "InsufficientDepositAmount";
|
|
12
12
|
}>;
|
|
13
13
|
destinationAddress: z.ZodUnion<[z.ZodObject<{
|
|
14
|
-
__kind: z.ZodLiteral<"Eth">;
|
|
14
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
|
|
15
15
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
__kind: "
|
|
17
|
+
__kind: "Ethereum";
|
|
18
18
|
value: `0x${string}`;
|
|
19
19
|
}, {
|
|
20
20
|
__kind: "Eth";
|
|
21
21
|
value: string;
|
|
22
22
|
}>, z.ZodObject<{
|
|
23
|
-
__kind: z.ZodLiteral<"Dot">;
|
|
24
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
23
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
|
|
24
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
__kind: "
|
|
27
|
-
value:
|
|
26
|
+
__kind: "Polkadot";
|
|
27
|
+
value: string;
|
|
28
28
|
}, {
|
|
29
29
|
__kind: "Dot";
|
|
30
30
|
value: string;
|
|
31
31
|
}>, z.ZodObject<{
|
|
32
|
-
__kind: z.ZodLiteral<"Btc">;
|
|
33
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
32
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
|
|
33
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
|
-
__kind: "
|
|
36
|
-
value:
|
|
35
|
+
__kind: "Bitcoin";
|
|
36
|
+
value: string;
|
|
37
37
|
}, {
|
|
38
38
|
__kind: "Btc";
|
|
39
39
|
value: string;
|
|
@@ -262,14 +262,14 @@ declare const swappingCcmFailed: z.ZodObject<{
|
|
|
262
262
|
}, "strip", z.ZodTypeAny, {
|
|
263
263
|
reason: "UnsupportedForTargetChain" | "InsufficientDepositAmount";
|
|
264
264
|
destinationAddress: {
|
|
265
|
-
__kind: "
|
|
265
|
+
__kind: "Ethereum";
|
|
266
266
|
value: `0x${string}`;
|
|
267
267
|
} | {
|
|
268
|
-
__kind: "
|
|
269
|
-
value:
|
|
268
|
+
__kind: "Polkadot";
|
|
269
|
+
value: string;
|
|
270
270
|
} | {
|
|
271
|
-
__kind: "
|
|
272
|
-
value:
|
|
271
|
+
__kind: "Bitcoin";
|
|
272
|
+
value: string;
|
|
273
273
|
};
|
|
274
274
|
depositMetadata: {
|
|
275
275
|
sourceChain: "Ethereum" | "Polkadot" | "Bitcoin";
|