@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.
- package/dist/100/BitcoinIngressEgress/ccmBroadcastRequested.d.cts +2 -2
- package/dist/100/BitcoinIngressEgress/ccmBroadcastRequested.d.ts +2 -2
- package/dist/100/BitcoinIngressEgress/ccmEgressInvalid.d.cts +4 -4
- package/dist/100/BitcoinIngressEgress/ccmEgressInvalid.d.ts +4 -4
- package/dist/100/Environment/runtimeSafeModeUpdated.d.cts +28 -28
- package/dist/100/Environment/runtimeSafeModeUpdated.d.ts +28 -28
- package/dist/100/EthereumIngressEgress/ccmEgressInvalid.d.cts +20 -20
- package/dist/100/EthereumIngressEgress/ccmEgressInvalid.d.ts +20 -20
- package/dist/100/EthereumIngressEgress/depositFetchesScheduled.d.cts +2 -2
- package/dist/100/EthereumIngressEgress/depositFetchesScheduled.d.ts +2 -2
- package/dist/100/EthereumIngressEgress/depositIgnored.d.cts +2 -2
- package/dist/100/EthereumIngressEgress/depositIgnored.d.ts +2 -2
- package/dist/100/EthereumIngressEgress/depositReceived.d.cts +2 -2
- package/dist/100/EthereumIngressEgress/depositReceived.d.ts +2 -2
- package/dist/100/EthereumIngressEgress/depositWitnessRejected.d.cts +20 -20
- package/dist/100/EthereumIngressEgress/depositWitnessRejected.d.ts +20 -20
- package/dist/100/Funding/boundExecutorAddress.d.cts +2 -2
- package/dist/100/Funding/boundExecutorAddress.d.ts +2 -2
- package/dist/100/Funding/boundRedeemAddress.d.cts +2 -2
- package/dist/100/Funding/boundRedeemAddress.d.ts +2 -2
- package/dist/100/Funding/failedFundingAttempt.d.cts +2 -2
- package/dist/100/Funding/failedFundingAttempt.d.ts +2 -2
- package/dist/100/Funding/funded.d.cts +2 -2
- package/dist/100/Funding/funded.d.ts +2 -2
- package/dist/100/Funding/redemptionRequested.d.cts +4 -4
- package/dist/100/Funding/redemptionRequested.d.ts +4 -4
- package/dist/100/LiquidityProvider/accountCredited.d.cts +2 -2
- package/dist/100/LiquidityProvider/accountCredited.d.ts +2 -2
- package/dist/100/LiquidityProvider/accountDebited.d.cts +2 -2
- package/dist/100/LiquidityProvider/accountDebited.d.ts +2 -2
- package/dist/100/LiquidityProvider/liquidityDepositAddressReady.d.cts +4 -4
- package/dist/100/LiquidityProvider/liquidityDepositAddressReady.d.ts +4 -4
- package/dist/100/PolkadotIngressEgress/ccmEgressInvalid.d.cts +4 -4
- package/dist/100/PolkadotIngressEgress/ccmEgressInvalid.d.ts +4 -4
- package/dist/100/Swapping/batchSwapFailed.d.cts +8 -8
- package/dist/100/Swapping/batchSwapFailed.d.ts +8 -8
- package/dist/100/Swapping/ccmDepositReceived.d.cts +78 -78
- package/dist/100/Swapping/ccmDepositReceived.d.ts +78 -78
- package/dist/100/Swapping/ccmFailed.d.cts +78 -78
- package/dist/100/Swapping/ccmFailed.d.ts +78 -78
- package/dist/100/Swapping/minimumSwapAmountSet.d.cts +6 -6
- package/dist/100/Swapping/minimumSwapAmountSet.d.ts +6 -6
- package/dist/100/Swapping/swapAmountTooLow.d.cts +50 -50
- package/dist/100/Swapping/swapAmountTooLow.d.ts +50 -50
- package/dist/100/Swapping/swapDepositAddressReady.d.cts +42 -42
- package/dist/100/Swapping/swapDepositAddressReady.d.ts +42 -42
- package/dist/100/Swapping/swapEgressScheduled.d.cts +6 -6
- package/dist/100/Swapping/swapEgressScheduled.d.ts +6 -6
- package/dist/100/Swapping/swapExecuted.d.cts +12 -12
- package/dist/100/Swapping/swapExecuted.d.ts +12 -12
- package/dist/100/Swapping/swapScheduled.d.cts +130 -130
- package/dist/100/Swapping/swapScheduled.d.ts +130 -130
- package/dist/100/Swapping/withdrawalRequested.d.cts +12 -12
- package/dist/100/Swapping/withdrawalRequested.d.ts +12 -12
- package/dist/111/LiquidityPools/scheduledLimitOrderUpdateDispatchFailure.d.cts +2 -2
- package/dist/111/LiquidityPools/scheduledLimitOrderUpdateDispatchFailure.d.ts +2 -2
- package/dist/120/PolkadotIngressEgress/depositReceived.d.cts +4 -4
- package/dist/120/PolkadotIngressEgress/depositReceived.d.ts +4 -4
- package/dist/120/Swapping/ccmFailed.d.cts +78 -78
- package/dist/120/Swapping/ccmFailed.d.ts +78 -78
- package/dist/120/Swapping/swapEgressIgnored.d.cts +28 -28
- package/dist/120/Swapping/swapEgressIgnored.d.ts +28 -28
- package/dist/120/Swapping/swapEgressScheduled.d.cts +6 -6
- package/dist/120/Swapping/swapEgressScheduled.d.ts +6 -6
- package/dist/120/Swapping/swapExecuted.d.cts +12 -12
- package/dist/120/Swapping/swapExecuted.d.ts +12 -12
- package/dist/120/Swapping/withdrawalRequested.d.cts +12 -12
- package/dist/120/Swapping/withdrawalRequested.d.ts +12 -12
- package/dist/131/Environment/runtimeSafeModeUpdated.d.cts +40 -40
- package/dist/131/Environment/runtimeSafeModeUpdated.d.ts +40 -40
- package/dist/131/EthereumIngressEgress/depositFetchesScheduled.d.cts +2 -2
- package/dist/131/EthereumIngressEgress/depositFetchesScheduled.d.ts +2 -2
- package/dist/131/EthereumIngressEgress/depositIgnored.d.cts +2 -2
- package/dist/131/EthereumIngressEgress/depositIgnored.d.ts +2 -2
- package/dist/131/EthereumIngressEgress/depositReceived.d.cts +6 -6
- package/dist/131/EthereumIngressEgress/depositReceived.d.ts +6 -6
- package/dist/131/EthereumIngressEgress/depositWitnessRejected.d.cts +20 -20
- package/dist/131/EthereumIngressEgress/depositWitnessRejected.d.ts +20 -20
- package/dist/131/EthereumIngressEgress/failedToBuildAllBatchCall.d.cts +28 -28
- package/dist/131/EthereumIngressEgress/failedToBuildAllBatchCall.d.ts +28 -28
- package/dist/131/LiquidityPools/limitOrderUpdated.d.cts +10 -10
- package/dist/131/LiquidityPools/limitOrderUpdated.d.ts +10 -10
- package/dist/131/LiquidityPools/rangeOrderUpdated.d.cts +10 -10
- package/dist/131/LiquidityPools/rangeOrderUpdated.d.ts +10 -10
- package/dist/131/LiquidityProvider/accountCredited.d.cts +2 -2
- package/dist/131/LiquidityProvider/accountCredited.d.ts +2 -2
- package/dist/131/LiquidityProvider/accountDebited.d.cts +2 -2
- package/dist/131/LiquidityProvider/accountDebited.d.ts +2 -2
- package/dist/131/LiquidityProvider/liquidityDepositAddressReady.d.cts +4 -4
- package/dist/131/LiquidityProvider/liquidityDepositAddressReady.d.ts +4 -4
- package/dist/131/LiquidityProvider/liquidityDepositCredited.d.cts +2 -2
- package/dist/131/LiquidityProvider/liquidityDepositCredited.d.ts +2 -2
- package/dist/131/Swapping/batchSwapFailed.d.cts +6 -6
- package/dist/131/Swapping/batchSwapFailed.d.ts +6 -6
- package/dist/131/Swapping/ccmFailed.d.cts +106 -106
- package/dist/131/Swapping/ccmFailed.d.ts +106 -106
- package/dist/131/Swapping/maximumSwapAmountSet.d.cts +6 -6
- package/dist/131/Swapping/maximumSwapAmountSet.d.ts +6 -6
- package/dist/131/Swapping/swapAmountConfiscated.d.cts +12 -12
- package/dist/131/Swapping/swapAmountConfiscated.d.ts +12 -12
- package/dist/131/Swapping/swapDepositAddressReady.d.cts +46 -46
- package/dist/131/Swapping/swapDepositAddressReady.d.ts +46 -46
- package/dist/131/Swapping/swapEgressIgnored.d.cts +28 -28
- package/dist/131/Swapping/swapEgressIgnored.d.ts +28 -28
- package/dist/131/Swapping/swapEgressScheduled.d.cts +6 -6
- package/dist/131/Swapping/swapEgressScheduled.d.ts +6 -6
- package/dist/131/Swapping/swapExecuted.d.cts +12 -12
- package/dist/131/Swapping/swapExecuted.d.ts +12 -12
- package/dist/131/Swapping/swapScheduled.d.cts +136 -136
- package/dist/131/Swapping/swapScheduled.d.ts +136 -136
- package/dist/131/Swapping/withdrawalRequested.d.cts +18 -18
- package/dist/131/Swapping/withdrawalRequested.d.ts +18 -18
- package/dist/141/ArbitrumIngressEgress/ccmEgressInvalid.d.cts +16 -16
- package/dist/141/ArbitrumIngressEgress/ccmEgressInvalid.d.ts +16 -16
- package/dist/141/ArbitrumIngressEgress/depositBoosted.d.cts +8 -8
- package/dist/141/ArbitrumIngressEgress/depositBoosted.d.ts +8 -8
- package/dist/141/ArbitrumIngressEgress/depositFetchesScheduled.d.cts +2 -2
- package/dist/141/ArbitrumIngressEgress/depositFetchesScheduled.d.ts +2 -2
- package/dist/141/ArbitrumIngressEgress/depositFinalised.d.cts +8 -8
- package/dist/141/ArbitrumIngressEgress/depositFinalised.d.ts +8 -8
- package/dist/141/ArbitrumIngressEgress/depositIgnored.d.cts +3 -3
- package/dist/141/ArbitrumIngressEgress/depositIgnored.d.ts +3 -3
- package/dist/141/ArbitrumIngressEgress/depositWitnessRejected.d.cts +22 -22
- package/dist/141/ArbitrumIngressEgress/depositWitnessRejected.d.ts +22 -22
- package/dist/141/ArbitrumIngressEgress/failedToBuildAllBatchCall.d.cts +28 -28
- package/dist/141/ArbitrumIngressEgress/failedToBuildAllBatchCall.d.ts +28 -28
- package/dist/141/ArbitrumIngressEgress/insufficientBoostLiquidity.d.cts +3 -3
- package/dist/141/ArbitrumIngressEgress/insufficientBoostLiquidity.d.ts +3 -3
- package/dist/141/ArbitrumIngressEgress/transferFallbackRequested.d.cts +4 -4
- package/dist/141/ArbitrumIngressEgress/transferFallbackRequested.d.ts +4 -4
- package/dist/141/Environment/runtimeSafeModeUpdated.d.cts +12 -12
- package/dist/141/Environment/runtimeSafeModeUpdated.d.ts +12 -12
- package/dist/141/EthereumIngressEgress/boostFundsAdded.d.cts +2 -2
- package/dist/141/EthereumIngressEgress/boostFundsAdded.d.ts +2 -2
- package/dist/141/EthereumIngressEgress/ccmEgressInvalid.d.cts +16 -16
- package/dist/141/EthereumIngressEgress/ccmEgressInvalid.d.ts +16 -16
- package/dist/141/EthereumIngressEgress/depositBoosted.d.cts +4 -4
- package/dist/141/EthereumIngressEgress/depositBoosted.d.ts +4 -4
- package/dist/141/EthereumIngressEgress/depositFinalised.d.cts +4 -4
- package/dist/141/EthereumIngressEgress/depositFinalised.d.ts +4 -4
- package/dist/141/EthereumIngressEgress/stoppedBoosting.d.cts +2 -2
- package/dist/141/EthereumIngressEgress/stoppedBoosting.d.ts +2 -2
- package/dist/141/LiquidityPools/limitOrderUpdated.d.cts +10 -10
- package/dist/141/LiquidityPools/limitOrderUpdated.d.ts +10 -10
- package/dist/141/LiquidityPools/rangeOrderUpdated.d.cts +10 -10
- package/dist/141/LiquidityPools/rangeOrderUpdated.d.ts +10 -10
- package/dist/141/Swapping/ccmDepositReceived.d.cts +92 -92
- package/dist/141/Swapping/ccmDepositReceived.d.ts +92 -92
- package/dist/141/Swapping/ccmFailed.d.cts +128 -128
- package/dist/141/Swapping/ccmFailed.d.ts +128 -128
- package/dist/141/Swapping/swapDepositAddressReady.d.cts +32 -32
- package/dist/141/Swapping/swapDepositAddressReady.d.ts +32 -32
- package/dist/141/Swapping/swapEgressIgnored.d.cts +24 -24
- package/dist/141/Swapping/swapEgressIgnored.d.ts +24 -24
- package/dist/141/Swapping/swapExecuted.d.cts +86 -86
- package/dist/141/Swapping/swapExecuted.d.ts +86 -86
- package/dist/141/Swapping/swapScheduled.d.cts +140 -140
- package/dist/141/Swapping/swapScheduled.d.ts +140 -140
- package/dist/141/Swapping/withdrawalRequested.d.cts +16 -16
- package/dist/141/Swapping/withdrawalRequested.d.ts +16 -16
- package/dist/141/TokenholderGovernance/proposalEnacted.d.cts +8 -8
- package/dist/141/TokenholderGovernance/proposalEnacted.d.ts +8 -8
- package/dist/141/TokenholderGovernance/proposalPassed.d.cts +8 -8
- package/dist/141/TokenholderGovernance/proposalPassed.d.ts +8 -8
- package/dist/141/TokenholderGovernance/proposalRejected.d.cts +8 -8
- package/dist/141/TokenholderGovernance/proposalRejected.d.ts +8 -8
- package/dist/141/TokenholderGovernance/proposalSubmitted.d.cts +8 -8
- package/dist/141/TokenholderGovernance/proposalSubmitted.d.ts +8 -8
- package/dist/Processor.cjs +11 -5
- package/dist/Processor.d.cts +2 -0
- package/dist/Processor.d.ts +2 -0
- package/dist/Processor.mjs +11 -5
- package/dist/types.d.cts +5 -1
- package/dist/types.d.ts +5 -1
- 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
|
|
package/dist/Processor.cjs
CHANGED
|
@@ -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
|
-
|
|
67
|
-
this.
|
|
68
|
-
this.
|
|
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/Processor.d.cts
CHANGED
|
@@ -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;
|
package/dist/Processor.d.ts
CHANGED
|
@@ -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;
|
package/dist/Processor.mjs
CHANGED
|
@@ -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
|
-
|
|
67
|
-
this.
|
|
68
|
-
this.
|
|
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,
|
|
77
|
+
fetchBlocks(height: number, batchSize: number, filter?: {
|
|
78
|
+
eventNames?: string[];
|
|
79
|
+
extrinsicNames?: string[];
|
|
80
|
+
callNames?: string[];
|
|
81
|
+
}): Promise<Block[]>;
|
|
78
82
|
}
|
|
79
83
|
interface Logger {
|
|
80
84
|
info(message: string, data?: Record<string, unknown>): void;
|
package/dist/types.d.ts
CHANGED
|
@@ -74,7 +74,11 @@ interface ProcessorStore<Ev, Ex> extends Store {
|
|
|
74
74
|
getCurrentState(processorName: string): Promise<State>;
|
|
75
75
|
}
|
|
76
76
|
interface IndexerStore {
|
|
77
|
-
fetchBlocks(height: number, batchSize: number,
|
|
77
|
+
fetchBlocks(height: number, batchSize: number, filter?: {
|
|
78
|
+
eventNames?: string[];
|
|
79
|
+
extrinsicNames?: string[];
|
|
80
|
+
callNames?: string[];
|
|
81
|
+
}): Promise<Block[]>;
|
|
78
82
|
}
|
|
79
83
|
interface Logger {
|
|
80
84
|
info(message: string, data?: Record<string, unknown>): void;
|