@chainflip/processor 1.4.3 → 1.4.5
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/Environment/runtimeSafeModeUpdated.d.cts +40 -40
- package/dist/100/Environment/runtimeSafeModeUpdated.d.ts +40 -40
- package/dist/100/EthereumIngressEgress/ccmEgressInvalid.d.cts +20 -20
- package/dist/100/EthereumIngressEgress/ccmEgressInvalid.d.ts +20 -20
- package/dist/100/EthereumIngressEgress/depositFetchesScheduled.d.cts +2 -2
- package/dist/100/EthereumIngressEgress/depositFetchesScheduled.d.ts +2 -2
- package/dist/100/EthereumIngressEgress/depositIgnored.d.cts +2 -2
- package/dist/100/EthereumIngressEgress/depositIgnored.d.ts +2 -2
- package/dist/100/EthereumIngressEgress/depositReceived.d.cts +2 -2
- package/dist/100/EthereumIngressEgress/depositReceived.d.ts +2 -2
- package/dist/100/EthereumIngressEgress/depositWitnessRejected.d.cts +20 -20
- package/dist/100/EthereumIngressEgress/depositWitnessRejected.d.ts +20 -20
- package/dist/100/Funding/failedFundingAttempt.d.cts +2 -2
- package/dist/100/Funding/failedFundingAttempt.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/LiquidityPools/limitOrderUpdated.d.cts +8 -8
- package/dist/100/LiquidityPools/limitOrderUpdated.d.ts +8 -8
- package/dist/100/LiquidityPools/rangeOrderUpdated.d.cts +8 -8
- package/dist/100/LiquidityPools/rangeOrderUpdated.d.ts +8 -8
- package/dist/100/PolkadotIngressEgress/ccmEgressInvalid.d.cts +20 -20
- package/dist/100/PolkadotIngressEgress/ccmEgressInvalid.d.ts +20 -20
- package/dist/100/PolkadotIngressEgress/depositFetchesScheduled.d.cts +2 -2
- package/dist/100/PolkadotIngressEgress/depositFetchesScheduled.d.ts +2 -2
- package/dist/100/PolkadotIngressEgress/depositIgnored.d.cts +2 -2
- package/dist/100/PolkadotIngressEgress/depositIgnored.d.ts +2 -2
- package/dist/100/PolkadotIngressEgress/depositReceived.d.cts +2 -2
- package/dist/100/PolkadotIngressEgress/depositReceived.d.ts +2 -2
- package/dist/100/PolkadotIngressEgress/depositWitnessRejected.d.cts +20 -20
- package/dist/100/PolkadotIngressEgress/depositWitnessRejected.d.ts +20 -20
- package/dist/100/Swapping/batchSwapFailed.d.cts +6 -6
- package/dist/100/Swapping/batchSwapFailed.d.ts +6 -6
- 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 +10 -10
- package/dist/100/Swapping/swapAmountTooLow.d.ts +10 -10
- package/dist/100/Swapping/swapDepositAddressReady.d.cts +18 -18
- package/dist/100/Swapping/swapDepositAddressReady.d.ts +18 -18
- package/dist/100/Swapping/swapEgressScheduled.d.cts +10 -10
- package/dist/100/Swapping/swapEgressScheduled.d.ts +10 -10
- 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 +12 -12
- package/dist/100/Swapping/swapScheduled.d.ts +12 -12
- package/dist/100/Swapping/withdrawalRequested.d.cts +4 -4
- package/dist/100/Swapping/withdrawalRequested.d.ts +4 -4
- package/dist/100/Witnesser/witnessExecutionFailed.d.cts +2 -2
- package/dist/100/Witnesser/witnessExecutionFailed.d.ts +2 -2
- package/dist/120/PolkadotIngressEgress/depositReceived.d.cts +4 -4
- package/dist/120/PolkadotIngressEgress/depositReceived.d.ts +4 -4
- package/dist/120/Swapping/ccmFailed.d.cts +78 -78
- package/dist/120/Swapping/ccmFailed.d.ts +78 -78
- package/dist/120/Swapping/swapEgressIgnored.d.cts +28 -28
- package/dist/120/Swapping/swapEgressIgnored.d.ts +28 -28
- package/dist/120/Swapping/swapEgressScheduled.d.cts +6 -6
- package/dist/120/Swapping/swapEgressScheduled.d.ts +6 -6
- package/dist/120/Swapping/swapExecuted.d.cts +12 -12
- package/dist/120/Swapping/swapExecuted.d.ts +12 -12
- package/dist/120/Swapping/withdrawalRequested.d.cts +12 -12
- package/dist/120/Swapping/withdrawalRequested.d.ts +12 -12
- package/dist/131/Environment/runtimeSafeModeUpdated.d.cts +40 -40
- package/dist/131/Environment/runtimeSafeModeUpdated.d.ts +40 -40
- 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 +6 -6
- package/dist/131/EthereumIngressEgress/depositReceived.d.ts +6 -6
- 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/LiquidityPools/limitOrderUpdated.d.cts +8 -8
- package/dist/131/LiquidityPools/limitOrderUpdated.d.ts +8 -8
- package/dist/131/LiquidityPools/rangeOrderUpdated.d.cts +8 -8
- package/dist/131/LiquidityPools/rangeOrderUpdated.d.ts +8 -8
- package/dist/131/Swapping/ccmFailed.d.cts +106 -106
- package/dist/131/Swapping/ccmFailed.d.ts +106 -106
- package/dist/131/Swapping/swapDepositAddressReady.d.cts +32 -32
- package/dist/131/Swapping/swapDepositAddressReady.d.ts +32 -32
- package/dist/131/Swapping/swapEgressIgnored.d.cts +18 -18
- package/dist/131/Swapping/swapEgressIgnored.d.ts +18 -18
- package/dist/131/Swapping/swapEgressScheduled.d.cts +2 -2
- package/dist/131/Swapping/swapEgressScheduled.d.ts +2 -2
- package/dist/131/Swapping/swapScheduled.d.cts +126 -126
- package/dist/131/Swapping/swapScheduled.d.ts +126 -126
- package/dist/131/Swapping/withdrawalRequested.d.cts +12 -12
- package/dist/131/Swapping/withdrawalRequested.d.ts +12 -12
- package/dist/141/Environment/runtimeSafeModeUpdated.d.cts +12 -12
- package/dist/141/Environment/runtimeSafeModeUpdated.d.ts +12 -12
- package/dist/141/EthereumIngressEgress/boostFundsAdded.d.cts +4 -4
- package/dist/141/EthereumIngressEgress/boostFundsAdded.d.ts +4 -4
- package/dist/141/EthereumIngressEgress/ccmEgressInvalid.d.cts +16 -16
- package/dist/141/EthereumIngressEgress/ccmEgressInvalid.d.ts +16 -16
- package/dist/141/EthereumIngressEgress/depositBoosted.d.cts +8 -8
- package/dist/141/EthereumIngressEgress/depositBoosted.d.ts +8 -8
- package/dist/141/EthereumIngressEgress/depositFinalised.d.cts +8 -8
- package/dist/141/EthereumIngressEgress/depositFinalised.d.ts +8 -8
- package/dist/141/EthereumIngressEgress/insufficientBoostLiquidity.d.cts +3 -3
- package/dist/141/EthereumIngressEgress/insufficientBoostLiquidity.d.ts +3 -3
- package/dist/141/EthereumIngressEgress/stoppedBoosting.d.cts +2 -2
- package/dist/141/EthereumIngressEgress/stoppedBoosting.d.ts +2 -2
- package/dist/141/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/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/141/Swapping/batchSwapFailed.d.cts +8 -8
- package/dist/141/Swapping/batchSwapFailed.d.ts +8 -8
- package/dist/141/Swapping/ccmDepositReceived.d.cts +4 -4
- package/dist/141/Swapping/ccmDepositReceived.d.ts +4 -4
- package/dist/141/Swapping/ccmFailed.d.cts +4 -4
- package/dist/141/Swapping/ccmFailed.d.ts +4 -4
- 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 +18 -18
- package/dist/141/Swapping/swapDepositAddressReady.d.ts +18 -18
- package/dist/141/Swapping/swapEgressIgnored.d.cts +12 -12
- package/dist/141/Swapping/swapEgressIgnored.d.ts +12 -12
- package/dist/141/Swapping/swapEgressScheduled.d.cts +8 -8
- package/dist/141/Swapping/swapEgressScheduled.d.ts +8 -8
- package/dist/141/Swapping/swapExecuted.d.cts +12 -12
- package/dist/141/Swapping/swapExecuted.d.ts +12 -12
- package/dist/141/Swapping/swapScheduled.d.cts +16 -16
- package/dist/141/Swapping/swapScheduled.d.ts +16 -16
- package/dist/141/Swapping/withdrawalRequested.d.cts +6 -6
- package/dist/141/Swapping/withdrawalRequested.d.ts +6 -6
- package/dist/Processor.cjs +14 -1
- package/dist/Processor.d.cts +3 -0
- package/dist/Processor.d.ts +3 -0
- package/dist/Processor.mjs +14 -1
- package/dist/types.d.cts +5 -1
- package/dist/types.d.ts +5 -1
- package/package.json +1 -1
|
@@ -5,21 +5,21 @@ declare const swappingSwapScheduled: z.ZodObject<{
|
|
|
5
5
|
sourceAsset: z.ZodEffects<z.ZodObject<{
|
|
6
6
|
__kind: z.ZodEnum<["Eth", "Flip", "Usdc", "Dot", "Btc", "ArbEth", "ArbUsdc", "Usdt"]>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
__kind: "Eth" | "
|
|
8
|
+
__kind: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
|
|
9
9
|
}, {
|
|
10
|
-
__kind: "Eth" | "
|
|
11
|
-
}>, "Eth" | "
|
|
12
|
-
__kind: "Eth" | "
|
|
10
|
+
__kind: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
|
|
11
|
+
}>, "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt", {
|
|
12
|
+
__kind: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
|
|
13
13
|
}>;
|
|
14
14
|
depositAmount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
15
15
|
destinationAsset: z.ZodEffects<z.ZodObject<{
|
|
16
16
|
__kind: z.ZodEnum<["Eth", "Flip", "Usdc", "Dot", "Btc", "ArbEth", "ArbUsdc", "Usdt"]>;
|
|
17
17
|
}, "strip", z.ZodTypeAny, {
|
|
18
|
-
__kind: "Eth" | "
|
|
18
|
+
__kind: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
|
|
19
19
|
}, {
|
|
20
|
-
__kind: "Eth" | "
|
|
21
|
-
}>, "Eth" | "
|
|
22
|
-
__kind: "Eth" | "
|
|
20
|
+
__kind: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
|
|
21
|
+
}>, "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt", {
|
|
22
|
+
__kind: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
|
|
23
23
|
}>;
|
|
24
24
|
destinationAddress: z.ZodUnion<[z.ZodObject<{
|
|
25
25
|
__kind: z.ZodLiteral<"Eth">;
|
|
@@ -438,8 +438,6 @@ declare const swappingSwapScheduled: z.ZodObject<{
|
|
|
438
438
|
brokerFee: z.ZodOptional<z.ZodNullable<z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>>>;
|
|
439
439
|
executeAt: z.ZodNumber;
|
|
440
440
|
}, "strip", z.ZodTypeAny, {
|
|
441
|
-
swapId: bigint;
|
|
442
|
-
depositAmount: bigint;
|
|
443
441
|
destinationAddress: {
|
|
444
442
|
__kind: "Eth";
|
|
445
443
|
value: `0x${string}`;
|
|
@@ -476,8 +474,10 @@ declare const swappingSwapScheduled: z.ZodObject<{
|
|
|
476
474
|
__kind: "Vault";
|
|
477
475
|
txHash: `0x${string}`;
|
|
478
476
|
};
|
|
479
|
-
|
|
480
|
-
|
|
477
|
+
swapId: bigint;
|
|
478
|
+
depositAmount: bigint;
|
|
479
|
+
sourceAsset: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
|
|
480
|
+
destinationAsset: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
|
|
481
481
|
swapType: {
|
|
482
482
|
__kind: "Swap";
|
|
483
483
|
value: {
|
|
@@ -529,8 +529,6 @@ declare const swappingSwapScheduled: z.ZodObject<{
|
|
|
529
529
|
brokerCommission?: bigint | null | undefined;
|
|
530
530
|
brokerFee?: bigint | null | undefined;
|
|
531
531
|
}, {
|
|
532
|
-
swapId: string | number;
|
|
533
|
-
depositAmount: string | number;
|
|
534
532
|
destinationAddress: {
|
|
535
533
|
__kind: "Eth";
|
|
536
534
|
value: string;
|
|
@@ -567,11 +565,13 @@ declare const swappingSwapScheduled: z.ZodObject<{
|
|
|
567
565
|
__kind: "Vault";
|
|
568
566
|
txHash: string;
|
|
569
567
|
};
|
|
568
|
+
swapId: string | number;
|
|
569
|
+
depositAmount: string | number;
|
|
570
570
|
sourceAsset: {
|
|
571
|
-
__kind: "Eth" | "
|
|
571
|
+
__kind: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
|
|
572
572
|
};
|
|
573
573
|
destinationAsset: {
|
|
574
|
-
__kind: "Eth" | "
|
|
574
|
+
__kind: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
|
|
575
575
|
};
|
|
576
576
|
swapType: {
|
|
577
577
|
__kind: "Swap";
|
|
@@ -13,11 +13,11 @@ 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"]>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
__kind: "Eth" | "
|
|
16
|
+
__kind: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
|
|
17
17
|
}, {
|
|
18
|
-
__kind: "Eth" | "
|
|
19
|
-
}>, "Eth" | "
|
|
20
|
-
__kind: "Eth" | "
|
|
18
|
+
__kind: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
|
|
19
|
+
}>, "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt", {
|
|
20
|
+
__kind: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
|
|
21
21
|
}>;
|
|
22
22
|
egressAmount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
23
23
|
egressFee: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
@@ -74,7 +74,7 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
|
|
|
74
74
|
};
|
|
75
75
|
egressId: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum", bigint];
|
|
76
76
|
egressAmount: bigint;
|
|
77
|
-
egressAsset: "Eth" | "
|
|
77
|
+
egressAsset: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
|
|
78
78
|
egressFee: bigint;
|
|
79
79
|
}, {
|
|
80
80
|
destinationAddress: {
|
|
@@ -95,7 +95,7 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
|
|
|
95
95
|
}, string | number];
|
|
96
96
|
egressAmount: string | number;
|
|
97
97
|
egressAsset: {
|
|
98
|
-
__kind: "Eth" | "
|
|
98
|
+
__kind: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
|
|
99
99
|
};
|
|
100
100
|
egressFee: string | number;
|
|
101
101
|
}>;
|
|
@@ -13,11 +13,11 @@ 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"]>;
|
|
15
15
|
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
__kind: "Eth" | "
|
|
16
|
+
__kind: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
|
|
17
17
|
}, {
|
|
18
|
-
__kind: "Eth" | "
|
|
19
|
-
}>, "Eth" | "
|
|
20
|
-
__kind: "Eth" | "
|
|
18
|
+
__kind: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
|
|
19
|
+
}>, "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt", {
|
|
20
|
+
__kind: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
|
|
21
21
|
}>;
|
|
22
22
|
egressAmount: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
23
23
|
egressFee: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
|
|
@@ -74,7 +74,7 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
|
|
|
74
74
|
};
|
|
75
75
|
egressId: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum", bigint];
|
|
76
76
|
egressAmount: bigint;
|
|
77
|
-
egressAsset: "Eth" | "
|
|
77
|
+
egressAsset: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
|
|
78
78
|
egressFee: bigint;
|
|
79
79
|
}, {
|
|
80
80
|
destinationAddress: {
|
|
@@ -95,7 +95,7 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
|
|
|
95
95
|
}, string | number];
|
|
96
96
|
egressAmount: string | number;
|
|
97
97
|
egressAsset: {
|
|
98
|
-
__kind: "Eth" | "
|
|
98
|
+
__kind: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
|
|
99
99
|
};
|
|
100
100
|
egressFee: string | number;
|
|
101
101
|
}>;
|
package/dist/Processor.cjs
CHANGED
|
@@ -55,11 +55,24 @@ var Processor = (_class = class {
|
|
|
55
55
|
initialize(endHeight) {
|
|
56
56
|
return this.processorStore.initializeState(this.name, this.startHeight, endHeight);
|
|
57
57
|
}
|
|
58
|
+
getEventNames() {
|
|
59
|
+
return void 0;
|
|
60
|
+
}
|
|
61
|
+
getCallNames() {
|
|
62
|
+
return void 0;
|
|
63
|
+
}
|
|
64
|
+
getExtrinsicNames() {
|
|
65
|
+
return void 0;
|
|
66
|
+
}
|
|
58
67
|
async fetchBlocks(height) {
|
|
59
68
|
const start = performance.now();
|
|
60
69
|
for (let i = 0; i < 5 && this.running; i += 1) {
|
|
61
70
|
try {
|
|
62
|
-
const blocks = await this.indexerStore.fetchBlocks(height, this.batchSize
|
|
71
|
+
const blocks = await this.indexerStore.fetchBlocks(height, this.batchSize, {
|
|
72
|
+
eventNames: this.getEventNames(),
|
|
73
|
+
callNames: this.getCallNames(),
|
|
74
|
+
extrinsicNames: this.getExtrinsicNames()
|
|
75
|
+
});
|
|
63
76
|
this.logger.info("blocks fetched", {
|
|
64
77
|
height,
|
|
65
78
|
duration: performance.now() - start,
|
package/dist/Processor.d.cts
CHANGED
|
@@ -18,6 +18,9 @@ declare class Processor<P extends ProcessorStore<unknown, unknown>, I extends In
|
|
|
18
18
|
protected preBlockHook(_store: P, _block: Block): Promise<void>;
|
|
19
19
|
protected postBlockHook(_store: P, _block: Block): Promise<void>;
|
|
20
20
|
protected initialize(endHeight?: number): Promise<State>;
|
|
21
|
+
protected getEventNames(): string[] | undefined;
|
|
22
|
+
protected getCallNames(): string[] | undefined;
|
|
23
|
+
protected getExtrinsicNames(): string[] | undefined;
|
|
21
24
|
private fetchBlocks;
|
|
22
25
|
protected getEventInfo(store: P, blockId: number, indexInBlock: number): Promise<EventInfo<P>>;
|
|
23
26
|
protected getEventHandler(name: string, specId: string): EventHandler<P> | null;
|
package/dist/Processor.d.ts
CHANGED
|
@@ -18,6 +18,9 @@ declare class Processor<P extends ProcessorStore<unknown, unknown>, I extends In
|
|
|
18
18
|
protected preBlockHook(_store: P, _block: Block): Promise<void>;
|
|
19
19
|
protected postBlockHook(_store: P, _block: Block): Promise<void>;
|
|
20
20
|
protected initialize(endHeight?: number): Promise<State>;
|
|
21
|
+
protected getEventNames(): string[] | undefined;
|
|
22
|
+
protected getCallNames(): string[] | undefined;
|
|
23
|
+
protected getExtrinsicNames(): string[] | undefined;
|
|
21
24
|
private fetchBlocks;
|
|
22
25
|
protected getEventInfo(store: P, blockId: number, indexInBlock: number): Promise<EventInfo<P>>;
|
|
23
26
|
protected getEventHandler(name: string, specId: string): EventHandler<P> | null;
|
package/dist/Processor.mjs
CHANGED
|
@@ -55,11 +55,24 @@ var Processor = class {
|
|
|
55
55
|
initialize(endHeight) {
|
|
56
56
|
return this.processorStore.initializeState(this.name, this.startHeight, endHeight);
|
|
57
57
|
}
|
|
58
|
+
getEventNames() {
|
|
59
|
+
return void 0;
|
|
60
|
+
}
|
|
61
|
+
getCallNames() {
|
|
62
|
+
return void 0;
|
|
63
|
+
}
|
|
64
|
+
getExtrinsicNames() {
|
|
65
|
+
return void 0;
|
|
66
|
+
}
|
|
58
67
|
async fetchBlocks(height) {
|
|
59
68
|
const start = performance.now();
|
|
60
69
|
for (let i = 0; i < 5 && this.running; i += 1) {
|
|
61
70
|
try {
|
|
62
|
-
const blocks = await this.indexerStore.fetchBlocks(height, this.batchSize
|
|
71
|
+
const blocks = await this.indexerStore.fetchBlocks(height, this.batchSize, {
|
|
72
|
+
eventNames: this.getEventNames(),
|
|
73
|
+
callNames: this.getCallNames(),
|
|
74
|
+
extrinsicNames: this.getExtrinsicNames()
|
|
75
|
+
});
|
|
63
76
|
this.logger.info("blocks fetched", {
|
|
64
77
|
height,
|
|
65
78
|
duration: performance.now() - start,
|
package/dist/types.d.cts
CHANGED
|
@@ -74,7 +74,11 @@ interface ProcessorStore<Ev, Ex> extends Store {
|
|
|
74
74
|
getCurrentState(processorName: string): Promise<State>;
|
|
75
75
|
}
|
|
76
76
|
interface IndexerStore {
|
|
77
|
-
fetchBlocks(height: number, batchSize: number
|
|
77
|
+
fetchBlocks(height: number, batchSize: number, filter?: {
|
|
78
|
+
eventNames?: string[];
|
|
79
|
+
extrinsicNames?: string[];
|
|
80
|
+
callNames?: string[];
|
|
81
|
+
}): Promise<Block[]>;
|
|
78
82
|
}
|
|
79
83
|
interface Logger {
|
|
80
84
|
info(message: string, data?: Record<string, unknown>): void;
|
package/dist/types.d.ts
CHANGED
|
@@ -74,7 +74,11 @@ interface ProcessorStore<Ev, Ex> extends Store {
|
|
|
74
74
|
getCurrentState(processorName: string): Promise<State>;
|
|
75
75
|
}
|
|
76
76
|
interface IndexerStore {
|
|
77
|
-
fetchBlocks(height: number, batchSize: number
|
|
77
|
+
fetchBlocks(height: number, batchSize: number, filter?: {
|
|
78
|
+
eventNames?: string[];
|
|
79
|
+
extrinsicNames?: string[];
|
|
80
|
+
callNames?: string[];
|
|
81
|
+
}): Promise<Block[]>;
|
|
78
82
|
}
|
|
79
83
|
interface Logger {
|
|
80
84
|
info(message: string, data?: Record<string, unknown>): void;
|