@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
|
@@ -13,56 +13,56 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
|
|
|
13
13
|
egressAsset: z.ZodEffects<z.ZodObject<{
|
|
14
14
|
__kind: z.ZodEnum<["Eth", "Flip", "Usdc", "Dot", "Btc", "Usdt"]>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
__kind: "Eth" | "
|
|
16
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc" | "Usdt";
|
|
17
17
|
}, {
|
|
18
|
-
__kind: "Eth" | "
|
|
19
|
-
}>, "Eth" | "
|
|
20
|
-
__kind: "Eth" | "
|
|
18
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc" | "Usdt";
|
|
19
|
+
}>, "Eth" | "Dot" | "Btc" | "Flip" | "Usdc" | "Usdt", {
|
|
20
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc" | "Usdt";
|
|
21
21
|
}>;
|
|
22
22
|
egressAmount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
23
23
|
egressFee: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
24
24
|
destinationAddress: z.ZodUnion<[z.ZodObject<{
|
|
25
|
-
__kind: z.ZodLiteral<"Eth">;
|
|
25
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
|
|
26
26
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
__kind: "
|
|
28
|
+
__kind: "Ethereum";
|
|
29
29
|
value: `0x${string}`;
|
|
30
30
|
}, {
|
|
31
31
|
__kind: "Eth";
|
|
32
32
|
value: string;
|
|
33
33
|
}>, z.ZodObject<{
|
|
34
|
-
__kind: z.ZodLiteral<"Dot">;
|
|
35
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
34
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
|
|
35
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
__kind: "
|
|
38
|
-
value:
|
|
37
|
+
__kind: "Polkadot";
|
|
38
|
+
value: string;
|
|
39
39
|
}, {
|
|
40
40
|
__kind: "Dot";
|
|
41
41
|
value: string;
|
|
42
42
|
}>, z.ZodObject<{
|
|
43
|
-
__kind: z.ZodLiteral<"Btc">;
|
|
44
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
43
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
|
|
44
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
__kind: "
|
|
47
|
-
value:
|
|
46
|
+
__kind: "Bitcoin";
|
|
47
|
+
value: string;
|
|
48
48
|
}, {
|
|
49
49
|
__kind: "Btc";
|
|
50
50
|
value: string;
|
|
51
51
|
}>]>;
|
|
52
52
|
}, "strip", z.ZodTypeAny, {
|
|
53
53
|
destinationAddress: {
|
|
54
|
-
__kind: "
|
|
54
|
+
__kind: "Ethereum";
|
|
55
55
|
value: `0x${string}`;
|
|
56
56
|
} | {
|
|
57
|
-
__kind: "
|
|
58
|
-
value:
|
|
57
|
+
__kind: "Polkadot";
|
|
58
|
+
value: string;
|
|
59
59
|
} | {
|
|
60
|
-
__kind: "
|
|
61
|
-
value:
|
|
60
|
+
__kind: "Bitcoin";
|
|
61
|
+
value: string;
|
|
62
62
|
};
|
|
63
63
|
egressId: ["Ethereum" | "Polkadot" | "Bitcoin", bigint];
|
|
64
64
|
egressAmount: bigint;
|
|
65
|
-
egressAsset: "Eth" | "
|
|
65
|
+
egressAsset: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc" | "Usdt";
|
|
66
66
|
egressFee: bigint;
|
|
67
67
|
}, {
|
|
68
68
|
destinationAddress: {
|
|
@@ -80,7 +80,7 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
|
|
|
80
80
|
}, string | number];
|
|
81
81
|
egressAmount: string | number;
|
|
82
82
|
egressAsset: {
|
|
83
|
-
__kind: "Eth" | "
|
|
83
|
+
__kind: "Eth" | "Dot" | "Btc" | "Flip" | "Usdc" | "Usdt";
|
|
84
84
|
};
|
|
85
85
|
egressFee: string | number;
|
|
86
86
|
}>;
|
|
@@ -24,14 +24,13 @@ declare const bitcoinIngressEgressBoostFundsAdded: z.ZodObject<{
|
|
|
24
24
|
}>;
|
|
25
25
|
amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
amount: bigint;
|
|
28
27
|
boosterId: string;
|
|
29
28
|
boostPool: {
|
|
30
29
|
asset: "Btc";
|
|
31
30
|
tier: number;
|
|
32
31
|
};
|
|
32
|
+
amount: bigint;
|
|
33
33
|
}, {
|
|
34
|
-
amount: string | number;
|
|
35
34
|
boosterId: string;
|
|
36
35
|
boostPool: {
|
|
37
36
|
asset: {
|
|
@@ -39,6 +38,7 @@ declare const bitcoinIngressEgressBoostFundsAdded: z.ZodObject<{
|
|
|
39
38
|
};
|
|
40
39
|
tier: number;
|
|
41
40
|
};
|
|
41
|
+
amount: string | number;
|
|
42
42
|
}>;
|
|
43
43
|
|
|
44
44
|
export { bitcoinIngressEgressBoostFundsAdded };
|
|
@@ -24,14 +24,13 @@ declare const bitcoinIngressEgressBoostFundsAdded: z.ZodObject<{
|
|
|
24
24
|
}>;
|
|
25
25
|
amount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
26
26
|
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
amount: bigint;
|
|
28
27
|
boosterId: string;
|
|
29
28
|
boostPool: {
|
|
30
29
|
asset: "Btc";
|
|
31
30
|
tier: number;
|
|
32
31
|
};
|
|
32
|
+
amount: bigint;
|
|
33
33
|
}, {
|
|
34
|
-
amount: string | number;
|
|
35
34
|
boosterId: string;
|
|
36
35
|
boostPool: {
|
|
37
36
|
asset: {
|
|
@@ -39,6 +38,7 @@ declare const bitcoinIngressEgressBoostFundsAdded: z.ZodObject<{
|
|
|
39
38
|
};
|
|
40
39
|
tier: number;
|
|
41
40
|
};
|
|
41
|
+
amount: string | number;
|
|
42
42
|
}>;
|
|
43
43
|
|
|
44
44
|
export { bitcoinIngressEgressBoostFundsAdded };
|
|
@@ -130,6 +130,7 @@ declare const bitcoinIngressEgressDepositBoosted: z.ZodObject<{
|
|
|
130
130
|
prewitnessedDepositId: string | number;
|
|
131
131
|
}>]>;
|
|
132
132
|
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
asset: "Btc";
|
|
133
134
|
depositAddress: {
|
|
134
135
|
value: `0x${string}`;
|
|
135
136
|
__kind: "P2PKH";
|
|
@@ -152,7 +153,6 @@ declare const bitcoinIngressEgressDepositBoosted: z.ZodObject<{
|
|
|
152
153
|
};
|
|
153
154
|
channelId: bigint;
|
|
154
155
|
prewitnessedDepositId: bigint;
|
|
155
|
-
asset: "Btc";
|
|
156
156
|
amounts: [number, bigint][];
|
|
157
157
|
depositDetails: {
|
|
158
158
|
txId: `0x${string}`;
|
|
@@ -177,6 +177,9 @@ declare const bitcoinIngressEgressDepositBoosted: z.ZodObject<{
|
|
|
177
177
|
prewitnessedDepositId: bigint;
|
|
178
178
|
};
|
|
179
179
|
}, {
|
|
180
|
+
asset: {
|
|
181
|
+
__kind: "Btc";
|
|
182
|
+
};
|
|
180
183
|
depositAddress: {
|
|
181
184
|
value: string;
|
|
182
185
|
__kind: "P2PKH";
|
|
@@ -199,9 +202,6 @@ declare const bitcoinIngressEgressDepositBoosted: z.ZodObject<{
|
|
|
199
202
|
};
|
|
200
203
|
channelId: string | number;
|
|
201
204
|
prewitnessedDepositId: string | number;
|
|
202
|
-
asset: {
|
|
203
|
-
__kind: "Btc";
|
|
204
|
-
};
|
|
205
205
|
amounts: [number, string | number][];
|
|
206
206
|
depositDetails: {
|
|
207
207
|
txId: string;
|
|
@@ -130,6 +130,7 @@ declare const bitcoinIngressEgressDepositBoosted: z.ZodObject<{
|
|
|
130
130
|
prewitnessedDepositId: string | number;
|
|
131
131
|
}>]>;
|
|
132
132
|
}, "strip", z.ZodTypeAny, {
|
|
133
|
+
asset: "Btc";
|
|
133
134
|
depositAddress: {
|
|
134
135
|
value: `0x${string}`;
|
|
135
136
|
__kind: "P2PKH";
|
|
@@ -152,7 +153,6 @@ declare const bitcoinIngressEgressDepositBoosted: z.ZodObject<{
|
|
|
152
153
|
};
|
|
153
154
|
channelId: bigint;
|
|
154
155
|
prewitnessedDepositId: bigint;
|
|
155
|
-
asset: "Btc";
|
|
156
156
|
amounts: [number, bigint][];
|
|
157
157
|
depositDetails: {
|
|
158
158
|
txId: `0x${string}`;
|
|
@@ -177,6 +177,9 @@ declare const bitcoinIngressEgressDepositBoosted: z.ZodObject<{
|
|
|
177
177
|
prewitnessedDepositId: bigint;
|
|
178
178
|
};
|
|
179
179
|
}, {
|
|
180
|
+
asset: {
|
|
181
|
+
__kind: "Btc";
|
|
182
|
+
};
|
|
180
183
|
depositAddress: {
|
|
181
184
|
value: string;
|
|
182
185
|
__kind: "P2PKH";
|
|
@@ -199,9 +202,6 @@ declare const bitcoinIngressEgressDepositBoosted: z.ZodObject<{
|
|
|
199
202
|
};
|
|
200
203
|
channelId: string | number;
|
|
201
204
|
prewitnessedDepositId: string | number;
|
|
202
|
-
asset: {
|
|
203
|
-
__kind: "Btc";
|
|
204
|
-
};
|
|
205
205
|
amounts: [number, string | number][];
|
|
206
206
|
depositDetails: {
|
|
207
207
|
txId: string;
|
|
@@ -128,6 +128,7 @@ declare const bitcoinIngressEgressDepositFinalised: z.ZodObject<{
|
|
|
128
128
|
}>]>;
|
|
129
129
|
channelId: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
130
130
|
}, "strip", z.ZodTypeAny, {
|
|
131
|
+
asset: "Btc";
|
|
131
132
|
amount: bigint;
|
|
132
133
|
depositAddress: {
|
|
133
134
|
value: `0x${string}`;
|
|
@@ -150,7 +151,6 @@ declare const bitcoinIngressEgressDepositFinalised: z.ZodObject<{
|
|
|
150
151
|
program: `0x${string}`;
|
|
151
152
|
};
|
|
152
153
|
channelId: bigint;
|
|
153
|
-
asset: "Btc";
|
|
154
154
|
depositDetails: {
|
|
155
155
|
txId: `0x${string}`;
|
|
156
156
|
vout: number;
|
|
@@ -173,6 +173,9 @@ declare const bitcoinIngressEgressDepositFinalised: z.ZodObject<{
|
|
|
173
173
|
prewitnessedDepositId: bigint;
|
|
174
174
|
};
|
|
175
175
|
}, {
|
|
176
|
+
asset: {
|
|
177
|
+
__kind: "Btc";
|
|
178
|
+
};
|
|
176
179
|
amount: string | number;
|
|
177
180
|
depositAddress: {
|
|
178
181
|
value: string;
|
|
@@ -195,9 +198,6 @@ declare const bitcoinIngressEgressDepositFinalised: z.ZodObject<{
|
|
|
195
198
|
program: string;
|
|
196
199
|
};
|
|
197
200
|
channelId: string | number;
|
|
198
|
-
asset: {
|
|
199
|
-
__kind: "Btc";
|
|
200
|
-
};
|
|
201
201
|
depositDetails: {
|
|
202
202
|
txId: string;
|
|
203
203
|
vout: number;
|
|
@@ -128,6 +128,7 @@ declare const bitcoinIngressEgressDepositFinalised: z.ZodObject<{
|
|
|
128
128
|
}>]>;
|
|
129
129
|
channelId: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
130
130
|
}, "strip", z.ZodTypeAny, {
|
|
131
|
+
asset: "Btc";
|
|
131
132
|
amount: bigint;
|
|
132
133
|
depositAddress: {
|
|
133
134
|
value: `0x${string}`;
|
|
@@ -150,7 +151,6 @@ declare const bitcoinIngressEgressDepositFinalised: z.ZodObject<{
|
|
|
150
151
|
program: `0x${string}`;
|
|
151
152
|
};
|
|
152
153
|
channelId: bigint;
|
|
153
|
-
asset: "Btc";
|
|
154
154
|
depositDetails: {
|
|
155
155
|
txId: `0x${string}`;
|
|
156
156
|
vout: number;
|
|
@@ -173,6 +173,9 @@ declare const bitcoinIngressEgressDepositFinalised: z.ZodObject<{
|
|
|
173
173
|
prewitnessedDepositId: bigint;
|
|
174
174
|
};
|
|
175
175
|
}, {
|
|
176
|
+
asset: {
|
|
177
|
+
__kind: "Btc";
|
|
178
|
+
};
|
|
176
179
|
amount: string | number;
|
|
177
180
|
depositAddress: {
|
|
178
181
|
value: string;
|
|
@@ -195,9 +198,6 @@ declare const bitcoinIngressEgressDepositFinalised: z.ZodObject<{
|
|
|
195
198
|
program: string;
|
|
196
199
|
};
|
|
197
200
|
channelId: string | number;
|
|
198
|
-
asset: {
|
|
199
|
-
__kind: "Btc";
|
|
200
|
-
};
|
|
201
201
|
depositDetails: {
|
|
202
202
|
txId: string;
|
|
203
203
|
vout: number;
|
|
@@ -14,16 +14,16 @@ declare const bitcoinIngressEgressInsufficientBoostLiquidity: z.ZodObject<{
|
|
|
14
14
|
amountAttempted: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
15
15
|
channelId: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
asset: "Btc";
|
|
17
18
|
channelId: bigint;
|
|
18
19
|
prewitnessedDepositId: bigint;
|
|
19
|
-
asset: "Btc";
|
|
20
20
|
amountAttempted: bigint;
|
|
21
21
|
}, {
|
|
22
|
-
channelId: string | number;
|
|
23
|
-
prewitnessedDepositId: string | number;
|
|
24
22
|
asset: {
|
|
25
23
|
__kind: "Btc";
|
|
26
24
|
};
|
|
25
|
+
channelId: string | number;
|
|
26
|
+
prewitnessedDepositId: string | number;
|
|
27
27
|
amountAttempted: string | number;
|
|
28
28
|
}>;
|
|
29
29
|
|
|
@@ -14,16 +14,16 @@ declare const bitcoinIngressEgressInsufficientBoostLiquidity: z.ZodObject<{
|
|
|
14
14
|
amountAttempted: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
15
15
|
channelId: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
16
16
|
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
asset: "Btc";
|
|
17
18
|
channelId: bigint;
|
|
18
19
|
prewitnessedDepositId: bigint;
|
|
19
|
-
asset: "Btc";
|
|
20
20
|
amountAttempted: bigint;
|
|
21
21
|
}, {
|
|
22
|
-
channelId: string | number;
|
|
23
|
-
prewitnessedDepositId: string | number;
|
|
24
22
|
asset: {
|
|
25
23
|
__kind: "Btc";
|
|
26
24
|
};
|
|
25
|
+
channelId: string | number;
|
|
26
|
+
prewitnessedDepositId: string | number;
|
|
27
27
|
amountAttempted: string | number;
|
|
28
28
|
}>;
|
|
29
29
|
|
package/dist/141/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/141/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 simpleEnum = (values) => _zod.z.object({ __kind: _zod.z.enum(values) }).transform(({ __kind }) => __kind);
|
|
5
5
|
var cfPrimitivesChainsAssetsArbAsset = simpleEnum(["ArbEth", "ArbUsdc"]);
|
|
6
6
|
var hexString = _zod.z.string().refine((v) => /^0x[\da-f]*$/i.test(v), { message: "Invalid hex string" });
|
|
@@ -123,7 +123,7 @@ var cfPrimitivesChainsForeignChain = simpleEnum([
|
|
|
123
123
|
var accountId = _zod.z.union([
|
|
124
124
|
hexString,
|
|
125
125
|
_zod.z.string().regex(/^[0-9a-f]+$/).transform((v) => `0x${v}`)
|
|
126
|
-
]).transform((value) =>
|
|
126
|
+
]).transform((value) => ss58.encode({ data: value, ss58Format: 2112 }));
|
|
127
127
|
var cfPrimitivesAccountRole = simpleEnum([
|
|
128
128
|
"Unregistered",
|
|
129
129
|
"Validator",
|
|
@@ -196,10 +196,22 @@ var dispatchResult = _zod.z.union([
|
|
|
196
196
|
_zod.z.object({ __kind: _zod.z.literal("Err"), value: spRuntimeDispatchError })
|
|
197
197
|
]);
|
|
198
198
|
var cfChainsAddressEncodedAddress = _zod.z.union([
|
|
199
|
-
_zod.z.object({
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
199
|
+
_zod.z.object({
|
|
200
|
+
__kind: _zod.z.literal("Eth").transform(() => "Ethereum"),
|
|
201
|
+
value: hexString
|
|
202
|
+
}),
|
|
203
|
+
_zod.z.object({
|
|
204
|
+
__kind: _zod.z.literal("Dot").transform(() => "Polkadot"),
|
|
205
|
+
value: hexString.transform((value) => ss58.encode({ data: value, ss58Format: 0 }))
|
|
206
|
+
}),
|
|
207
|
+
_zod.z.object({
|
|
208
|
+
__kind: _zod.z.literal("Btc").transform(() => "Bitcoin"),
|
|
209
|
+
value: hexString.transform((value) => Buffer.from(value.slice(2), "hex").toString("utf8"))
|
|
210
|
+
}),
|
|
211
|
+
_zod.z.object({
|
|
212
|
+
__kind: _zod.z.literal("Arb").transform(() => "Arbitrum"),
|
|
213
|
+
value: hexString
|
|
214
|
+
})
|
|
203
215
|
]);
|
|
204
216
|
var cfPrimitivesChainsAssetsAnyAsset = simpleEnum([
|
|
205
217
|
"Eth",
|
package/dist/141/common.d.cts
CHANGED
|
@@ -2423,37 +2423,37 @@ declare const dispatchResult: z.ZodUnion<[z.ZodObject<{
|
|
|
2423
2423
|
};
|
|
2424
2424
|
}>]>;
|
|
2425
2425
|
declare const cfChainsAddressEncodedAddress: z.ZodUnion<[z.ZodObject<{
|
|
2426
|
-
__kind: z.ZodLiteral<"Eth">;
|
|
2426
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
|
|
2427
2427
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2428
2428
|
}, "strip", z.ZodTypeAny, {
|
|
2429
|
-
__kind: "
|
|
2429
|
+
__kind: "Ethereum";
|
|
2430
2430
|
value: `0x${string}`;
|
|
2431
2431
|
}, {
|
|
2432
2432
|
__kind: "Eth";
|
|
2433
2433
|
value: string;
|
|
2434
2434
|
}>, z.ZodObject<{
|
|
2435
|
-
__kind: z.ZodLiteral<"Dot">;
|
|
2436
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2435
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
|
|
2436
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
2437
2437
|
}, "strip", z.ZodTypeAny, {
|
|
2438
|
-
__kind: "
|
|
2439
|
-
value:
|
|
2438
|
+
__kind: "Polkadot";
|
|
2439
|
+
value: string;
|
|
2440
2440
|
}, {
|
|
2441
2441
|
__kind: "Dot";
|
|
2442
2442
|
value: string;
|
|
2443
2443
|
}>, z.ZodObject<{
|
|
2444
|
-
__kind: z.ZodLiteral<"Btc">;
|
|
2445
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2444
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
|
|
2445
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
2446
2446
|
}, "strip", z.ZodTypeAny, {
|
|
2447
|
-
__kind: "
|
|
2448
|
-
value:
|
|
2447
|
+
__kind: "Bitcoin";
|
|
2448
|
+
value: string;
|
|
2449
2449
|
}, {
|
|
2450
2450
|
__kind: "Btc";
|
|
2451
2451
|
value: string;
|
|
2452
2452
|
}>, z.ZodObject<{
|
|
2453
|
-
__kind: z.ZodLiteral<"Arb">;
|
|
2453
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Arb">, "Arbitrum", "Arb">;
|
|
2454
2454
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2455
2455
|
}, "strip", z.ZodTypeAny, {
|
|
2456
|
-
__kind: "
|
|
2456
|
+
__kind: "Arbitrum";
|
|
2457
2457
|
value: `0x${string}`;
|
|
2458
2458
|
}, {
|
|
2459
2459
|
__kind: "Arb";
|
|
@@ -2494,37 +2494,37 @@ declare const cfPrimitivesBeneficiary: z.ZodObject<{
|
|
|
2494
2494
|
declare const cfChainsSwapOrigin: z.ZodUnion<[z.ZodObject<{
|
|
2495
2495
|
__kind: z.ZodLiteral<"DepositChannel">;
|
|
2496
2496
|
depositAddress: z.ZodUnion<[z.ZodObject<{
|
|
2497
|
-
__kind: z.ZodLiteral<"Eth">;
|
|
2497
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
|
|
2498
2498
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2499
2499
|
}, "strip", z.ZodTypeAny, {
|
|
2500
|
-
__kind: "
|
|
2500
|
+
__kind: "Ethereum";
|
|
2501
2501
|
value: `0x${string}`;
|
|
2502
2502
|
}, {
|
|
2503
2503
|
__kind: "Eth";
|
|
2504
2504
|
value: string;
|
|
2505
2505
|
}>, z.ZodObject<{
|
|
2506
|
-
__kind: z.ZodLiteral<"Dot">;
|
|
2507
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2506
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
|
|
2507
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
2508
2508
|
}, "strip", z.ZodTypeAny, {
|
|
2509
|
-
__kind: "
|
|
2510
|
-
value:
|
|
2509
|
+
__kind: "Polkadot";
|
|
2510
|
+
value: string;
|
|
2511
2511
|
}, {
|
|
2512
2512
|
__kind: "Dot";
|
|
2513
2513
|
value: string;
|
|
2514
2514
|
}>, z.ZodObject<{
|
|
2515
|
-
__kind: z.ZodLiteral<"Btc">;
|
|
2516
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2515
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
|
|
2516
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
2517
2517
|
}, "strip", z.ZodTypeAny, {
|
|
2518
|
-
__kind: "
|
|
2519
|
-
value:
|
|
2518
|
+
__kind: "Bitcoin";
|
|
2519
|
+
value: string;
|
|
2520
2520
|
}, {
|
|
2521
2521
|
__kind: "Btc";
|
|
2522
2522
|
value: string;
|
|
2523
2523
|
}>, z.ZodObject<{
|
|
2524
|
-
__kind: z.ZodLiteral<"Arb">;
|
|
2524
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Arb">, "Arbitrum", "Arb">;
|
|
2525
2525
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2526
2526
|
}, "strip", z.ZodTypeAny, {
|
|
2527
|
-
__kind: "
|
|
2527
|
+
__kind: "Arbitrum";
|
|
2528
2528
|
value: `0x${string}`;
|
|
2529
2529
|
}, {
|
|
2530
2530
|
__kind: "Arb";
|
|
@@ -2535,16 +2535,16 @@ declare const cfChainsSwapOrigin: z.ZodUnion<[z.ZodObject<{
|
|
|
2535
2535
|
}, "strip", z.ZodTypeAny, {
|
|
2536
2536
|
__kind: "DepositChannel";
|
|
2537
2537
|
depositAddress: {
|
|
2538
|
-
__kind: "
|
|
2538
|
+
__kind: "Ethereum";
|
|
2539
2539
|
value: `0x${string}`;
|
|
2540
2540
|
} | {
|
|
2541
|
-
__kind: "
|
|
2542
|
-
value:
|
|
2541
|
+
__kind: "Polkadot";
|
|
2542
|
+
value: string;
|
|
2543
2543
|
} | {
|
|
2544
|
-
__kind: "
|
|
2545
|
-
value:
|
|
2544
|
+
__kind: "Bitcoin";
|
|
2545
|
+
value: string;
|
|
2546
2546
|
} | {
|
|
2547
|
-
__kind: "
|
|
2547
|
+
__kind: "Arbitrum";
|
|
2548
2548
|
value: `0x${string}`;
|
|
2549
2549
|
};
|
|
2550
2550
|
channelId: bigint;
|
package/dist/141/common.d.ts
CHANGED
|
@@ -2423,37 +2423,37 @@ declare const dispatchResult: z.ZodUnion<[z.ZodObject<{
|
|
|
2423
2423
|
};
|
|
2424
2424
|
}>]>;
|
|
2425
2425
|
declare const cfChainsAddressEncodedAddress: z.ZodUnion<[z.ZodObject<{
|
|
2426
|
-
__kind: z.ZodLiteral<"Eth">;
|
|
2426
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
|
|
2427
2427
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2428
2428
|
}, "strip", z.ZodTypeAny, {
|
|
2429
|
-
__kind: "
|
|
2429
|
+
__kind: "Ethereum";
|
|
2430
2430
|
value: `0x${string}`;
|
|
2431
2431
|
}, {
|
|
2432
2432
|
__kind: "Eth";
|
|
2433
2433
|
value: string;
|
|
2434
2434
|
}>, z.ZodObject<{
|
|
2435
|
-
__kind: z.ZodLiteral<"Dot">;
|
|
2436
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2435
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
|
|
2436
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
2437
2437
|
}, "strip", z.ZodTypeAny, {
|
|
2438
|
-
__kind: "
|
|
2439
|
-
value:
|
|
2438
|
+
__kind: "Polkadot";
|
|
2439
|
+
value: string;
|
|
2440
2440
|
}, {
|
|
2441
2441
|
__kind: "Dot";
|
|
2442
2442
|
value: string;
|
|
2443
2443
|
}>, z.ZodObject<{
|
|
2444
|
-
__kind: z.ZodLiteral<"Btc">;
|
|
2445
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2444
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
|
|
2445
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
2446
2446
|
}, "strip", z.ZodTypeAny, {
|
|
2447
|
-
__kind: "
|
|
2448
|
-
value:
|
|
2447
|
+
__kind: "Bitcoin";
|
|
2448
|
+
value: string;
|
|
2449
2449
|
}, {
|
|
2450
2450
|
__kind: "Btc";
|
|
2451
2451
|
value: string;
|
|
2452
2452
|
}>, z.ZodObject<{
|
|
2453
|
-
__kind: z.ZodLiteral<"Arb">;
|
|
2453
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Arb">, "Arbitrum", "Arb">;
|
|
2454
2454
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2455
2455
|
}, "strip", z.ZodTypeAny, {
|
|
2456
|
-
__kind: "
|
|
2456
|
+
__kind: "Arbitrum";
|
|
2457
2457
|
value: `0x${string}`;
|
|
2458
2458
|
}, {
|
|
2459
2459
|
__kind: "Arb";
|
|
@@ -2494,37 +2494,37 @@ declare const cfPrimitivesBeneficiary: z.ZodObject<{
|
|
|
2494
2494
|
declare const cfChainsSwapOrigin: z.ZodUnion<[z.ZodObject<{
|
|
2495
2495
|
__kind: z.ZodLiteral<"DepositChannel">;
|
|
2496
2496
|
depositAddress: z.ZodUnion<[z.ZodObject<{
|
|
2497
|
-
__kind: z.ZodLiteral<"Eth">;
|
|
2497
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Eth">, "Ethereum", "Eth">;
|
|
2498
2498
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2499
2499
|
}, "strip", z.ZodTypeAny, {
|
|
2500
|
-
__kind: "
|
|
2500
|
+
__kind: "Ethereum";
|
|
2501
2501
|
value: `0x${string}`;
|
|
2502
2502
|
}, {
|
|
2503
2503
|
__kind: "Eth";
|
|
2504
2504
|
value: string;
|
|
2505
2505
|
}>, z.ZodObject<{
|
|
2506
|
-
__kind: z.ZodLiteral<"Dot">;
|
|
2507
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2506
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Dot">, "Polkadot", "Dot">;
|
|
2507
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
2508
2508
|
}, "strip", z.ZodTypeAny, {
|
|
2509
|
-
__kind: "
|
|
2510
|
-
value:
|
|
2509
|
+
__kind: "Polkadot";
|
|
2510
|
+
value: string;
|
|
2511
2511
|
}, {
|
|
2512
2512
|
__kind: "Dot";
|
|
2513
2513
|
value: string;
|
|
2514
2514
|
}>, z.ZodObject<{
|
|
2515
|
-
__kind: z.ZodLiteral<"Btc">;
|
|
2516
|
-
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2515
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Btc">, "Bitcoin", "Btc">;
|
|
2516
|
+
value: z.ZodEffects<z.ZodEffects<z.ZodString, `0x${string}`, string>, string, string>;
|
|
2517
2517
|
}, "strip", z.ZodTypeAny, {
|
|
2518
|
-
__kind: "
|
|
2519
|
-
value:
|
|
2518
|
+
__kind: "Bitcoin";
|
|
2519
|
+
value: string;
|
|
2520
2520
|
}, {
|
|
2521
2521
|
__kind: "Btc";
|
|
2522
2522
|
value: string;
|
|
2523
2523
|
}>, z.ZodObject<{
|
|
2524
|
-
__kind: z.ZodLiteral<"Arb">;
|
|
2524
|
+
__kind: z.ZodEffects<z.ZodLiteral<"Arb">, "Arbitrum", "Arb">;
|
|
2525
2525
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
2526
2526
|
}, "strip", z.ZodTypeAny, {
|
|
2527
|
-
__kind: "
|
|
2527
|
+
__kind: "Arbitrum";
|
|
2528
2528
|
value: `0x${string}`;
|
|
2529
2529
|
}, {
|
|
2530
2530
|
__kind: "Arb";
|
|
@@ -2535,16 +2535,16 @@ declare const cfChainsSwapOrigin: z.ZodUnion<[z.ZodObject<{
|
|
|
2535
2535
|
}, "strip", z.ZodTypeAny, {
|
|
2536
2536
|
__kind: "DepositChannel";
|
|
2537
2537
|
depositAddress: {
|
|
2538
|
-
__kind: "
|
|
2538
|
+
__kind: "Ethereum";
|
|
2539
2539
|
value: `0x${string}`;
|
|
2540
2540
|
} | {
|
|
2541
|
-
__kind: "
|
|
2542
|
-
value:
|
|
2541
|
+
__kind: "Polkadot";
|
|
2542
|
+
value: string;
|
|
2543
2543
|
} | {
|
|
2544
|
-
__kind: "
|
|
2545
|
-
value:
|
|
2544
|
+
__kind: "Bitcoin";
|
|
2545
|
+
value: string;
|
|
2546
2546
|
} | {
|
|
2547
|
-
__kind: "
|
|
2547
|
+
__kind: "Arbitrum";
|
|
2548
2548
|
value: `0x${string}`;
|
|
2549
2549
|
};
|
|
2550
2550
|
channelId: bigint;
|
package/dist/141/common.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// generated/141/common.ts
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import
|
|
3
|
+
import * as ss58 from "@chainflip/utils/ss58";
|
|
4
4
|
var simpleEnum = (values) => z.object({ __kind: z.enum(values) }).transform(({ __kind }) => __kind);
|
|
5
5
|
var cfPrimitivesChainsAssetsArbAsset = simpleEnum(["ArbEth", "ArbUsdc"]);
|
|
6
6
|
var hexString = z.string().refine((v) => /^0x[\da-f]*$/i.test(v), { message: "Invalid hex string" });
|
|
@@ -123,7 +123,7 @@ var cfPrimitivesChainsForeignChain = simpleEnum([
|
|
|
123
123
|
var accountId = z.union([
|
|
124
124
|
hexString,
|
|
125
125
|
z.string().regex(/^[0-9a-f]+$/).transform((v) => `0x${v}`)
|
|
126
|
-
]).transform((value) => encode({ data: value, ss58Format: 2112 }));
|
|
126
|
+
]).transform((value) => ss58.encode({ data: value, ss58Format: 2112 }));
|
|
127
127
|
var cfPrimitivesAccountRole = simpleEnum([
|
|
128
128
|
"Unregistered",
|
|
129
129
|
"Validator",
|
|
@@ -196,10 +196,22 @@ var dispatchResult = z.union([
|
|
|
196
196
|
z.object({ __kind: z.literal("Err"), value: spRuntimeDispatchError })
|
|
197
197
|
]);
|
|
198
198
|
var cfChainsAddressEncodedAddress = z.union([
|
|
199
|
-
z.object({
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
199
|
+
z.object({
|
|
200
|
+
__kind: z.literal("Eth").transform(() => "Ethereum"),
|
|
201
|
+
value: hexString
|
|
202
|
+
}),
|
|
203
|
+
z.object({
|
|
204
|
+
__kind: z.literal("Dot").transform(() => "Polkadot"),
|
|
205
|
+
value: hexString.transform((value) => ss58.encode({ data: value, ss58Format: 0 }))
|
|
206
|
+
}),
|
|
207
|
+
z.object({
|
|
208
|
+
__kind: z.literal("Btc").transform(() => "Bitcoin"),
|
|
209
|
+
value: hexString.transform((value) => Buffer.from(value.slice(2), "hex").toString("utf8"))
|
|
210
|
+
}),
|
|
211
|
+
z.object({
|
|
212
|
+
__kind: z.literal("Arb").transform(() => "Arbitrum"),
|
|
213
|
+
value: hexString
|
|
214
|
+
})
|
|
203
215
|
]);
|
|
204
216
|
var cfPrimitivesChainsAssetsAnyAsset = simpleEnum([
|
|
205
217
|
"Eth",
|