Skip to content

Commit

Permalink
Merge develop
Browse files Browse the repository at this point in the history
  • Loading branch information
b-gopalswami committed Jan 21, 2025
2 parents 1a0ef3c + 7ba8f9a commit 605db00
Show file tree
Hide file tree
Showing 393 changed files with 21,767 additions and 10,286 deletions.
5 changes: 5 additions & 0 deletions .changeset/hot-cats-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": minor
---

#added beholder metric to monitor TXMv2 transactions.
5 changes: 5 additions & 0 deletions .changeset/many-nails-explode.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

#added core configs
5 changes: 5 additions & 0 deletions .changeset/polite-spiders-tan.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": minor
---

#updated Move chainlink/common to chainlink-framework/chains.
5 changes: 5 additions & 0 deletions .changeset/poor-adults-tie.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": minor
---

#updated Explicitly use protoc installed in the makefile.
5 changes: 5 additions & 0 deletions .changeset/thin-emus-wait.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"chainlink": patch
---

fix solana client calls and update solana ref. #internal
19 changes: 17 additions & 2 deletions .github/actions/build-sign-publish-chainlink/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ inputs:
aws-region:
description: The AWS region the ECR repository is located in, should only be needed for public ECR repositories, used in configuring docker/login-action
required: false
git-tag-type:
description: The type of git tag (core or ccip)
default: core
required: false

