@chainflip/processor 1.7.2 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/100/swapping/batchSwapFailed.d.cts +8 -8
- package/dist/100/swapping/batchSwapFailed.d.ts +8 -8
- package/dist/100/swapping/ccmDepositReceived.d.cts +70 -70
- package/dist/100/swapping/ccmDepositReceived.d.ts +70 -70
- package/dist/100/swapping/ccmFailed.d.cts +70 -70
- package/dist/100/swapping/ccmFailed.d.ts +70 -70
- package/dist/100/swapping/minimumSwapAmountSet.d.cts +6 -6
- package/dist/100/swapping/minimumSwapAmountSet.d.ts +6 -6
- package/dist/100/swapping/swapAmountTooLow.d.cts +37 -37
- package/dist/100/swapping/swapAmountTooLow.d.ts +37 -37
- package/dist/100/swapping/swapDepositAddressReady.d.cts +42 -42
- package/dist/100/swapping/swapDepositAddressReady.d.ts +42 -42
- package/dist/100/swapping/swapEgressScheduled.d.cts +6 -6
- package/dist/100/swapping/swapEgressScheduled.d.ts +6 -6
- package/dist/100/swapping/swapExecuted.d.cts +12 -12
- package/dist/100/swapping/swapExecuted.d.ts +12 -12
- package/dist/100/swapping/swapScheduled.d.cts +109 -109
- package/dist/100/swapping/swapScheduled.d.ts +109 -109
- package/dist/100/swapping/withdrawalRequested.d.cts +12 -12
- package/dist/100/swapping/withdrawalRequested.d.ts +12 -12
- package/dist/180/arbitrumIngressEgress/ccmEgressInvalid.cjs +14 -0
- package/dist/180/arbitrumIngressEgress/ccmEgressInvalid.d.cts +532 -0
- package/dist/180/arbitrumIngressEgress/ccmEgressInvalid.d.ts +532 -0
- package/dist/180/arbitrumIngressEgress/ccmEgressInvalid.mjs +14 -0
- package/dist/180/arbitrumIngressEgress/ccmFailed.cjs +17 -0
- package/dist/180/arbitrumIngressEgress/ccmFailed.d.cts +640 -0
- package/dist/180/arbitrumIngressEgress/ccmFailed.d.ts +640 -0
- package/dist/180/arbitrumIngressEgress/ccmFailed.mjs +17 -0
- package/dist/180/arbitrumIngressEgress/depositBoosted.cjs +27 -0
- package/dist/180/arbitrumIngressEgress/depositBoosted.d.cts +154 -0
- package/dist/180/arbitrumIngressEgress/depositBoosted.d.ts +154 -0
- package/dist/180/arbitrumIngressEgress/depositBoosted.mjs +27 -0
- package/dist/180/arbitrumIngressEgress/depositFinalised.cjs +25 -0
- package/dist/180/arbitrumIngressEgress/depositFinalised.d.cts +148 -0
- package/dist/180/arbitrumIngressEgress/depositFinalised.d.ts +148 -0
- package/dist/180/arbitrumIngressEgress/depositFinalised.mjs +25 -0
- package/dist/180/arbitrumIngressEgress/depositIgnored.cjs +19 -0
- package/dist/180/arbitrumIngressEgress/depositIgnored.d.cts +53 -0
- package/dist/180/arbitrumIngressEgress/depositIgnored.d.ts +53 -0
- package/dist/180/arbitrumIngressEgress/depositIgnored.mjs +19 -0
- package/dist/180/arbitrumIngressEgress/failedToBuildAllBatchCall.cjs +9 -0
- package/dist/180/arbitrumIngressEgress/failedToBuildAllBatchCall.d.cts +559 -0
- package/dist/180/arbitrumIngressEgress/failedToBuildAllBatchCall.d.ts +559 -0
- package/dist/180/arbitrumIngressEgress/failedToBuildAllBatchCall.mjs +9 -0
- package/dist/180/arbitrumIngressEgress/insufficientBoostLiquidity.cjs +17 -0
- package/dist/180/arbitrumIngressEgress/insufficientBoostLiquidity.d.cts +43 -0
- package/dist/180/arbitrumIngressEgress/insufficientBoostLiquidity.d.ts +43 -0
- package/dist/180/arbitrumIngressEgress/insufficientBoostLiquidity.mjs +17 -0
- package/dist/180/arbitrumIngressEgress/networkFeeDeductionFromBoostSet.cjs +8 -0
- package/dist/180/arbitrumIngressEgress/networkFeeDeductionFromBoostSet.d.cts +11 -0
- package/dist/180/arbitrumIngressEgress/networkFeeDeductionFromBoostSet.d.ts +11 -0
- package/dist/180/arbitrumIngressEgress/networkFeeDeductionFromBoostSet.mjs +8 -0
- package/dist/180/arbitrumIngressEgress/unknownAffiliate.cjs +10 -0
- package/dist/180/arbitrumIngressEgress/unknownAffiliate.d.cts +14 -0
- package/dist/180/arbitrumIngressEgress/unknownAffiliate.d.ts +14 -0
- package/dist/180/arbitrumIngressEgress/unknownAffiliate.mjs +10 -0
- package/dist/180/arbitrumIngressEgress/unknownBroker.cjs +7 -0
- package/dist/180/arbitrumIngressEgress/unknownBroker.d.cts +11 -0
- package/dist/180/arbitrumIngressEgress/unknownBroker.d.ts +11 -0
- package/dist/180/arbitrumIngressEgress/unknownBroker.mjs +7 -0
- package/dist/180/bitcoinIngressEgress/ccmEgressInvalid.cjs +14 -0
- package/dist/180/bitcoinIngressEgress/ccmEgressInvalid.d.cts +532 -0
- package/dist/180/bitcoinIngressEgress/ccmEgressInvalid.d.ts +532 -0
- package/dist/180/bitcoinIngressEgress/ccmEgressInvalid.mjs +14 -0
- package/dist/180/bitcoinIngressEgress/ccmFailed.cjs +17 -0
- package/dist/180/bitcoinIngressEgress/ccmFailed.d.cts +640 -0
- package/dist/180/bitcoinIngressEgress/ccmFailed.d.ts +640 -0
- package/dist/180/bitcoinIngressEgress/ccmFailed.mjs +17 -0
- package/dist/180/bitcoinIngressEgress/depositBoosted.cjs +27 -0
- package/dist/180/bitcoinIngressEgress/depositBoosted.d.cts +368 -0
- package/dist/180/bitcoinIngressEgress/depositBoosted.d.ts +368 -0
- package/dist/180/bitcoinIngressEgress/depositBoosted.mjs +27 -0
- package/dist/180/bitcoinIngressEgress/depositFinalised.cjs +25 -0
- package/dist/180/bitcoinIngressEgress/depositFinalised.d.cts +362 -0
- package/dist/180/bitcoinIngressEgress/depositFinalised.d.ts +362 -0
- package/dist/180/bitcoinIngressEgress/depositFinalised.mjs +25 -0
- package/dist/180/bitcoinIngressEgress/depositIgnored.cjs +19 -0
- package/dist/180/bitcoinIngressEgress/depositIgnored.d.cts +267 -0
- package/dist/180/bitcoinIngressEgress/depositIgnored.d.ts +267 -0
- package/dist/180/bitcoinIngressEgress/depositIgnored.mjs +19 -0
- package/dist/180/bitcoinIngressEgress/failedToBuildAllBatchCall.cjs +9 -0
- package/dist/180/bitcoinIngressEgress/failedToBuildAllBatchCall.d.cts +559 -0
- package/dist/180/bitcoinIngressEgress/failedToBuildAllBatchCall.d.ts +559 -0
- package/dist/180/bitcoinIngressEgress/failedToBuildAllBatchCall.mjs +9 -0
- package/dist/180/bitcoinIngressEgress/insufficientBoostLiquidity.cjs +17 -0
- package/dist/180/bitcoinIngressEgress/insufficientBoostLiquidity.d.cts +43 -0
- package/dist/180/bitcoinIngressEgress/insufficientBoostLiquidity.d.ts +43 -0
- package/dist/180/bitcoinIngressEgress/insufficientBoostLiquidity.mjs +17 -0
- package/dist/180/bitcoinIngressEgress/networkFeeDeductionFromBoostSet.cjs +8 -0
- package/dist/180/bitcoinIngressEgress/networkFeeDeductionFromBoostSet.d.cts +11 -0
- package/dist/180/bitcoinIngressEgress/networkFeeDeductionFromBoostSet.d.ts +11 -0
- package/dist/180/bitcoinIngressEgress/networkFeeDeductionFromBoostSet.mjs +8 -0
- package/dist/180/bitcoinIngressEgress/unknownAffiliate.cjs +10 -0
- package/dist/180/bitcoinIngressEgress/unknownAffiliate.d.cts +14 -0
- package/dist/180/bitcoinIngressEgress/unknownAffiliate.d.ts +14 -0
- package/dist/180/bitcoinIngressEgress/unknownAffiliate.mjs +10 -0
- package/dist/180/bitcoinIngressEgress/unknownBroker.cjs +7 -0
- package/dist/180/bitcoinIngressEgress/unknownBroker.d.cts +11 -0
- package/dist/180/bitcoinIngressEgress/unknownBroker.d.ts +11 -0
- package/dist/180/bitcoinIngressEgress/unknownBroker.mjs +7 -0
- package/dist/180/common.cjs +290 -0
- package/dist/180/common.d.cts +2948 -0
- package/dist/180/common.d.ts +2948 -0
- package/dist/180/common.mjs +290 -0
- package/dist/180/ethereumIngressEgress/ccmEgressInvalid.cjs +14 -0
- package/dist/180/ethereumIngressEgress/ccmEgressInvalid.d.cts +532 -0
- package/dist/180/ethereumIngressEgress/ccmEgressInvalid.d.ts +532 -0
- package/dist/180/ethereumIngressEgress/ccmEgressInvalid.mjs +14 -0
- package/dist/180/ethereumIngressEgress/ccmFailed.cjs +17 -0
- package/dist/180/ethereumIngressEgress/ccmFailed.d.cts +640 -0
- package/dist/180/ethereumIngressEgress/ccmFailed.d.ts +640 -0
- package/dist/180/ethereumIngressEgress/ccmFailed.mjs +17 -0
- package/dist/180/ethereumIngressEgress/depositBoosted.cjs +27 -0
- package/dist/180/ethereumIngressEgress/depositBoosted.d.cts +154 -0
- package/dist/180/ethereumIngressEgress/depositBoosted.d.ts +154 -0
- package/dist/180/ethereumIngressEgress/depositBoosted.mjs +27 -0
- package/dist/180/ethereumIngressEgress/depositFinalised.cjs +25 -0
- package/dist/180/ethereumIngressEgress/depositFinalised.d.cts +148 -0
- package/dist/180/ethereumIngressEgress/depositFinalised.d.ts +148 -0
- package/dist/180/ethereumIngressEgress/depositFinalised.mjs +25 -0
- package/dist/180/ethereumIngressEgress/depositIgnored.cjs +19 -0
- package/dist/180/ethereumIngressEgress/depositIgnored.d.cts +53 -0
- package/dist/180/ethereumIngressEgress/depositIgnored.d.ts +53 -0
- package/dist/180/ethereumIngressEgress/depositIgnored.mjs +19 -0
- package/dist/180/ethereumIngressEgress/failedToBuildAllBatchCall.cjs +9 -0
- package/dist/180/ethereumIngressEgress/failedToBuildAllBatchCall.d.cts +559 -0
- package/dist/180/ethereumIngressEgress/failedToBuildAllBatchCall.d.ts +559 -0
- package/dist/180/ethereumIngressEgress/failedToBuildAllBatchCall.mjs +9 -0
- package/dist/180/ethereumIngressEgress/insufficientBoostLiquidity.cjs +17 -0
- package/dist/180/ethereumIngressEgress/insufficientBoostLiquidity.d.cts +43 -0
- package/dist/180/ethereumIngressEgress/insufficientBoostLiquidity.d.ts +43 -0
- package/dist/180/ethereumIngressEgress/insufficientBoostLiquidity.mjs +17 -0
- package/dist/180/ethereumIngressEgress/networkFeeDeductionFromBoostSet.cjs +8 -0
- package/dist/180/ethereumIngressEgress/networkFeeDeductionFromBoostSet.d.cts +11 -0
- package/dist/180/ethereumIngressEgress/networkFeeDeductionFromBoostSet.d.ts +11 -0
- package/dist/180/ethereumIngressEgress/networkFeeDeductionFromBoostSet.mjs +8 -0
- package/dist/180/ethereumIngressEgress/unknownAffiliate.cjs +10 -0
- package/dist/180/ethereumIngressEgress/unknownAffiliate.d.cts +14 -0
- package/dist/180/ethereumIngressEgress/unknownAffiliate.d.ts +14 -0
- package/dist/180/ethereumIngressEgress/unknownAffiliate.mjs +10 -0
- package/dist/180/ethereumIngressEgress/unknownBroker.cjs +7 -0
- package/dist/180/ethereumIngressEgress/unknownBroker.d.cts +11 -0
- package/dist/180/ethereumIngressEgress/unknownBroker.d.ts +11 -0
- package/dist/180/ethereumIngressEgress/unknownBroker.mjs +7 -0
- package/dist/180/polkadotIngressEgress/ccmEgressInvalid.cjs +14 -0
- package/dist/180/polkadotIngressEgress/ccmEgressInvalid.d.cts +532 -0
- package/dist/180/polkadotIngressEgress/ccmEgressInvalid.d.ts +532 -0
- package/dist/180/polkadotIngressEgress/ccmEgressInvalid.mjs +14 -0
- package/dist/180/polkadotIngressEgress/ccmFailed.cjs +17 -0
- package/dist/180/polkadotIngressEgress/ccmFailed.d.cts +640 -0
- package/dist/180/polkadotIngressEgress/ccmFailed.d.ts +640 -0
- package/dist/180/polkadotIngressEgress/ccmFailed.mjs +17 -0
- package/dist/180/polkadotIngressEgress/depositBoosted.cjs +26 -0
- package/dist/180/polkadotIngressEgress/depositBoosted.d.cts +144 -0
- package/dist/180/polkadotIngressEgress/depositBoosted.d.ts +144 -0
- package/dist/180/polkadotIngressEgress/depositBoosted.mjs +26 -0
- package/dist/180/polkadotIngressEgress/depositFinalised.cjs +24 -0
- package/dist/180/polkadotIngressEgress/depositFinalised.d.cts +138 -0
- package/dist/180/polkadotIngressEgress/depositFinalised.d.ts +138 -0
- package/dist/180/polkadotIngressEgress/depositFinalised.mjs +24 -0
- package/dist/180/polkadotIngressEgress/depositIgnored.cjs +18 -0
- package/dist/180/polkadotIngressEgress/depositIgnored.d.cts +43 -0
- package/dist/180/polkadotIngressEgress/depositIgnored.d.ts +43 -0
- package/dist/180/polkadotIngressEgress/depositIgnored.mjs +18 -0
- package/dist/180/polkadotIngressEgress/failedToBuildAllBatchCall.cjs +9 -0
- package/dist/180/polkadotIngressEgress/failedToBuildAllBatchCall.d.cts +559 -0
- package/dist/180/polkadotIngressEgress/failedToBuildAllBatchCall.d.ts +559 -0
- package/dist/180/polkadotIngressEgress/failedToBuildAllBatchCall.mjs +9 -0
- package/dist/180/polkadotIngressEgress/insufficientBoostLiquidity.cjs +17 -0
- package/dist/180/polkadotIngressEgress/insufficientBoostLiquidity.d.cts +43 -0
- package/dist/180/polkadotIngressEgress/insufficientBoostLiquidity.d.ts +43 -0
- package/dist/180/polkadotIngressEgress/insufficientBoostLiquidity.mjs +17 -0
- package/dist/180/polkadotIngressEgress/networkFeeDeductionFromBoostSet.cjs +8 -0
- package/dist/180/polkadotIngressEgress/networkFeeDeductionFromBoostSet.d.cts +11 -0
- package/dist/180/polkadotIngressEgress/networkFeeDeductionFromBoostSet.d.ts +11 -0
- package/dist/180/polkadotIngressEgress/networkFeeDeductionFromBoostSet.mjs +8 -0
- package/dist/180/polkadotIngressEgress/unknownAffiliate.cjs +10 -0
- package/dist/180/polkadotIngressEgress/unknownAffiliate.d.cts +14 -0
- package/dist/180/polkadotIngressEgress/unknownAffiliate.d.ts +14 -0
- package/dist/180/polkadotIngressEgress/unknownAffiliate.mjs +10 -0
- package/dist/180/polkadotIngressEgress/unknownBroker.cjs +7 -0
- package/dist/180/polkadotIngressEgress/unknownBroker.d.cts +11 -0
- package/dist/180/polkadotIngressEgress/unknownBroker.d.ts +11 -0
- package/dist/180/polkadotIngressEgress/unknownBroker.mjs +7 -0
- package/dist/180/solanaBroadcaster/transactionBroadcastRequest.cjs +12 -0
- package/dist/180/solanaBroadcaster/transactionBroadcastRequest.d.cts +35 -0
- package/dist/180/solanaBroadcaster/transactionBroadcastRequest.d.ts +35 -0
- package/dist/180/solanaBroadcaster/transactionBroadcastRequest.mjs +12 -0
- package/dist/180/solanaIngressEgress/ccmEgressInvalid.cjs +14 -0
- package/dist/180/solanaIngressEgress/ccmEgressInvalid.d.cts +532 -0
- package/dist/180/solanaIngressEgress/ccmEgressInvalid.d.ts +532 -0
- package/dist/180/solanaIngressEgress/ccmEgressInvalid.mjs +14 -0
- package/dist/180/solanaIngressEgress/ccmFailed.cjs +17 -0
- package/dist/180/solanaIngressEgress/ccmFailed.d.cts +640 -0
- package/dist/180/solanaIngressEgress/ccmFailed.d.ts +640 -0
- package/dist/180/solanaIngressEgress/ccmFailed.mjs +17 -0
- package/dist/180/solanaIngressEgress/depositBoosted.cjs +25 -0
- package/dist/180/solanaIngressEgress/depositBoosted.d.cts +141 -0
- package/dist/180/solanaIngressEgress/depositBoosted.d.ts +141 -0
- package/dist/180/solanaIngressEgress/depositBoosted.mjs +25 -0
- package/dist/180/solanaIngressEgress/depositFinalised.cjs +23 -0
- package/dist/180/solanaIngressEgress/depositFinalised.d.cts +135 -0
- package/dist/180/solanaIngressEgress/depositFinalised.d.ts +135 -0
- package/dist/180/solanaIngressEgress/depositFinalised.mjs +23 -0
- package/dist/180/solanaIngressEgress/depositIgnored.cjs +17 -0
- package/dist/180/solanaIngressEgress/depositIgnored.d.cts +40 -0
- package/dist/180/solanaIngressEgress/depositIgnored.d.ts +40 -0
- package/dist/180/solanaIngressEgress/depositIgnored.mjs +17 -0
- package/dist/180/solanaIngressEgress/failedToBuildAllBatchCall.cjs +9 -0
- package/dist/180/solanaIngressEgress/failedToBuildAllBatchCall.d.cts +559 -0
- package/dist/180/solanaIngressEgress/failedToBuildAllBatchCall.d.ts +559 -0
- package/dist/180/solanaIngressEgress/failedToBuildAllBatchCall.mjs +9 -0
- package/dist/180/solanaIngressEgress/insufficientBoostLiquidity.cjs +17 -0
- package/dist/180/solanaIngressEgress/insufficientBoostLiquidity.d.cts +43 -0
- package/dist/180/solanaIngressEgress/insufficientBoostLiquidity.d.ts +43 -0
- package/dist/180/solanaIngressEgress/insufficientBoostLiquidity.mjs +17 -0
- package/dist/180/solanaIngressEgress/networkFeeDeductionFromBoostSet.cjs +8 -0
- package/dist/180/solanaIngressEgress/networkFeeDeductionFromBoostSet.d.cts +11 -0
- package/dist/180/solanaIngressEgress/networkFeeDeductionFromBoostSet.d.ts +11 -0
- package/dist/180/solanaIngressEgress/networkFeeDeductionFromBoostSet.mjs +8 -0
- package/dist/180/solanaIngressEgress/transactionRejectionRequestExpired.cjs +10 -0
- package/dist/180/solanaIngressEgress/transactionRejectionRequestExpired.d.cts +14 -0
- package/dist/180/solanaIngressEgress/transactionRejectionRequestExpired.d.ts +14 -0
- package/dist/180/solanaIngressEgress/transactionRejectionRequestExpired.mjs +10 -0
- package/dist/180/solanaIngressEgress/transactionRejectionRequestReceived.cjs +11 -0
- package/dist/180/solanaIngressEgress/transactionRejectionRequestReceived.d.cts +17 -0
- package/dist/180/solanaIngressEgress/transactionRejectionRequestReceived.d.ts +17 -0
- package/dist/180/solanaIngressEgress/transactionRejectionRequestReceived.mjs +11 -0
- package/dist/180/solanaIngressEgress/unknownAffiliate.cjs +10 -0
- package/dist/180/solanaIngressEgress/unknownAffiliate.d.cts +14 -0
- package/dist/180/solanaIngressEgress/unknownAffiliate.d.ts +14 -0
- package/dist/180/solanaIngressEgress/unknownAffiliate.mjs +10 -0
- package/dist/180/solanaIngressEgress/unknownBroker.cjs +7 -0
- package/dist/180/solanaIngressEgress/unknownBroker.d.cts +11 -0
- package/dist/180/solanaIngressEgress/unknownBroker.d.ts +11 -0
- package/dist/180/solanaIngressEgress/unknownBroker.mjs +7 -0
- package/dist/180/swapping/affiliateRegistrationUpdated.cjs +12 -0
- package/dist/180/swapping/affiliateRegistrationUpdated.d.cts +20 -0
- package/dist/180/swapping/affiliateRegistrationUpdated.d.ts +20 -0
- package/dist/180/swapping/affiliateRegistrationUpdated.mjs +12 -0
- package/dist/180/swapping/brokerBondSet.cjs +7 -0
- package/dist/180/swapping/brokerBondSet.d.cts +11 -0
- package/dist/180/swapping/brokerBondSet.d.ts +11 -0
- package/dist/180/swapping/brokerBondSet.mjs +7 -0
- package/dist/180/swapping/privateBrokerChannelClosed.cjs +10 -0
- package/dist/180/swapping/privateBrokerChannelClosed.d.cts +14 -0
- package/dist/180/swapping/privateBrokerChannelClosed.d.ts +14 -0
- package/dist/180/swapping/privateBrokerChannelClosed.mjs +10 -0
- package/dist/180/swapping/privateBrokerChannelOpened.cjs +10 -0
- package/dist/180/swapping/privateBrokerChannelOpened.d.cts +14 -0
- package/dist/180/swapping/privateBrokerChannelOpened.d.ts +14 -0
- package/dist/180/swapping/privateBrokerChannelOpened.mjs +10 -0
- package/dist/180/swapping/swapDepositAddressReady.cjs +29 -0
- package/dist/180/swapping/swapDepositAddressReady.d.cts +482 -0
- package/dist/180/swapping/swapDepositAddressReady.d.ts +482 -0
- package/dist/180/swapping/swapDepositAddressReady.mjs +29 -0
- package/dist/180/swapping/swapRequested.cjs +25 -0
- package/dist/180/swapping/swapRequested.d.cts +1239 -0
- package/dist/180/swapping/swapRequested.d.ts +1239 -0
- package/dist/180/swapping/swapRequested.mjs +25 -0
- package/package.json +1 -1
|
@@ -0,0 +1,290 @@
|
|
|
1
|
+
// generated/180/common.ts
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
import * as ss58 from "@chainflip/utils/ss58";
|
|
4
|
+
import * as base58 from "@chainflip/utils/base58";
|
|
5
|
+
import { hexToBytes } from "@chainflip/utils/bytes";
|
|
6
|
+
var numericString = z.string().refine((v) => /^\d+$/.test(v), { message: "Invalid numeric string" });
|
|
7
|
+
var hexString = z.string().refine((v) => /^0x[\da-f]*$/i.test(v), { message: "Invalid hex string" });
|
|
8
|
+
var numberOrHex = z.union([z.number(), hexString, numericString]).transform((n) => BigInt(n));
|
|
9
|
+
var simpleEnum = (values) => z.object({ __kind: z.enum(values) }).transform(({ __kind }) => __kind);
|
|
10
|
+
var cfPrimitivesChainsAssetsAnyAsset = simpleEnum([
|
|
11
|
+
"Eth",
|
|
12
|
+
"Flip",
|
|
13
|
+
"Usdc",
|
|
14
|
+
"Dot",
|
|
15
|
+
"Btc",
|
|
16
|
+
"ArbEth",
|
|
17
|
+
"ArbUsdc",
|
|
18
|
+
"Usdt",
|
|
19
|
+
"Sol",
|
|
20
|
+
"SolUsdc"
|
|
21
|
+
]);
|
|
22
|
+
var cfChainsAddressEncodedAddress = z.union([
|
|
23
|
+
z.object({ __kind: z.literal("Eth"), value: hexString }).transform(({ value }) => ({
|
|
24
|
+
chain: "Ethereum",
|
|
25
|
+
address: value
|
|
26
|
+
})),
|
|
27
|
+
z.object({ __kind: z.literal("Dot"), value: hexString }).transform(({ value }) => ({
|
|
28
|
+
chain: "Polkadot",
|
|
29
|
+
address: ss58.encode({ data: value, ss58Format: 0 })
|
|
30
|
+
})),
|
|
31
|
+
z.object({ __kind: z.literal("Btc"), value: hexString }).transform(({ value }) => ({
|
|
32
|
+
chain: "Bitcoin",
|
|
33
|
+
address: Buffer.from(value.slice(2), "hex").toString("utf8")
|
|
34
|
+
})),
|
|
35
|
+
z.object({ __kind: z.literal("Arb"), value: hexString }).transform(({ value }) => ({
|
|
36
|
+
chain: "Arbitrum",
|
|
37
|
+
address: value
|
|
38
|
+
})),
|
|
39
|
+
z.object({ __kind: z.literal("Sol"), value: hexString }).transform(({ value }) => ({
|
|
40
|
+
chain: "Solana",
|
|
41
|
+
address: base58.encode(hexToBytes(value))
|
|
42
|
+
}))
|
|
43
|
+
]);
|
|
44
|
+
var cfPrimitivesTxId = z.object({ blockNumber: z.number(), extrinsicIndex: z.number() });
|
|
45
|
+
var cfChainsTransactionInIdForAnyChain = z.union([
|
|
46
|
+
z.object({ __kind: z.literal("Evm"), value: hexString }),
|
|
47
|
+
z.object({ __kind: z.literal("Bitcoin"), value: hexString }),
|
|
48
|
+
z.object({ __kind: z.literal("Polkadot"), value: cfPrimitivesTxId }),
|
|
49
|
+
z.object({ __kind: z.literal("Solana"), value: z.tuple([hexString, numberOrHex]) }),
|
|
50
|
+
z.object({ __kind: z.literal("None") })
|
|
51
|
+
]);
|
|
52
|
+
var cfChainsSwapOrigin = z.union([
|
|
53
|
+
z.object({
|
|
54
|
+
__kind: z.literal("DepositChannel"),
|
|
55
|
+
depositAddress: cfChainsAddressEncodedAddress,
|
|
56
|
+
channelId: numberOrHex,
|
|
57
|
+
depositBlockHeight: numberOrHex
|
|
58
|
+
}),
|
|
59
|
+
z.object({ __kind: z.literal("Vault"), txId: cfChainsTransactionInIdForAnyChain }),
|
|
60
|
+
z.object({ __kind: z.literal("Internal") })
|
|
61
|
+
]);
|
|
62
|
+
var cfChainsCcmChannelMetadata = z.object({
|
|
63
|
+
message: hexString,
|
|
64
|
+
gasBudget: numberOrHex,
|
|
65
|
+
ccmAdditionalData: hexString
|
|
66
|
+
});
|
|
67
|
+
var cfPrimitivesChainsForeignChain = simpleEnum([
|
|
68
|
+
"Ethereum",
|
|
69
|
+
"Polkadot",
|
|
70
|
+
"Bitcoin",
|
|
71
|
+
"Arbitrum",
|
|
72
|
+
"Solana"
|
|
73
|
+
]);
|
|
74
|
+
var cfChainsCcmDepositMetadataGenericEncodedAddress = z.object({
|
|
75
|
+
channelMetadata: cfChainsCcmChannelMetadata,
|
|
76
|
+
sourceChain: cfPrimitivesChainsForeignChain,
|
|
77
|
+
sourceAddress: cfChainsAddressEncodedAddress.nullish()
|
|
78
|
+
});
|
|
79
|
+
var cfChainsCcmSwapAmounts = z.object({
|
|
80
|
+
principalSwapAmount: numberOrHex,
|
|
81
|
+
gasBudget: numberOrHex,
|
|
82
|
+
otherGasAsset: cfPrimitivesChainsAssetsAnyAsset.nullish()
|
|
83
|
+
});
|
|
84
|
+
var cfChainsCcmSwapMetadataGeneric = z.object({
|
|
85
|
+
depositMetadata: cfChainsCcmDepositMetadataGenericEncodedAddress,
|
|
86
|
+
swapAmounts: cfChainsCcmSwapAmounts
|
|
87
|
+
});
|
|
88
|
+
var cfTraitsSwappingSwapRequestTypeGeneric = z.union([
|
|
89
|
+
z.object({ __kind: z.literal("NetworkFee") }),
|
|
90
|
+
z.object({ __kind: z.literal("IngressEgressFee") }),
|
|
91
|
+
z.object({ __kind: z.literal("Regular"), outputAddress: cfChainsAddressEncodedAddress }),
|
|
92
|
+
z.object({
|
|
93
|
+
__kind: z.literal("Ccm"),
|
|
94
|
+
outputAddress: cfChainsAddressEncodedAddress,
|
|
95
|
+
ccmSwapMetadata: cfChainsCcmSwapMetadataGeneric
|
|
96
|
+
})
|
|
97
|
+
]);
|
|
98
|
+
var accountId = z.union([
|
|
99
|
+
hexString,
|
|
100
|
+
z.string().regex(/^[0-9a-f]+$/).transform((v) => `0x${v}`)
|
|
101
|
+
]).transform((value) => ss58.encode({ data: value, ss58Format: 2112 }));
|
|
102
|
+
var cfPrimitivesBeneficiaryAccountId32 = z.object({ account: accountId, bps: z.number() });
|
|
103
|
+
var cfChainsChannelRefundParametersGenericEncodedAddress = z.object({
|
|
104
|
+
retryDuration: z.number(),
|
|
105
|
+
refundAddress: cfChainsAddressEncodedAddress,
|
|
106
|
+
minPrice: numberOrHex
|
|
107
|
+
});
|
|
108
|
+
var cfPrimitivesDcaParameters = z.object({
|
|
109
|
+
numberOfChunks: z.number(),
|
|
110
|
+
chunkInterval: z.number()
|
|
111
|
+
});
|
|
112
|
+
var cfPrimitivesChainsAssetsEthAsset = simpleEnum(["Eth", "Flip", "Usdc", "Usdt"]);
|
|
113
|
+
var cfChainsEvmDepositDetails = z.object({ txHashes: z.array(hexString).nullish() });
|
|
114
|
+
var palletCfIngressEgressDepositAction = z.union([
|
|
115
|
+
z.object({ __kind: z.literal("Swap"), swapRequestId: numberOrHex }),
|
|
116
|
+
z.object({ __kind: z.literal("LiquidityProvision"), lpAccount: accountId }),
|
|
117
|
+
z.object({ __kind: z.literal("CcmTransfer"), swapRequestId: numberOrHex }),
|
|
118
|
+
z.object({ __kind: z.literal("NoAction") }),
|
|
119
|
+
z.object({
|
|
120
|
+
__kind: z.literal("BoostersCredited"),
|
|
121
|
+
prewitnessedDepositId: numberOrHex,
|
|
122
|
+
networkFeeFromBoost: numberOrHex,
|
|
123
|
+
networkFeeSwapRequestId: numberOrHex.nullish()
|
|
124
|
+
})
|
|
125
|
+
]);
|
|
126
|
+
var cfChainsDepositOriginType = simpleEnum(["DepositChannel", "Vault"]);
|
|
127
|
+
var solPrimPdaPdaError = simpleEnum([
|
|
128
|
+
"NotAValidPoint",
|
|
129
|
+
"TooManySeeds",
|
|
130
|
+
"SeedTooLarge",
|
|
131
|
+
"BumpSeedBadLuck"
|
|
132
|
+
]);
|
|
133
|
+
var cfChainsCcmCheckerCcmValidityError = simpleEnum([
|
|
134
|
+
"CannotDecodeCcmAdditionalData",
|
|
135
|
+
"CcmIsTooLong",
|
|
136
|
+
"CcmAdditionalDataContainsInvalidAccounts"
|
|
137
|
+
]);
|
|
138
|
+
var cfChainsSolApiSolanaTransactionBuildingError = z.union([
|
|
139
|
+
z.object({ __kind: z.literal("CannotLookupApiEnvironment") }),
|
|
140
|
+
z.object({ __kind: z.literal("CannotLookupCurrentAggKey") }),
|
|
141
|
+
z.object({ __kind: z.literal("CannotLookupComputePrice") }),
|
|
142
|
+
z.object({ __kind: z.literal("NoNonceAccountsSet") }),
|
|
143
|
+
z.object({ __kind: z.literal("NoAvailableNonceAccount") }),
|
|
144
|
+
z.object({ __kind: z.literal("FailedToDeriveAddress"), value: solPrimPdaPdaError }),
|
|
145
|
+
z.object({ __kind: z.literal("InvalidCcm"), value: cfChainsCcmCheckerCcmValidityError }),
|
|
146
|
+
z.object({ __kind: z.literal("FailedToSerializeFinalTransaction") }),
|
|
147
|
+
z.object({ __kind: z.literal("FinalTransactionExceededMaxLength"), value: z.number() })
|
|
148
|
+
]);
|
|
149
|
+
var spRuntimeModuleError = z.object({ index: z.number(), error: hexString });
|
|
150
|
+
var spRuntimeTokenError = simpleEnum([
|
|
151
|
+
"FundsUnavailable",
|
|
152
|
+
"OnlyProvider",
|
|
153
|
+
"BelowMinimum",
|
|
154
|
+
"CannotCreate",
|
|
155
|
+
"UnknownAsset",
|
|
156
|
+
"Frozen",
|
|
157
|
+
"Unsupported",
|
|
158
|
+
"CannotCreateHold",
|
|
159
|
+
"NotExpendable",
|
|
160
|
+
"Blocked"
|
|
161
|
+
]);
|
|
162
|
+
var spArithmeticArithmeticError = simpleEnum(["Underflow", "Overflow", "DivisionByZero"]);
|
|
163
|
+
var spRuntimeTransactionalError = simpleEnum(["LimitReached", "NoLayer"]);
|
|
164
|
+
var spRuntimeDispatchError = z.union([
|
|
165
|
+
z.object({ __kind: z.literal("Other") }),
|
|
166
|
+
z.object({ __kind: z.literal("CannotLookup") }),
|
|
167
|
+
z.object({ __kind: z.literal("BadOrigin") }),
|
|
168
|
+
z.object({ __kind: z.literal("Module"), value: spRuntimeModuleError }),
|
|
169
|
+
z.object({ __kind: z.literal("ConsumerRemaining") }),
|
|
170
|
+
z.object({ __kind: z.literal("NoProviders") }),
|
|
171
|
+
z.object({ __kind: z.literal("TooManyConsumers") }),
|
|
172
|
+
z.object({ __kind: z.literal("Token"), value: spRuntimeTokenError }),
|
|
173
|
+
z.object({ __kind: z.literal("Arithmetic"), value: spArithmeticArithmeticError }),
|
|
174
|
+
z.object({ __kind: z.literal("Transactional"), value: spRuntimeTransactionalError }),
|
|
175
|
+
z.object({ __kind: z.literal("Exhausted") }),
|
|
176
|
+
z.object({ __kind: z.literal("Corruption") }),
|
|
177
|
+
z.object({ __kind: z.literal("Unavailable") }),
|
|
178
|
+
z.object({ __kind: z.literal("RootNotAllowed") })
|
|
179
|
+
]);
|
|
180
|
+
var cfChainsExecutexSwapAndCallError = z.union([
|
|
181
|
+
z.object({ __kind: z.literal("Unsupported") }),
|
|
182
|
+
z.object({
|
|
183
|
+
__kind: z.literal("FailedToBuildCcmForSolana"),
|
|
184
|
+
value: cfChainsSolApiSolanaTransactionBuildingError
|
|
185
|
+
}),
|
|
186
|
+
z.object({ __kind: z.literal("DispatchError"), value: spRuntimeDispatchError })
|
|
187
|
+
]);
|
|
188
|
+
var palletCfIngressEgressDepositIgnoredReason = simpleEnum([
|
|
189
|
+
"BelowMinimumDeposit",
|
|
190
|
+
"NotEnoughToPayFees",
|
|
191
|
+
"TransactionRejectedByBroker"
|
|
192
|
+
]);
|
|
193
|
+
var cfChainsAllBatchError = z.union([
|
|
194
|
+
z.object({ __kind: z.literal("NotRequired") }),
|
|
195
|
+
z.object({ __kind: z.literal("UnsupportedToken") }),
|
|
196
|
+
z.object({ __kind: z.literal("VaultAccountNotSet") }),
|
|
197
|
+
z.object({ __kind: z.literal("AggKeyNotSet") }),
|
|
198
|
+
z.object({ __kind: z.literal("UtxoSelectionFailed") }),
|
|
199
|
+
z.object({
|
|
200
|
+
__kind: z.literal("FailedToBuildSolanaTransaction"),
|
|
201
|
+
value: cfChainsSolApiSolanaTransactionBuildingError
|
|
202
|
+
}),
|
|
203
|
+
z.object({ __kind: z.literal("DispatchError"), value: spRuntimeDispatchError })
|
|
204
|
+
]);
|
|
205
|
+
var cfChainsCcmFailReason = simpleEnum([
|
|
206
|
+
"UnsupportedForTargetChain",
|
|
207
|
+
"InsufficientDepositAmount",
|
|
208
|
+
"InvalidMetadata"
|
|
209
|
+
]);
|
|
210
|
+
var cfPrimitivesChainsAssetsDotAsset = simpleEnum(["Dot"]);
|
|
211
|
+
var cfChainsBtcScriptPubkey = z.union([
|
|
212
|
+
z.object({ __kind: z.literal("P2PKH"), value: hexString }),
|
|
213
|
+
z.object({ __kind: z.literal("P2SH"), value: hexString }),
|
|
214
|
+
z.object({ __kind: z.literal("P2WPKH"), value: hexString }),
|
|
215
|
+
z.object({ __kind: z.literal("P2WSH"), value: hexString }),
|
|
216
|
+
z.object({ __kind: z.literal("Taproot"), value: hexString }),
|
|
217
|
+
z.object({ __kind: z.literal("OtherSegwit"), version: z.number(), program: hexString })
|
|
218
|
+
]);
|
|
219
|
+
var cfPrimitivesChainsAssetsBtcAsset = simpleEnum(["Btc"]);
|
|
220
|
+
var cfChainsBtcUtxoId = z.object({ txId: hexString, vout: z.number() });
|
|
221
|
+
var cfChainsBtcBitcoinScript = z.object({ bytes: hexString });
|
|
222
|
+
var cfChainsBtcDepositAddressTapscriptPath = z.object({
|
|
223
|
+
salt: z.number(),
|
|
224
|
+
tweakedPubkeyBytes: hexString,
|
|
225
|
+
tapleafHash: hexString,
|
|
226
|
+
unlockScript: cfChainsBtcBitcoinScript
|
|
227
|
+
});
|
|
228
|
+
var cfChainsBtcDepositAddress = z.object({
|
|
229
|
+
pubkeyX: hexString,
|
|
230
|
+
scriptPath: cfChainsBtcDepositAddressTapscriptPath.nullish()
|
|
231
|
+
});
|
|
232
|
+
var cfChainsBtcUtxo = z.object({
|
|
233
|
+
id: cfChainsBtcUtxoId,
|
|
234
|
+
amount: numberOrHex,
|
|
235
|
+
depositAddress: cfChainsBtcDepositAddress
|
|
236
|
+
});
|
|
237
|
+
var cfPrimitivesChainsAssetsArbAsset = simpleEnum(["ArbEth", "ArbUsdc"]);
|
|
238
|
+
var cfChainsSolSolanaTransactionData = z.object({
|
|
239
|
+
serializedTransaction: hexString,
|
|
240
|
+
skipPreflight: z.boolean()
|
|
241
|
+
});
|
|
242
|
+
var cfPrimitivesChainsAssetsSolAsset = simpleEnum(["Sol", "SolUsdc"]);
|
|
243
|
+
export {
|
|
244
|
+
accountId,
|
|
245
|
+
cfChainsAddressEncodedAddress,
|
|
246
|
+
cfChainsAllBatchError,
|
|
247
|
+
cfChainsBtcBitcoinScript,
|
|
248
|
+
cfChainsBtcDepositAddress,
|
|
249
|
+
cfChainsBtcDepositAddressTapscriptPath,
|
|
250
|
+
cfChainsBtcScriptPubkey,
|
|
251
|
+
cfChainsBtcUtxo,
|
|
252
|
+
cfChainsBtcUtxoId,
|
|
253
|
+
cfChainsCcmChannelMetadata,
|
|
254
|
+
cfChainsCcmCheckerCcmValidityError,
|
|
255
|
+
cfChainsCcmDepositMetadataGenericEncodedAddress,
|
|
256
|
+
cfChainsCcmFailReason,
|
|
257
|
+
cfChainsCcmSwapAmounts,
|
|
258
|
+
cfChainsCcmSwapMetadataGeneric,
|
|
259
|
+
cfChainsChannelRefundParametersGenericEncodedAddress,
|
|
260
|
+
cfChainsDepositOriginType,
|
|
261
|
+
cfChainsEvmDepositDetails,
|
|
262
|
+
cfChainsExecutexSwapAndCallError,
|
|
263
|
+
cfChainsSolApiSolanaTransactionBuildingError,
|
|
264
|
+
cfChainsSolSolanaTransactionData,
|
|
265
|
+
cfChainsSwapOrigin,
|
|
266
|
+
cfChainsTransactionInIdForAnyChain,
|
|
267
|
+
cfPrimitivesBeneficiaryAccountId32,
|
|
268
|
+
cfPrimitivesChainsAssetsAnyAsset,
|
|
269
|
+
cfPrimitivesChainsAssetsArbAsset,
|
|
270
|
+
cfPrimitivesChainsAssetsBtcAsset,
|
|
271
|
+
cfPrimitivesChainsAssetsDotAsset,
|
|
272
|
+
cfPrimitivesChainsAssetsEthAsset,
|
|
273
|
+
cfPrimitivesChainsAssetsSolAsset,
|
|
274
|
+
cfPrimitivesChainsForeignChain,
|
|
275
|
+
cfPrimitivesDcaParameters,
|
|
276
|
+
cfPrimitivesTxId,
|
|
277
|
+
cfTraitsSwappingSwapRequestTypeGeneric,
|
|
278
|
+
hexString,
|
|
279
|
+
numberOrHex,
|
|
280
|
+
numericString,
|
|
281
|
+
palletCfIngressEgressDepositAction,
|
|
282
|
+
palletCfIngressEgressDepositIgnoredReason,
|
|
283
|
+
simpleEnum,
|
|
284
|
+
solPrimPdaPdaError,
|
|
285
|
+
spArithmeticArithmeticError,
|
|
286
|
+
spRuntimeDispatchError,
|
|
287
|
+
spRuntimeModuleError,
|
|
288
|
+
spRuntimeTokenError,
|
|
289
|
+
spRuntimeTransactionalError
|
|
290
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});// generated/180/ethereumIngressEgress/ccmEgressInvalid.ts
|
|
2
|
+
var _zod = require('zod');
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
var _commoncjs = require('../common.cjs');
|
|
8
|
+
var ethereumIngressEgressCcmEgressInvalid = _zod.z.object({
|
|
9
|
+
egressId: _zod.z.tuple([_commoncjs.cfPrimitivesChainsForeignChain, _commoncjs.numberOrHex]),
|
|
10
|
+
error: _commoncjs.cfChainsExecutexSwapAndCallError
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
exports.ethereumIngressEgressCcmEgressInvalid = ethereumIngressEgressCcmEgressInvalid;
|