The ScribeChainlinkLike
contract enables integrating Chronicle Protocol's oracle into immutable contracts that hardcoded Chainlink's decimals value.
Note that this contract is stateless and does not offer any configuration once deployed. Toll management is delegated to the respective Chronicle oracle.
Install module via Foundry:
$ forge install chronicleprotocol/scribe-chainlinklike
The project uses the Foundry toolchain. You can find installation instructions here.
Setup:
$ git clone https://github.com/chronicleprotocol/scribe-chainlinklike
$ cd scribe-chainlinklike/
$ forge install
Run tests:
Note to set the expected RPC URLs environment variables, see .env.example
.
$ forge test
$ forge test -vvvv # Run with full stack traces
Lint:
$ forge fmt [--check]