@chainflip/processor 1.9.2 → 1.9.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/broadcastCallbackExecuted.d.cts +28 -28
- package/dist/100/bitcoinBroadcaster/broadcastCallbackExecuted.d.ts +28 -28
- package/dist/100/bitcoinBroadcaster/transactionBroadcastRequest.d.cts +2 -2
- package/dist/100/bitcoinBroadcaster/transactionBroadcastRequest.d.ts +2 -2
- package/dist/100/bitcoinBroadcaster/transactionFeeDeficitRecorded.d.cts +20 -20
- package/dist/100/bitcoinBroadcaster/transactionFeeDeficitRecorded.d.ts +20 -20
- package/dist/100/bitcoinBroadcaster/transactionFeeDeficitRefused.d.cts +20 -20
- package/dist/100/bitcoinBroadcaster/transactionFeeDeficitRefused.d.ts +20 -20
- package/dist/100/bitcoinIngressEgress/ccmBroadcastRequested.d.cts +2 -2
- package/dist/100/bitcoinIngressEgress/ccmBroadcastRequested.d.ts +2 -2
- package/dist/100/bitcoinIngressEgress/ccmEgressInvalid.d.cts +4 -4
- package/dist/100/bitcoinIngressEgress/ccmEgressInvalid.d.ts +4 -4
- package/dist/100/bitcoinIngressEgress/depositIgnored.d.cts +4 -4
- package/dist/100/bitcoinIngressEgress/depositIgnored.d.ts +4 -4
- package/dist/100/bitcoinIngressEgress/depositReceived.d.cts +4 -4
- package/dist/100/bitcoinIngressEgress/depositReceived.d.ts +4 -4
- package/dist/100/bitcoinIngressEgress/depositWitnessRejected.d.cts +8 -8
- package/dist/100/bitcoinIngressEgress/depositWitnessRejected.d.ts +8 -8
- package/dist/100/ethereumIngressEgress/ccmEgressInvalid.d.cts +16 -16
- package/dist/100/ethereumIngressEgress/ccmEgressInvalid.d.ts +16 -16
- package/dist/100/ethereumIngressEgress/depositFetchesScheduled.d.cts +2 -2
- package/dist/100/ethereumIngressEgress/depositFetchesScheduled.d.ts +2 -2
- package/dist/100/ethereumIngressEgress/depositWitnessRejected.d.cts +16 -16
- package/dist/100/ethereumIngressEgress/depositWitnessRejected.d.ts +16 -16
- package/dist/100/flip/remainingImbalance.d.cts +22 -22
- package/dist/100/flip/remainingImbalance.d.ts +22 -22
- 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/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 +8 -8
- package/dist/100/liquidityProvider/liquidityDepositAddressReady.d.ts +8 -8
- package/dist/100/liquidityProvider/withdrawalEgressScheduled.d.cts +6 -6
- package/dist/100/liquidityProvider/withdrawalEgressScheduled.d.ts +6 -6
- 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/system/extrinsicFailed.d.cts +16 -16
- package/dist/100/system/extrinsicFailed.d.ts +16 -16
- package/dist/131/ethereumIngressEgress/depositFetchesScheduled.d.cts +2 -2
- package/dist/131/ethereumIngressEgress/depositFetchesScheduled.d.ts +2 -2
- package/dist/131/ethereumIngressEgress/depositIgnored.d.cts +2 -2
- package/dist/131/ethereumIngressEgress/depositIgnored.d.ts +2 -2
- package/dist/131/ethereumIngressEgress/depositReceived.d.cts +2 -2
- package/dist/131/ethereumIngressEgress/depositReceived.d.ts +2 -2
- package/dist/131/ethereumIngressEgress/depositWitnessRejected.d.cts +20 -20
- package/dist/131/ethereumIngressEgress/depositWitnessRejected.d.ts +20 -20
- package/dist/131/ethereumIngressEgress/failedToBuildAllBatchCall.d.cts +28 -28
- package/dist/131/ethereumIngressEgress/failedToBuildAllBatchCall.d.ts +28 -28
- package/dist/131/reputation/offencePenalty.d.cts +2 -2
- package/dist/131/reputation/offencePenalty.d.ts +2 -2
- package/dist/141/evmThresholdSigner/failureReportProcessed.d.cts +2 -2
- package/dist/141/evmThresholdSigner/failureReportProcessed.d.ts +2 -2
- package/dist/141/evmThresholdSigner/retryRequested.d.cts +2 -2
- package/dist/141/evmThresholdSigner/retryRequested.d.ts +2 -2
- package/dist/141/evmThresholdSigner/thresholdDispatchComplete.d.cts +2 -2
- package/dist/141/evmThresholdSigner/thresholdDispatchComplete.d.ts +2 -2
- package/dist/141/evmThresholdSigner/thresholdSignatureFailed.d.cts +2 -2
- package/dist/141/evmThresholdSigner/thresholdSignatureFailed.d.ts +2 -2
- package/dist/141/evmThresholdSigner/thresholdSignatureRequest.d.cts +2 -2
- package/dist/141/evmThresholdSigner/thresholdSignatureRequest.d.ts +2 -2
- package/dist/141/evmThresholdSigner/thresholdSignatureSuccess.d.cts +2 -2
- package/dist/141/evmThresholdSigner/thresholdSignatureSuccess.d.ts +2 -2
- package/dist/141/liquidityPools/limitOrderUpdated.d.cts +10 -10
- package/dist/141/liquidityPools/limitOrderUpdated.d.ts +10 -10
- package/dist/141/liquidityPools/rangeOrderUpdated.d.cts +10 -10
- package/dist/141/liquidityPools/rangeOrderUpdated.d.ts +10 -10
- package/dist/141/polkadotIngressEgress/boostFundsAdded.d.cts +2 -2
- package/dist/141/polkadotIngressEgress/boostFundsAdded.d.ts +2 -2
- 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/150/ethereumIngressEgress/ccmBroadcastRequested.d.cts +2 -2
- package/dist/150/ethereumIngressEgress/ccmBroadcastRequested.d.ts +2 -2
- package/dist/150/ethereumIngressEgress/ccmEgressInvalid.d.cts +4 -4
- package/dist/150/ethereumIngressEgress/ccmEgressInvalid.d.ts +4 -4
- 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/polkadotIngressEgress/ccmEgressInvalid.d.cts +4 -4
- package/dist/150/polkadotIngressEgress/ccmEgressInvalid.d.ts +4 -4
- package/dist/150/solanaBroadcaster/broadcastCallbackExecuted.d.cts +28 -28
- package/dist/150/solanaBroadcaster/broadcastCallbackExecuted.d.ts +28 -28
- package/dist/150/solanaThresholdSigner/failureReportProcessed.d.cts +2 -2
- package/dist/150/solanaThresholdSigner/failureReportProcessed.d.ts +2 -2
- package/dist/150/solanaThresholdSigner/retryRequested.d.cts +2 -2
- package/dist/150/solanaThresholdSigner/retryRequested.d.ts +2 -2
- package/dist/150/solanaThresholdSigner/thresholdDispatchComplete.d.cts +2 -2
- package/dist/150/solanaThresholdSigner/thresholdDispatchComplete.d.ts +2 -2
- package/dist/150/solanaThresholdSigner/thresholdSignatureFailed.d.cts +2 -2
- package/dist/150/solanaThresholdSigner/thresholdSignatureFailed.d.ts +2 -2
- package/dist/150/solanaThresholdSigner/thresholdSignatureRequest.d.cts +2 -2
- package/dist/150/solanaThresholdSigner/thresholdSignatureRequest.d.ts +2 -2
- package/dist/150/solanaThresholdSigner/thresholdSignatureSuccess.d.cts +2 -2
- package/dist/150/solanaThresholdSigner/thresholdSignatureSuccess.d.ts +2 -2
- package/dist/160/liquidityProvider/assetTransferred.d.cts +3 -3
- package/dist/160/liquidityProvider/assetTransferred.d.ts +3 -3
- package/dist/160/liquidityProvider/liquidityDepositAddressReady.d.cts +2 -2
- package/dist/160/liquidityProvider/liquidityDepositAddressReady.d.ts +2 -2
- 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/170/ethereumIngressEgress/boostedDepositLost.d.cts +2 -2
- package/dist/170/ethereumIngressEgress/boostedDepositLost.d.ts +2 -2
- package/dist/170/ethereumIngressEgress/ccmFailed.d.cts +37 -37
- package/dist/170/ethereumIngressEgress/ccmFailed.d.ts +37 -37
- package/dist/170/ethereumIngressEgress/depositIgnored.d.cts +6 -6
- package/dist/170/ethereumIngressEgress/depositIgnored.d.ts +6 -6
- package/dist/170/ethereumIngressEgress/failedToBuildAllBatchCall.d.cts +50 -50
- package/dist/170/ethereumIngressEgress/failedToBuildAllBatchCall.d.ts +50 -50
- package/dist/180/solanaIngressEgress/ccmEgressInvalid.d.cts +61 -61
- package/dist/180/solanaIngressEgress/ccmEgressInvalid.d.ts +61 -61
- package/dist/180/solanaIngressEgress/depositBoosted.d.cts +6 -6
- package/dist/180/solanaIngressEgress/depositBoosted.d.ts +6 -6
- package/dist/180/solanaIngressEgress/depositFailed.d.cts +167 -167
- package/dist/180/solanaIngressEgress/depositFailed.d.ts +167 -167
- package/dist/180/solanaIngressEgress/depositFinalised.d.cts +2 -2
- package/dist/180/solanaIngressEgress/depositFinalised.d.ts +2 -2
- package/dist/180/solanaIngressEgress/failedToBuildAllBatchCall.d.cts +57 -57
- package/dist/180/solanaIngressEgress/failedToBuildAllBatchCall.d.ts +57 -57
- package/dist/180/solanaIngressEgress/insufficientBoostLiquidity.d.cts +2 -2
- package/dist/180/solanaIngressEgress/insufficientBoostLiquidity.d.ts +2 -2
- package/dist/190/arbitrumIngressEgress/ccmBroadcastRequested.d.cts +2 -2
- package/dist/190/arbitrumIngressEgress/ccmBroadcastRequested.d.ts +2 -2
- package/dist/190/arbitrumIngressEgress/ccmEgressInvalid.d.cts +54 -54
- package/dist/190/arbitrumIngressEgress/ccmEgressInvalid.d.ts +54 -54
- package/dist/190/arbitrumIngressEgress/depositBoosted.d.cts +10 -10
- package/dist/190/arbitrumIngressEgress/depositBoosted.d.ts +10 -10
- package/dist/190/arbitrumIngressEgress/depositFailed.d.cts +184 -184
- package/dist/190/arbitrumIngressEgress/depositFailed.d.ts +184 -184
- package/dist/190/arbitrumIngressEgress/depositFinalised.d.cts +6 -6
- package/dist/190/arbitrumIngressEgress/depositFinalised.d.ts +6 -6
- package/dist/190/arbitrumIngressEgress/failedToBuildAllBatchCall.d.cts +50 -50
- package/dist/190/arbitrumIngressEgress/failedToBuildAllBatchCall.d.ts +50 -50
- package/dist/190/arbitrumIngressEgress/transferFallbackRequested.d.cts +2 -2
- package/dist/190/arbitrumIngressEgress/transferFallbackRequested.d.ts +2 -2
- package/dist/190/assethubIngressEgress/ccmBroadcastRequested.d.cts +2 -2
- package/dist/190/assethubIngressEgress/ccmBroadcastRequested.d.ts +2 -2
- package/dist/190/assethubIngressEgress/ccmEgressInvalid.d.cts +50 -50
- package/dist/190/assethubIngressEgress/ccmEgressInvalid.d.ts +50 -50
- package/dist/190/assethubIngressEgress/depositFailed.d.cts +170 -170
- package/dist/190/assethubIngressEgress/depositFailed.d.ts +170 -170
- package/dist/190/assethubIngressEgress/depositFetchesScheduled.d.cts +2 -2
- package/dist/190/assethubIngressEgress/depositFetchesScheduled.d.ts +2 -2
- package/dist/190/assethubIngressEgress/failedToBuildAllBatchCall.d.cts +50 -50
- package/dist/190/assethubIngressEgress/failedToBuildAllBatchCall.d.ts +50 -50
- package/dist/190/assethubIngressEgress/transactionRejectedByBroker.d.cts +2 -2
- package/dist/190/assethubIngressEgress/transactionRejectedByBroker.d.ts +2 -2
- package/dist/190/assethubIngressEgress/transferFallbackRequested.d.cts +2 -2
- package/dist/190/assethubIngressEgress/transferFallbackRequested.d.ts +2 -2
- package/dist/190/liquidityPools/limitOrderUpdated.d.cts +12 -12
- package/dist/190/liquidityPools/limitOrderUpdated.d.ts +12 -12
- package/dist/190/liquidityPools/orderDeletionFailed.d.cts +8 -8
- package/dist/190/liquidityPools/orderDeletionFailed.d.ts +8 -8
- package/dist/190/liquidityPools/rangeOrderUpdated.d.cts +12 -12
- package/dist/190/liquidityPools/rangeOrderUpdated.d.ts +12 -12
- package/dist/190/liquidityProvider/assetTransferred.d.cts +3 -3
- package/dist/190/liquidityProvider/assetTransferred.d.ts +3 -3
- package/dist/190/liquidityProvider/liquidityDepositAddressReady.d.cts +4 -4
- package/dist/190/liquidityProvider/liquidityDepositAddressReady.d.ts +4 -4
- package/dist/190/polkadotIngressEgress/ccmEgressInvalid.d.cts +4 -4
- package/dist/190/polkadotIngressEgress/ccmEgressInvalid.d.ts +4 -4
- package/dist/EventHandler.cjs +15 -0
- package/dist/EventHandler.d.cts +27 -0
- package/dist/EventHandler.d.ts +27 -0
- package/dist/EventHandler.mjs +15 -0
- package/package.json +8 -8
|
@@ -33,13 +33,12 @@ declare const liquidityPoolsOrderDeletionFailed: z.ZodObject<{
|
|
|
33
33
|
id: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
35
|
__kind: "Limit";
|
|
36
|
-
id: bigint;
|
|
37
36
|
baseAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
38
37
|
quoteAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
39
38
|
side: "Buy" | "Sell";
|
|
39
|
+
id: bigint;
|
|
40
40
|
}, {
|
|
41
41
|
__kind: "Limit";
|
|
42
|
-
id: string | number;
|
|
43
42
|
baseAsset: {
|
|
44
43
|
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
45
44
|
};
|
|
@@ -49,6 +48,7 @@ declare const liquidityPoolsOrderDeletionFailed: z.ZodObject<{
|
|
|
49
48
|
side: {
|
|
50
49
|
__kind: "Buy" | "Sell";
|
|
51
50
|
};
|
|
51
|
+
id: string | number;
|
|
52
52
|
}>, z.ZodObject<{
|
|
53
53
|
__kind: z.ZodLiteral<"Range">;
|
|
54
54
|
baseAsset: z.ZodEffects<z.ZodObject<{
|
|
@@ -72,36 +72,35 @@ declare const liquidityPoolsOrderDeletionFailed: z.ZodObject<{
|
|
|
72
72
|
id: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
73
73
|
}, "strip", z.ZodTypeAny, {
|
|
74
74
|
__kind: "Range";
|
|
75
|
-
id: bigint;
|
|
76
75
|
baseAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
77
76
|
quoteAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
77
|
+
id: bigint;
|
|
78
78
|
}, {
|
|
79
79
|
__kind: "Range";
|
|
80
|
-
id: string | number;
|
|
81
80
|
baseAsset: {
|
|
82
81
|
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
83
82
|
};
|
|
84
83
|
quoteAsset: {
|
|
85
84
|
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
86
85
|
};
|
|
86
|
+
id: string | number;
|
|
87
87
|
}>]>;
|
|
88
88
|
}, "strip", z.ZodTypeAny, {
|
|
89
89
|
order: {
|
|
90
90
|
__kind: "Limit";
|
|
91
|
-
id: bigint;
|
|
92
91
|
baseAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
93
92
|
quoteAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
94
93
|
side: "Buy" | "Sell";
|
|
94
|
+
id: bigint;
|
|
95
95
|
} | {
|
|
96
96
|
__kind: "Range";
|
|
97
|
-
id: bigint;
|
|
98
97
|
baseAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
99
98
|
quoteAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
99
|
+
id: bigint;
|
|
100
100
|
};
|
|
101
101
|
}, {
|
|
102
102
|
order: {
|
|
103
103
|
__kind: "Limit";
|
|
104
|
-
id: string | number;
|
|
105
104
|
baseAsset: {
|
|
106
105
|
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
107
106
|
};
|
|
@@ -111,15 +110,16 @@ declare const liquidityPoolsOrderDeletionFailed: z.ZodObject<{
|
|
|
111
110
|
side: {
|
|
112
111
|
__kind: "Buy" | "Sell";
|
|
113
112
|
};
|
|
113
|
+
id: string | number;
|
|
114
114
|
} | {
|
|
115
115
|
__kind: "Range";
|
|
116
|
-
id: string | number;
|
|
117
116
|
baseAsset: {
|
|
118
117
|
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
119
118
|
};
|
|
120
119
|
quoteAsset: {
|
|
121
120
|
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
122
121
|
};
|
|
122
|
+
id: string | number;
|
|
123
123
|
};
|
|
124
124
|
}>;
|
|
125
125
|
|
|
@@ -33,13 +33,12 @@ declare const liquidityPoolsOrderDeletionFailed: z.ZodObject<{
|
|
|
33
33
|
id: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
|
35
35
|
__kind: "Limit";
|
|
36
|
-
id: bigint;
|
|
37
36
|
baseAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
38
37
|
quoteAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
39
38
|
side: "Buy" | "Sell";
|
|
39
|
+
id: bigint;
|
|
40
40
|
}, {
|
|
41
41
|
__kind: "Limit";
|
|
42
|
-
id: string | number;
|
|
43
42
|
baseAsset: {
|
|
44
43
|
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
45
44
|
};
|
|
@@ -49,6 +48,7 @@ declare const liquidityPoolsOrderDeletionFailed: z.ZodObject<{
|
|
|
49
48
|
side: {
|
|
50
49
|
__kind: "Buy" | "Sell";
|
|
51
50
|
};
|
|
51
|
+
id: string | number;
|
|
52
52
|
}>, z.ZodObject<{
|
|
53
53
|
__kind: z.ZodLiteral<"Range">;
|
|
54
54
|
baseAsset: z.ZodEffects<z.ZodObject<{
|
|
@@ -72,36 +72,35 @@ declare const liquidityPoolsOrderDeletionFailed: z.ZodObject<{
|
|
|
72
72
|
id: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
73
73
|
}, "strip", z.ZodTypeAny, {
|
|
74
74
|
__kind: "Range";
|
|
75
|
-
id: bigint;
|
|
76
75
|
baseAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
77
76
|
quoteAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
77
|
+
id: bigint;
|
|
78
78
|
}, {
|
|
79
79
|
__kind: "Range";
|
|
80
|
-
id: string | number;
|
|
81
80
|
baseAsset: {
|
|
82
81
|
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
83
82
|
};
|
|
84
83
|
quoteAsset: {
|
|
85
84
|
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
86
85
|
};
|
|
86
|
+
id: string | number;
|
|
87
87
|
}>]>;
|
|
88
88
|
}, "strip", z.ZodTypeAny, {
|
|
89
89
|
order: {
|
|
90
90
|
__kind: "Limit";
|
|
91
|
-
id: bigint;
|
|
92
91
|
baseAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
93
92
|
quoteAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
94
93
|
side: "Buy" | "Sell";
|
|
94
|
+
id: bigint;
|
|
95
95
|
} | {
|
|
96
96
|
__kind: "Range";
|
|
97
|
-
id: bigint;
|
|
98
97
|
baseAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
99
98
|
quoteAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
99
|
+
id: bigint;
|
|
100
100
|
};
|
|
101
101
|
}, {
|
|
102
102
|
order: {
|
|
103
103
|
__kind: "Limit";
|
|
104
|
-
id: string | number;
|
|
105
104
|
baseAsset: {
|
|
106
105
|
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
107
106
|
};
|
|
@@ -111,15 +110,16 @@ declare const liquidityPoolsOrderDeletionFailed: z.ZodObject<{
|
|
|
111
110
|
side: {
|
|
112
111
|
__kind: "Buy" | "Sell";
|
|
113
112
|
};
|
|
113
|
+
id: string | number;
|
|
114
114
|
} | {
|
|
115
115
|
__kind: "Range";
|
|
116
|
-
id: string | number;
|
|
117
116
|
baseAsset: {
|
|
118
117
|
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
119
118
|
};
|
|
120
119
|
quoteAsset: {
|
|
121
120
|
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
122
121
|
};
|
|
122
|
+
id: string | number;
|
|
123
123
|
};
|
|
124
124
|
}>;
|
|
125
125
|
|
|
@@ -59,7 +59,6 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
59
59
|
};
|
|
60
60
|
}>;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
|
-
__kind: "Increase";
|
|
63
62
|
value: {
|
|
64
63
|
liquidity: bigint;
|
|
65
64
|
amounts: {
|
|
@@ -67,8 +66,8 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
67
66
|
quote: bigint;
|
|
68
67
|
};
|
|
69
68
|
};
|
|
70
|
-
}, {
|
|
71
69
|
__kind: "Increase";
|
|
70
|
+
}, {
|
|
72
71
|
value: {
|
|
73
72
|
liquidity: string | number;
|
|
74
73
|
amounts: {
|
|
@@ -76,6 +75,7 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
76
75
|
quote: string | number;
|
|
77
76
|
};
|
|
78
77
|
};
|
|
78
|
+
__kind: "Increase";
|
|
79
79
|
}>, z.ZodObject<{
|
|
80
80
|
__kind: z.ZodLiteral<"Decrease">;
|
|
81
81
|
value: z.ZodObject<{
|
|
@@ -104,7 +104,6 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
104
104
|
};
|
|
105
105
|
}>;
|
|
106
106
|
}, "strip", z.ZodTypeAny, {
|
|
107
|
-
__kind: "Decrease";
|
|
108
107
|
value: {
|
|
109
108
|
liquidity: bigint;
|
|
110
109
|
amounts: {
|
|
@@ -112,8 +111,8 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
112
111
|
quote: bigint;
|
|
113
112
|
};
|
|
114
113
|
};
|
|
115
|
-
}, {
|
|
116
114
|
__kind: "Decrease";
|
|
115
|
+
}, {
|
|
117
116
|
value: {
|
|
118
117
|
liquidity: string | number;
|
|
119
118
|
amounts: {
|
|
@@ -121,6 +120,7 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
121
120
|
quote: string | number;
|
|
122
121
|
};
|
|
123
122
|
};
|
|
123
|
+
__kind: "Decrease";
|
|
124
124
|
}>]>>>;
|
|
125
125
|
liquidityTotal: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
126
126
|
collectedFees: z.ZodObject<{
|
|
@@ -134,10 +134,10 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
134
134
|
quote: string | number;
|
|
135
135
|
}>;
|
|
136
136
|
}, "strip", z.ZodTypeAny, {
|
|
137
|
-
|
|
137
|
+
lp: string;
|
|
138
138
|
baseAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
139
139
|
quoteAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
140
|
-
|
|
140
|
+
id: bigint;
|
|
141
141
|
collectedFees: {
|
|
142
142
|
base: bigint;
|
|
143
143
|
quote: bigint;
|
|
@@ -148,7 +148,6 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
148
148
|
};
|
|
149
149
|
liquidityTotal: bigint;
|
|
150
150
|
sizeChange?: {
|
|
151
|
-
__kind: "Increase";
|
|
152
151
|
value: {
|
|
153
152
|
liquidity: bigint;
|
|
154
153
|
amounts: {
|
|
@@ -156,8 +155,8 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
156
155
|
quote: bigint;
|
|
157
156
|
};
|
|
158
157
|
};
|
|
158
|
+
__kind: "Increase";
|
|
159
159
|
} | {
|
|
160
|
-
__kind: "Decrease";
|
|
161
160
|
value: {
|
|
162
161
|
liquidity: bigint;
|
|
163
162
|
amounts: {
|
|
@@ -165,16 +164,17 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
165
164
|
quote: bigint;
|
|
166
165
|
};
|
|
167
166
|
};
|
|
167
|
+
__kind: "Decrease";
|
|
168
168
|
} | null | undefined;
|
|
169
169
|
}, {
|
|
170
|
-
|
|
170
|
+
lp: string;
|
|
171
171
|
baseAsset: {
|
|
172
172
|
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
173
173
|
};
|
|
174
174
|
quoteAsset: {
|
|
175
175
|
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
176
176
|
};
|
|
177
|
-
|
|
177
|
+
id: string | number;
|
|
178
178
|
collectedFees: {
|
|
179
179
|
base: string | number;
|
|
180
180
|
quote: string | number;
|
|
@@ -185,7 +185,6 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
185
185
|
};
|
|
186
186
|
liquidityTotal: string | number;
|
|
187
187
|
sizeChange?: {
|
|
188
|
-
__kind: "Increase";
|
|
189
188
|
value: {
|
|
190
189
|
liquidity: string | number;
|
|
191
190
|
amounts: {
|
|
@@ -193,8 +192,8 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
193
192
|
quote: string | number;
|
|
194
193
|
};
|
|
195
194
|
};
|
|
195
|
+
__kind: "Increase";
|
|
196
196
|
} | {
|
|
197
|
-
__kind: "Decrease";
|
|
198
197
|
value: {
|
|
199
198
|
liquidity: string | number;
|
|
200
199
|
amounts: {
|
|
@@ -202,6 +201,7 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
202
201
|
quote: string | number;
|
|
203
202
|
};
|
|
204
203
|
};
|
|
204
|
+
__kind: "Decrease";
|
|
205
205
|
} | null | undefined;
|
|
206
206
|
}>;
|
|
207
207
|
|
|
@@ -59,7 +59,6 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
59
59
|
};
|
|
60
60
|
}>;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
|
-
__kind: "Increase";
|
|
63
62
|
value: {
|
|
64
63
|
liquidity: bigint;
|
|
65
64
|
amounts: {
|
|
@@ -67,8 +66,8 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
67
66
|
quote: bigint;
|
|
68
67
|
};
|
|
69
68
|
};
|
|
70
|
-
}, {
|
|
71
69
|
__kind: "Increase";
|
|
70
|
+
}, {
|
|
72
71
|
value: {
|
|
73
72
|
liquidity: string | number;
|
|
74
73
|
amounts: {
|
|
@@ -76,6 +75,7 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
76
75
|
quote: string | number;
|
|
77
76
|
};
|
|
78
77
|
};
|
|
78
|
+
__kind: "Increase";
|
|
79
79
|
}>, z.ZodObject<{
|
|
80
80
|
__kind: z.ZodLiteral<"Decrease">;
|
|
81
81
|
value: z.ZodObject<{
|
|
@@ -104,7 +104,6 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
104
104
|
};
|
|
105
105
|
}>;
|
|
106
106
|
}, "strip", z.ZodTypeAny, {
|
|
107
|
-
__kind: "Decrease";
|
|
108
107
|
value: {
|
|
109
108
|
liquidity: bigint;
|
|
110
109
|
amounts: {
|
|
@@ -112,8 +111,8 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
112
111
|
quote: bigint;
|
|
113
112
|
};
|
|
114
113
|
};
|
|
115
|
-
}, {
|
|
116
114
|
__kind: "Decrease";
|
|
115
|
+
}, {
|
|
117
116
|
value: {
|
|
118
117
|
liquidity: string | number;
|
|
119
118
|
amounts: {
|
|
@@ -121,6 +120,7 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
121
120
|
quote: string | number;
|
|
122
121
|
};
|
|
123
122
|
};
|
|
123
|
+
__kind: "Decrease";
|
|
124
124
|
}>]>>>;
|
|
125
125
|
liquidityTotal: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
126
126
|
collectedFees: z.ZodObject<{
|
|
@@ -134,10 +134,10 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
134
134
|
quote: string | number;
|
|
135
135
|
}>;
|
|
136
136
|
}, "strip", z.ZodTypeAny, {
|
|
137
|
-
|
|
137
|
+
lp: string;
|
|
138
138
|
baseAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
139
139
|
quoteAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
140
|
-
|
|
140
|
+
id: bigint;
|
|
141
141
|
collectedFees: {
|
|
142
142
|
base: bigint;
|
|
143
143
|
quote: bigint;
|
|
@@ -148,7 +148,6 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
148
148
|
};
|
|
149
149
|
liquidityTotal: bigint;
|
|
150
150
|
sizeChange?: {
|
|
151
|
-
__kind: "Increase";
|
|
152
151
|
value: {
|
|
153
152
|
liquidity: bigint;
|
|
154
153
|
amounts: {
|
|
@@ -156,8 +155,8 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
156
155
|
quote: bigint;
|
|
157
156
|
};
|
|
158
157
|
};
|
|
158
|
+
__kind: "Increase";
|
|
159
159
|
} | {
|
|
160
|
-
__kind: "Decrease";
|
|
161
160
|
value: {
|
|
162
161
|
liquidity: bigint;
|
|
163
162
|
amounts: {
|
|
@@ -165,16 +164,17 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
165
164
|
quote: bigint;
|
|
166
165
|
};
|
|
167
166
|
};
|
|
167
|
+
__kind: "Decrease";
|
|
168
168
|
} | null | undefined;
|
|
169
169
|
}, {
|
|
170
|
-
|
|
170
|
+
lp: string;
|
|
171
171
|
baseAsset: {
|
|
172
172
|
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
173
173
|
};
|
|
174
174
|
quoteAsset: {
|
|
175
175
|
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
176
176
|
};
|
|
177
|
-
|
|
177
|
+
id: string | number;
|
|
178
178
|
collectedFees: {
|
|
179
179
|
base: string | number;
|
|
180
180
|
quote: string | number;
|
|
@@ -185,7 +185,6 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
185
185
|
};
|
|
186
186
|
liquidityTotal: string | number;
|
|
187
187
|
sizeChange?: {
|
|
188
|
-
__kind: "Increase";
|
|
189
188
|
value: {
|
|
190
189
|
liquidity: string | number;
|
|
191
190
|
amounts: {
|
|
@@ -193,8 +192,8 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
193
192
|
quote: string | number;
|
|
194
193
|
};
|
|
195
194
|
};
|
|
195
|
+
__kind: "Increase";
|
|
196
196
|
} | {
|
|
197
|
-
__kind: "Decrease";
|
|
198
197
|
value: {
|
|
199
198
|
liquidity: string | number;
|
|
200
199
|
amounts: {
|
|
@@ -202,6 +201,7 @@ declare const liquidityPoolsRangeOrderUpdated: z.ZodObject<{
|
|
|
202
201
|
quote: string | number;
|
|
203
202
|
};
|
|
204
203
|
};
|
|
204
|
+
__kind: "Decrease";
|
|
205
205
|
} | null | undefined;
|
|
206
206
|
}>;
|
|
207
207
|
|
|
@@ -14,17 +14,17 @@ declare const liquidityProviderAssetTransferred: z.ZodObject<{
|
|
|
14
14
|
}>;
|
|
15
15
|
amount: 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
|
+
from: string;
|
|
18
|
+
to: string;
|
|
17
19
|
asset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
18
20
|
amount: bigint;
|
|
21
|
+
}, {
|
|
19
22
|
from: string;
|
|
20
23
|
to: string;
|
|
21
|
-
}, {
|
|
22
24
|
asset: {
|
|
23
25
|
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
24
26
|
};
|
|
25
27
|
amount: string | number;
|
|
26
|
-
from: string;
|
|
27
|
-
to: string;
|
|
28
28
|
}>;
|
|
29
29
|
|
|
30
30
|
export { liquidityProviderAssetTransferred };
|
|
@@ -14,17 +14,17 @@ declare const liquidityProviderAssetTransferred: z.ZodObject<{
|
|
|
14
14
|
}>;
|
|
15
15
|
amount: 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
|
+
from: string;
|
|
18
|
+
to: string;
|
|
17
19
|
asset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
18
20
|
amount: bigint;
|
|
21
|
+
}, {
|
|
19
22
|
from: string;
|
|
20
23
|
to: string;
|
|
21
|
-
}, {
|
|
22
24
|
asset: {
|
|
23
25
|
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
24
26
|
};
|
|
25
27
|
amount: string | number;
|
|
26
|
-
from: string;
|
|
27
|
-
to: string;
|
|
28
28
|
}>;
|
|
29
29
|
|
|
30
30
|
export { liquidityProviderAssetTransferred };
|
|
@@ -47,7 +47,6 @@ declare const liquidityProviderLiquidityDepositAddressReady: z.ZodObject<{
|
|
|
47
47
|
boostFee: z.ZodNumber;
|
|
48
48
|
channelOpeningFee: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
|
-
channelId: bigint;
|
|
51
50
|
asset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
52
51
|
depositAddress: {
|
|
53
52
|
readonly chain: "Ethereum";
|
|
@@ -68,12 +67,12 @@ declare const liquidityProviderLiquidityDepositAddressReady: z.ZodObject<{
|
|
|
68
67
|
readonly chain: "Assethub";
|
|
69
68
|
readonly address: string;
|
|
70
69
|
};
|
|
70
|
+
channelId: bigint;
|
|
71
71
|
accountId: string;
|
|
72
|
-
depositChainExpiryBlock: bigint;
|
|
73
72
|
boostFee: number;
|
|
73
|
+
depositChainExpiryBlock: bigint;
|
|
74
74
|
channelOpeningFee: bigint;
|
|
75
75
|
}, {
|
|
76
|
-
channelId: string | number;
|
|
77
76
|
asset: {
|
|
78
77
|
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
79
78
|
};
|
|
@@ -81,9 +80,10 @@ declare const liquidityProviderLiquidityDepositAddressReady: z.ZodObject<{
|
|
|
81
80
|
value: string;
|
|
82
81
|
__kind: "Eth" | "Dot" | "Btc" | "Sol" | "Arb" | "Hub";
|
|
83
82
|
};
|
|
83
|
+
channelId: string | number;
|
|
84
84
|
accountId: string;
|
|
85
|
-
depositChainExpiryBlock: string | number;
|
|
86
85
|
boostFee: number;
|
|
86
|
+
depositChainExpiryBlock: string | number;
|
|
87
87
|
channelOpeningFee: string | number;
|
|
88
88
|
}>;
|
|
89
89
|
|
|
@@ -47,7 +47,6 @@ declare const liquidityProviderLiquidityDepositAddressReady: z.ZodObject<{
|
|
|
47
47
|
boostFee: z.ZodNumber;
|
|
48
48
|
channelOpeningFee: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
49
49
|
}, "strip", z.ZodTypeAny, {
|
|
50
|
-
channelId: bigint;
|
|
51
50
|
asset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
52
51
|
depositAddress: {
|
|
53
52
|
readonly chain: "Ethereum";
|
|
@@ -68,12 +67,12 @@ declare const liquidityProviderLiquidityDepositAddressReady: z.ZodObject<{
|
|
|
68
67
|
readonly chain: "Assethub";
|
|
69
68
|
readonly address: string;
|
|
70
69
|
};
|
|
70
|
+
channelId: bigint;
|
|
71
71
|
accountId: string;
|
|
72
|
-
depositChainExpiryBlock: bigint;
|
|
73
72
|
boostFee: number;
|
|
73
|
+
depositChainExpiryBlock: bigint;
|
|
74
74
|
channelOpeningFee: bigint;
|
|
75
75
|
}, {
|
|
76
|
-
channelId: string | number;
|
|
77
76
|
asset: {
|
|
78
77
|
__kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt" | "Sol" | "SolUsdc" | "HubDot" | "HubUsdt" | "HubUsdc";
|
|
79
78
|
};
|
|
@@ -81,9 +80,10 @@ declare const liquidityProviderLiquidityDepositAddressReady: z.ZodObject<{
|
|
|
81
80
|
value: string;
|
|
82
81
|
__kind: "Eth" | "Dot" | "Btc" | "Sol" | "Arb" | "Hub";
|
|
83
82
|
};
|
|
83
|
+
channelId: string | number;
|
|
84
84
|
accountId: string;
|
|
85
|
-
depositChainExpiryBlock: string | number;
|
|
86
85
|
boostFee: number;
|
|
86
|
+
depositChainExpiryBlock: string | number;
|
|
87
87
|
channelOpeningFee: string | number;
|
|
88
88
|
}>;
|
|
89
89
|
|
|
@@ -388,7 +388,6 @@ declare const polkadotIngressEgressCcmEgressInvalid: z.ZodObject<{
|
|
|
388
388
|
__kind: "NoVault";
|
|
389
389
|
}>]>;
|
|
390
390
|
}, "strip", z.ZodTypeAny, {
|
|
391
|
-
egressId: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum" | "Solana" | "Assethub", bigint];
|
|
392
391
|
error: {
|
|
393
392
|
__kind: "Unsupported";
|
|
394
393
|
} | {
|
|
@@ -456,10 +455,8 @@ declare const polkadotIngressEgressCcmEgressInvalid: z.ZodObject<{
|
|
|
456
455
|
} | {
|
|
457
456
|
__kind: "NoVault";
|
|
458
457
|
};
|
|
458
|
+
egressId: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum" | "Solana" | "Assethub", bigint];
|
|
459
459
|
}, {
|
|
460
|
-
egressId: [{
|
|
461
|
-
__kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum" | "Solana" | "Assethub";
|
|
462
|
-
}, string | number];
|
|
463
460
|
error: {
|
|
464
461
|
__kind: "Unsupported";
|
|
465
462
|
} | {
|
|
@@ -537,6 +534,9 @@ declare const polkadotIngressEgressCcmEgressInvalid: z.ZodObject<{
|
|
|
537
534
|
} | {
|
|
538
535
|
__kind: "NoVault";
|
|
539
536
|
};
|
|
537
|
+
egressId: [{
|
|
538
|
+
__kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum" | "Solana" | "Assethub";
|
|
539
|
+
}, string | number];
|
|
540
540
|
}>;
|
|
541
541
|
|
|
542
542
|
export { polkadotIngressEgressCcmEgressInvalid };
|
|
@@ -388,7 +388,6 @@ declare const polkadotIngressEgressCcmEgressInvalid: z.ZodObject<{
|
|
|
388
388
|
__kind: "NoVault";
|
|
389
389
|
}>]>;
|
|
390
390
|
}, "strip", z.ZodTypeAny, {
|
|
391
|
-
egressId: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum" | "Solana" | "Assethub", bigint];
|
|
392
391
|
error: {
|
|
393
392
|
__kind: "Unsupported";
|
|
394
393
|
} | {
|
|
@@ -456,10 +455,8 @@ declare const polkadotIngressEgressCcmEgressInvalid: z.ZodObject<{
|
|
|
456
455
|
} | {
|
|
457
456
|
__kind: "NoVault";
|
|
458
457
|
};
|
|
458
|
+
egressId: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum" | "Solana" | "Assethub", bigint];
|
|
459
459
|
}, {
|
|
460
|
-
egressId: [{
|
|
461
|
-
__kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum" | "Solana" | "Assethub";
|
|
462
|
-
}, string | number];
|
|
463
460
|
error: {
|
|
464
461
|
__kind: "Unsupported";
|
|
465
462
|
} | {
|
|
@@ -537,6 +534,9 @@ declare const polkadotIngressEgressCcmEgressInvalid: z.ZodObject<{
|
|
|
537
534
|
} | {
|
|
538
535
|
__kind: "NoVault";
|
|
539
536
|
};
|
|
537
|
+
egressId: [{
|
|
538
|
+
__kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum" | "Solana" | "Assethub";
|
|
539
|
+
}, string | number];
|
|
540
540
|
}>;
|
|
541
541
|
|
|
542
542
|
export { polkadotIngressEgressCcmEgressInvalid };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});require('./chunk-6F7DYTPM.cjs');
|
|
2
|
+
|
|
3
|
+
// src/processor/EventHandler.ts
|
|
4
|
+
var EventHandler = class {
|
|
5
|
+
async preBlockHook(_store, _block) {
|
|
6
|
+
}
|
|
7
|
+
async postBlockHook(_store, _block) {
|
|
8
|
+
}
|
|
9
|
+
call(args) {
|
|
10
|
+
return this.handle({ ...args, args: this.parser.parse(args.event.args) });
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
exports.default = EventHandler;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ProcessorStore, Semver, IndexerEvent, Block } from './types.cjs';
|
|
3
|
+
|
|
4
|
+
declare abstract class EventHandler<T extends ProcessorStore<any, any>, Z extends z.ZodTypeAny> {
|
|
5
|
+
protected abstract readonly eventName: string;
|
|
6
|
+
protected abstract readonly spec: Semver;
|
|
7
|
+
protected abstract readonly parser: Z;
|
|
8
|
+
protected preBlockHook(_store: unknown, _block: unknown): Promise<void>;
|
|
9
|
+
protected postBlockHook(_store: unknown, _block: unknown): Promise<void>;
|
|
10
|
+
protected abstract handle(args: {
|
|
11
|
+
prisma: T;
|
|
12
|
+
event: IndexerEvent;
|
|
13
|
+
block: Block;
|
|
14
|
+
eventInfo: Awaited<ReturnType<T['getEventInfo']>>;
|
|
15
|
+
extrinsicInfo?: Awaited<ReturnType<T['getExtrinsicInfo']>> | undefined;
|
|
16
|
+
args: z.output<Z>;
|
|
17
|
+
}): Promise<void>;
|
|
18
|
+
call(args: {
|
|
19
|
+
prisma: T;
|
|
20
|
+
event: IndexerEvent;
|
|
21
|
+
block: Block;
|
|
22
|
+
eventInfo: Awaited<ReturnType<T['getEventInfo']>>;
|
|
23
|
+
extrinsicInfo?: Awaited<ReturnType<T['getExtrinsicInfo']>> | undefined;
|
|
24
|
+
}): Promise<void>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { EventHandler as default };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ProcessorStore, Semver, IndexerEvent, Block } from './types.js';
|
|
3
|
+
|
|
4
|
+
declare abstract class EventHandler<T extends ProcessorStore<any, any>, Z extends z.ZodTypeAny> {
|
|
5
|
+
protected abstract readonly eventName: string;
|
|
6
|
+
protected abstract readonly spec: Semver;
|
|
7
|
+
protected abstract readonly parser: Z;
|
|
8
|
+
protected preBlockHook(_store: unknown, _block: unknown): Promise<void>;
|
|
9
|
+
protected postBlockHook(_store: unknown, _block: unknown): Promise<void>;
|
|
10
|
+
protected abstract handle(args: {
|
|
11
|
+
prisma: T;
|
|
12
|
+
event: IndexerEvent;
|
|
13
|
+
block: Block;
|
|
14
|
+
eventInfo: Awaited<ReturnType<T['getEventInfo']>>;
|
|
15
|
+
extrinsicInfo?: Awaited<ReturnType<T['getExtrinsicInfo']>> | undefined;
|
|
16
|
+
args: z.output<Z>;
|
|
17
|
+
}): Promise<void>;
|
|
18
|
+
call(args: {
|
|
19
|
+
prisma: T;
|
|
20
|
+
event: IndexerEvent;
|
|
21
|
+
block: Block;
|
|
22
|
+
eventInfo: Awaited<ReturnType<T['getEventInfo']>>;
|
|
23
|
+
extrinsicInfo?: Awaited<ReturnType<T['getExtrinsicInfo']>> | undefined;
|
|
24
|
+
}): Promise<void>;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export { EventHandler as default };
|