Skip to content

Conversation

@Unheilbar
Copy link
Contributor

@Unheilbar Unheilbar commented Apr 29, 2025

Ticket

  • EVMService expanded with evm-specific functionalities
  1. core
  2. chainlink-evm
  3. chainlink-framework

QueryTrackedLogs is coming in a separate PR
starknet ref: c7b7169940f7d9d355b4cb9fc4326e3ee7be2d21
core ref: fb5a9eb5264efc2f9f1ec99c397629c0d5f2f813

Copy link
Contributor

@ilija42 ilija42 left a comment

Choose a reason for hiding this comment

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

The exposed types look good, left some comments, some stuff needs to be in a separate PR and needs some polishing

Replay(ctx context.Context, fromBlock string, args map[string]any) error
}

type EVMClient interface {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
type EVMClient interface {
// GethClient is the subset of go-ethereum client methods implemented by EVMService.
type GethClient interface {

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Regular GethClient doesn't guarantee support of any evm-family chain, should I clarify that these methods are any evm-family chain compatible then?

Copy link
Contributor

Choose a reason for hiding this comment

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

I'm not sure that I follow, but I suppose it could be declared in package evm so then evm.GethClient from here? Would that help?

Copy link
Contributor Author

@Unheilbar Unheilbar May 9, 2025

Choose a reason for hiding this comment

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

It's just the naming GethClient is a little confusing, - yes the signatures are matching to the signatures of go-ethereum ethclient, but standart ethclient is not compatible with other than ethereum chains. evm client component guarantees compatibilty for the whole evm-family, but how the caller can be sure that GethClient will work with other than ethereum evm chains if we dont explicitly declare it?

@Unheilbar Unheilbar merged commit 2b5a517 into main May 9, 2025
20 of 21 checks passed
@Unheilbar Unheilbar deleted the BCFR-1330 branch May 9, 2025 15:53
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.

4 participants