smartcontractkit / smartcontractkit/chainlink
How to import the KeeperCompatibleInterface.sol file of version 0.5.16
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 8.2k
- Forks
- 2k
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 202
Description
The solidity compiler version I use in VS code is 0.5.16,
So in the solidity contract code I can't use this line of code to import
import "@chainlink/contracts/src/v0.8/interfaces/KeeperCompatibleInterface.sol";
Because the /v0.8/ version of the KeeperCompatibleInterface.sol file is used here,
So i must use the KeeperCompatibleInterface.sol file version 0.5.16,
So how to modify this line of code that imports the KeeperCompatibleInterface.sol file?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Solidity 0.5.16 constraint and the referenced import path, @chainlink/contracts/src/v0.8/interfaces/KeeperCompatibleInterface.sol. Check the available KeeperCompatibleInterface.sol version and import conventions; done means documenting whether a 0.5.16-compatible file can be imported and showing the correct path if one exists.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- solidity
- Domain
- blockchain
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100