Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
golang 1.25.3
golang 1.26.2
protoc 29.3
protoc-gen-go-grpc 1.3.0
golangci-lint 2.11.4
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/smartcontractkit/chainlink-common

go 1.25.3
go 1.26.2

require (
github.com/Masterminds/semver/v3 v3.4.0
Expand Down
2 changes: 1 addition & 1 deletion keystore/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/smartcontractkit/chainlink-common/keystore

go 1.25.3
go 1.26.2

require (
github.com/NethermindEth/juno v0.12.5
Expand Down
2 changes: 1 addition & 1 deletion observability-lib/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/smartcontractkit/chainlink-common/observability-lib

go 1.25.0
go 1.26.2

require (
github.com/go-resty/resty/v2 v2.17.1
Expand Down
3 changes: 1 addition & 2 deletions pkg/beholder/internal/mocks/otlp_exporter.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pkg/capabilities/datastreams/mocks/report_codec.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/chipingress/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/smartcontractkit/chainlink-common/pkg/chipingress

go 1.25.3
go 1.26.2

require (
github.com/cloudevents/sdk-go/binding/format/protobuf/v2 v2.16.1
Expand Down
9 changes: 3 additions & 6 deletions pkg/chipingress/mocks/client.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pkg/loop/mocks/relayer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/monitoring/go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/smartcontractkit/chainlink-common/pkg/monitoring

go 1.25.0
go 1.26.2

require (
github.com/confluentinc/confluent-kafka-go/v2 v2.3.0
Expand Down
3 changes: 1 addition & 2 deletions pkg/nodeauth/jwt/mocks/jwt_authenticator.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pkg/types/ccip/mocks/offramp_reader_mock.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pkg/types/core/mocks/capabilities_registry.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions pkg/types/core/mocks/gateway_connector.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pkg/types/core/mocks/gateway_connector_handler.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pkg/types/core/mocks/relayer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pkg/types/core/mocks/relayer_set.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pkg/types/mocks/aptos_service.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 3 additions & 6 deletions pkg/types/mocks/contract_reader.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 3 additions & 6 deletions pkg/types/mocks/evm_service.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pkg/types/mocks/solana_service.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pkg/types/mocks/ton_service.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pkg/values/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/smartcontractkit/chainlink-common/pkg/values

go 1.25.0
go 1.26.2
12 changes: 6 additions & 6 deletions pkg/workflows/artifacts/artifacts_test.go
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

cc @ibrajer

Original file line number Diff line number Diff line change
Expand Up @@ -47,27 +47,27 @@ func (s *ArtifactsTestSuite) TestArtifacts() {

// Compare the keccak256 hash of the binary data with the keccak256 hash of the
// base64 encoded binary from CRE-CLI
expKeccak256Hash, err := hex.DecodeString("7385ae61173b2886a12250b508e2d361af0f6a40b6d0dda153fd4c20cb7e0c10")
expKeccak256Hash, err := hex.DecodeString("a057a58ff8212122016515b2922b7c3893525f7f5afe95c8442e0cd629d68420")
s.NoError(err, "failed to decode expected keccak256 hash")
keccak256FromSha3Lib := sha3.NewLegacyKeccak256()
keccak256FromSha3Lib.Write(b64EncodedBinaryData)
actualKeccak256Hash := keccak256FromSha3Lib.Sum(nil)
s.Equal(actualKeccak256Hash, expKeccak256Hash)
s.Equal(expKeccak256Hash, actualKeccak256Hash, "expected %x but got %x", expKeccak256Hash, actualKeccak256Hash)

err = artifacts.Prepare()
s.NoError(err, "failed to prepare artifacts")

base64EncodedBinaryData := artifacts.GetBinaryData()
// Compare if the compiled WASM binary is the same as the CRE-CLI output
s.Equal(563960, len(base64EncodedBinaryData), "binary data size should be same as CRE-CLI output")
s.Equal("m6kIGWtQvQYAALADgIPzAADQt3oerhGwcQAA8PV/uALY1AHwSGF6AACo9vMAqKqqqqqqqqqqqmsSAsIx",
s.Equal(636684, len(base64EncodedBinaryData), "binary data size should be same as CRE-CLI output")
s.Equal("m1upG3s6AJQvOA8AAK295+EaARsHAADf/YcBgFURwPQAANDq5wFQVVVVVVVVVVVV3ZMQEI7ZtgMAAKqq",
string(base64EncodedBinaryData[0:80]))
s.Equal("iBgWTlBKb+iQflnikISk/ALWkBmXnTIkLiWJYdvkGOrbpWD+9ybhB5ISI+JHMO5tcviErMSoqk5p1CY=",
s.Equal("gUEoFNoVRfyHGTsZmdg7wCJbGVibOhmYmsDAytgg92FTTmiddpI/x8SYzdANBkPGhtLoj/Hn7jvK26YE",
string(base64EncodedBinaryData[len(base64EncodedBinaryData)-80:]))

s.Equal("myContract: 0x44DD9D24349965E5e20E3D6118F560BCd64828E9\nchainID: 11155111", string(artifacts.GetConfigData()))

s.Equal("008619548c29a2ed3eee5f904dc34305191e23e22559d788272b0d4587d776ef", artifacts.GetWorkflowID())
s.Equal("004789eee3f5eee474ef64fe8b9251086083ad14af7b9135c9f33b661a128b3e", artifacts.GetWorkflowID())
}

func (s *ArtifactsTestSuite) TestArtifactsSadPaths() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/workflows/sdk/v2/pb/go.mod
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module github.com/smartcontractkit/chainlink-common/pkg/workflows/sdk/v2/pb

go 1.25.0
go 1.26.2
6 changes: 2 additions & 4 deletions pkg/workflows/wasm/host/mock_execution_helper_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pkg/workflows/wasm/host/mocks/module_v1.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions pkg/workflows/wasm/host/mocks/module_v2.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading