Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ import (
"github.com/smartcontractkit/chainlink/v2/core/capabilities/remote"
"github.com/smartcontractkit/chainlink/v2/core/capabilities/remote/types"
p2ptypes "github.com/smartcontractkit/chainlink/v2/core/services/p2p/types"
"github.com/smartcontractkit/chainlink/v2/core/utils/crelimits"
)

type srMetrics struct {
Expand Down Expand Up @@ -396,7 +397,7 @@ func executeCapabilityRequest(ctx context.Context, lggr logger.Logger, capabilit
// calling DON so it cannot be spoofed. All F+1 aggregated requests share this
// payload (WorkflowDonID is part of the request hash), so a single check here
// covers the quorum. The gate is guaranteed non-nil by NewServerRequest.
enabled, gerr := workflowDONBindingGate.Limit(ctx)
enabled, gerr := crelimits.GateOpen(ctx, workflowDONBindingGate)
if gerr != nil {
lggr.Errorw("failed to evaluate workflow DON binding gate", "err", gerr)
return nil, errors.New("failed to evaluate workflow DON binding gate")
Expand Down
3 changes: 2 additions & 1 deletion core/capabilities/vault/jwt_based_auth.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
"github.com/smartcontractkit/chainlink-common/pkg/services"
"github.com/smartcontractkit/chainlink-common/pkg/settings/cresettings"
"github.com/smartcontractkit/chainlink-common/pkg/settings/limits"
"github.com/smartcontractkit/chainlink/v2/core/utils/crelimits"
)

var (
Expand Down Expand Up @@ -220,7 +221,7 @@ func (v *jwtBasedAuth) close() error {

// AuthorizeRequest verifies JWTBasedAuth state and token claims, and returns a common AuthResult.
func (v *jwtBasedAuth) AuthorizeRequest(ctx context.Context, req jsonrpc.Request[json.RawMessage]) (*AuthResult, error) {
isEnabled, err := v.authEnabledGate.Limit(ctx)
isEnabled, err := crelimits.GateOpen(ctx, v.authEnabledGate)
if err != nil {
v.lggr.Errorw("failed to resolve JWTBasedAuth gate", "method", req.Method, "requestID", req.ID, "error", err)
return nil, fmt.Errorf("failed to resolve JWTBasedAuth gate: %w", err)
Expand Down
3 changes: 2 additions & 1 deletion core/capabilities/vault/zone_b_restriction.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"github.com/smartcontractkit/chainlink-common/pkg/settings/cresettings"
"github.com/smartcontractkit/chainlink-common/pkg/settings/limits"
"github.com/smartcontractkit/chainlink-common/pkg/types/core"
"github.com/smartcontractkit/chainlink/v2/core/utils/crelimits"
)

// zoneBFamily is the DON family (in the capabilities registry) identifying the
Expand Down Expand Up @@ -69,7 +70,7 @@ func newZoneBRestrictor(lggr logger.Logger, limitsFactory limits.Factory, capabi
// resolves to a zone-b DON. The owner is read from ctx, which must already carry
// the (normalized) CRE owner via RequestMetadata.ContextWithCRE.
func (z *zoneBRestrictor) enforce(ctx context.Context, workflowDonID uint32) error {
enabled, err := z.restrictEnabled.Limit(ctx)
enabled, err := crelimits.GateOpen(ctx, z.restrictEnabled)
if err != nil {
return fmt.Errorf("could not evaluate zone-b vault read restriction gate: %w", err)
}
Expand Down
1 change: 1 addition & 0 deletions core/platform/monitoring.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const (
KeyCapabilityID = "capabilityID"
KeyTriggerID = "triggerID"
KeyTriggerDropReason = "dropReason"
KeyLimitKey = "limitKey"
KeyWorkflowID = "workflowID"
KeyWorkflowExecutionID = "workflowExecutionID"
KeyWorkflowName = "workflowName"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module github.com/smartcontractkit/chainlink/core/scripts/cre/environment/examples/workflows/proof-of-reserve/cron-based

go 1.26.5
go 1.26.6

require (
github.com/ethereum/go-ethereum v1.17.1
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260722120418-c1a1e0e75034
github.com/ethereum/go-ethereum v1.17.4
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260825200504-fc83f018151a
github.com/smartcontractkit/chainlink-evm/gethwrappers v0.0.0-20251222115927-36a18321243c
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20260622152157-c8e129347b8b
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20260804191526-b7a850ae7648
github.com/smartcontractkit/cre-sdk-go v1.5.0
github.com/smartcontractkit/cre-sdk-go/capabilities/blockchain/evm v0.10.0
github.com/smartcontractkit/cre-sdk-go/capabilities/networking/http v1.3.0
Expand All @@ -28,11 +28,11 @@ require (
github.com/cloudevents/sdk-go/v2 v2.16.2 // indirect
github.com/cockroachdb/fifo v0.0.0-20240816210425-c5d0cb0b6fc0 // indirect
github.com/consensys/gnark-crypto v0.19.2 // indirect
github.com/crate-crypto/go-eth-kzg v1.4.0 // indirect
github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc // indirect
github.com/crate-crypto/go-eth-kzg v1.5.0 // indirect
github.com/deckarep/golang-set/v2 v2.8.0 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.4.0 // indirect
github.com/ethereum/c-kzg-4844/v2 v2.1.6 // indirect
github.com/fjl/jsonw v0.1.0 // indirect
github.com/fsnotify/fsnotify v1.9.0 // indirect
github.com/gabriel-vasile/mimetype v1.4.13 // indirect
github.com/go-logr/logr v1.4.3 // indirect
Expand Down Expand Up @@ -61,10 +61,7 @@ require (
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 // indirect
github.com/pelletier/go-toml v1.9.5 // indirect
github.com/pelletier/go-toml/v2 v2.2.4 // indirect
github.com/pion/dtls/v2 v2.2.12 // indirect
github.com/pion/transport/v2 v2.2.10 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/prometheus/client_golang v1.23.2 // indirect
github.com/prometheus/client_model v0.6.2 // indirect
github.com/prometheus/common v0.67.5 // indirect
Expand All @@ -74,9 +71,9 @@ require (
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 // indirect
github.com/shirou/gopsutil v3.21.11+incompatible // indirect
github.com/shopspring/decimal v1.4.0 // indirect
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.11-0.20260716165322-7f2edff6e954 // indirect
github.com/smartcontractkit/libocr v0.0.0-20260403184524-b6409238958d // indirect
github.com/stretchr/testify v1.11.1 // indirect
github.com/smartcontractkit/chainlink-common/pkg/chipingress v0.0.11-0.20260724142814-45996a1bcb72 // indirect
github.com/smartcontractkit/libocr v0.0.0-20260810200708-618b5bf7f342 // indirect
github.com/stretchr/testify v1.12.0 // indirect
github.com/supranational/blst v0.3.16 // indirect
github.com/syndtr/goleveldb v1.0.1-0.20220721030215-126854af5e6d // indirect
github.com/tklauser/go-sysconf v0.3.16 // indirect
Expand Down Expand Up @@ -107,12 +104,12 @@ require (
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.1 // indirect
go.yaml.in/yaml/v2 v2.4.4 // indirect
golang.org/x/crypto v0.52.0 // indirect
golang.org/x/crypto v0.53.0 // indirect
golang.org/x/exp v0.0.0-20260508232706-74f9aab9d74a // indirect
golang.org/x/net v0.55.0 // indirect
golang.org/x/sync v0.20.0 // indirect
golang.org/x/sys v0.45.0 // indirect
golang.org/x/text v0.37.0 // indirect
golang.org/x/sync v0.21.0 // indirect
golang.org/x/sys v0.46.0 // indirect
golang.org/x/text v0.38.0 // indirect
golang.org/x/time v0.15.0 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20260414002931-afd174a4e478 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20260414002931-afd174a4e478 // indirect
Expand Down
Loading
Loading