Skip to content

Commit

Permalink
Merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
valerii-kabisov-cll committed Oct 11, 2024
1 parent bdc1774 commit feebf7b
Show file tree
Hide file tree
Showing 248 changed files with 5,615 additions and 26,129 deletions.
14 changes: 11 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
run:
timeout: 15m0s
# TODO: For passing Chainlink merge, remove after release
skip-dirs:
- core/services/llo
- core/services/ocr2/plugins/llo
- core/capabilities/targets
- core/services/relay/evm
- core/chains/evm/client
- core/services/versioning
linters:
enable:
- exhaustive
Expand Down Expand Up @@ -71,10 +79,10 @@ linters-settings:
- name: error-return
- name: error-strings
- name: error-naming
- name: exported
# - name: exported
- name: if-return
- name: increment-decrement
- name: var-naming
# - name: var-naming
- name: var-declaration
- name: package-comments
- name: range
Expand All @@ -93,7 +101,7 @@ linters-settings:
- name: struct-tag
# - name: string-format
- name: string-of-int
- name: range-val-address
# - name: range-val-address
- name: range-val-in-closure
- name: modifies-value-receiver
- name: modifies-parameter
Expand Down
4 changes: 0 additions & 4 deletions .mockery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,6 @@ packages:
github.com/smartcontractkit/chainlink/v2/core/bridges:
interfaces:
ORM:
github.com/smartcontractkit/chainlink/v2/core/capabilities/ccip/types:
interfaces:
CCIPOracle:
OracleCreator:
github.com/smartcontractkit/chainlink/v2/core/capabilities/remote/types:
interfaces:
Dispatcher:
Expand Down
1,429 changes: 762 additions & 667 deletions contracts/gas-snapshots/ccip.gas-snapshot

Large diffs are not rendered by default.

467 changes: 318 additions & 149 deletions contracts/pnpm-lock.yaml

Large diffs are not rendered by default.

41 changes: 28 additions & 13 deletions contracts/scripts/native_solc_compile_all_ccip
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,24 @@ compileContract () {
echo "OffRamp uses $OPTIMIZE_RUNS_OFFRAMP optimizer runs."
optimize_runs=$OPTIMIZE_RUNS_OFFRAMP
;;
"ccip/offRamp/EVM2EVMMultiOffRamp.sol")
"ccip/offRamp/OffRamp.sol")
echo "MultiOffRamp uses $OPTIMIZE_RUNS_MULTI_OFFRAMP optimizer runs."
optimize_runs=$OPTIMIZE_RUNS_MULTI_OFFRAMP
;;
"ccip/onRamp/EVM2EVMOnRamp.sol")
echo "OnRamp uses $OPTIMIZE_RUNS_ONRAMP optimizer runs."
optimize_runs=$OPTIMIZE_RUNS_ONRAMP
;;
"ccip/test/helpers/CCIPReaderTester.sol")
echo "CCIPReaderTester uses 1 optimizer runs for reduced contract size."
optimize_runs=1
;;
esac

