@chainflip/processor 1.5.1 → 1.5.3
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/bitcoinIngressEgress/ccmEgressInvalid.d.cts +16 -16
- package/dist/100/bitcoinIngressEgress/ccmEgressInvalid.d.ts +16 -16
- package/dist/100/bitcoinIngressEgress/depositFetchesScheduled.d.cts +2 -2
- package/dist/100/bitcoinIngressEgress/depositFetchesScheduled.d.ts +2 -2
- package/dist/100/bitcoinIngressEgress/depositIgnored.d.cts +24 -24
- package/dist/100/bitcoinIngressEgress/depositIgnored.d.ts +24 -24
- package/dist/100/bitcoinIngressEgress/depositReceived.d.cts +24 -24
- package/dist/100/bitcoinIngressEgress/depositReceived.d.ts +24 -24
- package/dist/100/bitcoinIngressEgress/depositWitnessRejected.d.cts +54 -54
- package/dist/100/bitcoinIngressEgress/depositWitnessRejected.d.ts +54 -54
- package/dist/100/bitcoinIngressEgress/egressScheduled.d.cts +20 -20
- package/dist/100/bitcoinIngressEgress/egressScheduled.d.ts +20 -20
- package/dist/100/bitcoinIngressEgress/vaultTransferFailed.d.cts +20 -20
- package/dist/100/bitcoinIngressEgress/vaultTransferFailed.d.ts +20 -20
- package/dist/100/common.cjs +15 -6
- package/dist/100/common.d.cts +48 -12
- package/dist/100/common.d.ts +48 -12
- package/dist/100/common.mjs +14 -5
- package/dist/100/environment/runtimeSafeModeUpdated.d.cts +40 -40
- package/dist/100/environment/runtimeSafeModeUpdated.d.ts +40 -40
- 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 +27 -9
- package/dist/100/liquidityProvider/liquidityDepositAddressReady.d.ts +27 -9
- package/dist/100/liquidityProvider/liquidityRefundAddressRegistered.d.cts +4 -4
- package/dist/100/liquidityProvider/liquidityRefundAddressRegistered.d.ts +4 -4
- package/dist/100/liquidityProvider/withdrawalEgressScheduled.d.cts +27 -9
- package/dist/100/liquidityProvider/withdrawalEgressScheduled.d.ts +27 -9
- package/dist/100/swapping/ccmDepositReceived.d.cts +27 -9
- package/dist/100/swapping/ccmDepositReceived.d.ts +27 -9
- package/dist/100/swapping/ccmFailed.d.cts +27 -9
- package/dist/100/swapping/ccmFailed.d.ts +27 -9
- package/dist/100/swapping/swapAmountTooLow.d.cts +60 -24
- package/dist/100/swapping/swapAmountTooLow.d.ts +60 -24
- package/dist/100/swapping/swapDepositAddressReady.d.cts +54 -18
- package/dist/100/swapping/swapDepositAddressReady.d.ts +54 -18
- package/dist/100/swapping/swapScheduled.d.cts +60 -24
- package/dist/100/swapping/swapScheduled.d.ts +60 -24
- package/dist/100/swapping/withdrawalRequested.d.cts +27 -9
- package/dist/100/swapping/withdrawalRequested.d.ts +27 -9
- 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/limitOrderUpdated.d.cts +4 -4
- package/dist/111/liquidityPools/limitOrderUpdated.d.ts +4 -4
- package/dist/111/liquidityPools/rangeOrderUpdated.d.cts +8 -8
- package/dist/111/liquidityPools/rangeOrderUpdated.d.ts +8 -8
- package/dist/120/common.cjs +15 -6
- package/dist/120/common.d.cts +21 -3
- package/dist/120/common.d.ts +21 -3
- package/dist/120/common.mjs +14 -5
- package/dist/120/emissions/backupRewardsDistributed.d.cts +2 -2
- package/dist/120/emissions/backupRewardsDistributed.d.ts +2 -2
- package/dist/120/liquidityProvider/withdrawalEgressScheduled.d.cts +27 -9
- package/dist/120/liquidityProvider/withdrawalEgressScheduled.d.ts +27 -9
- package/dist/120/swapping/ccmFailed.d.cts +27 -9
- package/dist/120/swapping/ccmFailed.d.ts +27 -9
- package/dist/120/swapping/withdrawalRequested.d.cts +27 -9
- package/dist/120/swapping/withdrawalRequested.d.ts +27 -9
- 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 +48 -12
- package/dist/131/common.d.ts +48 -12
- 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 +27 -9
- package/dist/131/liquidityProvider/liquidityDepositAddressReady.d.ts +27 -9
- package/dist/131/liquidityProvider/withdrawalEgressScheduled.d.cts +27 -9
- package/dist/131/liquidityProvider/withdrawalEgressScheduled.d.ts +27 -9
- package/dist/131/swapping/ccmFailed.d.cts +60 -24
- package/dist/131/swapping/ccmFailed.d.ts +60 -24
- package/dist/131/swapping/swapDepositAddressReady.d.cts +54 -18
- package/dist/131/swapping/swapDepositAddressReady.d.ts +54 -18
- package/dist/131/swapping/swapScheduled.d.cts +60 -24
- package/dist/131/swapping/swapScheduled.d.ts +60 -24
- package/dist/131/swapping/withdrawalRequested.d.cts +27 -9
- package/dist/131/swapping/withdrawalRequested.d.ts +27 -9
- package/dist/141/arbitrumIngressEgress/boostFundsAdded.d.cts +2 -2
- package/dist/141/arbitrumIngressEgress/boostFundsAdded.d.ts +2 -2
- package/dist/141/arbitrumIngressEgress/ccmEgressInvalid.d.cts +16 -16
- package/dist/141/arbitrumIngressEgress/ccmEgressInvalid.d.ts +16 -16
- package/dist/141/arbitrumIngressEgress/depositWitnessRejected.d.cts +16 -16
- package/dist/141/arbitrumIngressEgress/depositWitnessRejected.d.ts +16 -16
- package/dist/141/arbitrumIngressEgress/failedToBuildAllBatchCall.d.cts +28 -28
- package/dist/141/arbitrumIngressEgress/failedToBuildAllBatchCall.d.ts +28 -28
- 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 +64 -16
- package/dist/141/common.d.ts +64 -16
- package/dist/141/common.mjs +18 -6
- 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 +36 -12
- package/dist/141/liquidityProvider/liquidityDepositAddressReady.d.ts +36 -12
- package/dist/141/liquidityProvider/liquidityRefundAddressRegistered.d.cts +4 -4
- package/dist/141/liquidityProvider/liquidityRefundAddressRegistered.d.ts +4 -4
- package/dist/141/liquidityProvider/withdrawalEgressScheduled.d.cts +36 -12
- package/dist/141/liquidityProvider/withdrawalEgressScheduled.d.ts +36 -12
- package/dist/141/polkadotIngressEgress/boostFundsAdded.d.cts +4 -4
- package/dist/141/polkadotIngressEgress/boostFundsAdded.d.ts +4 -4
- package/dist/141/polkadotIngressEgress/ccmEgressInvalid.d.cts +16 -16
- package/dist/141/polkadotIngressEgress/ccmEgressInvalid.d.ts +16 -16
- package/dist/141/polkadotIngressEgress/depositBoosted.d.cts +4 -4
- package/dist/141/polkadotIngressEgress/depositBoosted.d.ts +4 -4
- package/dist/141/polkadotIngressEgress/depositFinalised.d.cts +4 -4
- package/dist/141/polkadotIngressEgress/depositFinalised.d.ts +4 -4
- package/dist/141/polkadotIngressEgress/insufficientBoostLiquidity.d.cts +3 -3
- package/dist/141/polkadotIngressEgress/insufficientBoostLiquidity.d.ts +3 -3
- 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 +108 -84
- package/dist/141/swapping/ccmDepositReceived.d.ts +108 -84
- package/dist/141/swapping/ccmFailed.d.cts +164 -116
- package/dist/141/swapping/ccmFailed.d.ts +164 -116
- 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 +100 -52
- package/dist/141/swapping/swapDepositAddressReady.d.ts +100 -52
- 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 +188 -140
- package/dist/141/swapping/swapScheduled.d.ts +188 -140
- package/dist/141/swapping/withdrawalRequested.d.cts +54 -30
- package/dist/141/swapping/withdrawalRequested.d.ts +54 -30
- package/dist/150/assetBalances/refundScheduled.d.cts +2 -2
- package/dist/150/assetBalances/refundScheduled.d.ts +2 -2
- package/dist/150/assetBalances/refundSkipped.d.cts +50 -50
- package/dist/150/assetBalances/refundSkipped.d.ts +50 -50
- package/dist/150/common.cjs +25 -8
- package/dist/150/common.d.cts +125 -35
- package/dist/150/common.d.ts +125 -35
- 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 +45 -15
- package/dist/150/liquidityProvider/liquidityDepositAddressReady.d.ts +45 -15
- package/dist/150/liquidityProvider/liquidityRefundAddressRegistered.d.cts +4 -4
- package/dist/150/liquidityProvider/liquidityRefundAddressRegistered.d.ts +4 -4
- package/dist/150/liquidityProvider/withdrawalEgressScheduled.d.cts +45 -15
- package/dist/150/liquidityProvider/withdrawalEgressScheduled.d.ts +45 -15
- package/dist/150/polkadotIngressEgress/ccmEgressInvalid.d.cts +20 -20
- package/dist/150/polkadotIngressEgress/ccmEgressInvalid.d.ts +20 -20
- package/dist/150/polkadotIngressEgress/depositBoosted.d.cts +10 -10
- package/dist/150/polkadotIngressEgress/depositBoosted.d.ts +10 -10
- package/dist/150/polkadotIngressEgress/depositFinalised.d.cts +4 -4
- package/dist/150/polkadotIngressEgress/depositFinalised.d.ts +4 -4
- package/dist/150/polkadotIngressEgress/depositWitnessRejected.d.cts +16 -16
- package/dist/150/polkadotIngressEgress/depositWitnessRejected.d.ts +16 -16
- 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/swapping/batchSwapFailed.d.cts +8 -8
- package/dist/150/swapping/batchSwapFailed.d.ts +8 -8
- package/dist/150/swapping/ccmDepositReceived.d.cts +125 -95
- package/dist/150/swapping/ccmDepositReceived.d.ts +125 -95
- package/dist/150/swapping/ccmFailed.d.cts +195 -135
- package/dist/150/swapping/ccmFailed.d.ts +195 -135
- 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 +192 -102
- package/dist/150/swapping/swapDepositAddressReady.d.ts +192 -102
- 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 +219 -159
- package/dist/150/swapping/swapScheduled.d.ts +219 -159
- package/dist/150/swapping/withdrawalRequested.d.cts +61 -31
- package/dist/150/swapping/withdrawalRequested.d.ts +61 -31
- package/dist/160/common.cjs +25 -8
- package/dist/160/common.d.cts +170 -50
- package/dist/160/common.d.ts +170 -50
- 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/liquidityDepositAddressReady.d.cts +45 -15
- package/dist/160/liquidityProvider/liquidityDepositAddressReady.d.ts +45 -15
- package/dist/160/liquidityProvider/withdrawalEgressScheduled.d.cts +45 -15
- package/dist/160/liquidityProvider/withdrawalEgressScheduled.d.ts +45 -15
- package/dist/160/solanaIngressEgress/boostFundsAdded.d.cts +2 -2
- package/dist/160/solanaIngressEgress/boostFundsAdded.d.ts +2 -2
- package/dist/160/solanaIngressEgress/ccmEgressInvalid.d.cts +50 -50
- package/dist/160/solanaIngressEgress/ccmEgressInvalid.d.ts +50 -50
- package/dist/160/solanaIngressEgress/depositFinalised.d.cts +2 -2
- package/dist/160/solanaIngressEgress/depositFinalised.d.ts +2 -2
- package/dist/160/solanaIngressEgress/depositIgnored.d.cts +2 -2
- package/dist/160/solanaIngressEgress/depositIgnored.d.ts +2 -2
- package/dist/160/solanaIngressEgress/depositWitnessRejected.d.cts +20 -20
- package/dist/160/solanaIngressEgress/depositWitnessRejected.d.ts +20 -20
- package/dist/160/swapping/ccmFailed.d.cts +100 -40
- package/dist/160/swapping/ccmFailed.d.ts +100 -40
- package/dist/160/swapping/swapDepositAddressReady.d.cts +90 -30
- package/dist/160/swapping/swapDepositAddressReady.d.ts +90 -30
- package/dist/160/swapping/swapRequested.d.cts +165 -75
- package/dist/160/swapping/swapRequested.d.ts +165 -75
- package/dist/160/swapping/withdrawalRequested.d.cts +45 -15
- package/dist/160/swapping/withdrawalRequested.d.ts +45 -15
- package/dist/Processor.cjs +7 -1
- package/dist/Processor.mjs +7 -1
- package/package.json +1 -1
|
@@ -13,97 +13,127 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
|
|
|
13
13
|
egressAsset: z.ZodEffects<z.ZodObject<{
|
|
14
14
|
__kind: z.ZodEnum<["Eth", "Flip", "Usdc", "Dot", "Btc", "ArbEth", "ArbUsdc", "Usdt", "Sol"]>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
__kind: "Eth" | "
|
|
16
|
+
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol";
|
|
17
17
|
}, {
|
|
18
|
-
__kind: "Eth" | "
|
|
19
|
-
}>, "Eth" | "
|
|
20
|
-
__kind: "Eth" | "
|
|
18
|
+
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol";
|
|
19
|
+
}>, "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol", {
|
|
20
|
+
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol";
|
|
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
|
-
destinationAddress: z.ZodUnion<[z.ZodObject<{
|
|
24
|
+
destinationAddress: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
25
25
|
__kind: z.ZodLiteral<"Eth">;
|
|
26
26
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
value: `0x${string}`;
|
|
29
28
|
__kind: "Eth";
|
|
29
|
+
value: `0x${string}`;
|
|
30
30
|
}, {
|
|
31
|
+
__kind: "Eth";
|
|
31
32
|
value: string;
|
|
33
|
+
}>, {
|
|
34
|
+
chain: "Ethereum";
|
|
35
|
+
address: `0x${string}`;
|
|
36
|
+
}, {
|
|
32
37
|
__kind: "Eth";
|
|
33
|
-
|
|
38
|
+
value: string;
|
|
39
|
+
}>, z.ZodEffects<z.ZodObject<{
|
|
34
40
|
__kind: z.ZodLiteral<"Dot">;
|
|
35
41
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
36
42
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
value: `0x${string}`;
|
|
38
43
|
__kind: "Dot";
|
|
44
|
+
value: `0x${string}`;
|
|
39
45
|
}, {
|
|
46
|
+
__kind: "Dot";
|
|
40
47
|
value: string;
|
|
48
|
+
}>, {
|
|
49
|
+
chain: "Polkadot";
|
|
50
|
+
address: string;
|
|
51
|
+
}, {
|
|
41
52
|
__kind: "Dot";
|
|
42
|
-
|
|
53
|
+
value: string;
|
|
54
|
+
}>, z.ZodEffects<z.ZodObject<{
|
|
43
55
|
__kind: z.ZodLiteral<"Btc">;
|
|
44
56
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
45
57
|
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
value: `0x${string}`;
|
|
47
58
|
__kind: "Btc";
|
|
59
|
+
value: `0x${string}`;
|
|
48
60
|
}, {
|
|
61
|
+
__kind: "Btc";
|
|
49
62
|
value: string;
|
|
63
|
+
}>, {
|
|
64
|
+
chain: "Bitcoin";
|
|
65
|
+
address: string;
|
|
66
|
+
}, {
|
|
50
67
|
__kind: "Btc";
|
|
51
|
-
|
|
68
|
+
value: string;
|
|
69
|
+
}>, z.ZodEffects<z.ZodObject<{
|
|
52
70
|
__kind: z.ZodLiteral<"Arb">;
|
|
53
71
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
54
72
|
}, "strip", z.ZodTypeAny, {
|
|
55
|
-
value: `0x${string}`;
|
|
56
73
|
__kind: "Arb";
|
|
74
|
+
value: `0x${string}`;
|
|
57
75
|
}, {
|
|
76
|
+
__kind: "Arb";
|
|
58
77
|
value: string;
|
|
78
|
+
}>, {
|
|
79
|
+
chain: "Arbitrum";
|
|
80
|
+
address: `0x${string}`;
|
|
81
|
+
}, {
|
|
59
82
|
__kind: "Arb";
|
|
60
|
-
|
|
83
|
+
value: string;
|
|
84
|
+
}>, z.ZodEffects<z.ZodObject<{
|
|
61
85
|
__kind: z.ZodLiteral<"Sol">;
|
|
62
86
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
63
87
|
}, "strip", z.ZodTypeAny, {
|
|
64
|
-
value: `0x${string}`;
|
|
65
88
|
__kind: "Sol";
|
|
89
|
+
value: `0x${string}`;
|
|
66
90
|
}, {
|
|
91
|
+
__kind: "Sol";
|
|
67
92
|
value: string;
|
|
93
|
+
}>, {
|
|
94
|
+
chain: "Solana";
|
|
95
|
+
address: string;
|
|
96
|
+
}, {
|
|
68
97
|
__kind: "Sol";
|
|
98
|
+
value: string;
|
|
69
99
|
}>]>;
|
|
70
100
|
}, "strip", z.ZodTypeAny, {
|
|
71
101
|
destinationAddress: {
|
|
72
|
-
|
|
73
|
-
|
|
102
|
+
chain: "Ethereum";
|
|
103
|
+
address: `0x${string}`;
|
|
74
104
|
} | {
|
|
75
|
-
|
|
76
|
-
|
|
105
|
+
chain: "Polkadot";
|
|
106
|
+
address: string;
|
|
77
107
|
} | {
|
|
78
|
-
|
|
79
|
-
|
|
108
|
+
chain: "Bitcoin";
|
|
109
|
+
address: string;
|
|
80
110
|
} | {
|
|
81
|
-
|
|
82
|
-
|
|
111
|
+
chain: "Arbitrum";
|
|
112
|
+
address: `0x${string}`;
|
|
83
113
|
} | {
|
|
84
|
-
|
|
85
|
-
|
|
114
|
+
chain: "Solana";
|
|
115
|
+
address: string;
|
|
86
116
|
};
|
|
87
117
|
egressId: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum" | "Solana", bigint];
|
|
88
118
|
egressFee: bigint;
|
|
89
119
|
egressAmount: bigint;
|
|
90
|
-
egressAsset: "Eth" | "
|
|
120
|
+
egressAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol";
|
|
91
121
|
}, {
|
|
92
122
|
destinationAddress: {
|
|
93
|
-
value: string;
|
|
94
123
|
__kind: "Eth";
|
|
95
|
-
} | {
|
|
96
124
|
value: string;
|
|
97
|
-
__kind: "Dot";
|
|
98
125
|
} | {
|
|
126
|
+
__kind: "Dot";
|
|
99
127
|
value: string;
|
|
100
|
-
__kind: "Btc";
|
|
101
128
|
} | {
|
|
129
|
+
__kind: "Btc";
|
|
102
130
|
value: string;
|
|
103
|
-
__kind: "Arb";
|
|
104
131
|
} | {
|
|
132
|
+
__kind: "Arb";
|
|
105
133
|
value: string;
|
|
134
|
+
} | {
|
|
106
135
|
__kind: "Sol";
|
|
136
|
+
value: string;
|
|
107
137
|
};
|
|
108
138
|
egressId: [{
|
|
109
139
|
__kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum" | "Solana";
|
|
@@ -111,7 +141,7 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
|
|
|
111
141
|
egressFee: string | number;
|
|
112
142
|
egressAmount: string | number;
|
|
113
143
|
egressAsset: {
|
|
114
|
-
__kind: "Eth" | "
|
|
144
|
+
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol";
|
|
115
145
|
};
|
|
116
146
|
}>;
|
|
117
147
|
|
|
@@ -13,97 +13,127 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
|
|
|
13
13
|
egressAsset: z.ZodEffects<z.ZodObject<{
|
|
14
14
|
__kind: z.ZodEnum<["Eth", "Flip", "Usdc", "Dot", "Btc", "ArbEth", "ArbUsdc", "Usdt", "Sol"]>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
__kind: "Eth" | "
|
|
16
|
+
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol";
|
|
17
17
|
}, {
|
|
18
|
-
__kind: "Eth" | "
|
|
19
|
-
}>, "Eth" | "
|
|
20
|
-
__kind: "Eth" | "
|
|
18
|
+
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol";
|
|
19
|
+
}>, "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol", {
|
|
20
|
+
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol";
|
|
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
|
-
destinationAddress: z.ZodUnion<[z.ZodObject<{
|
|
24
|
+
destinationAddress: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
|
|
25
25
|
__kind: z.ZodLiteral<"Eth">;
|
|
26
26
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
27
27
|
}, "strip", z.ZodTypeAny, {
|
|
28
|
-
value: `0x${string}`;
|
|
29
28
|
__kind: "Eth";
|
|
29
|
+
value: `0x${string}`;
|
|
30
30
|
}, {
|
|
31
|
+
__kind: "Eth";
|
|
31
32
|
value: string;
|
|
33
|
+
}>, {
|
|
34
|
+
chain: "Ethereum";
|
|
35
|
+
address: `0x${string}`;
|
|
36
|
+
}, {
|
|
32
37
|
__kind: "Eth";
|
|
33
|
-
|
|
38
|
+
value: string;
|
|
39
|
+
}>, z.ZodEffects<z.ZodObject<{
|
|
34
40
|
__kind: z.ZodLiteral<"Dot">;
|
|
35
41
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
36
42
|
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
value: `0x${string}`;
|
|
38
43
|
__kind: "Dot";
|
|
44
|
+
value: `0x${string}`;
|
|
39
45
|
}, {
|
|
46
|
+
__kind: "Dot";
|
|
40
47
|
value: string;
|
|
48
|
+
}>, {
|
|
49
|
+
chain: "Polkadot";
|
|
50
|
+
address: string;
|
|
51
|
+
}, {
|
|
41
52
|
__kind: "Dot";
|
|
42
|
-
|
|
53
|
+
value: string;
|
|
54
|
+
}>, z.ZodEffects<z.ZodObject<{
|
|
43
55
|
__kind: z.ZodLiteral<"Btc">;
|
|
44
56
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
45
57
|
}, "strip", z.ZodTypeAny, {
|
|
46
|
-
value: `0x${string}`;
|
|
47
58
|
__kind: "Btc";
|
|
59
|
+
value: `0x${string}`;
|
|
48
60
|
}, {
|
|
61
|
+
__kind: "Btc";
|
|
49
62
|
value: string;
|
|
63
|
+
}>, {
|
|
64
|
+
chain: "Bitcoin";
|
|
65
|
+
address: string;
|
|
66
|
+
}, {
|
|
50
67
|
__kind: "Btc";
|
|
51
|
-
|
|
68
|
+
value: string;
|
|
69
|
+
}>, z.ZodEffects<z.ZodObject<{
|
|
52
70
|
__kind: z.ZodLiteral<"Arb">;
|
|
53
71
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
54
72
|
}, "strip", z.ZodTypeAny, {
|
|
55
|
-
value: `0x${string}`;
|
|
56
73
|
__kind: "Arb";
|
|
74
|
+
value: `0x${string}`;
|
|
57
75
|
}, {
|
|
76
|
+
__kind: "Arb";
|
|
58
77
|
value: string;
|
|
78
|
+
}>, {
|
|
79
|
+
chain: "Arbitrum";
|
|
80
|
+
address: `0x${string}`;
|
|
81
|
+
}, {
|
|
59
82
|
__kind: "Arb";
|
|
60
|
-
|
|
83
|
+
value: string;
|
|
84
|
+
}>, z.ZodEffects<z.ZodObject<{
|
|
61
85
|
__kind: z.ZodLiteral<"Sol">;
|
|
62
86
|
value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
|
|
63
87
|
}, "strip", z.ZodTypeAny, {
|
|
64
|
-
value: `0x${string}`;
|
|
65
88
|
__kind: "Sol";
|
|
89
|
+
value: `0x${string}`;
|
|
66
90
|
}, {
|
|
91
|
+
__kind: "Sol";
|
|
67
92
|
value: string;
|
|
93
|
+
}>, {
|
|
94
|
+
chain: "Solana";
|
|
95
|
+
address: string;
|
|
96
|
+
}, {
|
|
68
97
|
__kind: "Sol";
|
|
98
|
+
value: string;
|
|
69
99
|
}>]>;
|
|
70
100
|
}, "strip", z.ZodTypeAny, {
|
|
71
101
|
destinationAddress: {
|
|
72
|
-
|
|
73
|
-
|
|
102
|
+
chain: "Ethereum";
|
|
103
|
+
address: `0x${string}`;
|
|
74
104
|
} | {
|
|
75
|
-
|
|
76
|
-
|
|
105
|
+
chain: "Polkadot";
|
|
106
|
+
address: string;
|
|
77
107
|
} | {
|
|
78
|
-
|
|
79
|
-
|
|
108
|
+
chain: "Bitcoin";
|
|
109
|
+
address: string;
|
|
80
110
|
} | {
|
|
81
|
-
|
|
82
|
-
|
|
111
|
+
chain: "Arbitrum";
|
|
112
|
+
address: `0x${string}`;
|
|
83
113
|
} | {
|
|
84
|
-
|
|
85
|
-
|
|
114
|
+
chain: "Solana";
|
|
115
|
+
address: string;
|
|
86
116
|
};
|
|
87
117
|
egressId: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum" | "Solana", bigint];
|
|
88
118
|
egressFee: bigint;
|
|
89
119
|
egressAmount: bigint;
|
|
90
|
-
egressAsset: "Eth" | "
|
|
120
|
+
egressAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol";
|
|
91
121
|
}, {
|
|
92
122
|
destinationAddress: {
|
|
93
|
-
value: string;
|
|
94
123
|
__kind: "Eth";
|
|
95
|
-
} | {
|
|
96
124
|
value: string;
|
|
97
|
-
__kind: "Dot";
|
|
98
125
|
} | {
|
|
126
|
+
__kind: "Dot";
|
|
99
127
|
value: string;
|
|
100
|
-
__kind: "Btc";
|
|
101
128
|
} | {
|
|
129
|
+
__kind: "Btc";
|
|
102
130
|
value: string;
|
|
103
|
-
__kind: "Arb";
|
|
104
131
|
} | {
|
|
132
|
+
__kind: "Arb";
|
|
105
133
|
value: string;
|
|
134
|
+
} | {
|
|
106
135
|
__kind: "Sol";
|
|
136
|
+
value: string;
|
|
107
137
|
};
|
|
108
138
|
egressId: [{
|
|
109
139
|
__kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum" | "Solana";
|
|
@@ -111,7 +141,7 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
|
|
|
111
141
|
egressFee: string | number;
|
|
112
142
|
egressAmount: string | number;
|
|
113
143
|
egressAsset: {
|
|
114
|
-
__kind: "Eth" | "
|
|
144
|
+
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol";
|
|
115
145
|
};
|
|
116
146
|
}>;
|
|
117
147
|
|
package/dist/160/common.cjs
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
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/160/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
|
+
var _base58 = require('@chainflip/utils/base58'); var base58 = _interopRequireWildcard(_base58);
|
|
5
|
+
var _bytes = require('@chainflip/utils/bytes');
|
|
4
6
|
var hexString = _zod.z.string().refine((v) => /^0x[\da-f]*$/i.test(v), { message: "Invalid hex string" });
|
|
5
7
|
var numericString = _zod.z.string().refine((v) => /^\d+$/.test(v), { message: "Invalid numeric string" });
|
|
6
8
|
var numberOrHex = _zod.z.union([_zod.z.number(), hexString, numericString]).transform((n) => BigInt(n));
|
|
@@ -18,11 +20,26 @@ var cfPrimitivesChainsAssetsAnyAsset = simpleEnum([
|
|
|
18
20
|
"SolUsdc"
|
|
19
21
|
]);
|
|
20
22
|
var cfChainsAddressEncodedAddress = _zod.z.union([
|
|
21
|
-
_zod.z.object({ __kind: _zod.z.literal("Eth"), value: hexString })
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
_zod.z.object({ __kind: _zod.z.literal("
|
|
23
|
+
_zod.z.object({ __kind: _zod.z.literal("Eth"), value: hexString }).transform(({ value }) => ({
|
|
24
|
+
chain: "Ethereum",
|
|
25
|
+
address: value
|
|
26
|
+
})),
|
|
27
|
+
_zod.z.object({ __kind: _zod.z.literal("Dot"), value: hexString }).transform(({ value }) => ({
|
|
28
|
+
chain: "Polkadot",
|
|
29
|
+
address: ss58.encode({ data: value, ss58Format: 0 })
|
|
30
|
+
})),
|
|
31
|
+
_zod.z.object({ __kind: _zod.z.literal("Btc"), value: hexString }).transform(({ value }) => ({
|
|
32
|
+
chain: "Bitcoin",
|
|
33
|
+
address: Buffer.from(value.slice(2), "hex").toString("utf8")
|
|
34
|
+
})),
|
|
35
|
+
_zod.z.object({ __kind: _zod.z.literal("Arb"), value: hexString }).transform(({ value }) => ({
|
|
36
|
+
chain: "Arbitrum",
|
|
37
|
+
address: value
|
|
38
|
+
})),
|
|
39
|
+
_zod.z.object({ __kind: _zod.z.literal("Sol"), value: hexString }).transform(({ value }) => ({
|
|
40
|
+
chain: "Solana",
|
|
41
|
+
address: base58.encode(_bytes.hexToBytes.call(void 0, value))
|
|
42
|
+
}))
|
|
26
43
|
]);
|
|
27
44
|
var cfChainsSwapOrigin = _zod.z.union([
|
|
28
45
|
_zod.z.object({
|
|
@@ -79,7 +96,7 @@ var cfTraitsSwappingSwapRequestTypeGeneric = _zod.z.union([
|
|
|
79
96
|
var accountId = _zod.z.union([
|
|
80
97
|
hexString,
|
|
81
98
|
_zod.z.string().regex(/^[0-9a-f]+$/).transform((v) => `0x${v}`)
|
|
82
|
-
]).transform((value) =>
|
|
99
|
+
]).transform((value) => ss58.encode({ data: value, ss58Format: 2112 }));
|
|
83
100
|
var cfPrimitivesBeneficiary = _zod.z.object({ account: accountId, bps: _zod.z.number() });
|
|
84
101
|
var cfChainsChannelRefundParameters = _zod.z.object({
|
|
85
102
|
retryDuration: _zod.z.number(),
|