[DX-2592] Add ReplayLogPollerFromBlock function to Chainlink Client #2358
+46
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Below is a summarization created by an LLM (gpt-4-0125-preview). Be mindful of hallucinations and verify accuracy.
Why
The changes introduce a new functionality to replay log poller from a specified block in the Chainlink client. This is crucial for ensuring that events are not missed and for facilitating the reprocessing of events from a specific block height. Additionally, the inclusion of a new model
ReplayResponsealigns with the need to properly structure the response from the replay request, enhancing the readability and manageability of the codebase.What
ReplayLogPollerFromBlockfunction.strconvpackage for string conversion.ReplayLogPollerFromBlockfunction to replay log poller from a specified block for an array of Chainlink clients.(c *ChainlinkClient) ReplayLogPollerFromBlockmethod to make an API request to replay logs from a specified block.math/bigpackage for handling big integers.ReplayResponse,ReplayResponseData, andReplayResponseAttributesstructs to model the response from replaying logs, which includes fields for message and EVM chain ID.