Skip to content

Commit beacbab

Browse files
committed
cleanup
1 parent 0bd913d commit beacbab

File tree

4 files changed

+10
-17
lines changed

4 files changed

+10
-17
lines changed

capabilities/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/smartcontractkit/chainlink-framework/capabilities
33
go 1.24.0
44

55
require (
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

capabilities/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ github.com/santhosh-tekuri/jsonschema/v5 v5.2.0 h1:WCcC4vZDS1tYNxjWlwRJZQy28r8CM
8383
github.com/santhosh-tekuri/jsonschema/v5 v5.2.0/go.mod h1:FKdcjfQW6rpZSnxxUvEA5H/cDPdvJ/SZJQLWWXWGrZ0=
8484
github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp81k=
8585
github.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=
8888
github.com/smartcontractkit/libocr v0.0.0-20250220133800-f3b940c4f298 h1:PKiqnVOTChlH4a4ljJKL3OKGRgYfIpJS4YD1daAIKks=
8989
github.com/smartcontractkit/libocr v0.0.0-20250220133800-f3b940c4f298/go.mod h1:Mb7+/LC4edz7HyHxX4QkE42pSuov4AV68+AxBXAap0o=
9090
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=

capabilities/writetarget/messages.go

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff 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
2316
type 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,

capabilities/writetarget/write_target.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

2626
var (
@@ -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

0 commit comments

Comments
 (0)