@chainflip/processor 1.4.4 → 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 (175) 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 +28 -28
  6. package/dist/100/Environment/runtimeSafeModeUpdated.d.ts +28 -28
  7. package/dist/100/EthereumIngressEgress/ccmEgressInvalid.d.cts +20 -20
  8. package/dist/100/EthereumIngressEgress/ccmEgressInvalid.d.ts +20 -20
  9. package/dist/100/EthereumIngressEgress/depositFetchesScheduled.d.cts +2 -2
  10. package/dist/100/EthereumIngressEgress/depositFetchesScheduled.d.ts +2 -2
  11. package/dist/100/EthereumIngressEgress/depositIgnored.d.cts +2 -2
  12. package/dist/100/EthereumIngressEgress/depositIgnored.d.ts +2 -2
  13. package/dist/100/EthereumIngressEgress/depositReceived.d.cts +2 -2
  14. package/dist/100/EthereumIngressEgress/depositReceived.d.ts +2 -2
  15. package/dist/100/EthereumIngressEgress/depositWitnessRejected.d.cts +20 -20
  16. package/dist/100/EthereumIngressEgress/depositWitnessRejected.d.ts +20 -20
  17. package/dist/100/Funding/boundExecutorAddress.d.cts +2 -2
  18. package/dist/100/Funding/boundExecutorAddress.d.ts +2 -2
  19. package/dist/100/Funding/boundRedeemAddress.d.cts +2 -2
  20. package/dist/100/Funding/boundRedeemAddress.d.ts +2 -2
  21. package/dist/100/Funding/failedFundingAttempt.d.cts +2 -2
  22. package/dist/100/Funding/failedFundingAttempt.d.ts +2 -2
  23. package/dist/100/Funding/funded.d.cts +2 -2
  24. package/dist/100/Funding/funded.d.ts +2 -2
  25. package/dist/100/Funding/redemptionRequested.d.cts +4 -4
  26. package/dist/100/Funding/redemptionRequested.d.ts +4 -4
  27. package/dist/100/LiquidityProvider/accountCredited.d.cts +2 -2
  28. package/dist/100/LiquidityProvider/accountCredited.d.ts +2 -2
  29. package/dist/100/LiquidityProvider/accountDebited.d.cts +2 -2
  30. package/dist/100/LiquidityProvider/accountDebited.d.ts +2 -2
  31. package/dist/100/LiquidityProvider/liquidityDepositAddressReady.d.cts +4 -4
  32. package/dist/100/LiquidityProvider/liquidityDepositAddressReady.d.ts +4 -4
  33. package/dist/100/PolkadotIngressEgress/ccmEgressInvalid.d.cts +4 -4
  34. package/dist/100/PolkadotIngressEgress/ccmEgressInvalid.d.ts +4 -4
  35. package/dist/100/Swapping/batchSwapFailed.d.cts +8 -8
  36. package/dist/100/Swapping/batchSwapFailed.d.ts +8 -8
  37. package/dist/100/Swapping/ccmDepositReceived.d.cts +78 -78
  38. package/dist/100/Swapping/ccmDepositReceived.d.ts +78 -78
  39. package/dist/100/Swapping/ccmFailed.d.cts +78 -78
  40. package/dist/100/Swapping/ccmFailed.d.ts +78 -78
  41. package/dist/100/Swapping/minimumSwapAmountSet.d.cts +6 -6
  42. package/dist/100/Swapping/minimumSwapAmountSet.d.ts +6 -6
  43. package/dist/100/Swapping/swapAmountTooLow.d.cts +50 -50
  44. package/dist/100/Swapping/swapAmountTooLow.d.ts +50 -50
  45. package/dist/100/Swapping/swapDepositAddressReady.d.cts +42 -42
  46. package/dist/100/Swapping/swapDepositAddressReady.d.ts +42 -42
  47. package/dist/100/Swapping/swapEgressScheduled.d.cts +6 -6
  48. package/dist/100/Swapping/swapEgressScheduled.d.ts +6 -6
  49. package/dist/100/Swapping/swapExecuted.d.cts +12 -12
  50. package/dist/100/Swapping/swapExecuted.d.ts +12 -12
  51. package/dist/100/Swapping/swapScheduled.d.cts +130 -130
  52. package/dist/100/Swapping/swapScheduled.d.ts +130 -130
  53. package/dist/100/Swapping/withdrawalRequested.d.cts +12 -12
  54. package/dist/100/Swapping/withdrawalRequested.d.ts +12 -12
  55. package/dist/111/LiquidityPools/scheduledLimitOrderUpdateDispatchFailure.d.cts +2 -2
  56. package/dist/111/LiquidityPools/scheduledLimitOrderUpdateDispatchFailure.d.ts +2 -2
  57. package/dist/120/PolkadotIngressEgress/depositReceived.d.cts +4 -4
  58. package/dist/120/PolkadotIngressEgress/depositReceived.d.ts +4 -4
  59. package/dist/120/Swapping/ccmFailed.d.cts +78 -78
  60. package/dist/120/Swapping/ccmFailed.d.ts +78 -78
  61. package/dist/120/Swapping/swapEgressIgnored.d.cts +28 -28
  62. package/dist/120/Swapping/swapEgressIgnored.d.ts +28 -28
  63. package/dist/120/Swapping/swapEgressScheduled.d.cts +6 -6
  64. package/dist/120/Swapping/swapEgressScheduled.d.ts +6 -6
  65. package/dist/120/Swapping/swapExecuted.d.cts +12 -12
  66. package/dist/120/Swapping/swapExecuted.d.ts +12 -12
  67. package/dist/120/Swapping/withdrawalRequested.d.cts +12 -12
  68. package/dist/120/Swapping/withdrawalRequested.d.ts +12 -12
  69. package/dist/131/Environment/runtimeSafeModeUpdated.d.cts +40 -40
  70. package/dist/131/Environment/runtimeSafeModeUpdated.d.ts +40 -40
  71. package/dist/131/EthereumIngressEgress/depositFetchesScheduled.d.cts +2 -2
  72. package/dist/131/EthereumIngressEgress/depositFetchesScheduled.d.ts +2 -2
  73. package/dist/131/EthereumIngressEgress/depositIgnored.d.cts +2 -2
  74. package/dist/131/EthereumIngressEgress/depositIgnored.d.ts +2 -2
  75. package/dist/131/EthereumIngressEgress/depositReceived.d.cts +6 -6
  76. package/dist/131/EthereumIngressEgress/depositReceived.d.ts +6 -6
  77. package/dist/131/EthereumIngressEgress/depositWitnessRejected.d.cts +20 -20
  78. package/dist/131/EthereumIngressEgress/depositWitnessRejected.d.ts +20 -20
  79. package/dist/131/EthereumIngressEgress/failedToBuildAllBatchCall.d.cts +28 -28
  80. package/dist/131/EthereumIngressEgress/failedToBuildAllBatchCall.d.ts +28 -28
  81. package/dist/131/LiquidityPools/limitOrderUpdated.d.cts +10 -10
  82. package/dist/131/LiquidityPools/limitOrderUpdated.d.ts +10 -10
  83. package/dist/131/LiquidityPools/rangeOrderUpdated.d.cts +10 -10
  84. package/dist/131/LiquidityPools/rangeOrderUpdated.d.ts +10 -10
  85. package/dist/131/LiquidityProvider/accountCredited.d.cts +2 -2
  86. package/dist/131/LiquidityProvider/accountCredited.d.ts +2 -2
  87. package/dist/131/LiquidityProvider/accountDebited.d.cts +2 -2
  88. package/dist/131/LiquidityProvider/accountDebited.d.ts +2 -2
  89. package/dist/131/LiquidityProvider/liquidityDepositAddressReady.d.cts +4 -4
  90. package/dist/131/LiquidityProvider/liquidityDepositAddressReady.d.ts +4 -4
  91. package/dist/131/LiquidityProvider/liquidityDepositCredited.d.cts +2 -2
  92. package/dist/131/LiquidityProvider/liquidityDepositCredited.d.ts +2 -2
  93. package/dist/131/Swapping/batchSwapFailed.d.cts +6 -6
  94. package/dist/131/Swapping/batchSwapFailed.d.ts +6 -6
  95. package/dist/131/Swapping/ccmFailed.d.cts +106 -106
  96. package/dist/131/Swapping/ccmFailed.d.ts +106 -106
  97. package/dist/131/Swapping/maximumSwapAmountSet.d.cts +6 -6
  98. package/dist/131/Swapping/maximumSwapAmountSet.d.ts +6 -6
  99. package/dist/131/Swapping/swapAmountConfiscated.d.cts +12 -12
  100. package/dist/131/Swapping/swapAmountConfiscated.d.ts +12 -12
  101. package/dist/131/Swapping/swapDepositAddressReady.d.cts +46 -46
  102. package/dist/131/Swapping/swapDepositAddressReady.d.ts +46 -46
  103. package/dist/131/Swapping/swapEgressIgnored.d.cts +28 -28
  104. package/dist/131/Swapping/swapEgressIgnored.d.ts +28 -28
  105. package/dist/131/Swapping/swapEgressScheduled.d.cts +6 -6
  106. package/dist/131/Swapping/swapEgressScheduled.d.ts +6 -6
  107. package/dist/131/Swapping/swapExecuted.d.cts +12 -12
  108. package/dist/131/Swapping/swapExecuted.d.ts +12 -12
  109. package/dist/131/Swapping/swapScheduled.d.cts +136 -136
  110. package/dist/131/Swapping/swapScheduled.d.ts +136 -136
  111. package/dist/131/Swapping/withdrawalRequested.d.cts +18 -18
  112. package/dist/131/Swapping/withdrawalRequested.d.ts +18 -18
  113. package/dist/141/ArbitrumIngressEgress/ccmEgressInvalid.d.cts +16 -16
  114. package/dist/141/ArbitrumIngressEgress/ccmEgressInvalid.d.ts +16 -16
  115. package/dist/141/ArbitrumIngressEgress/depositBoosted.d.cts +8 -8
  116. package/dist/141/ArbitrumIngressEgress/depositBoosted.d.ts +8 -8
  117. package/dist/141/ArbitrumIngressEgress/depositFetchesScheduled.d.cts +2 -2
  118. package/dist/141/ArbitrumIngressEgress/depositFetchesScheduled.d.ts +2 -2
  119. package/dist/141/ArbitrumIngressEgress/depositFinalised.d.cts +8 -8
  120. package/dist/141/ArbitrumIngressEgress/depositFinalised.d.ts +8 -8
  121. package/dist/141/ArbitrumIngressEgress/depositIgnored.d.cts +3 -3
  122. package/dist/141/ArbitrumIngressEgress/depositIgnored.d.ts +3 -3
  123. package/dist/141/ArbitrumIngressEgress/depositWitnessRejected.d.cts +22 -22
  124. package/dist/141/ArbitrumIngressEgress/depositWitnessRejected.d.ts +22 -22
  125. package/dist/141/ArbitrumIngressEgress/failedToBuildAllBatchCall.d.cts +28 -28
  126. package/dist/141/ArbitrumIngressEgress/failedToBuildAllBatchCall.d.ts +28 -28
  127. package/dist/141/ArbitrumIngressEgress/insufficientBoostLiquidity.d.cts +3 -3
  128. package/dist/141/ArbitrumIngressEgress/insufficientBoostLiquidity.d.ts +3 -3
  129. package/dist/141/ArbitrumIngressEgress/transferFallbackRequested.d.cts +4 -4
  130. package/dist/141/ArbitrumIngressEgress/transferFallbackRequested.d.ts +4 -4
  131. package/dist/141/Environment/runtimeSafeModeUpdated.d.cts +12 -12
  132. package/dist/141/Environment/runtimeSafeModeUpdated.d.ts +12 -12
  133. package/dist/141/EthereumIngressEgress/boostFundsAdded.d.cts +2 -2
  134. package/dist/141/EthereumIngressEgress/boostFundsAdded.d.ts +2 -2
  135. package/dist/141/EthereumIngressEgress/ccmEgressInvalid.d.cts +16 -16
  136. package/dist/141/EthereumIngressEgress/ccmEgressInvalid.d.ts +16 -16
  137. package/dist/141/EthereumIngressEgress/depositBoosted.d.cts +4 -4
  138. package/dist/141/EthereumIngressEgress/depositBoosted.d.ts +4 -4
  139. package/dist/141/EthereumIngressEgress/depositFinalised.d.cts +4 -4
  140. package/dist/141/EthereumIngressEgress/depositFinalised.d.ts +4 -4
  141. package/dist/141/EthereumIngressEgress/stoppedBoosting.d.cts +2 -2
  142. package/dist/141/EthereumIngressEgress/stoppedBoosting.d.ts +2 -2
  143. package/dist/141/LiquidityPools/limitOrderUpdated.d.cts +10 -10
  144. package/dist/141/LiquidityPools/limitOrderUpdated.d.ts +10 -10
  145. package/dist/141/LiquidityPools/rangeOrderUpdated.d.cts +10 -10
  146. package/dist/141/LiquidityPools/rangeOrderUpdated.d.ts +10 -10
  147. package/dist/141/Swapping/ccmDepositReceived.d.cts +92 -92
  148. package/dist/141/Swapping/ccmDepositReceived.d.ts +92 -92
  149. package/dist/141/Swapping/ccmFailed.d.cts +128 -128
  150. package/dist/141/Swapping/ccmFailed.d.ts +128 -128
  151. package/dist/141/Swapping/swapDepositAddressReady.d.cts +32 -32
  152. package/dist/141/Swapping/swapDepositAddressReady.d.ts +32 -32
  153. package/dist/141/Swapping/swapEgressIgnored.d.cts +24 -24
  154. package/dist/141/Swapping/swapEgressIgnored.d.ts +24 -24
  155. package/dist/141/Swapping/swapExecuted.d.cts +86 -86
  156. package/dist/141/Swapping/swapExecuted.d.ts +86 -86
  157. package/dist/141/Swapping/swapScheduled.d.cts +140 -140
  158. package/dist/141/Swapping/swapScheduled.d.ts +140 -140
  159. package/dist/141/Swapping/withdrawalRequested.d.cts +16 -16
  160. package/dist/141/Swapping/withdrawalRequested.d.ts +16 -16
  161. package/dist/141/TokenholderGovernance/proposalEnacted.d.cts +8 -8
  162. package/dist/141/TokenholderGovernance/proposalEnacted.d.ts +8 -8
  163. package/dist/141/TokenholderGovernance/proposalPassed.d.cts +8 -8
  164. package/dist/141/TokenholderGovernance/proposalPassed.d.ts +8 -8
  165. package/dist/141/TokenholderGovernance/proposalRejected.d.cts +8 -8
  166. package/dist/141/TokenholderGovernance/proposalRejected.d.ts +8 -8
  167. package/dist/141/TokenholderGovernance/proposalSubmitted.d.cts +8 -8
  168. package/dist/141/TokenholderGovernance/proposalSubmitted.d.ts +8 -8
  169. package/dist/Processor.cjs +11 -5
  170. package/dist/Processor.d.cts +2 -0
  171. package/dist/Processor.d.ts +2 -0
  172. package/dist/Processor.mjs +11 -5
  173. package/dist/types.d.cts +5 -1
  174. package/dist/types.d.ts +5 -1
  175. package/package.json +1 -1
@@ -25,52 +25,52 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
25
25
  __kind: z.ZodLiteral<"Eth">;
26
26
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
27
27
  }, "strip", z.ZodTypeAny, {
28
- value: `0x${string}`;
29
28
  __kind: "Eth";
29
+ value: `0x${string}`;
30
30
  }, {
31
- value: string;
32
31
  __kind: "Eth";
32
+ value: string;
33
33
  }>, z.ZodObject<{
34
34
  __kind: z.ZodLiteral<"Dot">;
35
35
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
36
36
  }, "strip", z.ZodTypeAny, {
37
- value: `0x${string}`;
38
37
  __kind: "Dot";
38
+ value: `0x${string}`;
39
39
  }, {
40
- value: string;
41
40
  __kind: "Dot";
41
+ value: string;
42
42
  }>, z.ZodObject<{
43
43
  __kind: z.ZodLiteral<"Btc">;
44
44
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
45
45
  }, "strip", z.ZodTypeAny, {
46
- value: `0x${string}`;
47
46
  __kind: "Btc";
47
+ value: `0x${string}`;
48
48
  }, {
49
- value: string;
50
49
  __kind: "Btc";
50
+ value: string;
51
51
  }>, z.ZodObject<{
52
52
  __kind: z.ZodLiteral<"Arb">;
53
53
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
54
54
  }, "strip", z.ZodTypeAny, {
55
- value: `0x${string}`;
56
55
  __kind: "Arb";
56
+ value: `0x${string}`;
57
57
  }, {
58
- value: string;
59
58
  __kind: "Arb";
59
+ value: string;
60
60
  }>]>;
