Skip to content

Commit d562598

Browse files
authored
Use values and cre sdk from protos repo (#1477)
1 parent 64e0a79 commit d562598

235 files changed

Lines changed: 495 additions & 7207 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

go.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ flowchart LR
66
click chain-selectors href "https://github.com/smartcontractkit/chain-selectors"
77
chainlink-common --> chain-selectors
88
chainlink-common --> chainlink-common/pkg/chipingress
9-
chainlink-common --> chainlink-common/pkg/workflows/sdk/v2/pb
9+
chainlink-common --> chainlink-common/pkg/values
1010
chainlink-common --> chainlink-protos/billing/go
11+
chainlink-common --> chainlink-protos/cre/go
1112
chainlink-common --> chainlink-protos/storage-service
1213
chainlink-common --> freeport
1314
chainlink-common --> grpc-proxy
@@ -19,10 +20,10 @@ flowchart LR
1920
click chainlink-common/pkg/monitoring href "https://github.com/smartcontractkit/chainlink-common"
2021
chainlink-common/pkg/values
2122
click chainlink-common/pkg/values href "https://github.com/smartcontractkit/chainlink-common"
22-
chainlink-common/pkg/workflows/sdk/v2/pb --> chainlink-common/pkg/values
23-
click chainlink-common/pkg/workflows/sdk/v2/pb href "https://github.com/smartcontractkit/chainlink-common"
2423
chainlink-protos/billing/go --> chainlink-protos/workflows/go
2524
click chainlink-protos/billing/go href "https://github.com/smartcontractkit/chainlink-protos"
25+
chainlink-protos/cre/go
26+
click chainlink-protos/cre/go href "https://github.com/smartcontractkit/chainlink-protos"
2627
chainlink-protos/storage-service
2728
click chainlink-protos/storage-service href "https://github.com/smartcontractkit/chainlink-protos"
2829
chainlink-protos/workflows/go
@@ -39,12 +40,12 @@ flowchart LR
3940
chainlink-common/pkg/chipingress
4041
chainlink-common/pkg/monitoring
4142
chainlink-common/pkg/values
42-
chainlink-common/pkg/workflows/sdk/v2/pb
4343
end
4444
click chainlink-common-repo href "https://github.com/smartcontractkit/chainlink-common"
4545
4646
subgraph chainlink-protos-repo[chainlink-protos]
4747
chainlink-protos/billing/go
48+
chainlink-protos/cre/go
4849
chainlink-protos/storage-service
4950
chainlink-protos/workflows/go
5051
end

go.mod

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/smartcontractkit/chainlink-common
22

3-
go 1.24.2
4-
5-
toolchain go1.24.3
3+
go 1.24.5
64

75
require (
86
github.com/XSAM/otelsql v0.29.0
@@ -13,7 +11,7 @@ require (
1311
github.com/fxamacker/cbor/v2 v2.5.0
1412
github.com/go-json-experiment/json v0.0.0-20231102232822-2e55bd4e08b0
1513
github.com/go-playground/validator/v10 v10.25.0
16-
github.com/go-viper/mapstructure/v2 v2.3.0
14+
github.com/go-viper/mapstructure/v2 v2.4.0
1715
github.com/golang-jwt/jwt/v5 v5.2.3
1816
github.com/google/go-cmp v0.7.0
1917
github.com/google/uuid v1.6.0
@@ -37,9 +35,8 @@ require (
3735
github.com/shopspring/decimal v1.4.0
3836
github.com/smartcontractkit/chain-selectors v1.0.62
3937
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.1
40-
github.com/smartcontractkit/chainlink-common/pkg/values v0.0.0-20250806152407-159881c7589c
41-
github.com/smartcontractkit/chainlink-common/pkg/workflows/sdk/v2/pb v0.0.0-20250806155403-1d805e639a0f
4238
github.com/smartcontractkit/chainlink-protos/billing/go v0.0.0-20250722175102-6dcdf5122683
39+
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20250815182425-f8fca0955840
4340
github.com/smartcontractkit/chainlink-protos/storage-service v0.3.0
4441
github.com/smartcontractkit/freeport v0.1.1
4542
github.com/smartcontractkit/grpc-proxy v0.0.0-20240830132753-a7e17fec5ab7
@@ -71,7 +68,7 @@ require (
7168
gonum.org/v1/gonum v0.16.0
7269
google.golang.org/genproto/googleapis/rpc v0.0.0-20250519155744-55703ea1f237
7370
google.golang.org/grpc v1.73.0
74-
google.golang.org/protobuf v1.36.6
71+
google.golang.org/protobuf v1.36.7
7572
gopkg.in/yaml.v3 v3.0.1
7673
sigs.k8s.io/yaml v1.4.0
7774
)

go.sum

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ github.com/go-playground/validator/v10 v10.25.0/go.mod h1:GGzBIJMuE98Ic/kJsBXbz1
7878
github.com/go-sql-driver/mysql v1.8.1 h1:LedoTUt/eveggdHS9qUFC1EFSa8bU2+1pZjSRpvNJ1Y=
7979
github.com/go-sql-driver/mysql v1.8.1/go.mod h1:wEBSXgmK//2ZFJyE+qWnIsVGmvmEKlqwuVSjsCm7DZg=
8080
github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
81-
github.com/go-viper/mapstructure/v2 v2.3.0 h1:27XbWsHIqhbdR5TIC911OfYvgSaW93HM+dX7970Q7jk=
82-
github.com/go-viper/mapstructure/v2 v2.3.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
81+
github.com/go-viper/mapstructure/v2 v2.4.0 h1:EBsztssimR/CONLSZZ04E8qAkxNYq4Qp9LvH92wZUgs=
82+
github.com/go-viper/mapstructure/v2 v2.4.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
8383
github.com/goccy/go-json v0.10.5 h1:Fq85nIqj+gXn/S5ahsiTlK3TmC85qgirsdTP/+DeaC4=
8484
github.com/goccy/go-json v0.10.5/go.mod h1:oq7eo15ShAhp70Anwd5lgX2pLfOS3QCiwU/PULtXL6M=
8585
github.com/goccy/go-yaml v1.12.0 h1:/1WHjnMsI1dlIBQutrvSMGZRQufVO3asrHfTwfACoPM=
@@ -306,12 +306,10 @@ github.com/smartcontractkit/chain-selectors v1.0.62 h1:KWLEyKQXHxGGHIlUfLrzjYldl
306306
github.com/smartcontractkit/chain-selectors v1.0.62/go.mod h1:xsKM0aN3YGcQKTPRPDDtPx2l4mlTN1Djmg0VVXV40b8=
307307
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.1 h1:ca2z5OXgnbBPQRxpwXwBLJsUA1+cAp5ncfW4Ssvd6eY=
308308
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.1/go.mod h1:NZv/qKYGFRnkjOYBouajnDfFoZ+WDa6H2KNmSf1dnKc=
309-
github.com/smartcontractkit/chainlink-common/pkg/values v0.0.0-20250806152407-159881c7589c h1:QaImySzrLcGzQc4wCF2yDqqb73jA3+9EIqybgx8zT4w=
310-
github.com/smartcontractkit/chainlink-common/pkg/values v0.0.0-20250806152407-159881c7589c/go.mod h1:U1UAbPhy6D7Qz0wHKGPoQO+dpR0hsYjgUz8xwRrmKwI=
311-
github.com/smartcontractkit/chainlink-common/pkg/workflows/sdk/v2/pb v0.0.0-20250806155403-1d805e639a0f h1:mnnlyMH5LgJRAzx/4mW2R+sbK1Acpfs3q0EokeAX5RI=
312-
github.com/smartcontractkit/chainlink-common/pkg/workflows/sdk/v2/pb v0.0.0-20250806155403-1d805e639a0f/go.mod h1:yMGYq2fDYWPXZjkVuzgRiZVv/NaifvQUqK7CY6kNgW0=
313309
github.com/smartcontractkit/chainlink-protos/billing/go v0.0.0-20250722175102-6dcdf5122683 h1:Qjiw8yaKi42jjknW1+ox6+QHc4aJVm0uhVoKTlmZryU=
314310
github.com/smartcontractkit/chainlink-protos/billing/go v0.0.0-20250722175102-6dcdf5122683/go.mod h1:HHGeDUpAsPa0pmOx7wrByCitjQ0mbUxf0R9v+g67uCA=
311+
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20250815182425-f8fca0955840 h1:se93gDiGw/6Bg+IQBo5l6svz9l0V04Jxq2QGmiXeFU0=
312+
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20250815182425-f8fca0955840/go.mod h1:jUC52kZzEnWF9tddHh85zolKybmLpbQ1oNA4FjOHt1Q=
315313
github.com/smartcontractkit/chainlink-protos/storage-service v0.3.0 h1:B7itmjy+CMJ26elVw/cAJqqhBQ3Xa/mBYWK0/rQ5MuI=
316314
github.com/smartcontractkit/chainlink-protos/storage-service v0.3.0/go.mod h1:h6kqaGajbNRrezm56zhx03p0mVmmA2xxj7E/M4ytLUA=
317315
github.com/smartcontractkit/chainlink-protos/workflows/go v0.0.0-20250430163438-97d324ef9061 h1:5BKk6j2QWmb5TFoWYVLuL8U2XUIzTUUo5HBkCHTX2kM=
@@ -577,8 +575,8 @@ google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpAD
577575
google.golang.org/protobuf v1.25.0/go.mod h1:9JNX74DMeImyA3h4bdi1ymwjUzf21/xIlbajtzgsN7c=
578576
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
579577
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
580-
google.golang.org/protobuf v1.36.6 h1:z1NpPI8ku2WgiWnf+t9wTPsn6eP1L7ksHUlkfLvd9xY=
581-
google.golang.org/protobuf v1.36.6/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY=
578+
google.golang.org/protobuf v1.36.7 h1:IgrO7UwFQGJdRNXH/sQux4R1Dj1WAKcLElzeeRaXV2A=
579+
google.golang.org/protobuf v1.36.7/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY=
582580
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
583581
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
584582
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=

pkg/beholder/pb/base_message.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/beholder/pb/example.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/capabilities/actions/vault/messages.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/capabilities/capabilities.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"google.golang.org/protobuf/proto"
1212
"google.golang.org/protobuf/types/known/anypb"
1313

14-
"github.com/smartcontractkit/chainlink-common/pkg/values"
14+
"github.com/smartcontractkit/chainlink-protos/cre/go/values"
1515
)
1616

1717
// CapabilityType is an enum for the type of capability.

pkg/capabilities/capabilities_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import (
1010
"github.com/stretchr/testify/assert"
1111
"github.com/stretchr/testify/require"
1212

13-
"github.com/smartcontractkit/chainlink-common/pkg/values"
13+
"github.com/smartcontractkit/chainlink-protos/cre/go/values"
1414
)
1515

1616
func Test_CapabilityInfo(t *testing.T) {

pkg/capabilities/consensus/ocr3/aggregators/identical.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ import (
66

77
"google.golang.org/protobuf/proto"
88

9+
ocrcommon "github.com/smartcontractkit/libocr/commontypes"
10+
911
"github.com/smartcontractkit/chainlink-common/pkg/capabilities/consensus/ocr3/types"
1012
"github.com/smartcontractkit/chainlink-common/pkg/logger"
11-
"github.com/smartcontractkit/chainlink-common/pkg/values"
12-
13-
ocrcommon "github.com/smartcontractkit/libocr/commontypes"
13+
"github.com/smartcontractkit/chainlink-protos/cre/go/values"
1414
)
1515

1616
// Aggregates by the most frequent observation for each index of a data set

pkg/capabilities/consensus/ocr3/aggregators/identical_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99

1010
"github.com/smartcontractkit/chainlink-common/pkg/capabilities/consensus/ocr3/aggregators"
1111
"github.com/smartcontractkit/chainlink-common/pkg/logger"
12-
"github.com/smartcontractkit/chainlink-common/pkg/values"
12+
"github.com/smartcontractkit/chainlink-protos/cre/go/values"
1313
)
1414

1515
func TestDataFeedsAggregator_Aggregate(t *testing.T) {

0 commit comments

Comments
 (0)