Skip to content

Commit bec63d0

Browse files
authored
[CRE-403] Move forwarders and txm from chainlink repo into chainlink-evm. (#47)
1 parent 16bf64f commit bec63d0

31 files changed

Lines changed: 5229 additions & 2 deletions

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
go-version-file: go.mod
2727

2828
- name: Run golangci-lint
29+
if: ${{ always() && !contains(join(github.event.pull_request.labels.*.name, ' '), 'allow-lint-issues') }}
2930
uses: golangci/golangci-lint-action@38e1018663fa5173f3968ea0777460d3de38f256 # v5.3.0
3031
with:
3132
args: --config=${{ github.workspace }}/.golangci.yml

go.mod

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ require (
2424
github.com/smartcontractkit/chainlink-framework/chains v0.0.0-20250421203809-e0f5602c126c
2525
github.com/smartcontractkit/chainlink-framework/metrics v0.0.0-20250421203809-e0f5602c126c
2626
github.com/smartcontractkit/chainlink-framework/multinode v0.0.0-20250402142713-6529d36f91f3
27+
github.com/smartcontractkit/chainlink-protos/svr v1.1.0
28+
github.com/smartcontractkit/libocr v0.0.0-20250328171017-609ec10a5510
2729
github.com/stretchr/testify v1.10.0
2830
github.com/tidwall/gjson v1.18.0
2931
github.com/ugorji/go/codec v1.2.12
@@ -145,7 +147,6 @@ require (
145147
github.com/santhosh-tekuri/jsonschema/v5 v5.2.0 // indirect
146148
github.com/scylladb/go-reflectx v1.0.1 // indirect
147149
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
148-
github.com/smartcontractkit/libocr v0.0.0-20250328171017-609ec10a5510 // indirect
149150
github.com/stephenlacy/go-ethereum-hdwallet v0.0.0-20230913225845-a4fa94429863 // indirect
150151
github.com/stretchr/objx v0.5.2 // indirect
151152
github.com/supranational/blst v0.3.14 // indirect

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,6 +622,8 @@ github.com/smartcontractkit/chainlink-framework/metrics v0.0.0-20250421203809-e0
622622
github.com/smartcontractkit/chainlink-framework/metrics v0.0.0-20250421203809-e0f5602c126c/go.mod h1:SLj0NhVwj+hM6XKB/D/gu77pEUZDcfFUYf7PyMQFxns=
623623
github.com/smartcontractkit/chainlink-framework/multinode v0.0.0-20250402142713-6529d36f91f3 h1:8+2KFkPYdCK9lHMK5D/+adw02iIjEV+5Uw4s7nMNsRI=
624624
github.com/smartcontractkit/chainlink-framework/multinode v0.0.0-20250402142713-6529d36f91f3/go.mod h1:UsezB/51EAJ9FEBGn6ad2YtssgzWEIEpp3HyRM6a6iM=
625+
github.com/smartcontractkit/chainlink-protos/svr v1.1.0 h1:79Z9N9dMbMVRGaLoDPAQ+vOwbM+Hnx8tIN2xCPG8H4o=
626+
github.com/smartcontractkit/chainlink-protos/svr v1.1.0/go.mod h1:TcOliTQU6r59DwG4lo3U+mFM9WWyBHGuFkkxQpvSujo=
625627
github.com/smartcontractkit/libocr v0.0.0-20250328171017-609ec10a5510 h1:gm8Jli0sdkrZYnrWBngAkPSDzFDkdNCy1/Dj86kVtYk=
626628
github.com/smartcontractkit/libocr v0.0.0-20250328171017-609ec10a5510/go.mod h1:Mb7+/LC4edz7HyHxX4QkE42pSuov4AV68+AxBXAap0o=
627629
github.com/smarty/assertions v1.15.0/go.mod h1:yABtdzeQs6l1brC900WlRNwj6ZR55d7B+E8C6HtKdec=

pkg/.mockery.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,4 +46,14 @@ packages:
4646
dir: client/clienttest
4747
outpkg: clienttest
4848
interfaces:
49-
Subscription:
49+
Subscription:
50+
github.com/smartcontractkit/chainlink-evm/pkg/txm:
51+
config:
52+
dir: txm
53+
outpkg: txm
54+
mockname: "mock{{ .InterfaceName }}"
55+
filename: "mock_{{ .InterfaceName | snakecase }}_test.go"
56+
interfaces:
57+
Client:
58+
TxStore:
59+
AttemptBuilder:

pkg/forwarders/forwarder.go

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package forwarders
2+
3+
import (
4+
"time"
5+
6+
"github.com/ethereum/go-ethereum/common"
7+
8+
"github.com/smartcontractkit/chainlink-evm/pkg/utils/big"
9+
)
10+
11+
// Forwarder is the struct for Forwarder Addresses
12+
type Forwarder struct {
13+
ID int64
14+
Address common.Address
15+
EVMChainID big.Big
16+
CreatedAt time.Time
17+
UpdatedAt time.Time
18+
}

0 commit comments

Comments
 (0)