@chainflip/processor 1.5.1 → 1.5.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.
Files changed (251) hide show
  1. package/dist/100/bitcoinBroadcaster/transactionBroadcastRequest.d.cts +2 -2
  2. package/dist/100/bitcoinBroadcaster/transactionBroadcastRequest.d.ts +2 -2
  3. package/dist/100/bitcoinIngressEgress/ccmEgressInvalid.d.cts +16 -16
  4. package/dist/100/bitcoinIngressEgress/ccmEgressInvalid.d.ts +16 -16
  5. package/dist/100/bitcoinIngressEgress/depositFetchesScheduled.d.cts +2 -2
  6. package/dist/100/bitcoinIngressEgress/depositFetchesScheduled.d.ts +2 -2
  7. package/dist/100/bitcoinIngressEgress/depositIgnored.d.cts +24 -24
  8. package/dist/100/bitcoinIngressEgress/depositIgnored.d.ts +24 -24
  9. package/dist/100/bitcoinIngressEgress/depositReceived.d.cts +24 -24
  10. package/dist/100/bitcoinIngressEgress/depositReceived.d.ts +24 -24
  11. package/dist/100/bitcoinIngressEgress/depositWitnessRejected.d.cts +54 -54
  12. package/dist/100/bitcoinIngressEgress/depositWitnessRejected.d.ts +54 -54
  13. package/dist/100/bitcoinIngressEgress/egressScheduled.d.cts +20 -20
  14. package/dist/100/bitcoinIngressEgress/egressScheduled.d.ts +20 -20
  15. package/dist/100/bitcoinIngressEgress/vaultTransferFailed.d.cts +20 -20
  16. package/dist/100/bitcoinIngressEgress/vaultTransferFailed.d.ts +20 -20
  17. package/dist/100/common.cjs +15 -6
  18. package/dist/100/common.d.cts +48 -12
  19. package/dist/100/common.d.ts +48 -12
  20. package/dist/100/common.mjs +14 -5
  21. package/dist/100/environment/runtimeSafeModeUpdated.d.cts +40 -40
  22. package/dist/100/environment/runtimeSafeModeUpdated.d.ts +40 -40
  23. package/dist/100/funding/boundExecutorAddress.d.cts +2 -2
  24. package/dist/100/funding/boundExecutorAddress.d.ts +2 -2
  25. package/dist/100/funding/boundRedeemAddress.d.cts +2 -2
  26. package/dist/100/funding/boundRedeemAddress.d.ts +2 -2
  27. package/dist/100/funding/failedFundingAttempt.d.cts +2 -2
  28. package/dist/100/funding/failedFundingAttempt.d.ts +2 -2
  29. package/dist/100/funding/funded.d.cts +2 -2
  30. package/dist/100/funding/funded.d.ts +2 -2
  31. package/dist/100/funding/redemptionRequested.d.cts +2 -2
  32. package/dist/100/funding/redemptionRequested.d.ts +2 -2
  33. package/dist/100/liquidityProvider/liquidityDepositAddressReady.d.cts +27 -9
  34. package/dist/100/liquidityProvider/liquidityDepositAddressReady.d.ts +27 -9
  35. package/dist/100/liquidityProvider/liquidityRefundAddressRegistered.d.cts +4 -4
  36. package/dist/100/liquidityProvider/liquidityRefundAddressRegistered.d.ts +4 -4
  37. package/dist/100/liquidityProvider/withdrawalEgressScheduled.d.cts +27 -9
  38. package/dist/100/liquidityProvider/withdrawalEgressScheduled.d.ts +27 -9
  39. package/dist/100/swapping/ccmDepositReceived.d.cts +27 -9
  40. package/dist/100/swapping/ccmDepositReceived.d.ts +27 -9
  41. package/dist/100/swapping/ccmFailed.d.cts +27 -9
  42. package/dist/100/swapping/ccmFailed.d.ts +27 -9
  43. package/dist/100/swapping/swapAmountTooLow.d.cts +60 -24
  44. package/dist/100/swapping/swapAmountTooLow.d.ts +60 -24
  45. package/dist/100/swapping/swapDepositAddressReady.d.cts +54 -18
  46. package/dist/100/swapping/swapDepositAddressReady.d.ts +54 -18
  47. package/dist/100/swapping/swapScheduled.d.cts +60 -24
  48. package/dist/100/swapping/swapScheduled.d.ts +60 -24
  49. package/dist/100/swapping/withdrawalRequested.d.cts +27 -9
  50. package/dist/100/swapping/withdrawalRequested.d.ts +27 -9
  51. package/dist/102/common.cjs +3 -3
  52. package/dist/102/common.mjs +2 -2
  53. package/dist/111/common.cjs +3 -3
  54. package/dist/111/common.mjs +2 -2
  55. package/dist/111/liquidityPools/limitOrderUpdated.d.cts +4 -4
  56. package/dist/111/liquidityPools/limitOrderUpdated.d.ts +4 -4
  57. package/dist/111/liquidityPools/rangeOrderUpdated.d.cts +8 -8
  58. package/dist/111/liquidityPools/rangeOrderUpdated.d.ts +8 -8
  59. package/dist/120/common.cjs +15 -6
  60. package/dist/120/common.d.cts +21 -3
  61. package/dist/120/common.d.ts +21 -3
  62. package/dist/120/common.mjs +14 -5
  63. package/dist/120/emissions/backupRewardsDistributed.d.cts +2 -2
  64. package/dist/120/emissions/backupRewardsDistributed.d.ts +2 -2
  65. package/dist/120/liquidityProvider/withdrawalEgressScheduled.d.cts +27 -9
  66. package/dist/120/liquidityProvider/withdrawalEgressScheduled.d.ts +27 -9
  67. package/dist/120/swapping/ccmFailed.d.cts +27 -9
  68. package/dist/120/swapping/ccmFailed.d.ts +27 -9
  69. package/dist/120/swapping/withdrawalRequested.d.cts +27 -9
  70. package/dist/120/swapping/withdrawalRequested.d.ts +27 -9
  71. package/dist/131/bitcoinBroadcaster/transactionBroadcastRequest.d.cts +2 -2
  72. package/dist/131/bitcoinBroadcaster/transactionBroadcastRequest.d.ts +2 -2
  73. package/dist/131/common.cjs +15 -6
  74. package/dist/131/common.d.cts +48 -12
  75. package/dist/131/common.d.ts +48 -12
  76. package/dist/131/common.mjs +14 -5
  77. package/dist/131/environment/runtimeSafeModeUpdated.d.cts +40 -40
  78. package/dist/131/environment/runtimeSafeModeUpdated.d.ts +40 -40
  79. package/dist/131/liquidityProvider/liquidityDepositAddressReady.d.cts +27 -9
  80. package/dist/131/liquidityProvider/liquidityDepositAddressReady.d.ts +27 -9
  81. package/dist/131/liquidityProvider/withdrawalEgressScheduled.d.cts +27 -9
  82. package/dist/131/liquidityProvider/withdrawalEgressScheduled.d.ts +27 -9
  83. package/dist/131/swapping/ccmFailed.d.cts +60 -24
  84. package/dist/131/swapping/ccmFailed.d.ts +60 -24
  85. package/dist/131/swapping/swapDepositAddressReady.d.cts +54 -18
  86. package/dist/131/swapping/swapDepositAddressReady.d.ts +54 -18
  87. package/dist/131/swapping/swapScheduled.d.cts +60 -24
  88. package/dist/131/swapping/swapScheduled.d.ts +60 -24
  89. package/dist/131/swapping/withdrawalRequested.d.cts +27 -9
  90. package/dist/131/swapping/withdrawalRequested.d.ts +27 -9
  91. package/dist/141/arbitrumIngressEgress/boostFundsAdded.d.cts +2 -2
  92. package/dist/141/arbitrumIngressEgress/boostFundsAdded.d.ts +2 -2
  93. package/dist/141/arbitrumIngressEgress/ccmEgressInvalid.d.cts +16 -16
  94. package/dist/141/arbitrumIngressEgress/ccmEgressInvalid.d.ts +16 -16
  95. package/dist/141/arbitrumIngressEgress/depositWitnessRejected.d.cts +16 -16
  96. package/dist/141/arbitrumIngressEgress/depositWitnessRejected.d.ts +16 -16
  97. package/dist/141/arbitrumIngressEgress/failedToBuildAllBatchCall.d.cts +28 -28
  98. package/dist/141/arbitrumIngressEgress/failedToBuildAllBatchCall.d.ts +28 -28
  99. package/dist/141/bitcoinIngressEgress/boostFundsAdded.d.cts +2 -2
  100. package/dist/141/bitcoinIngressEgress/boostFundsAdded.d.ts +2 -2
  101. package/dist/141/bitcoinIngressEgress/depositBoosted.d.cts +4 -4
  102. package/dist/141/bitcoinIngressEgress/depositBoosted.d.ts +4 -4
  103. package/dist/141/bitcoinIngressEgress/depositFinalised.d.cts +4 -4
  104. package/dist/141/bitcoinIngressEgress/depositFinalised.d.ts +4 -4
  105. package/dist/141/bitcoinIngressEgress/insufficientBoostLiquidity.d.cts +3 -3
  106. package/dist/141/bitcoinIngressEgress/insufficientBoostLiquidity.d.ts +3 -3
  107. package/dist/141/common.cjs +19 -7
  108. package/dist/141/common.d.cts +64 -16
  109. package/dist/141/common.d.ts +64 -16
  110. package/dist/141/common.mjs +18 -6
  111. package/dist/141/liquidityPools/limitOrderUpdated.d.cts +4 -4
  112. package/dist/141/liquidityPools/limitOrderUpdated.d.ts +4 -4
  113. package/dist/141/liquidityPools/rangeOrderUpdated.d.cts +4 -4
  114. package/dist/141/liquidityPools/rangeOrderUpdated.d.ts +4 -4
  115. package/dist/141/liquidityProvider/liquidityDepositAddressReady.d.cts +36 -12
  116. package/dist/141/liquidityProvider/liquidityDepositAddressReady.d.ts +36 -12
  117. package/dist/141/liquidityProvider/liquidityRefundAddressRegistered.d.cts +4 -4
  118. package/dist/141/liquidityProvider/liquidityRefundAddressRegistered.d.ts +4 -4
  119. package/dist/141/liquidityProvider/withdrawalEgressScheduled.d.cts +36 -12
  120. package/dist/141/liquidityProvider/withdrawalEgressScheduled.d.ts +36 -12
  121. package/dist/141/polkadotIngressEgress/boostFundsAdded.d.cts +4 -4
  122. package/dist/141/polkadotIngressEgress/boostFundsAdded.d.ts +4 -4
  123. package/dist/141/polkadotIngressEgress/ccmEgressInvalid.d.cts +16 -16
  124. package/dist/141/polkadotIngressEgress/ccmEgressInvalid.d.ts +16 -16
  125. package/dist/141/polkadotIngressEgress/depositBoosted.d.cts +4 -4
  126. package/dist/141/polkadotIngressEgress/depositBoosted.d.ts +4 -4
  127. package/dist/141/polkadotIngressEgress/depositFinalised.d.cts +4 -4
  128. package/dist/141/polkadotIngressEgress/depositFinalised.d.ts +4 -4
  129. package/dist/141/polkadotIngressEgress/insufficientBoostLiquidity.d.cts +3 -3
  130. package/dist/141/polkadotIngressEgress/insufficientBoostLiquidity.d.ts +3 -3
  131. package/dist/141/polkadotIngressEgress/stoppedBoosting.d.cts +2 -2
  132. package/dist/141/polkadotIngressEgress/stoppedBoosting.d.ts +2 -2
  133. package/dist/141/swapping/batchSwapFailed.d.cts +8 -8
  134. package/dist/141/swapping/batchSwapFailed.d.ts +8 -8
  135. package/dist/141/swapping/ccmDepositReceived.d.cts +108 -84
  136. package/dist/141/swapping/ccmDepositReceived.d.ts +108 -84
  137. package/dist/141/swapping/ccmFailed.d.cts +164 -116
  138. package/dist/141/swapping/ccmFailed.d.ts +164 -116
  139. package/dist/141/swapping/maximumSwapAmountSet.d.cts +6 -6
  140. package/dist/141/swapping/maximumSwapAmountSet.d.ts +6 -6
  141. package/dist/141/swapping/swapAmountConfiscated.d.cts +12 -12
  142. package/dist/141/swapping/swapAmountConfiscated.d.ts +12 -12
  143. package/dist/141/swapping/swapDepositAddressReady.d.cts +100 -52
  144. package/dist/141/swapping/swapDepositAddressReady.d.ts +100 -52
  145. package/dist/141/swapping/swapEgressIgnored.d.cts +24 -24
  146. package/dist/141/swapping/swapEgressIgnored.d.ts +24 -24
  147. package/dist/141/swapping/swapEgressScheduled.d.cts +11 -11
  148. package/dist/141/swapping/swapEgressScheduled.d.ts +11 -11
  149. package/dist/141/swapping/swapExecuted.d.cts +88 -88
  150. package/dist/141/swapping/swapExecuted.d.ts +88 -88
  151. package/dist/141/swapping/swapScheduled.d.cts +188 -140
  152. package/dist/141/swapping/swapScheduled.d.ts +188 -140
  153. package/dist/141/swapping/withdrawalRequested.d.cts +54 -30
  154. package/dist/141/swapping/withdrawalRequested.d.ts +54 -30
  155. package/dist/150/assetBalances/refundScheduled.d.cts +2 -2
  156. package/dist/150/assetBalances/refundScheduled.d.ts +2 -2
  157. package/dist/150/assetBalances/refundSkipped.d.cts +50 -50
  158. package/dist/150/assetBalances/refundSkipped.d.ts +50 -50
  159. package/dist/150/common.cjs +25 -8
  160. package/dist/150/common.d.cts +125 -35
  161. package/dist/150/common.d.ts +125 -35
  162. package/dist/150/common.mjs +24 -7
  163. package/dist/150/liquidityPools/limitOrderUpdated.d.cts +8 -8
  164. package/dist/150/liquidityPools/limitOrderUpdated.d.ts +8 -8
  165. package/dist/150/liquidityPools/rangeOrderUpdated.d.cts +8 -8
  166. package/dist/150/liquidityPools/rangeOrderUpdated.d.ts +8 -8
  167. package/dist/150/liquidityProvider/liquidityDepositAddressReady.d.cts +45 -15
  168. package/dist/150/liquidityProvider/liquidityDepositAddressReady.d.ts +45 -15
  169. package/dist/150/liquidityProvider/liquidityRefundAddressRegistered.d.cts +4 -4
  170. package/dist/150/liquidityProvider/liquidityRefundAddressRegistered.d.ts +4 -4
  171. package/dist/150/liquidityProvider/withdrawalEgressScheduled.d.cts +45 -15
  172. package/dist/150/liquidityProvider/withdrawalEgressScheduled.d.ts +45 -15
  173. package/dist/150/polkadotIngressEgress/ccmEgressInvalid.d.cts +20 -20
  174. package/dist/150/polkadotIngressEgress/ccmEgressInvalid.d.ts +20 -20
  175. package/dist/150/polkadotIngressEgress/depositBoosted.d.cts +10 -10
  176. package/dist/150/polkadotIngressEgress/depositBoosted.d.ts +10 -10
  177. package/dist/150/polkadotIngressEgress/depositFinalised.d.cts +4 -4
  178. package/dist/150/polkadotIngressEgress/depositFinalised.d.ts +4 -4
  179. package/dist/150/polkadotIngressEgress/depositWitnessRejected.d.cts +16 -16
  180. package/dist/150/polkadotIngressEgress/depositWitnessRejected.d.ts +16 -16
  181. package/dist/150/solanaIngressEgress/boostFundsAdded.d.cts +2 -2
  182. package/dist/150/solanaIngressEgress/boostFundsAdded.d.ts +2 -2
  183. package/dist/150/solanaIngressEgress/ccmEgressInvalid.d.cts +16 -16
  184. package/dist/150/solanaIngressEgress/ccmEgressInvalid.d.ts +16 -16
  185. package/dist/150/solanaIngressEgress/depositFinalised.d.cts +2 -2
  186. package/dist/150/solanaIngressEgress/depositFinalised.d.ts +2 -2
  187. package/dist/150/solanaIngressEgress/depositIgnored.d.cts +2 -2
  188. package/dist/150/solanaIngressEgress/depositIgnored.d.ts +2 -2
  189. package/dist/150/solanaIngressEgress/depositWitnessRejected.d.cts +20 -20
  190. package/dist/150/solanaIngressEgress/depositWitnessRejected.d.ts +20 -20
  191. package/dist/150/solanaIngressEgress/failedToBuildAllBatchCall.d.cts +28 -28
  192. package/dist/150/solanaIngressEgress/failedToBuildAllBatchCall.d.ts +28 -28
  193. package/dist/150/swapping/batchSwapFailed.d.cts +8 -8
  194. package/dist/150/swapping/batchSwapFailed.d.ts +8 -8
  195. package/dist/150/swapping/ccmDepositReceived.d.cts +125 -95
  196. package/dist/150/swapping/ccmDepositReceived.d.ts +125 -95
  197. package/dist/150/swapping/ccmFailed.d.cts +195 -135
  198. package/dist/150/swapping/ccmFailed.d.ts +195 -135
  199. package/dist/150/swapping/maximumSwapAmountSet.d.cts +6 -6
  200. package/dist/150/swapping/maximumSwapAmountSet.d.ts +6 -6
  201. package/dist/150/swapping/refundEgressIgnored.d.cts +24 -24
  202. package/dist/150/swapping/refundEgressIgnored.d.ts +24 -24
  203. package/dist/150/swapping/refundEgressScheduled.d.cts +8 -8
  204. package/dist/150/swapping/refundEgressScheduled.d.ts +8 -8
  205. package/dist/150/swapping/swapAmountConfiscated.d.cts +12 -12
  206. package/dist/150/swapping/swapAmountConfiscated.d.ts +12 -12
  207. package/dist/150/swapping/swapDepositAddressReady.d.cts +192 -102
  208. package/dist/150/swapping/swapDepositAddressReady.d.ts +192 -102
  209. package/dist/150/swapping/swapEgressIgnored.d.cts +24 -24
  210. package/dist/150/swapping/swapEgressIgnored.d.ts +24 -24
  211. package/dist/150/swapping/swapEgressScheduled.d.cts +8 -8
  212. package/dist/150/swapping/swapEgressScheduled.d.ts +8 -8
  213. package/dist/150/swapping/swapExecuted.d.cts +94 -94
  214. package/dist/150/swapping/swapExecuted.d.ts +94 -94
  215. package/dist/150/swapping/swapScheduled.d.cts +219 -159
  216. package/dist/150/swapping/swapScheduled.d.ts +219 -159
  217. package/dist/150/swapping/withdrawalRequested.d.cts +61 -31
  218. package/dist/150/swapping/withdrawalRequested.d.ts +61 -31
  219. package/dist/160/common.cjs +25 -8
  220. package/dist/160/common.d.cts +170 -50
  221. package/dist/160/common.d.ts +170 -50
  222. package/dist/160/common.mjs +24 -7
  223. package/dist/160/liquidityPools/limitOrderUpdated.d.cts +8 -8
  224. package/dist/160/liquidityPools/limitOrderUpdated.d.ts +8 -8
  225. package/dist/160/liquidityPools/rangeOrderUpdated.d.cts +8 -8
  226. package/dist/160/liquidityPools/rangeOrderUpdated.d.ts +8 -8
  227. package/dist/160/liquidityProvider/liquidityDepositAddressReady.d.cts +45 -15
  228. package/dist/160/liquidityProvider/liquidityDepositAddressReady.d.ts +45 -15
  229. package/dist/160/liquidityProvider/withdrawalEgressScheduled.d.cts +45 -15
  230. package/dist/160/liquidityProvider/withdrawalEgressScheduled.d.ts +45 -15
  231. package/dist/160/solanaIngressEgress/boostFundsAdded.d.cts +2 -2
  232. package/dist/160/solanaIngressEgress/boostFundsAdded.d.ts +2 -2
  233. package/dist/160/solanaIngressEgress/ccmEgressInvalid.d.cts +50 -50
  234. package/dist/160/solanaIngressEgress/ccmEgressInvalid.d.ts +50 -50
  235. package/dist/160/solanaIngressEgress/depositFinalised.d.cts +2 -2
  236. package/dist/160/solanaIngressEgress/depositFinalised.d.ts +2 -2
  237. package/dist/160/solanaIngressEgress/depositIgnored.d.cts +2 -2
  238. package/dist/160/solanaIngressEgress/depositIgnored.d.ts +2 -2
  239. package/dist/160/solanaIngressEgress/depositWitnessRejected.d.cts +20 -20
  240. package/dist/160/solanaIngressEgress/depositWitnessRejected.d.ts +20 -20
  241. package/dist/160/swapping/ccmFailed.d.cts +100 -40
  242. package/dist/160/swapping/ccmFailed.d.ts +100 -40
  243. package/dist/160/swapping/swapDepositAddressReady.d.cts +90 -30
  244. package/dist/160/swapping/swapDepositAddressReady.d.ts +90 -30
  245. package/dist/160/swapping/swapRequested.d.cts +165 -75
  246. package/dist/160/swapping/swapRequested.d.ts +165 -75
  247. package/dist/160/swapping/withdrawalRequested.d.cts +45 -15
  248. package/dist/160/swapping/withdrawalRequested.d.ts +45 -15
  249. package/dist/Processor.cjs +7 -1
  250. package/dist/Processor.mjs +7 -1
  251. package/package.json +1 -1
