Skip to content

Commit b252d11

Browse files
committed
more local replaces + updating loopserver.Serve to loopserver.ServeNew
1 parent 9decb3b commit b252d11

13 files changed

Lines changed: 29 additions & 16 deletions

File tree

capabilitywatcher/go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ go 1.24.5
44

55
toolchain go1.24.6
66

7+
replace github.com/smartcontractkit/capabilities/libs => ../libs
8+
79
require (
810
github.com/google/uuid v1.6.0
911
github.com/prometheus/client_golang v1.22.0

capabilitywatcher/go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,8 +272,6 @@ github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp
272272
github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME=
273273
github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q=
274274
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
275-
github.com/smartcontractkit/capabilities/libs v0.0.0-20250711131700-236a5b631ad7 h1:QPemruCphJmJMH09cO/aClkONPVqJeWcd0qJwDbmcOI=
276-
github.com/smartcontractkit/capabilities/libs v0.0.0-20250711131700-236a5b631ad7/go.mod h1:/zEPppsF8Q/iwWSFbZ5MoQj/BcfYXk/whR8y91PQD+0=
277275
github.com/smartcontractkit/chain-selectors v1.0.67 h1:gxTqP/JC40KDe3DE1SIsIKSTKTZEPyEU1YufO1admnw=
278276
github.com/smartcontractkit/chain-selectors v1.0.67/go.mod h1:xsKM0aN3YGcQKTPRPDDtPx2l4mlTN1Djmg0VVXV40b8=
279277
github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007172033-a76cb023759b h1:0wwL6b6s0iRO4PHqoVnjj0KvaS014Sab+pQ/HZYuneU=

capabilitywatcher/main.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ package main
33
import (
44
"github.com/smartcontractkit/capabilities/capabilitywatcher/server"
55
"github.com/smartcontractkit/capabilities/libs/loopserver"
6+
"github.com/smartcontractkit/chainlink-common/pkg/loop"
67
)
78

89
func main() {
9-
loopserver.Serve("CapabilityWatcher", server.New)
10+
loopserver.ServeNew("CapabilityWatcher", func(s *loop.Server) loop.StandardCapabilities {
11+
return server.New(s.Logger)
12+
})
1013
}

integration_tests/go.mod

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ replace github.com/smartcontractkit/capabilities/http_trigger => ../http_trigger
1010

1111
replace github.com/smartcontractkit/capabilities/chain_capabilities/evm => ../chain_capabilities/evm
1212

13-
replace github.com/smartcontractkit/chainlink/v2 => ../../chainlink
14-
1513
replace github.com/fbsobreira/gotron-sdk => github.com/smartcontractkit/chainlink-tron/relayer/gotron-sdk v0.0.5-0.20250422175525-b7575d96bd4d
1614

1715
require (

integration_tests/go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,6 +1145,8 @@ github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250815105909-7549
11451145
github.com/smartcontractkit/chainlink-tron/relayer v0.0.11-0.20250815105909-75499abc4335/go.mod h1:ccjEgNeqOO+bjPddnL4lUrNLzyCvGCxgBjJdhFX3wa8=
11461146
github.com/smartcontractkit/chainlink-tron/relayer/gotron-sdk v0.0.5-0.20250422175525-b7575d96bd4d h1:qLmSOOtB/Ogn79eIDkuujOu8M5Jd747V1H7Brk/nTvo=
11471147
github.com/smartcontractkit/chainlink-tron/relayer/gotron-sdk v0.0.5-0.20250422175525-b7575d96bd4d/go.mod h1:4WhGgCA0smBbBud5mK+jnDb2wwndMvoqaWBJ3OV/7Bw=
1148+
github.com/smartcontractkit/chainlink/v2 v2.27.3-0.20251007205028-77fd4f160a37 h1:mZk7JGjbCFSWbjQs2r466HHZtUhL6hQYJzuV0mrurGg=
1149+
github.com/smartcontractkit/chainlink/v2 v2.27.3-0.20251007205028-77fd4f160a37/go.mod h1:VghGkUDz46Kw6GDDr+WmFx0f8r2qLydaJIL1goOxEG4=
11481150
github.com/smartcontractkit/cre-sdk-go v0.7.0 h1:QmCc/a6kGCmzhm0k0WFJZKxjklDedtAfvrA+vTnLcW0=
11491151
github.com/smartcontractkit/cre-sdk-go v0.7.0/go.mod h1:qVhKhBLANrGWKav6aHqO2UM7IltiouOnUbxu8ZQlKVM=
11501152
github.com/smartcontractkit/cre-sdk-go/capabilities/blockchain/evm v0.6.0 h1:dbWA/2RItveFYTQUSwQ4oG2yyebQMyFQLrpXwFuz8v4=

kvstore/main.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ package main
33
import (
44
"github.com/smartcontractkit/capabilities/kvstore/server"
55
"github.com/smartcontractkit/capabilities/libs/loopserver"
6+
"github.com/smartcontractkit/chainlink-common/pkg/loop"
67
)
78

89
func main() {
9-
loopserver.Serve("KVStoreCapabilities", server.New)
10+
loopserver.ServeNew("KVStoreCapabilities", func(s *loop.Server) loop.StandardCapabilities {
11+
return server.New(s.Logger)
12+
})
1013
}

loadtestwritetarget/go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ go 1.24.5
44

55
toolchain go1.24.6
66

7+
replace github.com/smartcontractkit/capabilities/libs => ../libs
8+
79
require (
810
github.com/smartcontractkit/capabilities/libs v0.0.0-20250902122836-28fd635adf1f
911
github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007172033-a76cb023759b

loadtestwritetarget/go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,6 @@ github.com/shopspring/decimal v1.4.0 h1:bxl37RwXBklmTi0C79JfXCEBD1cqqHt0bbgBAGFp
287287
github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+DMd9qYNcwME=
288288
github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q=
289289
github.com/sirupsen/logrus v1.4.2/go.mod h1:tLMulIdttU9McNUspp0xgXVQah82FyeX6MwdIuYE2rE=
290-
github.com/smartcontractkit/capabilities/libs v0.0.0-20250902122836-28fd635adf1f h1:EWtoA+9tYew5oBP5jHLuONwzTReFbJ23NAyS/3uLJ04=
291-
github.com/smartcontractkit/capabilities/libs v0.0.0-20250902122836-28fd635adf1f/go.mod h1:cnmQvDULHhvpVgvtgFcjL1y75gY+mcnPxMQh04iGnt0=
292290
github.com/smartcontractkit/chain-selectors v1.0.67 h1:gxTqP/JC40KDe3DE1SIsIKSTKTZEPyEU1YufO1admnw=
293291
github.com/smartcontractkit/chain-selectors v1.0.67/go.mod h1:xsKM0aN3YGcQKTPRPDDtPx2l4mlTN1Djmg0VVXV40b8=
294292
github.com/smartcontractkit/chainlink-common v0.9.6-0.20251007172033-a76cb023759b h1:0wwL6b6s0iRO4PHqoVnjj0KvaS014Sab+pQ/HZYuneU=

loadtestwritetarget/main.go

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

77
"github.com/smartcontractkit/chainlink-common/pkg/capabilities"
88
"github.com/smartcontractkit/chainlink-common/pkg/logger"
9+
"github.com/smartcontractkit/chainlink-common/pkg/loop"
910
"github.com/smartcontractkit/chainlink-common/pkg/services"
1011
"github.com/smartcontractkit/chainlink-common/pkg/types/core"
1112

@@ -30,8 +31,8 @@ type LoadTestWriteTargetGRPCService struct {
3031
}
3132

3233
func main() {
33-
loopserver.Serve(serviceName, func(lggr logger.Logger) *LoadTestWriteTargetGRPCService {
34-
return &LoadTestWriteTargetGRPCService{lggr: lggr}
34+
loopserver.ServeNew(serviceName, func(s *loop.Server) loop.StandardCapabilities {
35+
return &LoadTestWriteTargetGRPCService{lggr: s.Logger}
3536
})
3637
}
3738

mock/main.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ package main
33
import (
44
"github.com/smartcontractkit/capabilities/libs/loopserver"
55
"github.com/smartcontractkit/capabilities/mock/server"
6+
"github.com/smartcontractkit/chainlink-common/pkg/loop"
67
)
78

89
func main() {
9-
loopserver.Serve("MockCapability", server.New)
10+
loopserver.ServeNew("MockCapability", func(s *loop.Server) loop.StandardCapabilities {
11+
return server.New(s.Logger)
12+
})
1013
}

0 commit comments

Comments
 (0)