61
61
  }, "strip", z.ZodTypeAny, {
62
62
  destinationAddress: {
63
- value: `0x${string}`;
64
63
  __kind: "Eth";
65
- } | {
66
64
  value: `0x${string}`;
67
- __kind: "Dot";
68
65
  } | {
66
+ __kind: "Dot";
69
67
  value: `0x${string}`;
70
- __kind: "Btc";
71
68
  } | {
69
+ __kind: "Btc";
72
70
  value: `0x${string}`;
71
+ } | {
73
72
  __kind: "Arb";
73
+ value: `0x${string}`;
74
74
  };
75
75
  egressId: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum", bigint];
76
76
  egressAmount: bigint;
@@ -78,17 +78,17 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
78
78
  egressFee: bigint;
79
79
  }, {
80
80
  destinationAddress: {
81
- value: string;
82
81
  __kind: "Eth";
83
- } | {
84
82
  value: string;
85
- __kind: "Dot";
86
83
  } | {
84
+ __kind: "Dot";
87
85
  value: string;
88
- __kind: "Btc";
89
86
  } | {
87
+ __kind: "Btc";
90
88
  value: string;
89
+ } | {
91
90
  __kind: "Arb";
91
+ value: string;
92
92
  };
93
93
  egressId: [{
94
94
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
@@ -25,52 +25,52 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
25
25
  __kind: z.ZodLiteral<"Eth">;
26
26
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
27
27
  }, "strip", z.ZodTypeAny, {
28
- value: `0x${string}`;
29
28
  __kind: "Eth";
29
+ value: `0x${string}`;
30
30
  }, {
31
- value: string;
32
31
  __kind: "Eth";
32
+ value: string;
33
33
  }>, z.ZodObject<{
34
34
  __kind: z.ZodLiteral<"Dot">;
35
35
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
36
36
  }, "strip", z.ZodTypeAny, {
37
- value: `0x${string}`;
38
37
  __kind: "Dot";
38
+ value: `0x${string}`;
39
39
  }, {
40
- value: string;
41
40
  __kind: "Dot";
41
+ value: string;
42
42
  }>, z.ZodObject<{
43
43
  __kind: z.ZodLiteral<"Btc">;
44
44
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
45
45
  }, "strip", z.ZodTypeAny, {
46
- value: `0x${string}`;
47
46
  __kind: "Btc";
47
+ value: `0x${string}`;
48
48
  }, {
49
- value: string;
50
49
  __kind: "Btc";
50
+ value: string;
51
51
  }>, z.ZodObject<{
52
52
  __kind: z.ZodLiteral<"Arb">;
53
53
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
54
54
  }, "strip", z.ZodTypeAny, {
55
- value: `0x${string}`;
56
55
  __kind: "Arb";
56
+ value: `0x${string}`;
57
57
  }, {
58
- value: string;
59
58
  __kind: "Arb";
59
+ value: string;
60
60
  }>]>;
61
61
  }, "strip", z.ZodTypeAny, {
62
62
  destinationAddress: {
63
- value: `0x${string}`;
64
63
  __kind: "Eth";
65
- } | {
66
64
  value: `0x${string}`;
67
- __kind: "Dot";
68
65
  } | {
66
+ __kind: "Dot";
69
67
  value: `0x${string}`;
70
- __kind: "Btc";
71
68
  } | {
69
+ __kind: "Btc";
72
70
  value: `0x${string}`;
71
+ } | {
73
72
  __kind: "Arb";
73
+ value: `0x${string}`;
74
74
  };
75
75
  egressId: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum", bigint];
76
76
  egressAmount: bigint;
@@ -78,17 +78,17 @@ declare const swappingWithdrawalRequested: z.ZodObject<{
78
78
  egressFee: bigint;
79
79
  }, {
80
80
  destinationAddress: {
81
- value: string;
82
81
  __kind: "Eth";
83
- } | {
84
82
  value: string;
85
- __kind: "Dot";
86
83
  } | {
84
+ __kind: "Dot";
87
85
  value: string;
88
- __kind: "Btc";
89
86
  } | {
87
+ __kind: "Btc";
90
88
  value: string;
89
+ } | {
91
90
  __kind: "Arb";
91
+ value: string;
92
92
  };
93
93
  egressId: [{
94
94
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
@@ -13,40 +13,40 @@ declare const tokenholderGovernanceProposalEnacted: z.ZodObject<{
13
13
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
14
14
  }>, z.ZodEffects<z.ZodString, `0x${string}`, string>], null>;
15
15
  }, "strip", z.ZodTypeAny, {
16
- __kind: "SetGovernanceKey";
17
16
  value: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum", `0x${string}`];
18
- }, {
19
17
  __kind: "SetGovernanceKey";
18
+ }, {
20
19
  value: [{
21
20
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
22
21
  }, string];
22
+ __kind: "SetGovernanceKey";
23
23
  }>, z.ZodObject<{
24
24
  __kind: z.ZodLiteral<"SetCommunityKey">;
25
25
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
26
26
  }, "strip", z.ZodTypeAny, {
27
- __kind: "SetCommunityKey";
28
27
  value: `0x${string}`;
29
- }, {
30
28
  __kind: "SetCommunityKey";
29
+ }, {
31
30
  value: string;
31
+ __kind: "SetCommunityKey";
32
32
  }>]>;
33
33
  }, "strip", z.ZodTypeAny, {
34
34
  proposal: {
35
- __kind: "SetGovernanceKey";
36
35
  value: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum", `0x${string}`];
36
+ __kind: "SetGovernanceKey";
37
37
  } | {
38
- __kind: "SetCommunityKey";
39
38
  value: `0x${string}`;
39
+ __kind: "SetCommunityKey";
40
40
  };
41
41
  }, {
42
42
  proposal: {
43
- __kind: "SetGovernanceKey";
44
43
  value: [{
45
44
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
46
45
  }, string];
46
+ __kind: "SetGovernanceKey";
47
47
  } | {
48
- __kind: "SetCommunityKey";
49
48
  value: string;
49
+ __kind: "SetCommunityKey";
50
50
  };
51
51
  }>;
