Skip to content

PLEX-3129 EVM LP allow to fast forward to a block#2237

Open
dhaidashenko wants to merge 1 commit into
mainfrom
feature/PLEX-3129-lp-skip-block
Open

PLEX-3129 EVM LP allow to fast forward to a block#2237
dhaidashenko wants to merge 1 commit into
mainfrom
feature/PLEX-3129-lp-skip-block

Conversation

@dhaidashenko

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 10, 2026 15:29
@dhaidashenko dhaidashenko requested review from a team as code owners July 10, 2026 15:29
@github-actions

Copy link
Copy Markdown
Contributor

👋 dhaidashenko, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@github-actions

Copy link
Copy Markdown
Contributor

⚠️ API Diff Results - github.com/smartcontractkit/chainlink-common

⚠️ Breaking Changes (2)

pkg/chains/evm.EVMClient (1)
  • LPSkipToBlock — ➕ Added
pkg/types.EVMService (1)
  • LPSkipToBlock — ➕ Added

✅ Compatible Changes (8)

pkg/chains/evm (2)
  • EVM_LPSkipToBlock_FullMethodName — ➕ Added

  • LPSkipToBlockRequest — ➕ Added

pkg/chains/evm.EVMServer (1)
  • LPSkipToBlock — ➕ Added
pkg/chains/evm.UnimplementedEVMServer (1)
  • LPSkipToBlock — ➕ Added
pkg/types.(*UnimplementedEVMService) (1)
  • LPSkipToBlock — ➕ Added
pkg/types/mocks (1)
  • EVMService_LPSkipToBlock_Call — ➕ Added
pkg/types/mocks.(*EVMService) (1)
  • LPSkipToBlock — ➕ Added
pkg/types/mocks.(*EVMService_Expecter) (1)
  • LPSkipToBlock — ➕ Added

📄 View full apidiff report

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an EVM Loop/gRPC API for advancing the Log Poller’s internal position to a specified block (“skip/fast-forward”), wiring it through the public types.EVMService interface, relayer gRPC server/client shims, and generated protobuf code.

Changes:

  • Extended types.EVMService with LPSkipToBlock(ctx, blockNumber) and added an Unimplemented stub.
  • Added LPSkipToBlock unary RPC + LPSkipToBlockRequest to the EVM protobuf service and regenerated evm.pb.go / evm_grpc.pb.go.
  • Updated Loop relayer and relayerset EVM gRPC client/server plumbing and updated the EVMService mock.

Reviewed changes

Copilot reviewed 4 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pkg/types/relayer.go Adds LPSkipToBlock to the public EVM service interface + unimplemented stub.
pkg/types/mocks/evm_service.go Updates the autogenerated mock to include LPSkipToBlock.
pkg/loop/internal/relayerset/evm.go Wires LPSkipToBlock through the relayerset EVM client/server adapters.
pkg/loop/internal/relayer/evm.go Adds EVMClient.LPSkipToBlock and the gRPC server implementation method.
pkg/chains/evm/evm.proto Adds the LPSkipToBlock RPC and request message to the EVM service definition.
pkg/chains/evm/evm.pb.go Regenerated protobuf message/service bindings to include LPSkipToBlockRequest.
pkg/chains/evm/evm_grpc.pb.go Regenerated gRPC client/server bindings to include LPSkipToBlock.
Files not reviewed (3)
  • pkg/chains/evm/evm.pb.go: Generated file
  • pkg/chains/evm/evm_grpc.pb.go: Generated file
  • pkg/types/mocks/evm_service.go: Generated file

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pkg/types/relayer.go
Comment on lines +306 to +309
func (e *EVMClient) LPSkipToBlock(ctx context.Context, blockNumber int64) error {
_, err := e.grpcClient.LPSkipToBlock(ctx, &evmpb.LPSkipToBlockRequest{BlockNumber: blockNumber})
return net.WrapRPCErr(err)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants