File tree Expand file tree Collapse file tree 4 files changed +10
-17
lines changed
Expand file tree Collapse file tree 4 files changed +10
-17
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module github.com/smartcontractkit/chainlink-framework/capabilities
33go 1.24.0
44
55require (
6- github.com/smartcontractkit/chainlink-common v0.6.1-0.20250403193957-16ffa613b9da
6+ github.com/smartcontractkit/chainlink-common v0.6.1-0.20250403223319-bf977228567e
77 github.com/stretchr/testify v1.10.0
88 go.opentelemetry.io/otel v1.30.0
99 go.opentelemetry.io/otel/trace v1.30.0
Original file line number Diff line number Diff line change @@ -83,8 +83,8 @@ github.com/santhosh-tekuri/jsonschema/v5 v5.2.0 h1:WCcC4vZDS1tYNxjWlwRJZQy28r8CM
8383github.com/santhosh-tekuri/jsonschema/v5 v5.2.0 /go.mod h1:FKdcjfQW6rpZSnxxUvEA5H/cDPdvJ/SZJQLWWXWGrZ0 =
8484github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k =
8585github.com/shopspring/decimal v1.4.0 /go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME =
86- github.com/smartcontractkit/chainlink-common v0.6.1-0.20250403193957-16ffa613b9da h1:h+H275JG69+OYLEjIpqJB3Q3MfB1Hq9Mqv9jlBFTgs4 =
87- github.com/smartcontractkit/chainlink-common v0.6.1-0.20250403193957-16ffa613b9da /go.mod h1:WLiAjc+Q5VazhqSSxCgbN/S8eUHhinNFK+B3hHz5yJI =
86+ github.com/smartcontractkit/chainlink-common v0.6.1-0.20250403223319-bf977228567e h1:Y6g6Y6YZYbkcV474qLYg6TtKmbaSzzvOIkM3rLLas+s =
87+ github.com/smartcontractkit/chainlink-common v0.6.1-0.20250403223319-bf977228567e /go.mod h1:WLiAjc+Q5VazhqSSxCgbN/S8eUHhinNFK+B3hHz5yJI =
8888github.com/smartcontractkit/libocr v0.0.0-20250220133800-f3b940c4f298 h1:PKiqnVOTChlH4a4ljJKL3OKGRgYfIpJS4YD1daAIKks =
8989github.com/smartcontractkit/libocr v0.0.0-20250220133800-f3b940c4f298 /go.mod h1:Mb7+/LC4edz7HyHxX4QkE42pSuov4AV68+AxBXAap0o =
9090github.com/stretchr/objx v0.1.0 /go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME =
Original file line number Diff line number Diff line change @@ -5,28 +5,21 @@ import (
55 "encoding/hex"
66 "time"
77
8+ "github.com/smartcontractkit/chainlink-common/pkg/beholder/monitor"
89 "github.com/smartcontractkit/chainlink-common/pkg/capabilities"
910 "github.com/smartcontractkit/chainlink-common/pkg/types"
1011
11- wt "github.com/smartcontractkit/chainlink-common/pkg/beholder/ capabilities/write_target/pb/platform/write-target "
12+ wt "github.com/smartcontractkit/chainlink-common/pkg/capabilities/write_target/pb/platform"
1213)
1314
14- // ChainInfo contains the chain information (used as execution context)
15- type ChainInfo struct {
16- ChainFamilyName string
17- ChainID string
18- NetworkName string
19- NetworkNameFull string
20- }
21-
2215// messageBuilder is a helper component to build monitoring messages
2316type messageBuilder struct {
24- ChainInfo ChainInfo
17+ ChainInfo monitor. ChainInfo
2518 CapInfo capabilities.CapabilityInfo
2619}
2720
2821// NewMessageBuilder creates a new message builder
29- func NewMessageBuilder (chainInfo ChainInfo , capInfo capabilities.CapabilityInfo ) * messageBuilder {
22+ func NewMessageBuilder (chainInfo monitor. ChainInfo , capInfo capabilities.CapabilityInfo ) * messageBuilder {
3023 return & messageBuilder {
3124 ChainInfo : chainInfo ,
3225 CapInfo : capInfo ,
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import (
2020 "github.com/smartcontractkit/chainlink-common/pkg/beholder/report/platform"
2121 "github.com/smartcontractkit/chainlink-common/pkg/utils/retry"
2222
23- wt "github.com/smartcontractkit/chainlink-common/pkg/beholder/ capabilities/write_target/pb/platform/write-target "
23+ wt "github.com/smartcontractkit/chainlink-common/pkg/capabilities/write_target/pb/platform"
2424)
2525
2626var (
@@ -71,7 +71,7 @@ type writeTarget struct {
7171 capabilities.CapabilityInfo
7272
7373 config Config
74- chainInfo ChainInfo
74+ chainInfo monitor. ChainInfo
7575
7676 lggr logger.Logger
7777 // Local beholder client, also hosting the protobuf emitter
@@ -94,7 +94,7 @@ type WriteTargetOpts struct {
9494 Config Config
9595 // ChainInfo contains the chain information (used as execution context)
9696 // TODO: simplify by passing via ChainService.GetChainStatus fn
97- ChainInfo ChainInfo
97+ ChainInfo monitor. ChainInfo
9898
9999 Logger logger.Logger
100100 Beholder * monitor.BeholderClient
You can’t perform that action at this time.
0 commit comments