52
52
 
@@ -13,40 +13,40 @@ declare const tokenholderGovernanceProposalEnacted: z.ZodObject<{
13
13
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
14
14
  }>, z.ZodEffects<z.ZodString, `0x${string}`, string>], null>;
15
15
  }, "strip", z.ZodTypeAny, {
16
- __kind: "SetGovernanceKey";
17
16
  value: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum", `0x${string}`];
18
- }, {
19
17
  __kind: "SetGovernanceKey";
18
+ }, {
20
19
  value: [{
21
20
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
22
21
  }, string];
22
+ __kind: "SetGovernanceKey";
23
23
  }>, z.ZodObject<{
24
24
  __kind: z.ZodLiteral<"SetCommunityKey">;
25
25
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
26
26
  }, "strip", z.ZodTypeAny, {
27
- __kind: "SetCommunityKey";
28
27
  value: `0x${string}`;
29
- }, {
30
28
  __kind: "SetCommunityKey";
29
+ }, {
31
30
  value: string;
31
+ __kind: "SetCommunityKey";
32
32
  }>]>;
33
33
  }, "strip", z.ZodTypeAny, {
34
34
  proposal: {
35
- __kind: "SetGovernanceKey";
36
35
  value: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum", `0x${string}`];
36
+ __kind: "SetGovernanceKey";
37
37
  } | {
38
- __kind: "SetCommunityKey";
39
38
  value: `0x${string}`;
39
+ __kind: "SetCommunityKey";
40
40
  };
41
41
  }, {
42
42
  proposal: {
43
- __kind: "SetGovernanceKey";
44
43
  value: [{
45
44
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
46
45
  }, string];
46
+ __kind: "SetGovernanceKey";
47
47
  } | {
48
- __kind: "SetCommunityKey";
49
48
  value: string;
49
+ __kind: "SetCommunityKey";
50
50
  };
51
51
  }>;