@@ -24,7 +24,7 @@ declare const swappingSwapRequested: z.ZodObject<{
24
24
  brokerFee: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
25
25
  origin: z.ZodUnion<[z.ZodObject<{
26
26
  __kind: z.ZodLiteral<"DepositChannel">;
27
- depositAddress: z.ZodUnion<[z.ZodObject<{
27
+ depositAddress: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
28
28
  __kind: z.ZodLiteral<"Eth">;
29
29
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
30
30
  }, "strip", z.ZodTypeAny, {
@@ -33,7 +33,13 @@ declare const swappingSwapRequested: z.ZodObject<{
33
33
  }, {
34
34
  __kind: "Eth";
35
35
  value: string;
36
- }>, z.ZodObject<{
36
+ }>, {
37
+ chain: "Ethereum";
38
+ address: `0x${string}`;
39
+ }, {
40
+ __kind: "Eth";
41
+ value: string;
42
+ }>, z.ZodEffects<z.ZodObject<{
37
43
  __kind: z.ZodLiteral<"Dot">;
38
44
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
39
45
  }, "strip", z.ZodTypeAny, {
@@ -42,7 +48,13 @@ declare const swappingSwapRequested: z.ZodObject<{
42
48
  }, {
43
49
  __kind: "Dot";
44
50
  value: string;
45
- }>, z.ZodObject<{
51
+ }>, {
52
+ chain: "Polkadot";
53
+ address: string;
54
+ }, {
55
+ __kind: "Dot";
56
+ value: string;
57
+ }>, z.ZodEffects<z.ZodObject<{
46
58
  __kind: z.ZodLiteral<"Btc">;
47
59
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
48
60
  }, "strip", z.ZodTypeAny, {
@@ -51,7 +63,13 @@ declare const swappingSwapRequested: z.ZodObject<{
51
63
  }, {
52
64
  __kind: "Btc";
53
65
  value: string;
54
- }>, z.ZodObject<{
66
+ }>, {
67
+ chain: "Bitcoin";
68
+ address: string;
69
+ }, {
70
+ __kind: "Btc";
71
+ value: string;
72
+ }>, z.ZodEffects<z.ZodObject<{
55
73
  __kind: z.ZodLiteral<"Arb">;
56
74
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
57
75
  }, "strip", z.ZodTypeAny, {
@@ -60,7 +78,13 @@ declare const swappingSwapRequested: z.ZodObject<{
60
78
  }, {
61
79
  __kind: "Arb";
62
80
  value: string;
63
- }>, z.ZodObject<{
81
+ }>, {
82
+ chain: "Arbitrum";
83
+ address: `0x${string}`;
84
+ }, {
85
+ __kind: "Arb";
86
+ value: string;
87
+ }>, z.ZodEffects<z.ZodObject<{
64
88
  __kind: z.ZodLiteral<"Sol">;
65
89
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
66
90
  }, "strip", z.ZodTypeAny, {
@@ -69,26 +93,32 @@ declare const swappingSwapRequested: z.ZodObject<{
69
93
  }, {
70
94
  __kind: "Sol";
71
95
  value: string;
96
+ }>, {
97
+ chain: "Solana";
98
+ address: string;
99
+ }, {
100
+ __kind: "Sol";
101
+ value: string;
72
102
  }>]>;
73
103
  channelId: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
74
104
  depositBlockHeight: z.ZodEffects<z.ZodUnion<[z.ZodNumber, z.ZodEffects<z.ZodString, `0x${string}`, string>, z.ZodEffects<z.ZodString, string, string>]>, bigint, string | number>;
75
105
  }, "strip", z.ZodTypeAny, {
76
106
  __kind: "DepositChannel";
77
107
  depositAddress: {
78
- __kind: "Eth";
79
- value: `0x${string}`;
108
+ chain: "Ethereum";
109
+ address: `0x${string}`;
80
110
  } | {
81
- __kind: "Dot";
82
- value: `0x${string}`;
111
+ chain: "Polkadot";
112
+ address: string;
83
113
  } | {
84
- __kind: "Btc";
85
- value: `0x${string}`;
114
+ chain: "Bitcoin";
115
+ address: string;
86
116
  } | {
87
- __kind: "Arb";
88
- value: `0x${string}`;
117
+ chain: "Arbitrum";
118
+ address: `0x${string}`;
89
119
  } | {
90
- __kind: "Sol";
91
- value: `0x${string}`;
120
+ chain: "Solana";
121
+ address: string;
92
122
  };
93
123
  channelId: bigint;
94
124
  depositBlockHeight: bigint;
@@ -142,7 +172,7 @@ declare const swappingSwapRequested: z.ZodObject<{
142
172
  __kind: "IngressEgressFee";
143
173
  }>, z.ZodObject<{
144
174
  __kind: z.ZodLiteral<"Regular">;
145
- outputAddress: z.ZodUnion<[z.ZodObject<{
175
+ outputAddress: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
146
176
  __kind: z.ZodLiteral<"Eth">;
147
177
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
148
178
  }, "strip", z.ZodTypeAny, {
@@ -151,7 +181,13 @@ declare const swappingSwapRequested: z.ZodObject<{
151
181
  }, {
152
182
  __kind: "Eth";
153
183
  value: string;
154
- }>, z.ZodObject<{
184
+ }>, {
185
+ chain: "Ethereum";
186
+ address: `0x${string}`;
187
+ }, {
188
+ __kind: "Eth";
189
+ value: string;
190
+ }>, z.ZodEffects<z.ZodObject<{
155
191
  __kind: z.ZodLiteral<"Dot">;
156
192
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
157
193
  }, "strip", z.ZodTypeAny, {
@@ -160,7 +196,13 @@ declare const swappingSwapRequested: z.ZodObject<{
160
196
  }, {
161
197
  __kind: "Dot";
162
198
  value: string;
163
- }>, z.ZodObject<{
199
+ }>, {
200
+ chain: "Polkadot";
201
+ address: string;
202
+ }, {
203
+ __kind: "Dot";
204
+ value: string;
205
+ }>, z.ZodEffects<z.ZodObject<{
164
206
  __kind: z.ZodLiteral<"Btc">;
165
207
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
166
208
  }, "strip", z.ZodTypeAny, {
@@ -169,7 +211,13 @@ declare const swappingSwapRequested: z.ZodObject<{
169
211
  }, {
170
212
  __kind: "Btc";
171
213
  value: string;
172
- }>, z.ZodObject<{
214
+ }>, {
215
+ chain: "Bitcoin";
216
+ address: string;
217
+ }, {
218
+ __kind: "Btc";
219
+ value: string;
220
+ }>, z.ZodEffects<z.ZodObject<{
173
221
  __kind: z.ZodLiteral<"Arb">;
174
222
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
175
223
  }, "strip", z.ZodTypeAny, {
@@ -178,7 +226,13 @@ declare const swappingSwapRequested: z.ZodObject<{
178
226
  }, {
179
227
  __kind: "Arb";
180
228
  value: string;
181
- }>, z.ZodObject<{
229
+ }>, {
230
+ chain: "Arbitrum";
231
+ address: `0x${string}`;
232
+ }, {
233
+ __kind: "Arb";
234
+ value: string;
235
+ }>, z.ZodEffects<z.ZodObject<{
182
236
  __kind: z.ZodLiteral<"Sol">;
183
237
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
184
238
  }, "strip", z.ZodTypeAny, {
@@ -187,24 +241,30 @@ declare const swappingSwapRequested: z.ZodObject<{
187
241
  }, {
188
242
  __kind: "Sol";
189
243
  value: string;
244
+ }>, {
245
+ chain: "Solana";
246
+ address: string;
247
+ }, {
248
+ __kind: "Sol";
249
+ value: string;
190
250
  }>]>;
191
251
  }, "strip", z.ZodTypeAny, {
192
252
  __kind: "Regular";
193
253
  outputAddress: {
194
- __kind: "Eth";
195
- value: `0x${string}`;
254
+ chain: "Ethereum";
255
+ address: `0x${string}`;
196
256
  } | {
197
- __kind: "Dot";
198
- value: `0x${string}`;
257
+ chain: "Polkadot";
258
+ address: string;
199
259
  } | {
200
- __kind: "Btc";
201
- value: `0x${string}`;
260
+ chain: "Bitcoin";
261
+ address: string;
202
262
  } | {
203
- __kind: "Arb";
204
- value: `0x${string}`;
263
+ chain: "Arbitrum";
264
+ address: `0x${string}`;
205
265
  } | {
206
- __kind: "Sol";
207
- value: `0x${string}`;
266
+ chain: "Solana";
267
+ address: string;
208
268
  };
209
269
  }, {
210
270
  __kind: "Regular";
@@ -226,7 +286,7 @@ declare const swappingSwapRequested: z.ZodObject<{
226
286
  };
227
287
  }>, z.ZodObject<{
228
288
  __kind: z.ZodLiteral<"Ccm">;
229
- outputAddress: z.ZodUnion<[z.ZodObject<{
289
+ outputAddress: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
230
290
  __kind: z.ZodLiteral<"Eth">;
231
291
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
232
292
  }, "strip", z.ZodTypeAny, {
@@ -235,7 +295,13 @@ declare const swappingSwapRequested: z.ZodObject<{
235
295
  }, {
236
296
  __kind: "Eth";
237
297
  value: string;
238
- }>, z.ZodObject<{
298
+ }>, {
299
+ chain: "Ethereum";
300
+ address: `0x${string}`;
301
+ }, {
302
+ __kind: "Eth";
303
+ value: string;
304
+ }>, z.ZodEffects<z.ZodObject<{
239
305
  __kind: z.ZodLiteral<"Dot">;
240
306
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
241
307
  }, "strip", z.ZodTypeAny, {
@@ -244,7 +310,13 @@ declare const swappingSwapRequested: z.ZodObject<{
244
310
  }, {
245
311
  __kind: "Dot";
246
312
  value: string;
247
- }>, z.ZodObject<{
313
+ }>, {
314
+ chain: "Polkadot";
315
+ address: string;
316
+ }, {
317
+ __kind: "Dot";
318
+ value: string;
319
+ }>, z.ZodEffects<z.ZodObject<{
248
320
  __kind: z.ZodLiteral<"Btc">;
249
321
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
250
322
  }, "strip", z.ZodTypeAny, {
@@ -253,7 +325,13 @@ declare const swappingSwapRequested: z.ZodObject<{
253
325
  }, {
254
326
  __kind: "Btc";
255
327
  value: string;
256
- }>, z.ZodObject<{
328
+ }>, {
329
+ chain: "Bitcoin";
330
+ address: string;
331
+ }, {
332
+ __kind: "Btc";
333
+ value: string;
334
+ }>, z.ZodEffects<z.ZodObject<{
257
335
  __kind: z.ZodLiteral<"Arb">;
258
336
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
259
337
  }, "strip", z.ZodTypeAny, {
@@ -262,7 +340,13 @@ declare const swappingSwapRequested: z.ZodObject<{
262
340
  }, {
263
341
  __kind: "Arb";
264
342
  value: string;
265
- }>, z.ZodObject<{
343
+ }>, {
344
+ chain: "Arbitrum";
345
+ address: `0x${string}`;
346
+ }, {
347
+ __kind: "Arb";
348
+ value: string;
349
+ }>, z.ZodEffects<z.ZodObject<{
266
350
  __kind: z.ZodLiteral<"Sol">;
267
351
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
268
352
  }, "strip", z.ZodTypeAny, {
@@ -271,6 +355,12 @@ declare const swappingSwapRequested: z.ZodObject<{
271
355
  }, {
272
356
  __kind: "Sol";
273
357
  value: string;
358
+ }>, {
359
+ chain: "Solana";
360
+ address: string;
361
+ }, {
362
+ __kind: "Sol";
363
+ value: string;
274
364
  }>]>;
275
365
  ccmDepositMetadata: z.ZodObject<{
276
366
  sourceChain: z.ZodEffects<z.ZodObject<{
@@ -526,20 +616,20 @@ declare const swappingSwapRequested: z.ZodObject<{
526
616
  }, "strip", z.ZodTypeAny, {
527
617
  __kind: "Ccm";
528
618
  outputAddress: {
529
- __kind: "Eth";
530
- value: `0x${string}`;
619
+ chain: "Ethereum";
620
+ address: `0x${string}`;
531
621
  } | {
532
- __kind: "Dot";
533
- value: `0x${string}`;
622
+ chain: "Polkadot";
623
+ address: string;
534
624
  } | {
535
- __kind: "Btc";
536
- value: `0x${string}`;
625
+ chain: "Bitcoin";
626
+ address: string;
537
627
  } | {
538
- __kind: "Arb";
539
- value: `0x${string}`;
628
+ chain: "Arbitrum";
629
+ address: `0x${string}`;
540
630
  } | {
541
- __kind: "Sol";
542
- value: `0x${string}`;
631
+ chain: "Solana";
632
+ address: string;
543
633
  };
544
634
  ccmDepositMetadata: {
545
635
  sourceChain: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum" | "Solana";
@@ -653,20 +743,20 @@ declare const swappingSwapRequested: z.ZodObject<{
653
743
  origin: {
654
744
  __kind: "DepositChannel";
655
745
  depositAddress: {
656
- __kind: "Eth";
657
- value: `0x${string}`;
746
+ chain: "Ethereum";
747
+ address: `0x${string}`;
658
748
  } | {
659
- __kind: "Dot";
660
- value: `0x${string}`;
749
+ chain: "Polkadot";
750
+ address: string;
661
751
  } | {
662
- __kind: "Btc";
663
- value: `0x${string}`;
752
+ chain: "Bitcoin";
753
+ address: string;
664
754
  } | {
665
- __kind: "Arb";
666
- value: `0x${string}`;
755
+ chain: "Arbitrum";
756
+ address: `0x${string}`;
667
757
  } | {
668
- __kind: "Sol";
669
- value: `0x${string}`;
758
+ chain: "Solana";
759
+ address: string;
670
760
  };
671
761
  channelId: bigint;
672
762
  depositBlockHeight: bigint;
@@ -687,38 +777,38 @@ declare const swappingSwapRequested: z.ZodObject<{
687
777
  } | {
688
778
  __kind: "Regular";
689
779
  outputAddress: {
690
- __kind: "Eth";
691
- value: `0x${string}`;
780
+ chain: "Ethereum";
781
+ address: `0x${string}`;
692
782
  } | {
693
- __kind: "Dot";
694
- value: `0x${string}`;
783
+ chain: "Polkadot";
784
+ address: string;
695
785
  } | {
696
- __kind: "Btc";
697
- value: `0x${string}`;
786
+ chain: "Bitcoin";
787
+ address: string;
698
788
  } | {
699
- __kind: "Arb";
700
- value: `0x${string}`;
789
+ chain: "Arbitrum";
790
+ address: `0x${string}`;
701
791
  } | {
702
- __kind: "Sol";
703
- value: `0x${string}`;
792
+ chain: "Solana";
793
+ address: string;
704
794
  };
705
795
  } | {
706
796
  __kind: "Ccm";
707
797
  outputAddress: {
708
- __kind: "Eth";
709
- value: `0x${string}`;
798
+ chain: "Ethereum";
799
+ address: `0x${string}`;
710
800
  } | {
711
- __kind: "Dot";
712
- value: `0x${string}`;
801
+ chain: "Polkadot";
802
+ address: string;
713
803
  } | {
714
- __kind: "Btc";
715
- value: `0x${string}`;
804
+ chain: "Bitcoin";
805
+ address: string;
716
806
  } | {
717
- __kind: "Arb";
718
- value: `0x${string}`;
807
+ chain: "Arbitrum";
808
+ address: `0x${string}`;
719
809
  } | {
720
- __kind: "Sol";
721
- value: `0x${string}`;
810
+ chain: "Solana";
811
+ address: string;
722
812
  };
723
813
  ccmDepositMetadata: {
724
814
  sourceChain: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum" | "Solana";
@@ -21,7 +21,7 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
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>;
24
- destinationAddress: z.ZodUnion<[z.ZodObject<{
24
+ destinationAddress: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
25
25
  __kind: z.ZodLiteral<"Eth">;
26
26
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
27
27
  }, "strip", z.ZodTypeAny, {
@@ -30,7 +30,13 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
30
30
  }, {
31
31
  __kind: "Eth";
32
32
  value: string;
33
- }>, z.ZodObject<{
33
+ }>, {
34
+ chain: "Ethereum";
35
+ address: `0x${string}`;
36
+ }, {
37
+ __kind: "Eth";
38
+ value: string;
39
+ }>, z.ZodEffects<z.ZodObject<{
34
40
  __kind: z.ZodLiteral<"Dot">;
35
41
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
36
42
  }, "strip", z.ZodTypeAny, {
@@ -39,7 +45,13 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
39
45
  }, {
40
46
  __kind: "Dot";
41
47
  value: string;
42
- }>, z.ZodObject<{
48
+ }>, {
49
+ chain: "Polkadot";
50
+ address: string;
51
+ }, {
52
+ __kind: "Dot";
53
+ value: string;
54
+ }>, z.ZodEffects<z.ZodObject<{
43
55
  __kind: z.ZodLiteral<"Btc">;
44
56
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
45
57
  }, "strip", z.ZodTypeAny, {
@@ -48,7 +60,13 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
48
60
  }, {
49
61
  __kind: "Btc";
50
62
  value: string;
51
- }>, z.ZodObject<{
63
+ }>, {
64
+ chain: "Bitcoin";
65
+ address: string;
66
+ }, {
67
+ __kind: "Btc";
68
+ value: string;
69
+ }>, z.ZodEffects<z.ZodObject<{
52
70
  __kind: z.ZodLiteral<"Arb">;
53
71
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
54
72
  }, "strip", z.ZodTypeAny, {
@@ -57,7 +75,13 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
57
75
  }, {
58
76
  __kind: "Arb";
59
77
  value: string;
60
- }>, z.ZodObject<{
78
+ }>, {
79
+ chain: "Arbitrum";
80
+ address: `0x${string}`;
81
+ }, {
82
+ __kind: "Arb";
83
+ value: string;
84
+ }>, z.ZodEffects<z.ZodObject<{
61
85
  __kind: z.ZodLiteral<"Sol">;
62
86
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
63
87
  }, "strip", z.ZodTypeAny, {
@@ -66,23 +90,29 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
66
90
  }, {
67
91
  __kind: "Sol";
68
92
  value: string;
93
+ }>, {
94
+ chain: "Solana";
95
+ address: string;
96
+ }, {
97
+ __kind: "Sol";
98
+ value: string;
69
99
  }>]>;
70
100
  }, "strip", z.ZodTypeAny, {
71
101
  destinationAddress: {
72
- __kind: "Eth";
73
- value: `0x${string}`;
102
+ chain: "Ethereum";
103
+ address: `0x${string}`;
74
104
  } | {
75
- __kind: "Dot";
76
- value: `0x${string}`;
105
+ chain: "Polkadot";
106
+ address: string;
77
107
  } | {
78
- __kind: "Btc";
79
- value: `0x${string}`;
108
+ chain: "Bitcoin";
109
+ address: string;
80
110
  } | {
81
- __kind: "Arb";
82
- value: `0x${string}`;
111
+ chain: "Arbitrum";
112
+ address: `0x${string}`;
83
113
  } | {
84
- __kind: "Sol";
85
- value: `0x${string}`;
114
+ chain: "Solana";
115
+ address: string;
86
116
  };
87
117
  egressId: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum" | "Solana", bigint];
88
118
  egressFee: bigint;
@@ -21,7 +21,7 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
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>;
24
- destinationAddress: z.ZodUnion<[z.ZodObject<{
24
+ destinationAddress: z.ZodUnion<[z.ZodEffects<z.ZodObject<{
25
25
  __kind: z.ZodLiteral<"Eth">;
26
26
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
27
27
  }, "strip", z.ZodTypeAny, {
@@ -30,7 +30,13 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
30
30
  }, {
31
31
  __kind: "Eth";
32
32
  value: string;
33
- }>, z.ZodObject<{
33
+ }>, {
34
+ chain: "Ethereum";
35
+ address: `0x${string}`;
36
+ }, {
37
+ __kind: "Eth";
38
+ value: string;
39
+ }>, z.ZodEffects<z.ZodObject<{
34
40
  __kind: z.ZodLiteral<"Dot">;
35
41
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
36
42
  }, "strip", z.ZodTypeAny, {
@@ -39,7 +45,13 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
39
45
  }, {
40
46
  __kind: "Dot";
41
47
  value: string;
42
- }>, z.ZodObject<{
48
+ }>, {
49
+ chain: "Polkadot";
50
+ address: string;
51
+ }, {
52
+ __kind: "Dot";
53
+ value: string;
54
+ }>, z.ZodEffects<z.ZodObject<{
43
55
  __kind: z.ZodLiteral<"Btc">;
44
56
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
45
57
  }, "strip", z.ZodTypeAny, {
@@ -48,7 +60,13 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
48
60
  }, {
49
61
  __kind: "Btc";
50
62
  value: string;
51
- }>, z.ZodObject<{
63
+ }>, {
64
+ chain: "Bitcoin";
65
+ address: string;
66
+ }, {
67
+ __kind: "Btc";
68
+ value: string;
69
+ }>, z.ZodEffects<z.ZodObject<{
52
70
  __kind: z.ZodLiteral<"Arb">;
53
71
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
54
72
  }, "strip", z.ZodTypeAny, {
@@ -57,7 +75,13 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
57
75
  }, {
58
76
  __kind: "Arb";
59
77
  value: string;
60
- }>, z.ZodObject<{
78
+ }>, {
79
+ chain: "Arbitrum";
80
+ address: `0x${string}`;
81
+ }, {
82
+ __kind: "Arb";
83
+ value: string;
84
+ }>, z.ZodEffects<z.ZodObject<{
61
85
  __kind: z.ZodLiteral<"Sol">;
62
86
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
63
87
  }, "strip", z.ZodTypeAny, {
@@ -66,23 +90,29 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
66
90
  }, {
67
91
  __kind: "Sol";
68
92
  value: string;
93
+ }>, {
94
+ chain: "Solana";
95
+ address: string;
96
+ }, {
97
+ __kind: "Sol";
98
+ value: string;
69
99
  }>]>;
70
100
  }, "strip", z.ZodTypeAny, {
71
101
  destinationAddress: {
72
- __kind: "Eth";
73
- value: `0x${string}`;
102
+ chain: "Ethereum";
103
+ address: `0x${string}`;
74
104
  } | {
75
- __kind: "Dot";
76
- value: `0x${string}`;
105
+ chain: "Polkadot";
106
+ address: string;
77
107
  } | {
78
- __kind: "Btc";
79
- value: `0x${string}`;
108
+ chain: "Bitcoin";
109
+ address: string;
80
110
  } | {
81
- __kind: "Arb";
82
- value: `0x${string}`;
111
+ chain: "Arbitrum";
112
+ address: `0x${string}`;
83
113
  } | {
84
- __kind: "Sol";
85
- value: `0x${string}`;
114
+ chain: "Solana";
115
+ address: string;
86
116
  };
87
117
  egressId: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum" | "Solana", bigint];
88
118
  egressFee: bigint;
@@ -184,6 +184,7 @@ var Processor = (_class = class {
184
184
  return true;
185
185
  }
186
186
  stop() {
187
+ this.logger.info("stopping processing of blocks");
187
188
  this.running = false;
188
189
  }
189
190
  async start() {
@@ -195,6 +196,7 @@ var Processor = (_class = class {
195
196
  let nextBatch;
196
197
  while (this.running) {
197
198
  const blocks = await (_nullishCoalesce(nextBatch, () => ( this.fetchBlocks(lastBlock + 1))));
199
+ let numBlocksProcessed = 0;
198
200
  const start = performance.now();
199
201
  if (blocks.length === 0) {
200
202
  nextBatch = void 0;
@@ -206,6 +208,10 @@ var Processor = (_class = class {
206
208
  `processing blocks from ${lastBlock + 1} to ${lastBlock + blocks.length}...`
207
209
  );
208
210
  for (const block of blocks) {
211
+ numBlocksProcessed++;
212
+ if (!this.running) {
213
+ break;
214
+ }
209
215
  const state = await this.processorStore.getCurrentState(this.name);
210
216
  _assert2.default.call(void 0,
211
217
  state.height === lastBlock,
@@ -234,7 +240,7 @@ var Processor = (_class = class {
234
240
  }
235
241
  const end = performance.now();
236
242
  this.logger.info(
237
- `processed ${blocks.length} blocks in ${end - start} milliseconds, last block: ${lastBlock}`
243
+ `processed ${numBlocksProcessed} blocks in ${end - start} milliseconds, last block: ${lastBlock}`
238
244
  );
239
245
  }
240
246
  }