Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

v0.8 AggregatorV3Interface.sol , its available in @chainlink/contracts?

I get a error when i change the version to 0.8 , but works fine with 0.6, how i see the most recent version? , i tried downloaded from npm install @chainlink/contracts --save, but only works with mock mode.

This is my repo: https://github.com/irwingtello/lottery

Compiling contracts... Solc version: 0.8.9 Optimizer: Enabled Runs: 200 EVM Version: Istanbul CompilerError: solc returned the following errors:

ParserError: Source "C:/Users/irwin/.brownie/packages/smartcontractkit/[email protected]/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol" not found: File not found. --> contracts/Lottery.sol:4:1: | 4 | import "@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol"; | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

ERROR: Unable to load project

like image 906
Irwing Tello Avatar asked Nov 03 '21 04:11

Irwing Tello


People also ask

What is chainlink mix?

This mix provides a simple template for working with Chainlink Smart Contracts. The easiest way to start is to fork the mainnet chain to a local ganache chain. This will allow you to deploy local smart contracts to interact with the Chainlink Price Feeds.


1 Answers

"As of 1.2.0 and onward all the releases of this package are going to match the @chainlink/contracts NPM tags So it will look backwards, but we are starting with 0.2.1"

Change: @chainlink=smartcontractkit/[email protected] To: @chainlink=smartcontractkit/[email protected]

https://github.com/smartcontractkit/chainlink-brownie-contracts/tree/v0.2.1

like image 171
Irwing Tello Avatar answered Oct 12 '22 19:10

Irwing Tello