Skip to content

Commit 1f0c137

Browse files
authored
Bump common and use MetricInfo and ChainInfo from common in WR (#56)
1 parent 3f9ae62 commit 1f0c137

File tree

10 files changed

+56
-104
lines changed

10 files changed

+56
-104
lines changed

capabilities/go.mod

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ require (
88
github.com/google/uuid v1.6.0
99
github.com/jpillora/backoff v1.0.0
1010
github.com/shopspring/decimal v1.4.0
11-
github.com/smartcontractkit/chainlink-common v0.7.1-0.20250618162808-a5a42ee8701b
11+
github.com/smartcontractkit/chainlink-common v0.7.1-0.20250702142954-f9ce5ef305d1
12+
github.com/smartcontractkit/chainlink-common/pkg/values v0.0.0-20250626141212-e50b2e7ffe2d
1213
github.com/stretchr/testify v1.10.0
1314
go.opentelemetry.io/otel v1.35.0
1415
go.opentelemetry.io/otel/metric v1.35.0
@@ -23,16 +24,16 @@ require (
2324
github.com/buger/jsonparser v1.1.1 // indirect
2425
github.com/cenkalti/backoff/v4 v4.3.0 // indirect
2526
github.com/cespare/xxhash/v2 v2.3.0 // indirect
26-
github.com/cloudevents/sdk-go/binding/format/protobuf/v2 v2.15.2 // indirect
27-
github.com/cloudevents/sdk-go/v2 v2.16.0 // indirect
27+
github.com/cloudevents/sdk-go/binding/format/protobuf/v2 v2.16.1 // indirect
28+
github.com/cloudevents/sdk-go/v2 v2.16.1 // indirect
2829
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
2930
github.com/gabriel-vasile/mimetype v1.4.8 // indirect
3031
github.com/go-logr/logr v1.4.2 // indirect
3132
github.com/go-logr/stdr v1.2.2 // indirect
3233
github.com/go-playground/locales v0.14.1 // indirect
3334
github.com/go-playground/universal-translator v0.18.1 // indirect
3435
github.com/go-playground/validator/v10 v10.25.0 // indirect
35-
github.com/go-viper/mapstructure/v2 v2.2.1 // indirect
36+
github.com/go-viper/mapstructure/v2 v2.3.0 // indirect
3637
github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.1 // indirect
3738
github.com/invopop/jsonschema v0.12.0 // indirect
3839
github.com/json-iterator/go v1.1.12 // indirect

capabilities/go.sum

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ github.com/cenkalti/backoff/v4 v4.3.0 h1:MyRJ/UdXutAwSAT+s3wNd7MfTIcy71VQueUuFK3
88
github.com/cenkalti/backoff/v4 v4.3.0/go.mod h1:Y3VNntkOUPxTVeUxJ/G5vcM//AlwfmyYozVcomhLiZE=
99
github.com/cespare/xxhash/v2 v2.3.0 h1:UL815xU9SqsFlibzuggzjXhog7bL6oX9BbNZnL2UFvs=
1010
github.com/cespare/xxhash/v2 v2.3.0/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
11-
github.com/cloudevents/sdk-go/binding/format/protobuf/v2 v2.15.2 h1:FIvfKlS2mcuP0qYY6yzdIU9xdrRd/YMP0bNwFjXd0u8=
12-
github.com/cloudevents/sdk-go/binding/format/protobuf/v2 v2.15.2/go.mod h1:POsdVp/08Mki0WD9QvvgRRpg9CQ6zhjfRrBoEY8JFS8=
13-
github.com/cloudevents/sdk-go/v2 v2.16.0 h1:wnunjgiLQCfYlyo+E4+mFlZtAh7pKn7vT8MMD3lSwCg=
14-
github.com/cloudevents/sdk-go/v2 v2.16.0/go.mod h1:5YWqklyhDSmGzBK/JENKKXdulbPq0JFf3c/KEnMLqgg=
11+
github.com/cloudevents/sdk-go/binding/format/protobuf/v2 v2.16.1 h1:nLaJZcVAnaqch3K83AyzHfY2DmQM18/L7jvkmKSfkpI=
12+
github.com/cloudevents/sdk-go/binding/format/protobuf/v2 v2.16.1/go.mod h1:6Q+F2puKpJ6zWv+R02BVnizJICf7++oRT5zwpZQAsbk=
13+
github.com/cloudevents/sdk-go/v2 v2.16.1 h1:G91iUdqvl88BZ1GYYr9vScTj5zzXSyEuqbfE63gbu9Q=
14+
github.com/cloudevents/sdk-go/v2 v2.16.1/go.mod h1:v/kVOaWjNfbvc6tkhhlkhvLapj8Aa8kvXiH5GiOHCKI=
1515
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
1616
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
1717
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM=
@@ -31,8 +31,8 @@ github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJn
3131
github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY=
3232
github.com/go-playground/validator/v10 v10.25.0 h1:5Dh7cjvzR7BRZadnsVOzPhWsrwUr0nmsZJxEAnFLNO8=
3333
github.com/go-playground/validator/v10 v10.25.0/go.mod h1:GGzBIJMuE98Ic/kJsBXbz1x/7cByt++cQ+YOuDM5wus=
34-
github.com/go-viper/mapstructure/v2 v2.2.1 h1:ZAaOCxANMuZx5RCeg0mBdEZk7DZasvvZIxtHqx8aGss=
35-
github.com/go-viper/mapstructure/v2 v2.2.1/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
34+
github.com/go-viper/mapstructure/v2 v2.3.0 h1:27XbWsHIqhbdR5TIC911OfYvgSaW93HM+dX7970Q7jk=
35+
github.com/go-viper/mapstructure/v2 v2.3.0/go.mod h1:oJDH3BJKyqBA2TXFhDsKDGDTlndYOZ6rGS0BRZIxGhM=
3636
github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
3737
github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
3838
github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
@@ -89,8 +89,10 @@ github.com/santhosh-tekuri/jsonschema/v5 v5.2.0 h1:WCcC4vZDS1tYNxjWlwRJZQy28r8CM
8989
github.com/santhosh-tekuri/jsonschema/v5 v5.2.0/go.mod h1:FKdcjfQW6rpZSnxxUvEA5H/cDPdvJ/SZJQLWWXWGrZ0=
9090
github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k=
9191
github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME=
92-
github.com/smartcontractkit/chainlink-common v0.7.1-0.20250618162808-a5a42ee8701b h1:nS5njF5W9lY1LnTITt3V2M35dT19JPpuVg6//vlzFiU=
93-
github.com/smartcontractkit/chainlink-common v0.7.1-0.20250618162808-a5a42ee8701b/go.mod h1:1ntZ0rtQpPx6h+xlcOJp0ccqHFaxTzW2Z62FJG358q0=
92+
github.com/smartcontractkit/chainlink-common v0.7.1-0.20250702142954-f9ce5ef305d1 h1:XI7dErChGcWbbv9vOrSyhXhkkkvROuGpfLj2vwnP6gY=
93+
github.com/smartcontractkit/chainlink-common v0.7.1-0.20250702142954-f9ce5ef305d1/go.mod h1:kNOevuC9e+gJXT3+bbJKX0svJal6QCxJVSTrW5e36uM=
94+
github.com/smartcontractkit/chainlink-common/pkg/values v0.0.0-20250626141212-e50b2e7ffe2d h1:86gp4tIXRb6ccSrjcm4gV8iA5wJN6er3rJY9f2UxRLU=
95+
github.com/smartcontractkit/chainlink-common/pkg/values v0.0.0-20250626141212-e50b2e7ffe2d/go.mod h1:QUEPHdSkH19Or+E1iMGG+rDQ6jpCTIbm//9Osa6MXDE=
9496
github.com/smartcontractkit/libocr v0.0.0-20250328171017-609ec10a5510 h1:gm8Jli0sdkrZYnrWBngAkPSDzFDkdNCy1/Dj86kVtYk=
9597
github.com/smartcontractkit/libocr v0.0.0-20250328171017-609ec10a5510/go.mod h1:Mb7+/LC4edz7HyHxX4QkE42pSuov4AV68+AxBXAap0o=
9698
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
@@ -157,8 +159,8 @@ golang.org/x/sys v0.32.0 h1:s77OFDvIQeibCmezSnk/q6iAfkdiQaJi4VzroCFrN20=
157159
golang.org/x/sys v0.32.0/go.mod h1:BJP2sWEmIv4KK5OTEluFJCKSidICx8ciO85XgH3Ak8k=
158160
golang.org/x/text v0.23.0 h1:D71I7dUrlY+VX0gQShAThNGHFxZ13dGLBHQLVl1mJlY=
159161
golang.org/x/text v0.23.0/go.mod h1:/BLNzu4aZCJ1+kcD0DNRotWKage4q2rGVAg4o22unh4=
160-
golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk=
161-
golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
162+
golang.org/x/time v0.12.0 h1:ScB/8o8olJvc+CQPWrK3fPZNfh7qgwCrY0zJmoEQLSE=
163+
golang.org/x/time v0.12.0/go.mod h1:CDIdPxbZBQxdj6cxyCIdrNogrJKMJ7pr37NYpMcMDSg=
162164
google.golang.org/genproto/googleapis/api v0.0.0-20250219182151-9fdb1cabc7b2 h1:35ZFtrCgaAjF7AFAK0+lRSf+4AyYnWRbH7og13p7rZ4=
163165
google.golang.org/genproto/googleapis/api v0.0.0-20250219182151-9fdb1cabc7b2/go.mod h1:W9ynFDP/shebLB1Hl/ESTOap2jHd6pmLXPNZC7SVDbA=
164166
google.golang.org/genproto/googleapis/rpc v0.0.0-20250324211829-b45e905df463 h1:e0AIkUUhxyBKh6ssZNrAMeqhA7RKUj42346d1y02i2g=

capabilities/writetarget/beholder/common.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,31 +14,31 @@ import (
1414
// MetricInfo is a struct for metrics information
1515
type MetricsInfoCapBasic struct {
1616
// common
17-
count MetricInfo
18-
capTimestampStart MetricInfo
19-
capTimestampEmit MetricInfo
20-
capDuration MetricInfo // ts.emit - ts.start
17+
count beholder.MetricInfo
18+
capTimestampStart beholder.MetricInfo
19+
capTimestampEmit beholder.MetricInfo
20+
capDuration beholder.MetricInfo // ts.emit - ts.start
2121
}
2222

2323
// NewMetricsInfoCapBasic creates a new MetricsInfoCapBasic using the provided event/metric information
2424
func NewMetricsInfoCapBasic(metricPrefix, eventRef string) MetricsInfoCapBasic {
2525
return MetricsInfoCapBasic{
26-
count: MetricInfo{
26+
count: beholder.MetricInfo{
2727
Name: fmt.Sprintf("%s_count", metricPrefix),
2828
Unit: "",
2929
Description: fmt.Sprintf("The count of message: '%s' emitted", eventRef),
3030
},
31-
capTimestampStart: MetricInfo{
31+
capTimestampStart: beholder.MetricInfo{
3232
Name: fmt.Sprintf("%s_cap_timestamp_start", metricPrefix),
3333
Unit: "ms",
3434
Description: fmt.Sprintf("The timestamp (local) at capability exec start that resulted in message: '%s' emit", eventRef),
3535
},
36-
capTimestampEmit: MetricInfo{
36+
capTimestampEmit: beholder.MetricInfo{
3737
Name: fmt.Sprintf("%s_cap_timestamp_emit", metricPrefix),
3838
Unit: "ms",
3939
Description: fmt.Sprintf("The timestamp (local) at message: '%s' emit", eventRef),
4040
},
41-
capDuration: MetricInfo{
41+
capDuration: beholder.MetricInfo{
4242
Name: fmt.Sprintf("%s_cap_duration", metricPrefix),
4343
Unit: "ms",
4444
Description: fmt.Sprintf("The duration (local) since capability exec start to message: '%s' emit", eventRef),

capabilities/writetarget/beholder/info.go

Lines changed: 0 additions & 47 deletions
This file was deleted.

capabilities/writetarget/messages.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,18 @@ import (
77

88
"github.com/smartcontractkit/chainlink-common/pkg/capabilities"
99
"github.com/smartcontractkit/chainlink-common/pkg/types"
10-
monitor "github.com/smartcontractkit/chainlink-framework/capabilities/writetarget/beholder"
11-
1210
commonpb "github.com/smartcontractkit/chainlink-framework/capabilities/writetarget/monitoring/pb/common"
1311
wt "github.com/smartcontractkit/chainlink-framework/capabilities/writetarget/monitoring/pb/platform"
1412
)
1513

1614
// messageBuilder is a helper component to build monitoring messages
1715
type messageBuilder struct {
18-
ChainInfo monitor.ChainInfo
16+
ChainInfo types.ChainInfo
1917
CapInfo capabilities.CapabilityInfo
2018
}
2119

2220
// NewMessageBuilder creates a new message builder
23-
func NewMessageBuilder(chainInfo monitor.ChainInfo, capInfo capabilities.CapabilityInfo) *messageBuilder {
21+
func NewMessageBuilder(chainInfo types.ChainInfo, capInfo capabilities.CapabilityInfo) *messageBuilder {
2422
return &messageBuilder{
2523
ChainInfo: chainInfo,
2624
CapInfo: capInfo,

capabilities/writetarget/monitoring/pb/data-feeds/on-chain/registry/metrics.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,34 +45,34 @@ func NewMetrics() (*Metrics, error) {
4545
feedUpdated := struct {
4646
basic beholder.MetricsInfoCapBasic
4747
// specific to FeedUpdated
48-
observationsTimestamp beholder.MetricInfo
49-
duration beholder.MetricInfo // ts.emit - ts.observation
50-
benchmark beholder.MetricInfo
51-
blockTimestamp beholder.MetricInfo
52-
blockNumber beholder.MetricInfo
48+
observationsTimestamp beholdercommon.MetricInfo
49+
duration beholdercommon.MetricInfo // ts.emit - ts.observation
50+
benchmark beholdercommon.MetricInfo
51+
blockTimestamp beholdercommon.MetricInfo
52+
blockNumber beholdercommon.MetricInfo
5353
}{
5454
basic: beholder.NewMetricsInfoCapBasic(ns("feed_updated"), beholdercommon.ToSchemaFullName(&FeedUpdated{})),
55-
observationsTimestamp: beholder.MetricInfo{
55+
observationsTimestamp: beholdercommon.MetricInfo{
5656
Name: ns("feed_updated_observations_timestamp"),
5757
Unit: "ms",
5858
Description: "The observations timestamp for the latest confirmed update (as reported)",
5959
},
60-
duration: beholder.MetricInfo{
60+
duration: beholdercommon.MetricInfo{
6161
Name: ns("feed_updated_duration"),
6262
Unit: "ms",
6363
Description: "The duration (local) since observation to message: 'datafeeds.on-chain.registry.FeedUpdated' emit",
6464
},
65-
benchmark: beholder.MetricInfo{
65+
benchmark: beholdercommon.MetricInfo{
6666
Name: ns("feed_updated_benchmark"),
6767
Unit: "",
6868
Description: "The benchmark value for the latest confirmed update (as reported)",
6969
},
70-
blockTimestamp: beholder.MetricInfo{
70+
blockTimestamp: beholdercommon.MetricInfo{
7171
Name: ns("feed_updated_block_timestamp"),
7272
Unit: "ms",
7373
Description: "The block timestamp at the latest confirmed update (as observed)",
7474
},
75-
blockNumber: beholder.MetricInfo{
75+
blockNumber: beholdercommon.MetricInfo{
7676
Name: ns("feed_updated_block_number"),
7777
Unit: "",
7878
Description: "The block number at the latest confirmed update (as observed)",

capabilities/writetarget/monitoring/pb/platform/metrics.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,16 @@ func NewMetrics() (*Metrics, error) {
6868
writeSent := struct {
6969
basic beholder.MetricsInfoCapBasic
7070
// specific to WriteSent
71-
blockTimestamp beholder.MetricInfo
72-
blockNumber beholder.MetricInfo
71+
blockTimestamp beholdercommon.MetricInfo
72+
blockNumber beholdercommon.MetricInfo
7373
}{
7474
basic: beholder.NewMetricsInfoCapBasic(ns("write_sent"), beholdercommon.ToSchemaFullName(&WriteSent{})),
75-
blockTimestamp: beholder.MetricInfo{
75+
blockTimestamp: beholdercommon.MetricInfo{
7676
Name: ns("write_sent_block_timestamp"),
7777
Unit: "ms",
7878
Description: "The block timestamp at the latest sent write (as observed)",
7979
},
80-
blockNumber: beholder.MetricInfo{
80+
blockNumber: beholdercommon.MetricInfo{
8181
Name: ns("write_sent_block_number"),
8282
Unit: "",
8383
Description: "The block number at the latest sent write (as observed)",
@@ -86,22 +86,22 @@ func NewMetrics() (*Metrics, error) {
8686
writeConfirmed := struct {
8787
basic beholder.MetricsInfoCapBasic
8888
// specific to WriteSent
89-
blockTimestamp beholder.MetricInfo
90-
blockNumber beholder.MetricInfo
91-
signersNumber beholder.MetricInfo
89+
blockTimestamp beholdercommon.MetricInfo
90+
blockNumber beholdercommon.MetricInfo
91+
signersNumber beholdercommon.MetricInfo
9292
}{
9393
basic: beholder.NewMetricsInfoCapBasic(ns("write_confirmed"), beholdercommon.ToSchemaFullName(&WriteConfirmed{})),
94-
blockTimestamp: beholder.MetricInfo{
94+
blockTimestamp: beholdercommon.MetricInfo{
9595
Name: ns("write_confirmed_block_timestamp"),
9696
Unit: "ms",
9797
Description: "The block timestamp for latest confirmed write (as observed)",
9898
},
99-
blockNumber: beholder.MetricInfo{
99+
blockNumber: beholdercommon.MetricInfo{
100100
Name: ns("write_confirmed_block_number"),
101101
Unit: "",
102102
Description: "The block number for latest confirmed write (as observed)",
103103
},
104-
signersNumber: beholder.MetricInfo{
104+
signersNumber: beholdercommon.MetricInfo{
105105
Name: ns("write_confirmed_signers_number"),
106106
Unit: "",
107107
Description: "The number of signers attached to the processed and confirmed write request",

capabilities/writetarget/monitoring/pb/platform/on-chain/forwarder/metrics.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,16 +41,16 @@ func NewMetrics() (*Metrics, error) {
4141
reportProcessed := struct {
4242
basic beholder.MetricsInfoCapBasic
4343
// specific to ReportProcessed
44-
blockTimestamp beholder.MetricInfo
45-
blockNumber beholder.MetricInfo
44+
blockTimestamp beholdercommon.MetricInfo
45+
blockNumber beholdercommon.MetricInfo
4646
}{
4747
basic: beholder.NewMetricsInfoCapBasic(ns("report_processed"), beholdercommon.ToSchemaFullName(&ReportProcessed{})),
48-
blockTimestamp: beholder.MetricInfo{
48+
blockTimestamp: beholdercommon.MetricInfo{
4949
Name: ns("report_processed_block_timestamp"),
5050
Unit: "ms",
5151
Description: "The block timestamp at the latest confirmed write (as observed)",
5252
},
53-
blockNumber: beholder.MetricInfo{
53+
blockNumber: beholdercommon.MetricInfo{
5454
Name: ns("report_processed_block_number"),
5555
Unit: "",
5656
Description: "The block number at the latest confirmed write (as observed)",

capabilities/writetarget/write_target.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"github.com/smartcontractkit/chainlink-common/pkg/services"
2121
commontypes "github.com/smartcontractkit/chainlink-common/pkg/types"
2222

23-
monitor "github.com/smartcontractkit/chainlink-framework/capabilities/writetarget/beholder"
2423
"github.com/smartcontractkit/chainlink-framework/capabilities/writetarget/report/platform"
2524
"github.com/smartcontractkit/chainlink-framework/capabilities/writetarget/retry"
2625

@@ -86,7 +85,7 @@ type writeTarget struct {
8685
capabilities.CapabilityInfo
8786

8887
config Config
89-
chainInfo monitor.ChainInfo
88+
chainInfo commontypes.ChainInfo
9089

9190
lggr logger.Logger
9291
// Local beholder client, also hosting the protobuf emitter
@@ -108,7 +107,7 @@ type WriteTargetOpts struct {
108107
Config Config
109108
// ChainInfo contains the chain information (used as execution context)
110109
// TODO: simplify by passing via ChainService.GetChainStatus fn
111-
ChainInfo monitor.ChainInfo
110+
ChainInfo commontypes.ChainInfo
112111

113112
Logger logger.Logger
114113
Beholder *beholder.BeholderClient

capabilities/writetarget/write_target_test.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ import (
1919
"github.com/smartcontractkit/chainlink-common/pkg/utils/tests"
2020
"github.com/smartcontractkit/chainlink-common/pkg/values"
2121

22-
writetarget "github.com/smartcontractkit/chainlink-framework/capabilities/writetarget"
23-
monitor "github.com/smartcontractkit/chainlink-framework/capabilities/writetarget/beholder"
22+
"github.com/smartcontractkit/chainlink-framework/capabilities/writetarget"
2423
utils "github.com/smartcontractkit/chainlink-framework/capabilities/writetarget/monitoring/pb/platform/on-chain/forwarder"
2524
"github.com/smartcontractkit/chainlink-framework/capabilities/writetarget/report/platform"
2625
"github.com/smartcontractkit/chainlink-framework/capabilities/writetarget/report/platform/processor"
@@ -59,7 +58,7 @@ func setupWriteTarget(
5958
PollPeriod: pollPeriod,
6059
AcceptanceTimeout: timeout,
6160
},
62-
ChainInfo: monitor.ChainInfo{ChainID: "1"},
61+
ChainInfo: commontypes.ChainInfo{ChainID: "1"},
6362
Logger: lggr,
6463
Beholder: monClient,
6564
ChainService: chainSvc,
@@ -313,7 +312,7 @@ func TestWriteTarget_Execute(t *testing.T) {
313312
opts := writetarget.WriteTargetOpts{
314313
315314
Config: writetarget.Config{},
316-
ChainInfo: monitor.ChainInfo{},
315+
ChainInfo: commontypes.ChainInfo{},
317316
Logger: lggr,
318317
Beholder: monClient,
319318
ChainService: chainSvc,

0 commit comments

Comments
 (0)