@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.
Files changed (151) hide show
  1. package/dist/100/Environment/runtimeSafeModeUpdated.d.cts +40 -40
  2. package/dist/100/Environment/runtimeSafeModeUpdated.d.ts +40 -40
  3. package/dist/100/EthereumIngressEgress/ccmEgressInvalid.d.cts +20 -20
  4. package/dist/100/EthereumIngressEgress/ccmEgressInvalid.d.ts +20 -20
  5. package/dist/100/EthereumIngressEgress/depositFetchesScheduled.d.cts +2 -2
  6. package/dist/100/EthereumIngressEgress/depositFetchesScheduled.d.ts +2 -2
  7. package/dist/100/EthereumIngressEgress/depositIgnored.d.cts +2 -2
  8. package/dist/100/EthereumIngressEgress/depositIgnored.d.ts +2 -2
  9. package/dist/100/EthereumIngressEgress/depositReceived.d.cts +2 -2
  10. package/dist/100/EthereumIngressEgress/depositReceived.d.ts +2 -2
  11. package/dist/100/EthereumIngressEgress/depositWitnessRejected.d.cts +20 -20
  12. package/dist/100/EthereumIngressEgress/depositWitnessRejected.d.ts +20 -20
  13. package/dist/100/Funding/failedFundingAttempt.d.cts +2 -2
  14. package/dist/100/Funding/failedFundingAttempt.d.ts +2 -2
  15. package/dist/100/Funding/redemptionRequested.d.cts +2 -2
  16. package/dist/100/Funding/redemptionRequested.d.ts +2 -2
  17. package/dist/100/LiquidityPools/limitOrderUpdated.d.cts +8 -8
  18. package/dist/100/LiquidityPools/limitOrderUpdated.d.ts +8 -8
  19. package/dist/100/LiquidityPools/rangeOrderUpdated.d.cts +8 -8
  20. package/dist/100/LiquidityPools/rangeOrderUpdated.d.ts +8 -8
  21. package/dist/100/PolkadotIngressEgress/ccmEgressInvalid.d.cts +20 -20
  22. package/dist/100/PolkadotIngressEgress/ccmEgressInvalid.d.ts +20 -20
  23. package/dist/100/PolkadotIngressEgress/depositFetchesScheduled.d.cts +2 -2
  24. package/dist/100/PolkadotIngressEgress/depositFetchesScheduled.d.ts +2 -2
  25. package/dist/100/PolkadotIngressEgress/depositIgnored.d.cts +2 -2
  26. package/dist/100/PolkadotIngressEgress/depositIgnored.d.ts +2 -2
  27. package/dist/100/PolkadotIngressEgress/depositReceived.d.cts +2 -2
  28. package/dist/100/PolkadotIngressEgress/depositReceived.d.ts +2 -2
  29. package/dist/100/PolkadotIngressEgress/depositWitnessRejected.d.cts +20 -20
  30. package/dist/100/PolkadotIngressEgress/depositWitnessRejected.d.ts +20 -20
  31. package/dist/100/Swapping/batchSwapFailed.d.cts +6 -6
  32. package/dist/100/Swapping/batchSwapFailed.d.ts +6 -6
  33. package/dist/100/Swapping/minimumSwapAmountSet.d.cts +6 -6
  34. package/dist/100/Swapping/minimumSwapAmountSet.d.ts +6 -6
  35. package/dist/100/Swapping/swapAmountTooLow.d.cts +10 -10
  36. package/dist/100/Swapping/swapAmountTooLow.d.ts +10 -10
  37. package/dist/100/Swapping/swapDepositAddressReady.d.cts +18 -18
  38. package/dist/100/Swapping/swapDepositAddressReady.d.ts +18 -18
  39. package/dist/100/Swapping/swapEgressScheduled.d.cts +10 -10
  40. package/dist/100/Swapping/swapEgressScheduled.d.ts +10 -10
  41. package/dist/100/Swapping/swapExecuted.d.cts +12 -12
  42. package/dist/100/Swapping/swapExecuted.d.ts +12 -12
  43. package/dist/100/Swapping/swapScheduled.d.cts +12 -12
  44. package/dist/100/Swapping/swapScheduled.d.ts +12 -12
  45. package/dist/100/Swapping/withdrawalRequested.d.cts +4 -4
  46. package/dist/100/Swapping/withdrawalRequested.d.ts +4 -4
  47. package/dist/100/Witnesser/witnessExecutionFailed.d.cts +2 -2
  48. package/dist/100/Witnesser/witnessExecutionFailed.d.ts +2 -2
  49. package/dist/120/PolkadotIngressEgress/depositReceived.d.cts +4 -4
  50. package/dist/120/PolkadotIngressEgress/depositReceived.d.ts +4 -4
  51. package/dist/120/Swapping/ccmFailed.d.cts +78 -78
  52. package/dist/120/Swapping/ccmFailed.d.ts +78 -78
  53. package/dist/120/Swapping/swapEgressIgnored.d.cts +28 -28
  54. package/dist/120/Swapping/swapEgressIgnored.d.ts +28 -28
  55. package/dist/120/Swapping/swapEgressScheduled.d.cts +6 -6
  56. package/dist/120/Swapping/swapEgressScheduled.d.ts +6 -6
  57. package/dist/120/Swapping/swapExecuted.d.cts +12 -12
  58. package/dist/120/Swapping/swapExecuted.d.ts +12 -12
  59. package/dist/120/Swapping/withdrawalRequested.d.cts +12 -12
  60. package/dist/120/Swapping/withdrawalRequested.d.ts +12 -12
  61. package/dist/131/Environment/runtimeSafeModeUpdated.d.cts +40 -40
  62. package/dist/131/Environment/runtimeSafeModeUpdated.d.ts +40 -40
  63. package/dist/131/EthereumIngressEgress/depositFetchesScheduled.d.cts +2 -2
  64. package/dist/131/EthereumIngressEgress/depositFetchesScheduled.d.ts +2 -2
  65. package/dist/131/EthereumIngressEgress/depositIgnored.d.cts +2 -2
  66. package/dist/131/EthereumIngressEgress/depositIgnored.d.ts +2 -2
  67. package/dist/131/EthereumIngressEgress/depositReceived.d.cts +6 -6
  68. package/dist/131/EthereumIngressEgress/depositReceived.d.ts +6 -6
  69. package/dist/131/EthereumIngressEgress/depositWitnessRejected.d.cts +20 -20
  70. package/dist/131/EthereumIngressEgress/depositWitnessRejected.d.ts +20 -20
  71. package/dist/131/EthereumIngressEgress/failedToBuildAllBatchCall.d.cts +28 -28
  72. package/dist/131/EthereumIngressEgress/failedToBuildAllBatchCall.d.ts +28 -28
  73. package/dist/131/LiquidityPools/limitOrderUpdated.d.cts +8 -8
  74. package/dist/131/LiquidityPools/limitOrderUpdated.d.ts +8 -8
  75. package/dist/131/LiquidityPools/rangeOrderUpdated.d.cts +8 -8
  76. package/dist/131/LiquidityPools/rangeOrderUpdated.d.ts +8 -8
  77. package/dist/131/Swapping/ccmFailed.d.cts +106 -106
  78. package/dist/131/Swapping/ccmFailed.d.ts +106 -106
  79. package/dist/131/Swapping/swapDepositAddressReady.d.cts +32 -32
  80. package/dist/131/Swapping/swapDepositAddressReady.d.ts +32 -32
  81. package/dist/131/Swapping/swapEgressIgnored.d.cts +18 -18
  82. package/dist/131/Swapping/swapEgressIgnored.d.ts +18 -18
  83. package/dist/131/Swapping/swapEgressScheduled.d.cts +2 -2
  84. package/dist/131/Swapping/swapEgressScheduled.d.ts +2 -2
  85. package/dist/131/Swapping/swapScheduled.d.cts +126 -126
  86. package/dist/131/Swapping/swapScheduled.d.ts +126 -126
  87. package/dist/131/Swapping/withdrawalRequested.d.cts +12 -12
  88. package/dist/131/Swapping/withdrawalRequested.d.ts +12 -12
  89. package/dist/141/Environment/runtimeSafeModeUpdated.d.cts +12 -12
  90. package/dist/141/Environment/runtimeSafeModeUpdated.d.ts +12 -12
  91. package/dist/141/EthereumIngressEgress/boostFundsAdded.d.cts +4 -4
  92. package/dist/141/EthereumIngressEgress/boostFundsAdded.d.ts +4 -4
  93. package/dist/141/EthereumIngressEgress/ccmEgressInvalid.d.cts +16 -16
  94. package/dist/141/EthereumIngressEgress/ccmEgressInvalid.d.ts +16 -16
  95. package/dist/141/EthereumIngressEgress/depositBoosted.d.cts +8 -8
  96. package/dist/141/EthereumIngressEgress/depositBoosted.d.ts +8 -8
  97. package/dist/141/EthereumIngressEgress/depositFinalised.d.cts +8 -8
  98. package/dist/141/EthereumIngressEgress/depositFinalised.d.ts +8 -8
  99. package/dist/141/EthereumIngressEgress/insufficientBoostLiquidity.d.cts +3 -3
  100. package/dist/141/EthereumIngressEgress/insufficientBoostLiquidity.d.ts +3 -3
  101. package/dist/141/EthereumIngressEgress/stoppedBoosting.d.cts +2 -2
  102. package/dist/141/EthereumIngressEgress/stoppedBoosting.d.ts +2 -2
  103. package/dist/141/EvmThresholdSigner/failureReportProcessed.d.cts +2 -2
  104. package/dist/141/EvmThresholdSigner/failureReportProcessed.d.ts +2 -2
  105. package/dist/141/EvmThresholdSigner/retryRequested.d.cts +2 -2
  106. package/dist/141/EvmThresholdSigner/retryRequested.d.ts +2 -2
  107. package/dist/141/EvmThresholdSigner/thresholdDispatchComplete.d.cts +2 -2
  108. package/dist/141/EvmThresholdSigner/thresholdDispatchComplete.d.ts +2 -2
  109. package/dist/141/EvmThresholdSigner/thresholdSignatureFailed.d.cts +2 -2
  110. package/dist/141/EvmThresholdSigner/thresholdSignatureFailed.d.ts +2 -2
  111. package/dist/141/EvmThresholdSigner/thresholdSignatureRequest.d.cts +2 -2
  112. package/dist/141/EvmThresholdSigner/thresholdSignatureRequest.d.ts +2 -2
  113. package/dist/141/EvmThresholdSigner/thresholdSignatureSuccess.d.cts +2 -2
  114. package/dist/141/EvmThresholdSigner/thresholdSignatureSuccess.d.ts +2 -2
  115. package/dist/141/PolkadotIngressEgress/boostFundsAdded.d.cts +2 -2
  116. package/dist/141/PolkadotIngressEgress/boostFundsAdded.d.ts +2 -2
  117. package/dist/141/PolkadotIngressEgress/depositBoosted.d.cts +4 -4
  118. package/dist/141/PolkadotIngressEgress/depositBoosted.d.ts +4 -4
  119. package/dist/141/PolkadotIngressEgress/depositFinalised.d.cts +4 -4
  120. package/dist/141/PolkadotIngressEgress/depositFinalised.d.ts +4 -4
  121. package/dist/141/PolkadotIngressEgress/insufficientBoostLiquidity.d.cts +3 -3
  122. package/dist/141/PolkadotIngressEgress/insufficientBoostLiquidity.d.ts +3 -3
  123. package/dist/141/Swapping/batchSwapFailed.d.cts +8 -8
  124. package/dist/141/Swapping/batchSwapFailed.d.ts +8 -8
  125. package/dist/141/Swapping/ccmDepositReceived.d.cts +4 -4
  126. package/dist/141/Swapping/ccmDepositReceived.d.ts +4 -4
  127. package/dist/141/Swapping/ccmFailed.d.cts +4 -4
  128. package/dist/141/Swapping/ccmFailed.d.ts +4 -4
  129. package/dist/141/Swapping/maximumSwapAmountSet.d.cts +6 -6
  130. package/dist/141/Swapping/maximumSwapAmountSet.d.ts +6 -6
  131. package/dist/141/Swapping/swapAmountConfiscated.d.cts +12 -12
  132. package/dist/141/Swapping/swapAmountConfiscated.d.ts +12 -12
  133. package/dist/141/Swapping/swapDepositAddressReady.d.cts +18 -18
  134. package/dist/141/Swapping/swapDepositAddressReady.d.ts +18 -18
  135. package/dist/141/Swapping/swapEgressIgnored.d.cts +12 -12
  136. package/dist/141/Swapping/swapEgressIgnored.d.ts +12 -12
  137. package/dist/141/Swapping/swapEgressScheduled.d.cts +8 -8
  138. package/dist/141/Swapping/swapEgressScheduled.d.ts +8 -8
  139. package/dist/141/Swapping/swapExecuted.d.cts +12 -12
  140. package/dist/141/Swapping/swapExecuted.d.ts +12 -12
  141. package/dist/141/Swapping/swapScheduled.d.cts +16 -16
  142. package/dist/141/Swapping/swapScheduled.d.ts +16 -16
  143. package/dist/141/Swapping/withdrawalRequested.d.cts +6 -6
  144. package/dist/141/Swapping/withdrawalRequested.d.ts +6 -6
  145. package/dist/Processor.cjs +14 -1
  146. package/dist/Processor.d.cts +3 -0
  147. package/dist/Processor.d.ts +3 -0
  148. package/dist/Processor.mjs +14 -1
  149. package/dist/types.d.cts +5 -1
  150. package/dist/types.d.ts +5 -1
  151. 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" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt";
8
+ __kind: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
9
9
  }, {
10
- __kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt";
11
- }>, "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt", {
12
- __kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt";
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" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt";
18
+ __kind: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
19
19
  }, {
20
- __kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt";
21
- }>, "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt", {
22
- __kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt";
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
- sourceAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt";
480
- destinationAsset: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt";
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" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt";
571
+ __kind: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
572
572
  };
573
573
  destinationAsset: {
574
- __kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt";
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" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt";
16
+ __kind: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
17
17
  }, {
18
- __kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt";
19
- }>, "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt", {
20
- __kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt";
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" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt";
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" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt";
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" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt";
16
+ __kind: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
17
17
  }, {
18
- __kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt";
19
- }>, "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt", {
20
- __kind: "Eth" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt";
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" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt";
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" | "Flip" | "Usdc" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Usdt";
98
+ __kind: "Eth" | "Dot" | "Btc" | "ArbEth" | "ArbUsdc" | "Flip" | "Usdc" | "Usdt";
99
99
  };
100
100
  egressFee: string | number;
101
101
  }>;
@@ -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,
@@ -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;
@@ -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;
@@ -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): Promise<Block[]>;
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): Promise<Block[]>;
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainflip/processor",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "keywords": [],