Skip to content
Merged
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
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ generate: protoc mockery gomods ## Execute all go:generate commands (including p
## Updating PATH makes sure that go:generate uses the version of protoc installed by the protoc make command.
export PATH="$(HOME)/.local/bin:$(PATH)"; gomods -w go generate -x ./...

.PHONY: update-common-capabilities
update-common-capabilities: ## Update chain_capabilities/common in aptos/evm/solana. Usage: make update-common-capabilities REF=<branch-or-commit>
./script/update-common-capabilities.sh $(REF)
.PHONY: update-chain-capabilities
update-chain-capabilities: ## Update a Go module in aptos/evm/solana/stellar. Usage: make update-chain-capabilities MODULE=<module> REF=<branch-or-commit>
./script/update-chain-capabilities.sh "$(MODULE)" "$(REF)"

.PHONY: help
help: ## Display this help screen.
Expand Down
4 changes: 2 additions & 2 deletions chain_capabilities/aptos/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ go 1.27.1
require (
github.com/aptos-labs/aptos-go-sdk v1.12.1
github.com/smartcontractkit/capabilities/chain_capabilities/common v0.0.0-20260922114021-5cee95428866
github.com/smartcontractkit/capabilities/libs v0.0.0-20260922114021-5cee95428866
github.com/smartcontractkit/capabilities/libs v0.0.0-20261001142216-b1dea8dbb961
github.com/smartcontractkit/chain-selectors v1.0.104
github.com/smartcontractkit/chainlink-aptos v0.0.0-20260506112908-f0d993b5bd6d
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260917115705-1d3a14a9b049
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260925190414-e1b87ad2d7b1
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20260821155228-fa1d775e2138
github.com/smartcontractkit/libocr v0.0.0-20260810200708-618b5bf7f342
github.com/stretchr/testify v1.12.1
Expand Down
8 changes: 4 additions & 4 deletions chain_capabilities/aptos/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion chain_capabilities/aptos/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ func (c *capabilityGRPCService) Initialise(ctx context.Context, dependencies cor
ContractConfigLoadTimeout: 10 * time.Second,
DefaultMaxDurationInitialization: 10 * time.Second,
},
ReportingPluginFactoryService: oracle.NewReportingPluginFactory(logger.Sugared(c.lggr), c.consensusHandler, c.heightProvider, consensusMetrics),
ReportingPluginFactoryService: oracle.NewReportingPluginFactory(logger.Sugared(c.lggr), c.consensusHandler, c.heightProvider, consensusMetrics, c.limitsFactory),
ContractTransmitter: oracle.NewContractTransmitter(c.lggr, c.consensusHandler),
})
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions chain_capabilities/evm/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ require (
github.com/ethereum/go-ethereum v1.17.4
github.com/google/go-cmp v0.7.0
github.com/smartcontractkit/capabilities/chain_capabilities/common v0.0.0-20260922114021-5cee95428866
github.com/smartcontractkit/capabilities/libs v0.0.0-20260922114021-5cee95428866
github.com/smartcontractkit/capabilities/libs v0.0.0-20261001142216-b1dea8dbb961
github.com/smartcontractkit/chain-selectors v1.0.111
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260917115705-1d3a14a9b049
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260925190414-e1b87ad2d7b1
github.com/smartcontractkit/chainlink-evm v0.3.4-0.20260917132551-2a2b38e8b744
github.com/smartcontractkit/chainlink-evm/gethwrappers v0.0.0-20260512150409-b4068bf735e6
github.com/smartcontractkit/chainlink-framework/multinode v0.0.0-20260521164805-26d78d5e1243
Expand Down
8 changes: 4 additions & 4 deletions chain_capabilities/evm/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion chain_capabilities/evm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func (c *capabilityGRPCService) Initialise(ctx context.Context, dependencies cor
ContractConfigLoadTimeout: time.Second * 10,
DefaultMaxDurationInitialization: time.Second * 10,
},
ReportingPluginFactoryService: oracle.NewReportingPluginFactory(logger.Sugared(c.lggr), c.consensusHandler, c.heightProvider, consensusMetrics),
ReportingPluginFactoryService: oracle.NewReportingPluginFactory(logger.Sugared(c.lggr), c.consensusHandler, c.heightProvider, consensusMetrics, c.limitsFactory),
ContractTransmitter: oracle.NewContractTransmitter(c.lggr, c.consensusHandler),
})
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions chain_capabilities/solana/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ require (
github.com/google/go-cmp v0.7.0
github.com/mr-tron/base58 v1.2.0
github.com/smartcontractkit/capabilities/chain_capabilities/common v0.0.0-20260922114021-5cee95428866
github.com/smartcontractkit/capabilities/libs v0.0.0-20260922114021-5cee95428866
github.com/smartcontractkit/capabilities/libs v0.0.0-20261001142216-b1dea8dbb961
github.com/smartcontractkit/chain-selectors v1.0.104
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260917115705-1d3a14a9b049
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260925190414-e1b87ad2d7b1
github.com/smartcontractkit/chainlink-framework/multinode v0.0.0-20260521164805-26d78d5e1243
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20260821155228-fa1d775e2138
github.com/smartcontractkit/chainlink-solana v1.3.1-0.20260917175559-f7d4a86019d4
Expand Down
8 changes: 4 additions & 4 deletions chain_capabilities/solana/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion chain_capabilities/solana/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ func (c *capabilityGRPCService) Initialise(ctx context.Context, dependencies cor
ContractConfigLoadTimeout: time.Second * 10,
DefaultMaxDurationInitialization: time.Second * 10,
},
ReportingPluginFactoryService: oracle.NewReportingPluginFactory(logger.Sugared(c.lggr), c.consensusHandler, noopBlocksProvider{}, consensusMetrics),
ReportingPluginFactoryService: oracle.NewReportingPluginFactory(logger.Sugared(c.lggr), c.consensusHandler, noopBlocksProvider{}, consensusMetrics, c.limitsFactory),
ContractTransmitter: oracle.NewContractTransmitter(c.lggr, c.consensusHandler),
})
if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions chain_capabilities/stellar/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ go 1.27.1

