Skip to content

Commit 56cd77f

Browse files
authored
Remove separate relayer Go module (#61)
* Remove separate relayer Go module Fix all golangci-lint errors * Update go modules * Fix Dockerfile * Upgrade Go version
1 parent 29137c7 commit 56cd77f

File tree

39 files changed

+144
-746
lines changed

39 files changed

+144
-746
lines changed

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
golang 1.23.4
1+
golang 1.24.0

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
ARG BASE_IMAGE=chainlink:aptos
22

33
# Build image: Plugins
4-
FROM golang:1.23-bullseye as buildplugins
4+
FROM golang:1.24-bullseye as buildplugins
55
RUN go version
66

77
WORKDIR /build
8-
COPY relayer .
8+
COPY . .
99
RUN go install ./cmd/chainlink-aptos
1010

1111
# Use the BASE_IMAGE argument in the FROM instruction

contracts/contracts_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
)
99

1010
func TestEmbeddedContracts(t *testing.T) {
11+
t.Parallel()
1112
// This test checks that all embedded contracts do actually exist by iterating over them and checking that at Move.toml file exists
1213
for p, s := range Contracts {
1314
path := filepath.Join(s, "Move.toml")

go.mod

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,28 @@ module github.com/smartcontractkit/chainlink-aptos
22

33
go 1.24.0
44

5-
replace (
6-
github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
7-
github.com/smartcontractkit/chainlink-aptos/relayer => ./relayer
8-
)
5+
replace github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
96

107
require (
11-
github.com/aptos-labs/aptos-go-sdk v1.5.1-0.20250322153135-0c35be181ce8
8+
github.com/aptos-labs/aptos-go-sdk v1.6.2
129
github.com/aptos-labs/tree-sitter-move-on-aptos v0.0.0-20250321090037-c820eb4716e1
10+
github.com/ethereum/go-ethereum v1.15.6
11+
github.com/go-viper/mapstructure/v2 v2.2.1
12+
github.com/google/uuid v1.6.0
13+
github.com/hashicorp/go-plugin v1.6.3
14+
github.com/jpillora/backoff v1.0.0
15+
github.com/pelletier/go-toml/v2 v2.2.3
1316
github.com/smacker/go-tree-sitter v0.0.0-20240827094217-dd81d9e9be82
14-
github.com/smartcontractkit/chainlink-aptos/relayer v0.0.0-20250320162700-de7f1c0fd741
17+
github.com/smartcontractkit/chainlink-common v0.5.1-0.20250314131019-e227d4e2dc2f
1518
github.com/stretchr/testify v1.10.0
1619
github.com/valyala/fastjson v1.6.4
20+
go.opentelemetry.io/otel v1.35.0
21+
go.opentelemetry.io/otel/metric v1.35.0
22+
go.opentelemetry.io/otel/trace v1.35.0
23+
golang.org/x/crypto v0.36.0
24+
golang.org/x/exp v0.0.0-20250305212735-054e65f0b394
25+
golang.org/x/sync v0.12.0
26+
google.golang.org/protobuf v1.36.6
1727
)
1828

1929
require (
@@ -28,7 +38,6 @@ require (
2838
github.com/coder/websocket v1.8.12 // indirect
2939
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
3040
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.3.0 // indirect
31-
github.com/ethereum/go-ethereum v1.15.5 // indirect
3241
github.com/fatih/color v1.18.0 // indirect
3342
github.com/fxamacker/cbor/v2 v2.7.0 // indirect
3443
github.com/gabriel-vasile/mimetype v1.4.8 // indirect
@@ -38,18 +47,15 @@ require (
3847
github.com/go-playground/locales v0.14.1 // indirect
3948
github.com/go-playground/universal-translator v0.18.1 // indirect
4049
github.com/go-playground/validator/v10 v10.25.0 // indirect
41-
github.com/go-viper/mapstructure/v2 v2.2.1 // indirect
4250
github.com/goccy/go-json v0.10.5 // indirect
4351
github.com/gofrs/uuid v4.4.0+incompatible // indirect
4452
github.com/golang/protobuf v1.5.4 // indirect
45-
github.com/google/go-cmp v0.6.0 // indirect
46-
github.com/google/uuid v1.6.0 // indirect
53+
github.com/google/go-cmp v0.7.0 // indirect
4754
github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.1 // indirect
4855
github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.3.0 // indirect
4956
github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.1 // indirect
5057
github.com/hashicorp/consul/sdk v0.16.1 // indirect
5158
github.com/hashicorp/go-hclog v1.6.3 // indirect
52-
github.com/hashicorp/go-plugin v1.6.3 // indirect
5359
github.com/hashicorp/golang-lru v1.0.2 // indirect
5460
github.com/hashicorp/yamux v0.1.2 // indirect
5561
github.com/hasura/go-graphql-client v0.13.1 // indirect
@@ -65,7 +71,6 @@ require (
6571
github.com/jackc/pgtype v1.14.4 // indirect
6672
github.com/jackc/pgx/v4 v4.18.3 // indirect
6773
github.com/jmoiron/sqlx v1.4.0 // indirect
68-
github.com/jpillora/backoff v1.0.0 // indirect
6974
github.com/klauspost/compress v1.18.0 // indirect
7075
github.com/klauspost/cpuid/v2 v2.2.9 // indirect
7176
github.com/leodido/go-urn v1.4.0 // indirect
@@ -78,7 +83,6 @@ require (
7883
github.com/mr-tron/base58 v1.2.0 // indirect
7984
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
8085
github.com/oklog/run v1.1.0 // indirect
81-
github.com/pelletier/go-toml/v2 v2.2.3 // indirect
8286
github.com/pierrec/lz4/v4 v4.1.22 // indirect
8387
github.com/pkg/errors v0.9.1 // indirect
8488
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
@@ -89,15 +93,13 @@ require (
8993
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 // indirect
9094
github.com/scylladb/go-reflectx v1.0.1 // indirect
9195
github.com/shopspring/decimal v1.4.0 // indirect
92-
github.com/smartcontractkit/chainlink-common v0.5.1-0.20250314131019-e227d4e2dc2f // indirect
9396
github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7 // indirect
9497
github.com/smartcontractkit/libocr v0.0.0-20250220133800-f3b940c4f298 // indirect
9598
github.com/spf13/pflag v1.0.6 // indirect
9699
github.com/wk8/go-ordered-map/v2 v2.1.8 // indirect
97100
github.com/x448/float16 v0.8.4 // indirect
98101
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
99102
go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.59.0 // indirect
100-
go.opentelemetry.io/otel v1.34.0 // indirect
101103
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploggrpc v0.10.0 // indirect
102104
go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp v0.10.0 // indirect
103105
go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetricgrpc v1.34.0 // indirect
@@ -109,22 +111,17 @@ require (
109111
go.opentelemetry.io/otel/exporters/stdout/stdoutmetric v1.34.0 // indirect
110112
go.opentelemetry.io/otel/exporters/stdout/stdouttrace v1.34.0 // indirect
111113
go.opentelemetry.io/otel/log v0.10.0 // indirect
112-
go.opentelemetry.io/otel/metric v1.34.0 // indirect
113114
go.opentelemetry.io/otel/sdk v1.34.0 // indirect
114115
go.opentelemetry.io/otel/sdk/log v0.10.0 // indirect
115116
go.opentelemetry.io/otel/sdk/metric v1.34.0 // indirect
116-
go.opentelemetry.io/otel/trace v1.34.0 // indirect
117117
go.opentelemetry.io/proto/otlp v1.5.0 // indirect
118118
go.uber.org/multierr v1.11.0 // indirect
119119
go.uber.org/zap v1.27.0 // indirect
120-
golang.org/x/crypto v0.33.0 // indirect
121-
golang.org/x/exp v0.0.0-20250218142911-aa4b98e5adaa // indirect
122-
golang.org/x/net v0.35.0 // indirect
123-
golang.org/x/sys v0.30.0 // indirect
124-
golang.org/x/text v0.22.0 // indirect
120+
golang.org/x/net v0.36.0 // indirect
121+
golang.org/x/sys v0.31.0 // indirect
122+
golang.org/x/text v0.23.0 // indirect
125123
google.golang.org/genproto/googleapis/api v0.0.0-20250219182151-9fdb1cabc7b2 // indirect
126124
google.golang.org/genproto/googleapis/rpc v0.0.0-20250219182151-9fdb1cabc7b2 // indirect
127125
google.golang.org/grpc v1.70.0 // indirect
128-
google.golang.org/protobuf v1.36.5 // indirect
129126
gopkg.in/yaml.v3 v3.0.1 // indirect
130127
)

0 commit comments

Comments
 (0)