52
52
 
@@ -13,40 +13,40 @@ declare const tokenholderGovernanceProposalPassed: z.ZodObject<{
13
13
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
14
14
  }>, z.ZodEffects<z.ZodString, `0x${string}`, string>], null>;
15
15
  }, "strip", z.ZodTypeAny, {
16
- __kind: "SetGovernanceKey";
17
16
  value: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum", `0x${string}`];
18
- }, {
19
17
  __kind: "SetGovernanceKey";
18
+ }, {
20
19
  value: [{
21
20
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
22
21
  }, string];
22
+ __kind: "SetGovernanceKey";
23
23
  }>, z.ZodObject<{
24
24
  __kind: z.ZodLiteral<"SetCommunityKey">;
25
25
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
26
26
  }, "strip", z.ZodTypeAny, {
27
- __kind: "SetCommunityKey";
28
27
  value: `0x${string}`;
29
- }, {
30
28
  __kind: "SetCommunityKey";
29
+ }, {
31
30
  value: string;
31
+ __kind: "SetCommunityKey";
32
32
  }>]>;
33
33
  }, "strip", z.ZodTypeAny, {
34
34
  proposal: {
35
- __kind: "SetGovernanceKey";
36
35
  value: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum", `0x${string}`];
36
+ __kind: "SetGovernanceKey";
37
37
  } | {
38
- __kind: "SetCommunityKey";
39
38
  value: `0x${string}`;
39
+ __kind: "SetCommunityKey";
40
40
  };
41
41
  }, {
42
42
  proposal: {
43
- __kind: "SetGovernanceKey";
44
43
  value: [{
45
44
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
46
45
  }, string];
46
+ __kind: "SetGovernanceKey";
47
47
  } | {
48
- __kind: "SetCommunityKey";
49
48
  value: string;
49
+ __kind: "SetCommunityKey";
50
50
  };
51
51
  }>;
