@chainflip/processor 1.4.3 → 1.4.4

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 (173) hide show
  1. package/dist/100/BitcoinIngressEgress/ccmBroadcastRequested.d.cts +2 -2
  2. package/dist/100/BitcoinIngressEgress/ccmBroadcastRequested.d.ts +2 -2
  3. package/dist/100/BitcoinIngressEgress/ccmEgressInvalid.d.cts +4 -4
  4. package/dist/100/BitcoinIngressEgress/ccmEgressInvalid.d.ts +4 -4
  5. package/dist/100/Environment/runtimeSafeModeUpdated.d.cts +12 -12
  6. package/dist/100/Environment/runtimeSafeModeUpdated.d.ts +12 -12
  7. package/dist/100/Funding/boundExecutorAddress.d.cts +2 -2
  8. package/dist/100/Funding/boundExecutorAddress.d.ts +2 -2
  9. package/dist/100/Funding/boundRedeemAddress.d.cts +2 -2
  10. package/dist/100/Funding/boundRedeemAddress.d.ts +2 -2
  11. package/dist/100/Funding/failedFundingAttempt.d.cts +2 -2
  12. package/dist/100/Funding/failedFundingAttempt.d.ts +2 -2
  13. package/dist/100/Funding/funded.d.cts +2 -2
  14. package/dist/100/Funding/funded.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/LiquidityProvider/accountCredited.d.cts +2 -2
  22. package/dist/100/LiquidityProvider/accountCredited.d.ts +2 -2
  23. package/dist/100/LiquidityProvider/accountDebited.d.cts +2 -2
  24. package/dist/100/LiquidityProvider/accountDebited.d.ts +2 -2
  25. package/dist/100/LiquidityProvider/liquidityDepositAddressReady.d.cts +4 -4
  26. package/dist/100/LiquidityProvider/liquidityDepositAddressReady.d.ts +4 -4
  27. package/dist/100/PolkadotIngressEgress/ccmEgressInvalid.d.cts +16 -16
  28. package/dist/100/PolkadotIngressEgress/ccmEgressInvalid.d.ts +16 -16
  29. package/dist/100/PolkadotIngressEgress/depositFetchesScheduled.d.cts +2 -2
  30. package/dist/100/PolkadotIngressEgress/depositFetchesScheduled.d.ts +2 -2
  31. package/dist/100/PolkadotIngressEgress/depositIgnored.d.cts +2 -2
  32. package/dist/100/PolkadotIngressEgress/depositIgnored.d.ts +2 -2
  33. package/dist/100/PolkadotIngressEgress/depositReceived.d.cts +2 -2
  34. package/dist/100/PolkadotIngressEgress/depositReceived.d.ts +2 -2
  35. package/dist/100/PolkadotIngressEgress/depositWitnessRejected.d.cts +20 -20
  36. package/dist/100/PolkadotIngressEgress/depositWitnessRejected.d.ts +20 -20
  37. package/dist/100/Swapping/batchSwapFailed.d.cts +2 -2
  38. package/dist/100/Swapping/batchSwapFailed.d.ts +2 -2
  39. package/dist/100/Swapping/ccmDepositReceived.d.cts +78 -78
  40. package/dist/100/Swapping/ccmDepositReceived.d.ts +78 -78
  41. package/dist/100/Swapping/ccmFailed.d.cts +78 -78
  42. package/dist/100/Swapping/ccmFailed.d.ts +78 -78
  43. package/dist/100/Swapping/swapAmountTooLow.d.cts +40 -40
  44. package/dist/100/Swapping/swapAmountTooLow.d.ts +40 -40
  45. package/dist/100/Swapping/swapDepositAddressReady.d.cts +24 -24
  46. package/dist/100/Swapping/swapDepositAddressReady.d.ts +24 -24
  47. package/dist/100/Swapping/swapEgressScheduled.d.cts +4 -4
  48. package/dist/100/Swapping/swapEgressScheduled.d.ts +4 -4
  49. package/dist/100/Swapping/swapScheduled.d.cts +118 -118
  50. package/dist/100/Swapping/swapScheduled.d.ts +118 -118
  51. package/dist/100/Swapping/withdrawalRequested.d.cts +16 -16
  52. package/dist/100/Swapping/withdrawalRequested.d.ts +16 -16
  53. package/dist/100/Witnesser/witnessExecutionFailed.d.cts +2 -2
  54. package/dist/100/Witnesser/witnessExecutionFailed.d.ts +2 -2
  55. package/dist/111/LiquidityPools/scheduledLimitOrderUpdateDispatchFailure.d.cts +2 -2
  56. package/dist/111/LiquidityPools/scheduledLimitOrderUpdateDispatchFailure.d.ts +2 -2
  57. package/dist/131/LiquidityPools/limitOrderUpdated.d.cts +2 -2
  58. package/dist/131/LiquidityPools/limitOrderUpdated.d.ts +2 -2
  59. package/dist/131/LiquidityPools/rangeOrderUpdated.d.cts +2 -2
  60. package/dist/131/LiquidityPools/rangeOrderUpdated.d.ts +2 -2
  61. package/dist/131/LiquidityProvider/accountCredited.d.cts +2 -2
  62. package/dist/131/LiquidityProvider/accountCredited.d.ts +2 -2
  63. package/dist/131/LiquidityProvider/accountDebited.d.cts +2 -2
  64. package/dist/131/LiquidityProvider/accountDebited.d.ts +2 -2
  65. package/dist/131/LiquidityProvider/liquidityDepositAddressReady.d.cts +4 -4
  66. package/dist/131/LiquidityProvider/liquidityDepositAddressReady.d.ts +4 -4
  67. package/dist/131/LiquidityProvider/liquidityDepositCredited.d.cts +2 -2
  68. package/dist/131/LiquidityProvider/liquidityDepositCredited.d.ts +2 -2
  69. package/dist/131/Swapping/batchSwapFailed.d.cts +6 -6
  70. package/dist/131/Swapping/batchSwapFailed.d.ts +6 -6
  71. package/dist/131/Swapping/maximumSwapAmountSet.d.cts +6 -6
  72. package/dist/131/Swapping/maximumSwapAmountSet.d.ts +6 -6
  73. package/dist/131/Swapping/swapAmountConfiscated.d.cts +12 -12
  74. package/dist/131/Swapping/swapAmountConfiscated.d.ts +12 -12
  75. package/dist/131/Swapping/swapDepositAddressReady.d.cts +18 -18
  76. package/dist/131/Swapping/swapDepositAddressReady.d.ts +18 -18
  77. package/dist/131/Swapping/swapEgressIgnored.d.cts +12 -12
  78. package/dist/131/Swapping/swapEgressIgnored.d.ts +12 -12
  79. package/dist/131/Swapping/swapEgressScheduled.d.cts +8 -8
  80. package/dist/131/Swapping/swapEgressScheduled.d.ts +8 -8
  81. package/dist/131/Swapping/swapExecuted.d.cts +12 -12
  82. package/dist/131/Swapping/swapExecuted.d.ts +12 -12
  83. package/dist/131/Swapping/swapScheduled.d.cts +14 -14
  84. package/dist/131/Swapping/swapScheduled.d.ts +14 -14
  85. package/dist/131/Swapping/withdrawalRequested.d.cts +6 -6
  86. package/dist/131/Swapping/withdrawalRequested.d.ts +6 -6
  87. package/dist/141/ArbitrumIngressEgress/ccmEgressInvalid.d.cts +16 -16
  88. package/dist/141/ArbitrumIngressEgress/ccmEgressInvalid.d.ts +16 -16
  89. package/dist/141/ArbitrumIngressEgress/depositBoosted.d.cts +8 -8
  90. package/dist/141/ArbitrumIngressEgress/depositBoosted.d.ts +8 -8
  91. package/dist/141/ArbitrumIngressEgress/depositFetchesScheduled.d.cts +2 -2
  92. package/dist/141/ArbitrumIngressEgress/depositFetchesScheduled.d.ts +2 -2
  93. package/dist/141/ArbitrumIngressEgress/depositFinalised.d.cts +8 -8
  94. package/dist/141/ArbitrumIngressEgress/depositFinalised.d.ts +8 -8
  95. package/dist/141/ArbitrumIngressEgress/depositIgnored.d.cts +3 -3
  96. package/dist/141/ArbitrumIngressEgress/depositIgnored.d.ts +3 -3
  97. package/dist/141/ArbitrumIngressEgress/depositWitnessRejected.d.cts +22 -22
  98. package/dist/141/ArbitrumIngressEgress/depositWitnessRejected.d.ts +22 -22
  99. package/dist/141/ArbitrumIngressEgress/failedToBuildAllBatchCall.d.cts +28 -28
  100. package/dist/141/ArbitrumIngressEgress/failedToBuildAllBatchCall.d.ts +28 -28
  101. package/dist/141/ArbitrumIngressEgress/insufficientBoostLiquidity.d.cts +3 -3
  102. package/dist/141/ArbitrumIngressEgress/insufficientBoostLiquidity.d.ts +3 -3
  103. package/dist/141/ArbitrumIngressEgress/transferFallbackRequested.d.cts +4 -4
  104. package/dist/141/ArbitrumIngressEgress/transferFallbackRequested.d.ts +4 -4
  105. package/dist/141/EthereumIngressEgress/boostFundsAdded.d.cts +2 -2
  106. package/dist/141/EthereumIngressEgress/boostFundsAdded.d.ts +2 -2
  107. package/dist/141/EthereumIngressEgress/depositBoosted.d.cts +4 -4
  108. package/dist/141/EthereumIngressEgress/depositBoosted.d.ts +4 -4
  109. package/dist/141/EthereumIngressEgress/depositFinalised.d.cts +4 -4
  110. package/dist/141/EthereumIngressEgress/depositFinalised.d.ts +4 -4
  111. package/dist/141/EthereumIngressEgress/insufficientBoostLiquidity.d.cts +3 -3
  112. package/dist/141/EthereumIngressEgress/insufficientBoostLiquidity.d.ts +3 -3
  113. package/dist/141/EvmThresholdSigner/failureReportProcessed.d.cts +2 -2
  114. package/dist/141/EvmThresholdSigner/failureReportProcessed.d.ts +2 -2
  115. package/dist/141/EvmThresholdSigner/retryRequested.d.cts +2 -2
  116. package/dist/141/EvmThresholdSigner/retryRequested.d.ts +2 -2
  117. package/dist/141/EvmThresholdSigner/thresholdDispatchComplete.d.cts +2 -2
  118. package/dist/141/EvmThresholdSigner/thresholdDispatchComplete.d.ts +2 -2
  119. package/dist/141/EvmThresholdSigner/thresholdSignatureFailed.d.cts +2 -2
  120. package/dist/141/EvmThresholdSigner/thresholdSignatureFailed.d.ts +2 -2
  121. package/dist/141/EvmThresholdSigner/thresholdSignatureRequest.d.cts +2 -2
  122. package/dist/141/EvmThresholdSigner/thresholdSignatureRequest.d.ts +2 -2
  123. package/dist/141/EvmThresholdSigner/thresholdSignatureSuccess.d.cts +2 -2
  124. package/dist/141/EvmThresholdSigner/thresholdSignatureSuccess.d.ts +2 -2
  125. package/dist/141/LiquidityPools/limitOrderUpdated.d.cts +10 -10
  126. package/dist/141/LiquidityPools/limitOrderUpdated.d.ts +10 -10
  127. package/dist/141/LiquidityPools/rangeOrderUpdated.d.cts +10 -10
  128. package/dist/141/LiquidityPools/rangeOrderUpdated.d.ts +10 -10
  129. package/dist/141/PolkadotIngressEgress/boostFundsAdded.d.cts +2 -2
  130. package/dist/141/PolkadotIngressEgress/boostFundsAdded.d.ts +2 -2
  131. package/dist/141/PolkadotIngressEgress/depositBoosted.d.cts +4 -4
  132. package/dist/141/PolkadotIngressEgress/depositBoosted.d.ts +4 -4
  133. package/dist/141/PolkadotIngressEgress/depositFinalised.d.cts +4 -4
  134. package/dist/141/PolkadotIngressEgress/depositFinalised.d.ts +4 -4
  135. package/dist/141/PolkadotIngressEgress/insufficientBoostLiquidity.d.cts +3 -3
  136. package/dist/141/PolkadotIngressEgress/insufficientBoostLiquidity.d.ts +3 -3
  137. package/dist/141/Swapping/batchSwapFailed.d.cts +8 -8
  138. package/dist/141/Swapping/batchSwapFailed.d.ts +8 -8
  139. package/dist/141/Swapping/ccmDepositReceived.d.cts +88 -88
  140. package/dist/141/Swapping/ccmDepositReceived.d.ts +88 -88
  141. package/dist/141/Swapping/ccmFailed.d.cts +124 -124
  142. package/dist/141/Swapping/ccmFailed.d.ts +124 -124
  143. package/dist/141/Swapping/maximumSwapAmountSet.d.cts +6 -6
  144. package/dist/141/Swapping/maximumSwapAmountSet.d.ts +6 -6
  145. package/dist/141/Swapping/swapAmountConfiscated.d.cts +12 -12
  146. package/dist/141/Swapping/swapAmountConfiscated.d.ts +12 -12
  147. package/dist/141/Swapping/swapDepositAddressReady.d.cts +50 -50
  148. package/dist/141/Swapping/swapDepositAddressReady.d.ts +50 -50
  149. package/dist/141/Swapping/swapEgressIgnored.d.cts +24 -24
  150. package/dist/141/Swapping/swapEgressIgnored.d.ts +24 -24
  151. package/dist/141/Swapping/swapEgressScheduled.d.cts +8 -8
  152. package/dist/141/Swapping/swapEgressScheduled.d.ts +8 -8
  153. package/dist/141/Swapping/swapExecuted.d.cts +98 -98
  154. package/dist/141/Swapping/swapExecuted.d.ts +98 -98
  155. package/dist/141/Swapping/swapScheduled.d.cts +150 -150
  156. package/dist/141/Swapping/swapScheduled.d.ts +150 -150
  157. package/dist/141/Swapping/withdrawalRequested.d.cts +22 -22
  158. package/dist/141/Swapping/withdrawalRequested.d.ts +22 -22
  159. package/dist/141/TokenholderGovernance/proposalEnacted.d.cts +8 -8
  160. package/dist/141/TokenholderGovernance/proposalEnacted.d.ts +8 -8
  161. package/dist/141/TokenholderGovernance/proposalPassed.d.cts +8 -8
  162. package/dist/141/TokenholderGovernance/proposalPassed.d.ts +8 -8
  163. package/dist/141/TokenholderGovernance/proposalRejected.d.cts +8 -8
  164. package/dist/141/TokenholderGovernance/proposalRejected.d.ts +8 -8
  165. package/dist/141/TokenholderGovernance/proposalSubmitted.d.cts +8 -8
  166. package/dist/141/TokenholderGovernance/proposalSubmitted.d.ts +8 -8
  167. package/dist/Processor.cjs +8 -1
  168. package/dist/Processor.d.cts +1 -0
  169. package/dist/Processor.d.ts +1 -0
  170. package/dist/Processor.mjs +8 -1
  171. package/dist/types.d.cts +1 -1
  172. package/dist/types.d.ts +1 -1
  173. package/package.json +1 -1
@@ -55,11 +55,18 @@ 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
+ }
58
61
  async fetchBlocks(height) {
59
62
  const start = performance.now();
60
63
  for (let i = 0; i < 5 && this.running; i += 1) {
61
64
  try {
62
- const blocks = await this.indexerStore.fetchBlocks(height, this.batchSize);
65
+ const blocks = await this.indexerStore.fetchBlocks(
66
+ height,
67
+ this.batchSize,
68
+ this.getEventNames()
69
+ );
63
70
  this.logger.info("blocks fetched", {
64
71
  height,
65
72
  duration: performance.now() - start,
package/dist/types.d.cts CHANGED
@@ -74,7 +74,7 @@ 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, eventNames?: string[]): Promise<Block[]>;
78
78
  }
79
79
  interface Logger {
80
80
  info(message: string, data?: Record<string, unknown>): void;
package/dist/types.d.ts CHANGED
@@ -74,7 +74,7 @@ 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, eventNames?: string[]): Promise<Block[]>;
78
78
  }
79
79
  interface Logger {
80
80
  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.4",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "keywords": [],