@chainflip/processor 1.4.3 → 1.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +12 -12
- package/dist/100/Environment/runtimeSafeModeUpdated.d.ts +12 -12
- 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 +2 -2
- package/dist/100/Funding/redemptionRequested.d.ts +2 -2
- package/dist/100/LiquidityPools/limitOrderUpdated.d.cts +8 -8
- package/dist/100/LiquidityPools/limitOrderUpdated.d.ts +8 -8
- package/dist/100/LiquidityPools/rangeOrderUpdated.d.cts +8 -8
- package/dist/100/LiquidityPools/rangeOrderUpdated.d.ts +8 -8
- 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 +16 -16
- package/dist/100/PolkadotIngressEgress/ccmEgressInvalid.d.ts +16 -16
- package/dist/100/PolkadotIngressEgress/depositFetchesScheduled.d.cts +2 -2
- package/dist/100/PolkadotIngressEgress/depositFetchesScheduled.d.ts +2 -2
- package/dist/100/PolkadotIngressEgress/depositIgnored.d.cts +2 -2
- package/dist/100/PolkadotIngressEgress/depositIgnored.d.ts +2 -2
- package/dist/100/PolkadotIngressEgress/depositReceived.d.cts +2 -2
- package/dist/100/PolkadotIngressEgress/depositReceived.d.ts +2 -2
- package/dist/100/PolkadotIngressEgress/depositWitnessRejected.d.cts +20 -20
- package/dist/100/PolkadotIngressEgress/depositWitnessRejected.d.ts +20 -20
- package/dist/100/Swapping/batchSwapFailed.d.cts +2 -2
- package/dist/100/Swapping/batchSwapFailed.d.ts +2 -2
- 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/swapAmountTooLow.d.cts +40 -40
- package/dist/100/Swapping/swapAmountTooLow.d.ts +40 -40
- package/dist/100/Swapping/swapDepositAddressReady.d.cts +24 -24
- package/dist/100/Swapping/swapDepositAddressReady.d.ts +24 -24
- package/dist/100/Swapping/swapEgressScheduled.d.cts +4 -4
- package/dist/100/Swapping/swapEgressScheduled.d.ts +4 -4
- package/dist/100/Swapping/swapScheduled.d.cts +118 -118
- package/dist/100/Swapping/swapScheduled.d.ts +118 -118
- package/dist/100/Swapping/withdrawalRequested.d.cts +16 -16
- package/dist/100/Swapping/withdrawalRequested.d.ts +16 -16
- package/dist/100/Witnesser/witnessExecutionFailed.d.cts +2 -2
- package/dist/100/Witnesser/witnessExecutionFailed.d.ts +2 -2
- package/dist/111/LiquidityPools/scheduledLimitOrderUpdateDispatchFailure.d.cts +2 -2
- package/dist/111/LiquidityPools/scheduledLimitOrderUpdateDispatchFailure.d.ts +2 -2
- package/dist/131/LiquidityPools/limitOrderUpdated.d.cts +2 -2
- package/dist/131/LiquidityPools/limitOrderUpdated.d.ts +2 -2
- package/dist/131/LiquidityPools/rangeOrderUpdated.d.cts +2 -2
- package/dist/131/LiquidityPools/rangeOrderUpdated.d.ts +2 -2
- 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/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 +18 -18
- package/dist/131/Swapping/swapDepositAddressReady.d.ts +18 -18
- package/dist/131/Swapping/swapEgressIgnored.d.cts +12 -12
- package/dist/131/Swapping/swapEgressIgnored.d.ts +12 -12
- package/dist/131/Swapping/swapEgressScheduled.d.cts +8 -8
- package/dist/131/Swapping/swapEgressScheduled.d.ts +8 -8
- 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 +14 -14
- package/dist/131/Swapping/swapScheduled.d.ts +14 -14
- package/dist/131/Swapping/withdrawalRequested.d.cts +6 -6
- package/dist/131/Swapping/withdrawalRequested.d.ts +6 -6
- 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/EthereumIngressEgress/boostFundsAdded.d.cts +2 -2
- package/dist/141/EthereumIngressEgress/boostFundsAdded.d.ts +2 -2
- 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/insufficientBoostLiquidity.d.cts +3 -3
- package/dist/141/EthereumIngressEgress/insufficientBoostLiquidity.d.ts +3 -3
- package/dist/141/EvmThresholdSigner/failureReportProcessed.d.cts +2 -2
- package/dist/141/EvmThresholdSigner/failureReportProcessed.d.ts +2 -2
- package/dist/141/EvmThresholdSigner/retryRequested.d.cts +2 -2
- package/dist/141/EvmThresholdSigner/retryRequested.d.ts +2 -2
- package/dist/141/EvmThresholdSigner/thresholdDispatchComplete.d.cts +2 -2
- package/dist/141/EvmThresholdSigner/thresholdDispatchComplete.d.ts +2 -2
- package/dist/141/EvmThresholdSigner/thresholdSignatureFailed.d.cts +2 -2
- package/dist/141/EvmThresholdSigner/thresholdSignatureFailed.d.ts +2 -2
- package/dist/141/EvmThresholdSigner/thresholdSignatureRequest.d.cts +2 -2
- package/dist/141/EvmThresholdSigner/thresholdSignatureRequest.d.ts +2 -2
- package/dist/141/EvmThresholdSigner/thresholdSignatureSuccess.d.cts +2 -2
- package/dist/141/EvmThresholdSigner/thresholdSignatureSuccess.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/PolkadotIngressEgress/boostFundsAdded.d.cts +2 -2
- package/dist/141/PolkadotIngressEgress/boostFundsAdded.d.ts +2 -2
- package/dist/141/PolkadotIngressEgress/depositBoosted.d.cts +4 -4
- package/dist/141/PolkadotIngressEgress/depositBoosted.d.ts +4 -4
- package/dist/141/PolkadotIngressEgress/depositFinalised.d.cts +4 -4
- package/dist/141/PolkadotIngressEgress/depositFinalised.d.ts +4 -4
- package/dist/141/PolkadotIngressEgress/insufficientBoostLiquidity.d.cts +3 -3
- package/dist/141/PolkadotIngressEgress/insufficientBoostLiquidity.d.ts +3 -3
- package/dist/141/Swapping/batchSwapFailed.d.cts +8 -8
- package/dist/141/Swapping/batchSwapFailed.d.ts +8 -8
- package/dist/141/Swapping/ccmDepositReceived.d.cts +88 -88
- package/dist/141/Swapping/ccmDepositReceived.d.ts +88 -88
- package/dist/141/Swapping/ccmFailed.d.cts +124 -124
- package/dist/141/Swapping/ccmFailed.d.ts +124 -124
- package/dist/141/Swapping/maximumSwapAmountSet.d.cts +6 -6
- package/dist/141/Swapping/maximumSwapAmountSet.d.ts +6 -6
- package/dist/141/Swapping/swapAmountConfiscated.d.cts +12 -12
- package/dist/141/Swapping/swapAmountConfiscated.d.ts +12 -12
- package/dist/141/Swapping/swapDepositAddressReady.d.cts +50 -50
- package/dist/141/Swapping/swapDepositAddressReady.d.ts +50 -50
- package/dist/141/Swapping/swapEgressIgnored.d.cts +24 -24
- package/dist/141/Swapping/swapEgressIgnored.d.ts +24 -24
- package/dist/141/Swapping/swapEgressScheduled.d.cts +8 -8
- package/dist/141/Swapping/swapEgressScheduled.d.ts +8 -8
- package/dist/141/Swapping/swapExecuted.d.cts +98 -98
- package/dist/141/Swapping/swapExecuted.d.ts +98 -98
- package/dist/141/Swapping/swapScheduled.d.cts +150 -150
- package/dist/141/Swapping/swapScheduled.d.ts +150 -150
- package/dist/141/Swapping/withdrawalRequested.d.cts +22 -22
- package/dist/141/Swapping/withdrawalRequested.d.ts +22 -22
- 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 +8 -1
- package/dist/Processor.d.cts +1 -0
- package/dist/Processor.d.ts +1 -0
- package/dist/Processor.mjs +8 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/Processor.mjs
CHANGED
|
@@ -55,11 +55,18 @@ var Processor = class {
|
|
|
55
55
|
initialize(endHeight) {
|
|
56
56
|
return this.processorStore.initializeState(this.name, this.startHeight, endHeight);
|
|
57
57
|
}
|
|
58
|
+
getEventNames() {
|
|
59
|
+
return void 0;
|
|
60
|
+
}
|
|
58
61
|
async fetchBlocks(height) {
|
|
59
62
|
const start = performance.now();
|
|
60
63
|
for (let i = 0; i < 5 && this.running; i += 1) {
|
|
61
64
|
try {
|
|
62
|
-
const blocks = await this.indexerStore.fetchBlocks(
|
|
65
|
+
const blocks = await this.indexerStore.fetchBlocks(
|
|
66
|
+
height,
|
|
67
|
+
this.batchSize,
|
|
68
|
+
this.getEventNames()
|
|
69
|
+
);
|
|
63
70
|
this.logger.info("blocks fetched", {
|
|
64
71
|
height,
|
|
65
72
|
duration: performance.now() - start,
|
package/dist/types.d.cts
CHANGED
|
@@ -74,7 +74,7 @@ interface ProcessorStore<Ev, Ex> extends Store {
|
|
|
74
74
|
getCurrentState(processorName: string): Promise<State>;
|
|
75
75
|
}
|
|
76
76
|
interface IndexerStore {
|
|
77
|
-
fetchBlocks(height: number, batchSize: number): Promise<Block[]>;
|
|
77
|
+
fetchBlocks(height: number, batchSize: number, eventNames?: string[]): Promise<Block[]>;
|
|
78
78
|
}
|
|
79
79
|
interface Logger {
|
|
80
80
|
info(message: string, data?: Record<string, unknown>): void;
|
package/dist/types.d.ts
CHANGED
|
@@ -74,7 +74,7 @@ interface ProcessorStore<Ev, Ex> extends Store {
|
|
|
74
74
|
getCurrentState(processorName: string): Promise<State>;
|
|
75
75
|
}
|
|
76
76
|
interface IndexerStore {
|
|
77
|
-
fetchBlocks(height: number, batchSize: number): Promise<Block[]>;
|
|
77
|
+
fetchBlocks(height: number, batchSize: number, eventNames?: string[]): Promise<Block[]>;
|
|
78
78
|
}
|
|
79
79
|
interface Logger {
|
|
80
80
|
info(message: string, data?: Record<string, unknown>): void;
|