solc --overwrite --optimize --optimize-runs $optimize_runs --metadata-hash none \
-o "$ROOT"/contracts/solc/v$SOLC_VERSION/"$contract" \
--abi --bin --allow-paths "$ROOT"/contracts/src/v0.8 \
--bin-runtime --hashes --metadata --metadata-literal --combined-json abi,hashes,metadata,srcmap,srcmap-runtime \
--evm-version paris \
"$ROOT"/contracts/src/v0.8/"$1"
}
Expand All @@ -53,44 +58,54 @@ compileContract () {
# Solc produces and overwrites intermediary contracts.
# Contracts should be ordered in reverse-import-complexity-order to minimize overwrite risks.
compileContract ccip/offRamp/EVM2EVMOffRamp.sol
compileContract ccip/offRamp/EVM2EVMMultiOffRamp.sol
compileContract ccip/offRamp/OffRamp.sol
compileContract ccip/rmn/RMNRemote.sol
compileContract ccip/applications/PingPongDemo.sol
compileContract ccip/applications/SelfFundedPingPong.sol
compileContract ccip/applications/EtherSenderReceiver.sol
compileContract ccip/onRamp/EVM2EVMMultiOnRamp.sol
compileContract ccip/onRamp/OnRamp.sol
compileContract ccip/onRamp/EVM2EVMOnRamp.sol
compileContract ccip/CommitStore.sol
compileContract ccip/MultiAggregateRateLimiter.sol
compileContract ccip/Router.sol
compileContract ccip/PriceRegistry.sol
compileContract ccip/FeeQuoter.sol
compileContract ccip/RMN.sol
compileContract ccip/ARMProxy.sol
compileContract ccip/tokenAdminRegistry/TokenAdminRegistry.sol
compileContract ccip/tokenAdminRegistry/RegistryModuleOwnerCustom.sol
compileContract ccip/capability/CCIPHome.sol
compileContract ccip/NonceManager.sol
compileContract shared/token/ERC677/BurnMintERC677.sol


# Pools
compileContract ccip/pools/LockReleaseTokenPool.sol
compileContract ccip/pools/BurnMintTokenPool.sol
compileContract ccip/pools/BurnFromMintTokenPool.sol
compileContract ccip/pools/BurnWithFromMintTokenPool.sol
compileContract ccip/pools/LockReleaseTokenPoolAndProxy.sol
compileContract ccip/pools/BurnMintTokenPoolAndProxy.sol
compileContract ccip/pools/BurnWithFromMintTokenPoolAndProxy.sol
compileContract ccip/pools/BurnWithFromMintRebasingTokenPool.sol
compileContract ccip/pools/TokenPool.sol
compileContract shared/token/ERC677/BurnMintERC677.sol
compileContract ccip/RMN.sol
compileContract ccip/ARMProxy.sol
compileContract ccip/tokenAdminRegistry/TokenAdminRegistry.sol
compileContract ccip/tokenAdminRegistry/RegistryModuleOwnerCustom.sol
compileContract ccip/capability/CCIPConfig.sol
compileContract ccip/capability/interfaces/IOCR3ConfigEncoder.sol
compileContract ccip/NonceManager.sol


# Test helpers
compileContract ccip/test/helpers/BurnMintERC677Helper.sol
compileContract ccip/test/helpers/CommitStoreHelper.sol
compileContract ccip/test/helpers/MessageHasher.sol
compileContract ccip/test/helpers/CCIPReaderTester.sol
compileContract ccip/test/helpers/ReportCodec.sol
compileContract ccip/test/helpers/receivers/MaybeRevertMessageReceiver.sol
compileContract ccip/test/helpers/MultiOCR3Helper.sol
compileContract ccip/test/mocks/MockRMN1_0.sol
compileContract ccip/test/mocks/MockE2EUSDCTokenMessenger.sol
compileContract ccip/test/mocks/MockE2EUSDCTransmitter.sol
compileContract ccip/test/WETH9.sol


# Encoding Utils
compileContract ccip/interfaces/encodingutils/ICCIPEncodingUtils.sol

# Customer contracts
compileContract ccip/pools/USDC/USDCTokenPool.sol

Expand Down
2 changes: 1 addition & 1 deletion contracts/src/v0.8/ccip/CommitStore.sol
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ contract CommitStore is ICommitStore, ITypeAndVersion, OCR2Base {
}

// STATIC CONFIG
string public constant override typeAndVersion = "CommitStore 1.5.0-dev";
string public constant override typeAndVersion = "CommitStore 1.5.0";
// Chain ID of this chain
uint64 internal immutable i_chainSelector;
// Chain ID of the source chain
Expand Down
8 changes: 4 additions & 4 deletions contracts/src/v0.8/ccip/LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ Parameters

Licensor: SmartContract Chainlink Limited SEZC

Licensed Work: Cross-Chain Interoperability Protocol v1.4
Licensed Work: Cross-Chain Interoperability Protocol v1.5
The Licensed Work is (c) 2023 SmartContract Chainlink Limited SEZC

Additional Use Grant: Any uses listed and defined at [v1.4-CCIP-License-grants](
./v1.4-CCIP-License-grants)
Additional Use Grant: Any uses listed and defined at [v1.5-CCIP-License-grants](
./v1.5-CCIP-License-grants.md)

Change Date: May 23, 2027
Change Date: Aug 16, 2028

Change License: MIT

Expand Down
Loading

0 comments on commit feebf7b

Please sign in to comment.