52
52
 
@@ -13,40 +13,40 @@ declare const tokenholderGovernanceProposalPassed: z.ZodObject<{
13
13
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
14
14
  }>, z.ZodEffects<z.ZodString, `0x${string}`, string>], null>;
15
15
  }, "strip", z.ZodTypeAny, {
16
- __kind: "SetGovernanceKey";
17
16
  value: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum", `0x${string}`];
18
- }, {
19
17
  __kind: "SetGovernanceKey";
18
+ }, {
20
19
  value: [{
21
20
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
22
21
  }, string];
22
+ __kind: "SetGovernanceKey";
23
23
  }>, z.ZodObject<{
24
24
  __kind: z.ZodLiteral<"SetCommunityKey">;
25
25
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
26
26
  }, "strip", z.ZodTypeAny, {
27
- __kind: "SetCommunityKey";
28
27
  value: `0x${string}`;
29
- }, {
30
28
  __kind: "SetCommunityKey";
29
+ }, {
31
30
  value: string;
31
+ __kind: "SetCommunityKey";
32
32
  }>]>;
33
33
  }, "strip", z.ZodTypeAny, {
34
34
  proposal: {
35
- __kind: "SetGovernanceKey";
36
35
  value: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum", `0x${string}`];
36
+ __kind: "SetGovernanceKey";
37
37
  } | {
38
- __kind: "SetCommunityKey";
39
38
  value: `0x${string}`;
39
+ __kind: "SetCommunityKey";
40
40
  };
41
41
  }, {
42
42
  proposal: {
43
- __kind: "SetGovernanceKey";
44
43
  value: [{
45
44
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
46
45
  }, string];
46
+ __kind: "SetGovernanceKey";
47
47
  } | {
48
- __kind: "SetCommunityKey";
49
48
  value: string;
49
+ __kind: "SetCommunityKey";
50
50
  };
51
51
  }>;
52
52
 
@@ -13,40 +13,40 @@ declare const tokenholderGovernanceProposalRejected: z.ZodObject<{
13
13
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
14
14
  }>, z.ZodEffects<z.ZodString, `0x${string}`, string>], null>;
15
15
  }, "strip", z.ZodTypeAny, {
16
- __kind: "SetGovernanceKey";
17
16
  value: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum", `0x${string}`];
18
- }, {
19
17
  __kind: "SetGovernanceKey";
18
+ }, {
20
19
  value: [{
21
20
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
22
21
  }, string];
22
+ __kind: "SetGovernanceKey";
23
23
  }>, z.ZodObject<{
24
24
  __kind: z.ZodLiteral<"SetCommunityKey">;
25
25
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
26
26
  }, "strip", z.ZodTypeAny, {
27
- __kind: "SetCommunityKey";
28
27
  value: `0x${string}`;
29
- }, {
30
28
  __kind: "SetCommunityKey";
29
+ }, {
31
30
  value: string;
31
+ __kind: "SetCommunityKey";
32
32
  }>]>;
33
33
  }, "strip", z.ZodTypeAny, {
34
34
  proposal: {
35
- __kind: "SetGovernanceKey";
36
35
  value: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum", `0x${string}`];
36
+ __kind: "SetGovernanceKey";
37
37
  } | {
38
- __kind: "SetCommunityKey";
39
38
  value: `0x${string}`;
39
+ __kind: "SetCommunityKey";
40
40
  };
41
41
  }, {
42
42
  proposal: {
43
- __kind: "SetGovernanceKey";
44
43
  value: [{
45
44
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
46
45
  }, string];
46
+ __kind: "SetGovernanceKey";
47
47
  } | {
48
- __kind: "SetCommunityKey";
49
48
  value: string;
49
+ __kind: "SetCommunityKey";
50
50
  };
51
51
  }>;
52
52
 
@@ -13,40 +13,40 @@ declare const tokenholderGovernanceProposalRejected: z.ZodObject<{
13
13
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
14
14
  }>, z.ZodEffects<z.ZodString, `0x${string}`, string>], null>;
15
15
  }, "strip", z.ZodTypeAny, {
16
- __kind: "SetGovernanceKey";
17
16
  value: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum", `0x${string}`];
18
- }, {
19
17
  __kind: "SetGovernanceKey";
18
+ }, {
20
19
  value: [{
21
20
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
22
21
  }, string];
22
+ __kind: "SetGovernanceKey";
23
23
  }>, z.ZodObject<{
24
24
  __kind: z.ZodLiteral<"SetCommunityKey">;
25
25
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
26
26
  }, "strip", z.ZodTypeAny, {
27
- __kind: "SetCommunityKey";
28
27
  value: `0x${string}`;
29
- }, {
30
28
  __kind: "SetCommunityKey";
29
+ }, {
31
30
  value: string;
31
+ __kind: "SetCommunityKey";
32
32
  }>]>;
33
33
  }, "strip", z.ZodTypeAny, {
34
34
  proposal: {
35
- __kind: "SetGovernanceKey";
36
35
  value: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum", `0x${string}`];
36
+ __kind: "SetGovernanceKey";
37
37
  } | {
38
- __kind: "SetCommunityKey";
39
38
  value: `0x${string}`;
39
+ __kind: "SetCommunityKey";
40
40
  };
41
41
  }, {
42
42
  proposal: {
43
- __kind: "SetGovernanceKey";
44
43
  value: [{
45
44
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
46
45
  }, string];
46
+ __kind: "SetGovernanceKey";
47
47
  } | {
48
- __kind: "SetCommunityKey";
49
48
  value: string;
49
+ __kind: "SetCommunityKey";
50
50
  };
51
51
  }>;
52
52
 
@@ -13,40 +13,40 @@ declare const tokenholderGovernanceProposalSubmitted: z.ZodObject<{
13
13
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
14
14
  }>, z.ZodEffects<z.ZodString, `0x${string}`, string>], null>;
15
15
  }, "strip", z.ZodTypeAny, {
16
- __kind: "SetGovernanceKey";
17
16
  value: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum", `0x${string}`];
18
- }, {
19
17
  __kind: "SetGovernanceKey";
18
+ }, {
20
19
  value: [{
21
20
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
22
21
  }, string];
22
+ __kind: "SetGovernanceKey";
23
23
  }>, z.ZodObject<{
24
24
  __kind: z.ZodLiteral<"SetCommunityKey">;
25
25
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
26
26
  }, "strip", z.ZodTypeAny, {
27
- __kind: "SetCommunityKey";
28
27
  value: `0x${string}`;
29
- }, {
30
28
  __kind: "SetCommunityKey";
29
+ }, {
31
30
  value: string;
31
+ __kind: "SetCommunityKey";
32
32
  }>]>;
33
33
  }, "strip", z.ZodTypeAny, {
34
34
  proposal: {
35
- __kind: "SetGovernanceKey";
36
35
  value: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum", `0x${string}`];
36
+ __kind: "SetGovernanceKey";
37
37
  } | {
38
- __kind: "SetCommunityKey";
39
38
  value: `0x${string}`;
39
+ __kind: "SetCommunityKey";
40
40
  };
41
41
  }, {
42
42
  proposal: {
43
- __kind: "SetGovernanceKey";
44
43
  value: [{
45
44
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
46
45
  }, string];
46
+ __kind: "SetGovernanceKey";
47
47
  } | {
48
- __kind: "SetCommunityKey";
49
48
  value: string;
49
+ __kind: "SetCommunityKey";
50
50
  };
51
51
  }>;
52
52
 
@@ -13,40 +13,40 @@ declare const tokenholderGovernanceProposalSubmitted: z.ZodObject<{
13
13
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
14
14
  }>, z.ZodEffects<z.ZodString, `0x${string}`, string>], null>;
