Skip to content

Commit

Permalink
Added concrete interface of methods in evm client
Browse files Browse the repository at this point in the history
  • Loading branch information
yongkangc committed Jun 20, 2023
1 parent 9cbd5b7 commit 810b122
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/chains/evm/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ const queryTimeout = 10 * time.Second
// Client is the interface used to interact with an ethereum node.
type Client interface {
commontypes.Client[*big.Int, evmtypes.Nonce, common.Address, types.Block, common.Hash, types.Transaction, common.Hash, types.Receipt, types.Log, ethereum.FilterQuery]
commontypes.Accounts[common.Address, evmtypes.Nonce]
commontypes.Transactions[types.Transaction, common.Hash, types.Receipt]
commontypes.Blocks[types.Block, common.Hash]
commontypes.Events[types.Log, ethereum.FilterQuery]

Dial(ctx context.Context) error
Close()
Expand Down

0 comments on commit 810b122

Please sign in to comment.