Skip to content

Commit

Permalink
Extract MultiNode to chainlink-framework (#15791)
Browse files Browse the repository at this point in the history
* Extract MultiNode

* tidy

* tidy

* Fix generate

* Add mock Subscription

* lint

* Fix sendonly allocation

* lint

* Add QueryTimeout to client

* Use multinode

* Update rpc_client_test.go
  • Loading branch information
DylanTinianov authored Jan 8, 2025
1 parent 0747d30 commit 2450fff
Show file tree
Hide file tree
Showing 78 changed files with 399 additions and 10,136 deletions.
5 changes: 5 additions & 0 deletions .changeset/cold-pillows-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

Extract EVM MultiNode to chainlink-framework. #internal
20 changes: 4 additions & 16 deletions .mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,6 @@ mockname: "{{ .InterfaceName }}"
outpkg: mocks
filename: "{{ .InterfaceName | snakecase }}.go"
packages:
github.com/smartcontractkit/chainlink/v2/common/client:
config:
dir: "{{ .InterfaceDir }}"
filename: "mock_{{ .InterfaceName | snakecase }}_test.go"
inpackage: true
mockname: "mock{{ .InterfaceName | camelcase }}"
interfaces:
Node:
NodeSelector:
sendOnlyClient:
SendOnlyNode:
RPCClient:
Head:
PoolChainInfoProvider:
github.com/smartcontractkit/chainlink/v2/common/headtracker:
interfaces:
HeadTrackable:
Expand All @@ -35,9 +21,11 @@ packages:
TxStrategy:
TxAttemptBuilder:
TxStore:
github.com/smartcontractkit/chainlink/v2/common/types:
github.com/smartcontractkit/chainlink-framework/multinode:
config:
dir: common/types/mocks
outpkg: mocks
interfaces:
Head:
Subscription:
github.com/smartcontractkit/chainlink/v2/core/bridges:
interfaces:
Expand Down
17 changes: 0 additions & 17 deletions common/client/ctx.go

This file was deleted.

16 changes: 0 additions & 16 deletions common/client/ctx_test.go

This file was deleted.

18 changes: 0 additions & 18 deletions common/client/mock_hashable_test.go

This file was deleted.

173 changes: 0 additions & 173 deletions common/client/mock_head_test.go

This file was deleted.

127 changes: 0 additions & 127 deletions common/client/mock_node_selector_test.go

This file was deleted.

Loading

0 comments on commit 2450fff

Please sign in to comment.