require (
github.com/smartcontractkit/capabilities/chain_capabilities/common v0.0.0-20260922114021-5cee95428866
github.com/smartcontractkit/capabilities/libs v0.0.0-20260922114021-5cee95428866
github.com/smartcontractkit/capabilities/libs v0.0.0-20261001142216-b1dea8dbb961
github.com/smartcontractkit/chain-selectors v1.0.104
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260917115705-1d3a14a9b049
github.com/smartcontractkit/chainlink-common v0.11.2-0.20260925190414-e1b87ad2d7b1
github.com/smartcontractkit/chainlink-framework/multinode v0.0.0-20260521164805-26d78d5e1243
github.com/smartcontractkit/chainlink-protos/cre/go v0.0.0-20260821155228-fa1d775e2138
github.com/smartcontractkit/libocr v0.0.0-20260810200708-618b5bf7f342
Expand Down
8 changes: 4 additions & 4 deletions chain_capabilities/stellar/go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion chain_capabilities/stellar/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func (c *capabilityGRPCService) Initialise(ctx context.Context, dependencies cor
ContractConfigLoadTimeout: time.Second * 10,
DefaultMaxDurationInitialization: time.Second * 10,
},
ReportingPluginFactoryService: oracle.NewReportingPluginFactory(logger.Sugared(c.lggr), c.consensusHandler, c.blocksProvider, consensusMetrics),
ReportingPluginFactoryService: oracle.NewReportingPluginFactory(logger.Sugared(c.lggr), c.consensusHandler, c.blocksProvider, consensusMetrics, c.limitsFactory),
ContractTransmitter: oracle.NewContractTransmitter(c.lggr, c.consensusHandler),
})
if err != nil {
Expand Down
45 changes: 45 additions & 0 deletions script/update-chain-capabilities.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
#!/usr/bin/env bash
set -euo pipefail

usage() {
cat >&2 <<EOF
Usage: make update-chain-capabilities MODULE=<module> REF=<branch-or-commit>
or: $0 <module> <branch-or-commit>

MODULE Go module path to update in each chain capability
REF Branch name, tag, or commit SHA to pin the module to

Examples:
make update-chain-capabilities MODULE=github.com/smartcontractkit/chainlink-common REF=main
make update-chain-capabilities MODULE=github.com/smartcontractkit/capabilities/libs REF=my-feature-branch
make update-chain-capabilities MODULE=github.com/smartcontractkit/chainlink-common REF=1d3a14a9b049
EOF
exit 1
}

MODULE="${1:-}"
REF="${2:-}"

if [ -z "$MODULE" ]; then
echo "ERROR: missing MODULE" >&2
usage
fi
if [ -z "$REF" ]; then
echo "ERROR: missing REF" >&2
usage
fi

REPO_ROOT="$(cd "$(dirname "$0")/.." && pwd)"

for chain in aptos evm solana stellar; do
dir="${REPO_ROOT}/chain_capabilities/${chain}"
if [ ! -f "${dir}/go.mod" ]; then
echo "SKIP: ${dir}/go.mod not found"
continue
fi
echo "Updating ${chain}..."
(cd "$dir" && go get "${MODULE}@${REF}" && go mod tidy)
echo "Done: ${chain}"
done

echo "All done."
19 changes: 0 additions & 19 deletions script/update-common-capabilities.sh

This file was deleted.

Loading