https://github.com/e00dan/chainlink-nervos
Chainlink Oracles on Nervos Layer 2 EVM
https://github.com/e00dan/chainlink-nervos
Last synced: about 1 year ago
JSON representation
Chainlink Oracles on Nervos Layer 2 EVM
- Host: GitHub
- URL: https://github.com/e00dan/chainlink-nervos
- Owner: e00dan
- Created: 2021-09-10T19:47:25.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-13T21:42:58.000Z (almost 5 years ago)
- Last Synced: 2025-04-13T09:08:24.147Z (about 1 year ago)
- Language: Solidity
- Size: 345 KB
- Stars: 4
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Chainlink Oracles on Nervos Layer 2
This project is a simple implementation of some of the Chainlink contracts on Nervos. This repository is using Ether.js + Hardhat + Typechain + TypeScript.
Existing aggregators / feeds:
- CKB / USD
- ETH / USD
- DAI / ETH
Feed Registry address on Nervos Layer 2 testnet: `0x1363bdCE312532F864e84924D54c7dA5eDB5B1BC`
Documentation: https://docs.chain.link/docs/feed-registry/
Solidity interface: https://github.com/smartcontractkit/chainlink/blob/7289ac78fceeb995fec8f74415bb282a3ad43b66/contracts/src/v0.7/interfaces/FeedRegistryInterface.sol
Denominations can be found in: DeployOracles.ts file.
## Install & build
```
yarn
```
Build:
```
yarn build
// Contracts only
yarn compile
// TypeScript only
yarn build:types && yarn build:ts
```
## Start
Before usage you need to provide correct values for:
```
const USER_ONE_PRIVATE_KEY = 'YOUR_PRIVATE_KEY';
const ETH_MAINNET_RPC = 'YOUR_ETH_MAINNET_RPC_EG_INFURA';
const COINAPI_KEY = 'YOUR_COINAPI_KEY'; // https://www.coinapi.io/
```
in DeployOracles.ts
```
yarn start
```