|
1 | 1 | # Boilerplate |
2 | 2 |
|
3 | | -## Scaffold Eth 2 + Chronicle |
| 3 | +## Scaffold-ETH2 + Chronicle |
| 4 | + |
| 5 | +<div style={{textAlign: 'center'}}> |
| 6 | +<img |
| 7 | + src="/img/Developers/Boilerplate/OracleReader.png" |
| 8 | + alt="Oracle Reader" |
| 9 | +/> |
| 10 | +</div> |
4 | 11 |
|
5 | 12 | :::info |
6 | | -Please be aware that, as the project currently stands, you should use **Hardhat** in terms of programming environments, and deploy your contracts to the **Sepolia** network. |
| 13 | +Please be aware that, as the project currently stands, you should use **Foundry** in terms of programming environments, and deploy your contracts to the **Sepolia** network. |
7 | 14 | ::: |
8 | 15 |
|
9 | | -Please refer to the following [GitHub repo](https://github.com/chronicleprotocol/scaffold-oracle-reader) to take advantage of the boilerplate we have created in conjuction with Scaffold-Eth 2. |
| 16 | +Please refer to the following [GitHub Repo](https://github.com/chronicleprotocol/scaffold-oracle-reader) to take advantage of the boilerplate we have created in conjunction with [Scaffold-ETH2](https://scaffoldeth.io/). |
10 | 17 |
|
11 | 18 |
|
12 | 19 | To find our `OracleReader.sol` contract, follow the following path: |
13 | 20 |
|
14 | 21 | ``` |
15 | 22 | - packages |
16 | | - - hardhat |
| 23 | + - foundry |
17 | 24 | - contracts |
18 | 25 | - OracleReader.sol |
19 | 26 | ``` |
@@ -72,37 +79,25 @@ interface ISelfKisser { |
72 | 79 | Add your environment variables in the `.env.example` file and rename it to `.env`: |
73 | 80 | ``` |
74 | 81 | - packages |
75 | | - - hardhat |
| 82 | + - foundry |
76 | 83 | - .env.example |
77 | 84 | ``` |
78 | 85 |
|
79 | 86 | ```js |
80 | 87 | /* |
81 | | -* Template for Hardhat environment variables. |
| 88 | +* Template for environment variables. |
82 | 89 | * To use this template, copy this file, rename it .env, and fill in the values. |
83 | | -* If not set, we provide default values (check `hardhat.config.ts`) so developers can start prototyping out of the box, |
84 | | -* but we recommend getting your own API Keys for Production Apps. |
85 | | -* The Chronicle ETH/USD oracle on Sepolia. |
| 90 | +* The Chronicle ETH/USD Oracle on Sepolia. |
86 | 91 | */ |
87 | 92 |
|
88 | | -CHRONICLE_ORACLE=0xdd6D76262Fd7BdDe428dcfCd94386EbAe0151603 |
89 | | - |
90 | | -// The Chronicle SelfKisser contract on Sepolia. |
91 | | -SELF_KISSER=0x0Dcc19657007713483A5cA76e6A7bbe5f56EA37d |
92 | | - |
93 | | -// To access the values stored in this .env file you can use: process.env.VARIABLENAME |
94 | | -ALCHEMY_API_KEY= |
95 | 93 | DEPLOYER_PRIVATE_KEY= |
96 | 94 | ETHERSCAN_API_KEY= |
97 | | -``` |
98 | | -
|
99 | | -The ETH/USD oracle and self-kisser addresses have been added to the .env.example file. |
100 | | -
|
101 | | -If you would run a Sepolia fork, you can deploy the contract using: |
| 95 | +ALCHEMY_API_KEY= |
102 | 96 |
|
103 | | -```bash |
104 | | -yarn deploy --tags OracleReader |
| 97 | +# The Chronicle ETH/USD Oracle on Sepolia. |
| 98 | +CHRONICLE_ORACLE=0xdd6D76262Fd7BdDe428dcfCd94386EbAe0151603 |
| 99 | +# The Chronicle SelfKisser contract on Sepolia. |
| 100 | +SELF_KISSER=0x0Dcc19657007713483A5cA76e6A7bbe5f56EA37d |
105 | 101 | ``` |
106 | 102 |
|
107 | 103 |
|
108 | | -
|
0 commit comments