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
52 changes: 51 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,55 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.3.0] - 5 October 2026

Chainlink Local V3, the stable release of `0.3.0-beta` and `0.3.0-beta.0` (no changes since `0.3.0-beta.0`). This is a
**breaking** release: `CCIPLocalSimulatorFork` and the Hardhat 3 JavaScript fork helper now support CCIP 2.0
(CCV-based) lanes alongside the pre-1.6 and 1.6 eras. Hardhat 2 users stay on `0.2.x`. See
[0.3.0-beta](#030-beta---28-september-2026) for the full list of changes, known limitations and the
**migration guide (0.2.x -> 0.3.0)**.

#### Support matrix

| Environment | 0.3.x (V3) | 0.2.x |
| --- | --- | --- |
| Foundry (Solidity tests, local + fork) | Supported | Supported |
| Hardhat 3 (Solidity tests, local + fork) | Supported | - |
| Hardhat 3 (JavaScript/TypeScript, `scripts/*.js` helpers) | Supported (ESM, `@nomicfoundation/hardhat-ethers`) | - |
| Hardhat 2 | Not supported: the contracts do not compile (`HH411`) | Supported (pre-1.6 fork routing only) |
| Remix IDE (local mode) | Supported | Supported |

### Dependencies

| Package | Version |
| ------------------------- | ------- |
| @chainlink/contracts-ccip | 2.0.0 |
| @chainlink/contracts | 1.5.0 |

### Breaking changes

- `@chainlink/contracts-ccip` 1.6.2 -> 2.0.0: finality values moved from `uint16` block confirmations to a `bytes4`
`FinalityCodec` config (`GenericExtraArgsV3`, `MessageV1`, receiver and token pool APIs).
- Default `V2VerificationMode` is now `OFFRAMP_DERIVED` (was `HYBRID`).
- Fork routing is strict by default: unroutable or failing messages revert (`setStrictRouting(false)` to opt out).
- Fast Transfer delivery, and local mode, follow the CCIP 2.0 OnRamp/OffRamp rules.
- Fork mode needs `evm_version = "cancun"` or later and Foundry >= 1.5.1.
- `src/vendor/**` and the shipped `abi/*.json` files were removed.
- Hardhat JavaScript helpers target Hardhat 3 (ES modules); Hardhat 2 is no longer supported.

### Added

- CCIP 2.0 routing in `CCIPLocalSimulatorFork` and the Hardhat 3 JavaScript helper, `getMessageStatus`,
`setStrictRouting`, CCIP 2.0 router lookups (`getCCIPV2RouterAddress` / `setCCIPV2RouterAddress`),
`CCIPLocalRouter`, TypeScript declarations for the JavaScript helper, and a CI workflow.

### Fixed

- `Register` network details are split into data shards (`RegisterData.sol`) so every generated contract stays under
the EIP-170 runtime limit (from `0.3.0-beta.0`).
- CCV selection, 1.6 destination-fork routing, `CCIPLocalSimulatorFork` deployment gas (~36M -> ~14.4M) and npm
package compilation for Hardhat 3 and npm-based Foundry consumers (from `0.3.0-beta`).

## [0.3.0-beta.0] - 29 September 2026

### Dependencies
Expand Down Expand Up @@ -1021,4 +1070,5 @@ to the tag.
[0.2.9-beta.0]: https://github.com/smartcontractkit/chainlink-local/releases/tag/v0.2.9-beta.0
[0.2.9]: https://github.com/smartcontractkit/chainlink-local/releases/tag/v0.2.9
[0.3.0-beta]: https://github.com/smartcontractkit/chainlink-local/releases/tag/v0.3.0-beta
[0.3.0-beta.0]: https://github.com/smartcontractkit/chainlink-local/releases/tag/v0.3.0-beta.0
[0.3.0-beta.0]: https://github.com/smartcontractkit/chainlink-local/releases/tag/v0.3.0-beta.0
[0.3.0]: https://github.com/smartcontractkit/chainlink-local/releases/tag/v0.3.0
23 changes: 16 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,27 @@ To view more detailed documentation and more examples, visit the [Chainlink Loca

### Installation

`0.3.x` (V3) is published under the `beta` npm tag until the stable release; plain `npm install @chainlink/local` and the
default `main` branch still give `0.2.x`. Pin the version:
`0.3.x` (V3) supports Foundry, Hardhat 3 and Remix IDE. Hardhat 2 users should stay on `0.2.x`
(`npm install @chainlink/local@0.2.9`).

#### Foundry (git)

```
forge install smartcontractkit/chainlink-local@v0.3.0-beta
forge install smartcontractkit/chainlink-local@v0.3.0
```

and then set remappings to: `@chainlink/local/=lib/chainlink-local/` in either `remappings.txt` or `foundry.toml` file

#### Foundry (soldeer)

```
forge soldeer install chainlink-local~v0.3.0-beta https://github.com/smartcontractkit/chainlink-local.git
forge soldeer install chainlink-local~v0.3.0 https://github.com/smartcontractkit/chainlink-local.git
```

#### Hardhat 3 (npm)

```
npm install @chainlink/local@0.3.0-beta
npm install @chainlink/local@0.3.0
```

Hardhat 3 (Node.js 22) Solidity tests need no remappings: the package ships its own `remappings.txt`, and its
Expand Down Expand Up @@ -97,7 +97,7 @@ forge-std/=node_modules/forge-std/src/
#### Remix IDE (local mode)

```solidity
import "https://github.com/smartcontractkit/chainlink-local/blob/v0.3.0-beta/src/ccip/CCIPLocalSimulator.sol";
import "https://github.com/smartcontractkit/chainlink-local/blob/v0.3.0/src/ccip/CCIPLocalSimulator.sol";
```

Remix resolves the `@chainlink/contracts` and `@chainlink/contracts-ccip` imports to their latest npm versions.
Expand All @@ -122,6 +122,8 @@ import {
BurnMintERC677Helper
} from "@chainlink/local/src/ccip/CCIPLocalSimulator.sol";
import {Client} from "@chainlink/contracts-ccip/contracts/libraries/Client.sol";
import {ExtraArgsCodec} from "@chainlink/contracts-ccip/contracts/libraries/ExtraArgsCodec.sol";
import {FinalityCodec} from "@chainlink/contracts-ccip/contracts/libraries/FinalityCodec.sol";

contract ReadmeUsageExampleTest is Test {
CCIPLocalSimulator public ccipLocalSimulator;
Expand All @@ -148,11 +150,18 @@ contract ReadmeUsageExampleTest is Test {

Client.EVMTokenAmount[] memory tokenAmounts = new Client.EVMTokenAmount[](1);
tokenAmounts[0] = Client.EVMTokenAmount({token: address(ccipBnM), amount: 1 ether});

// Fast Transfers example with 5 block confirmations
uint32 gasLimit = 0;
uint16 blockConfirmations = 5;
bytes4 finalityConfig = FinalityCodec._encodeBlockDepth(blockConfirmations);
bytes memory extraArgsBytes = ExtraArgsCodec._getBasicEncodedExtraArgsV3(gasLimit, finalityConfig);

Client.EVM2AnyMessage memory message = Client.EVM2AnyMessage({
receiver: abi.encode(bob),
data: "",
tokenAmounts: tokenAmounts,
extraArgs: Client._argsToBytes(Client.GenericExtraArgsV2({gasLimit: 0, allowOutOfOrderExecution: true})),
extraArgs: extraArgsBytes,
feeToken: address(linkToken)
});

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@chainlink/local",
"description": "Chainlink Local Simulator",
"license": "MIT",
"version": "0.3.0-beta.0",
"version": "0.3.0",
"type": "module",
"files": [
"src/**/*.sol",
Expand Down
Loading