v0.2.1
v0.2.1 Release - 5 July 2024
This release adds support for Chainlink Data Feeds to Chainlink Local.
Documentation for this release is available at:
- https://cll-devrel.gitbook.io/chainlink-local-documentation/api-reference/mockv3aggregator.sol-api
- https://cll-devrel.gitbook.io/chainlink-local-documentation/api-reference/mockoffchainaggregator.sol-api
Testing the release
To test this release install @chainlink-local
using the following commands:
Foundry (git)
forge install smartcontractkit/[email protected]
and then set remappings to: @chainlink/local/=lib/chainlink-local/
in either remappings.txt
or foundry.toml
file
Hardhat (npm)
npm install @chainlink/[email protected]
and then create the following contract and compile it:
pragma solidity ^0.8.0;
import {MockV3Aggregator} from "@chainlink/local/src/data-feeds/MockV3Aggregator.sol";
Remix IDE
pragma solidity ^0.8.0;
import {MockV3Aggregator} from "https://github.com/smartcontractkit/chainlink-local/blob/v0.2.1/src/data-feeds/MockV3Aggregator.sol";
Changelog
Dependencies
Package | Version |
---|---|
@chainlink/contracts-ccip | 1.4.0 |
@chainlink/contracts | 1.1.1 |
Services
- Chainlink CCIP
- Chainlink Data Feeds
- Chainlink VRF 2
- Chainlink VRF 2.5
Added
- Support for Chainlink Data Feeds by adding
MockV3Aggregator.sol
andMockOffchainAggregator.sol
mock contracts - Showcase tests for testing in a forking actual networks environment