# Inputs for signing
sign-images:
Expand All @@ -70,6 +74,9 @@ runs:
- name: Set shared variables
shell: bash
# See https://docs.github.com/en/actions/learn-github-actions/workflow-commands-for-github-actions#multiline-strings
env:
GIT_COMMIT_SHA: ${{ inputs.git-commit-sha }}
GIT_TAG_TYPE: ${{ inputs.git-tag-type }}
run: |
SHARED_IMAGES=${{ inputs.ecr-hostname }}/${{ inputs.ecr-image-name }}
OIDC_ISSUER=https://token.actions.githubusercontent.com
Expand All @@ -82,10 +89,18 @@ runs:
EOF
)
SHARED_BUILD_ARGS=$(cat << EOF
COMMIT_SHA=${{ inputs.git-commit-sha }}
if [[ "${GIT_TAG_TYPE}" = "ccip" ]]; then
SHARED_BUILD_ARGS=$(cat << EOF
COMMIT_SHA=${GIT_COMMIT_SHA}
CL_CHAIN_DEFAULTS=/chainlink/ccip-config
EOF
)
else
SHARED_BUILD_ARGS=$(cat << EOF
COMMIT_SHA=${GIT_COMMIT_SHA}
EOF
)
fi
echo "shared-images<<EOF" >> $GITHUB_ENV
echo "$SHARED_IMAGES" >> $GITHUB_ENV
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/golangci-lint/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ inputs:
outputs:
golang-report-artifact-url:
description: The URL to the uploaded artifact
value: ${{ steps.upload-artifact.outputs.artifact_url }}
value: ${{ steps.upload-artifact.outputs.artifact-url }}

runs:
using: composite
Expand Down
17 changes: 17 additions & 0 deletions .github/integration-in-memory-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,21 @@ runner-test-matrix:
- PR Integration CCIP Tests
test_cmd: cd integration-tests/ && go test smoke/ccip/ccip_token_transfer_test.go -timeout 16m -test.parallel=1 -count=1 -json

- id: smoke/ccip/ccip_cs_update_rmn_config_test.go:*
path: integration-tests/smoke/ccip/ccip_cs_update_rmn_config_test.go
test_env_type: in-memory
runs_on: ubuntu-latest
triggers:
- PR Integration CCIP Tests
test_cmd: cd integration-tests/ && go test smoke/ccip/ccip_cs_update_rmn_config_test.go -timeout 20m -test.parallel=1 -count=1 -json

- id: smoke/ccip/ccip_cs_rmn_curse_uncurse_test.go:*
path: integration-tests/smoke/ccip/ccip_cs_rmn_curse_uncurse_test.go
test_env_type: in-memory
runs_on: ubuntu-latest
triggers:
- PR Integration CCIP Tests
test_cmd: cd integration-tests/ && go test smoke/ccip/ccip_cs_rmn_curse_uncurse_test.go -timeout 10m -test.parallel=1 -count=1 -json


# END: CCIP tests
1 change: 1 addition & 0 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ jobs:
dockerhub_password: ${{ secrets.DOCKERHUB_READONLY_PASSWORD }}
sign-images: true
verify-signature: true
git-tag-type: ${{ needs.checks.outputs.git-tag-type }}

- name: Attest Docker image
uses: actions/attest-build-provenance@6149ea5740be74af77f260b9db67e633f6b0a9a1 # v1.4.2
Expand Down
15 changes: 12 additions & 3 deletions .mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,24 @@ mockname: "{{ .InterfaceName }}"
outpkg: mocks
filename: "{{ .InterfaceName | snakecase }}.go"
packages:
github.com/smartcontractkit/chainlink/v2/common/headtracker:
github.com/smartcontractkit/chainlink-framework/chains/headtracker:
config:
dir: common/headtracker/mocks
outpkg: mocks
interfaces:
HeadTrackable:
HeadTracker:
HeadBroadcaster:
github.com/smartcontractkit/chainlink/v2/common/txmgr:
github.com/smartcontractkit/chainlink-framework/chains/txmgr:
config:
dir: common/txmgr/mocks
outpkg: mocks
interfaces:
TxManager:
github.com/smartcontractkit/chainlink/v2/common/txmgr/types:
github.com/smartcontractkit/chainlink-framework/chains/txmgr/types:
config:
dir: common/txmgr/types/mocks
outpkg: mocks
interfaces:
ReaperChainConfig:
config:
Expand Down
5 changes: 3 additions & 2 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ abigen: ## Build & install abigen.

.PHONY: generate
generate: abigen codecgen mockery protoc gomods ## Execute all go:generate commands.
gomods -w go generate -x ./...
## 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 ./...
find . -type f -name .mockery.yaml -execdir mockery \; ## Execute mockery for all .mockery.yaml files

.PHONY: rm-mocked
Expand Down Expand Up @@ -147,7 +148,7 @@ testdb-user-only: ## Prepares the test database with user only.

.PHONY: gomods
gomods: ## Install gomods
go install github.com/jmank88/[email protected].4
go install github.com/jmank88/[email protected].5

.PHONY: gomodslocalupdate
gomodslocalupdate: gomods ## Run gomod-local-update
Expand Down
14 changes: 0 additions & 14 deletions ccip/config/evm/Astar_Shibuya.toml

This file was deleted.

5 changes: 0 additions & 5 deletions ccip/config/evm/Avalanche_ANZ_testnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,3 @@ PriceMin = '25 gwei'

[GasEstimator.BlockHistory]
BlockHistorySize = 24

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/Avalanche_Fuji.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,3 @@ PriceDefault = '1 gwei'

[GasEstimator.BlockHistory]
BlockHistorySize = 24

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/Avalanche_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,3 @@ PriceDefault = '1 gwei'
[GasEstimator.BlockHistory]
# Average block time of 2s
BlockHistorySize = 24

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/BOB_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,3 @@ CacheTimeout = '4s'

[GasEstimator.BlockHistory]
BlockHistorySize = 100

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/BOB_Testnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,3 @@ CacheTimeout = '4s'

[GasEstimator.BlockHistory]
BlockHistorySize = 100

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/BSC_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,3 @@ ObservationGracePeriod = '500ms'

[NodePool]
SyncThreshold = 10

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
2 changes: 0 additions & 2 deletions ccip/config/evm/BSC_Testnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ BlockHistorySize = 24
[HeadTracker]
HistoryDepth = 100
SamplingInterval = '1s'
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false

[OCR]
Expand Down
3 changes: 0 additions & 3 deletions ccip/config/evm/Base_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ ResendAfterThreshold = '30s'

[HeadTracker]
HistoryDepth = 300
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false

[NodePool]
SyncThreshold = 10
Expand Down
3 changes: 0 additions & 3 deletions ccip/config/evm/Base_Sepolia.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,6 @@ ResendAfterThreshold = '30s'

[HeadTracker]
HistoryDepth = 300
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false

[NodePool]
SyncThreshold = 10
Expand Down
5 changes: 0 additions & 5 deletions ccip/config/evm/Berachain_Testnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,3 @@ CacheTimeout = '10s'

[GasEstimator.BlockHistory]
BlockHistorySize = 100

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
28 changes: 1 addition & 27 deletions ccip/config/evm/Blast_Mainnet.toml
Original file line number Diff line number Diff line change
@@ -1,37 +1,11 @@
ChainID = '81457'
FinalityDepth = 200
FinalityTagEnabled = true
ChainType = 'optimismBedrock'
# block rate is ~2sec, so this ensures blocks are polled correctly
LogPollInterval = '2s'

[GasEstimator]
EIP1559DynamicFees = true
BumpThreshold = 60
BumpPercent = 20
BumpMin = '100 wei'
PriceMax = '120 gwei'
LimitDefault = 8000000
FeeCapDefault = '120 gwei'

[GasEstimator.BlockHistory]
# Default is 24, which leads to bumpy gas prices. In CCIP
# we want to smooth out the gas prices, so we increase the sample size.
BlockHistorySize = 200
# The formula for FeeCap is (current block base fee * (1.125 ^ EIP1559FeeCapBufferBlocks) + tipcap)
# where tipcap is managed by the block history estimators. In the context of CCIP,
# the gas price is relayed to other changes for quotes so we want accurate/avg not pessimistic values.
# the gas price is relayed to other chains for quotes so we want accurate/avg not pessimistic values.
# So we set this to zero so FeeCap = baseFee + tipcap.
EIP1559FeeCapBufferBlocks = 0

[HeadTracker]
HistoryDepth = 300
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false

[NodePool]
# 4 block sync time between nodes to ensure they aren't labelled unreachable too soon
PollFailureThreshold = 4
# polls every 4sec to check if there is a block produced, since blockRate is ~3sec
PollInterval = '4s'
26 changes: 0 additions & 26 deletions ccip/config/evm/Blast_Sepolia.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
ChainID = '168587773'
FinalityDepth = 200
FinalityTagEnabled = true
ChainType = 'optimismBedrock'
# block rate is ~2sec, so this ensures blocks are polled correctly
LogPollInterval = '2s'

[GasEstimator]
EIP1559DynamicFees = true
BumpThreshold = 60
BumpPercent = 20
BumpMin = '100 wei'
PriceMax = '120 gwei'
LimitDefault = 8000000
FeeCapDefault = '120 gwei'

[GasEstimator.BlockHistory]
# Default is 24, which leads to bumpy gas prices. In CCIP
Expand All @@ -23,15 +9,3 @@ BlockHistorySize = 200
# the gas price is relayed to other changes for quotes so we want accurate/avg not pessimistic values.
# So we set this to zero so FeeCap = baseFee + tipcap.
EIP1559FeeCapBufferBlocks = 0

[HeadTracker]
HistoryDepth = 300
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false

[NodePool]
# 4 block sync time between nodes to ensure they aren't labelled unreachable too soon
PollFailureThreshold = 4
# polls every 4sec to check if there is a block produced, since blockRate is ~3sec
PollInterval = '4s'
3 changes: 0 additions & 3 deletions ccip/config/evm/Celo_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,3 @@ BlockHistorySize = 12

[HeadTracker]
HistoryDepth = 50
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
11 changes: 11 additions & 0 deletions ccip/config/evm/Ethereum_Holesky.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ChainID = '17000'

[GasEstimator.BlockHistory]
# Default is 4!?, which leads to bumpy gas prices. In CCIP
# we want to smooth out the gas prices, so we increase the sample size.
BlockHistorySize = 200
# The formula for FeeCap is (current block base fee * (1.125 ^ EIP1559FeeCapBufferBlocks) + tipcap)
# where tipcap is managed by the block history estimators. In the context of CCIP,
# the gas price is relayed to other changes for quotes so we want accurate/avg not pessimistic values.
# So we set this to zero so FeeCap = baseFee + tipcap.
EIP1559FeeCapBufferBlocks = 0
5 changes: 0 additions & 5 deletions ccip/config/evm/Ethereum_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,3 @@ TransactionPercentile = 50

[OCR2.Automation]
GasLimit = 10500000

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/Ethereum_Sepolia.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,3 @@ TransactionPercentile = 50

[OCR2.Automation]
GasLimit = 10500000

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/Fantom_Mainnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,3 @@ Mode = 'SuggestedPrice'

[OCR2.Automation]
GasLimit = 3800000

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
5 changes: 0 additions & 5 deletions ccip/config/evm/Fantom_Testnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,3 @@ Mode = 'SuggestedPrice'

[OCR2.Automation]
GasLimit = 3800000

[HeadTracker]
# FinalityDepth < 1k => FinalityTagBypass = false
# https://smartcontract-it.atlassian.net/browse/SHIP-4078
FinalityTagBypass = false
Loading

0 comments on commit 605db00

Please sign in to comment.