15
15
  }, "strip", z.ZodTypeAny, {
16
- __kind: "SetGovernanceKey";
17
16
  value: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum", `0x${string}`];
18
- }, {
19
17
  __kind: "SetGovernanceKey";
18
+ }, {
20
19
  value: [{
21
20
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
22
21
  }, string];
22
+ __kind: "SetGovernanceKey";
23
23
  }>, z.ZodObject<{
24
24
  __kind: z.ZodLiteral<"SetCommunityKey">;
25
25
  value: z.ZodEffects<z.ZodString, `0x${string}`, string>;
26
26
  }, "strip", z.ZodTypeAny, {
27
- __kind: "SetCommunityKey";
28
27
  value: `0x${string}`;
29
- }, {
30
28
  __kind: "SetCommunityKey";
29
+ }, {
31
30
  value: string;
31
+ __kind: "SetCommunityKey";
32
32
  }>]>;
33
33
  }, "strip", z.ZodTypeAny, {
34
34
  proposal: {
35
- __kind: "SetGovernanceKey";
36
35
  value: ["Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum", `0x${string}`];
36
+ __kind: "SetGovernanceKey";
37
37
  } | {
38
- __kind: "SetCommunityKey";
39
38
  value: `0x${string}`;
39
+ __kind: "SetCommunityKey";
40
40
  };
41
41
  }, {
42
42
  proposal: {
43
- __kind: "SetGovernanceKey";
44
43
  value: [{
45
44
  __kind: "Ethereum" | "Polkadot" | "Bitcoin" | "Arbitrum";
46
45
  }, string];
46
+ __kind: "SetGovernanceKey";
47
47
  } | {
48
- __kind: "SetCommunityKey";
49
48
  value: string;
49
+ __kind: "SetCommunityKey";
50
50
  };
51
51
  }>;
52
52
 
@@ -58,15 +58,21 @@ var Processor = (_class = class {
58
58
  getEventNames() {
59
59
  return void 0;
60
60
  }
61
+ getCallNames() {
62
+ return void 0;
63
+ }
64
+ getExtrinsicNames() {
65
+ return void 0;
66
+ }
61
67
  async fetchBlocks(height) {
62
68
  const start = performance.now();
63
69
  for (let i = 0; i < 5 && this.running; i += 1) {
64
70
  try {
65
- const blocks = await this.indexerStore.fetchBlocks(
66
- height,
67
- this.batchSize,
68
- this.getEventNames()
69
- );
71
+ const blocks = await this.indexerStore.fetchBlocks(height, this.batchSize, {
72
+ eventNames: this.getEventNames(),
73
+ callNames: this.getCallNames(),
74
+ extrinsicNames: this.getExtrinsicNames()
75
+ });
70
76
  this.logger.info("blocks fetched", {
71
77
  height,
72
78
  duration: performance.now() - start,
@@ -19,6 +19,8 @@ declare class Processor<P extends ProcessorStore<unknown, unknown>, I extends In
19
19
  protected postBlockHook(_store: P, _block: Block): Promise<void>;
20
20
  protected initialize(endHeight?: number): Promise<State>;
21
21
  protected getEventNames(): string[] | undefined;
22
+ protected getCallNames(): string[] | undefined;
23
+ protected getExtrinsicNames(): string[] | undefined;
22
24
  private fetchBlocks;
23
25
  protected getEventInfo(store: P, blockId: number, indexInBlock: number): Promise<EventInfo<P>>;
24
26
  protected getEventHandler(name: string, specId: string): EventHandler<P> | null;
@@ -19,6 +19,8 @@ declare class Processor<P extends ProcessorStore<unknown, unknown>, I extends In
19
19
  protected postBlockHook(_store: P, _block: Block): Promise<void>;
20
20
  protected initialize(endHeight?: number): Promise<State>;
21
21
  protected getEventNames(): string[] | undefined;
22
+ protected getCallNames(): string[] | undefined;
23
+ protected getExtrinsicNames(): string[] | undefined;
22
24
  private fetchBlocks;
23
25
  protected getEventInfo(store: P, blockId: number, indexInBlock: number): Promise<EventInfo<P>>;
24
26
  protected getEventHandler(name: string, specId: string): EventHandler<P> | null;
@@ -58,15 +58,21 @@ var Processor = class {
58
58
  getEventNames() {
59
59
  return void 0;
60
60
  }
61
+ getCallNames() {
62
+ return void 0;
63
+ }
64
+ getExtrinsicNames() {
65
+ return void 0;
66
+ }
61
67
  async fetchBlocks(height) {
62
68
  const start = performance.now();
63
69
  for (let i = 0; i < 5 && this.running; i += 1) {
64
70
  try {
65
- const blocks = await this.indexerStore.fetchBlocks(
66
- height,
67
- this.batchSize,
68
- this.getEventNames()
69
- );
71
+ const blocks = await this.indexerStore.fetchBlocks(height, this.batchSize, {
72
+ eventNames: this.getEventNames(),
73
+ callNames: this.getCallNames(),
74
+ extrinsicNames: this.getExtrinsicNames()
75
+ });
70
76
  this.logger.info("blocks fetched", {
71
77
  height,
72
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, eventNames?: string[]): 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, eventNames?: string[]): 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;