@@ -30,6 +30,9 @@ It shows how to use the these frameworks and languages as well as the following
3030 - [ Deploy to a local or adhoc network] ( #deploy-to-a-local-or-adhoc-network )
3131 - [ Deploy to a mainnet or test network] ( #deploy-to-a-mainnet-or-test-network )
3232 - [ Interacting with Contracts] ( #interacting-with-contracts )
33+ - [ Price Feed Consumer] ( #price-feed-consumer-1 )
34+ - [ VRF Consumer] ( #vrf-consumer )
35+ - [ Keeper Consumer] ( #keeper-consumer )
3336- [ Miscellaneous] ( #miscellaneous )
3437 - [ Contributing] ( #contributing )
3538 - [ Resources] ( #resources )
@@ -189,6 +192,77 @@ To interact with contracts, we recommend using the console.
189192ape console --network ethereum:rinkeby:alchemy
190193```
191194
195+ Or, you can follow along and run the scripts to see the end-to-end functionaltiy.
196+
197+ #### Price Feed Consumer
198+
199+ 1 . Deploy the contract
200+
201+ ```
202+ ape run scripts/deploy_price_feed_consumer.py --network ethereum:rinkeby:alchemy
203+ ```
204+
205+ 2 . Read it
206+
207+ ```
208+ ape run scripts/read_price_feed.py --network ethereum:rinkeby:alchemy
209+ ```
210+
211+
212+
213+ #### VRF Consumer
214+
215+ 1 . Create subscription and fund it with LINK.
216+
217+ You can do that with the script, or going to the UI at [ vrf.chain.link] ( https://vrf.chain.link )
218+
219+ ```
220+ ape run scripts/create_subscription.py --network ethereum:rinkeby:alchemy
221+ ```
222+
223+ 2 . Update your ` helper_config.py ` with your subscription Id.
224+
225+ 3 . Deploy vrf consumer
226+
227+ ```
228+ ape run scripts/deploy_vrf_consumer.py --network ethereum:rinkeby:alchemy
229+ ```
230+
231+ 4 . [ Add your contract/consumer to the VRF UI] ( https://docs.chain.link/docs/get-a-random-number/#create-and-fund-a-subscription )
232+
233+
234+ 5 . Request a random number and wait for a response
235+
236+
237+ ```
238+ ape run scripts/request_and_read_randomness.py --network ethereum:rinkeby:alchemy
239+ ```
240+
241+ #### Keeper Consumer
242+
243+ 1 . Deploy the contract
244+
245+ ```
246+ ape run scripts/deploy_keepers_consumer.py --network ethereum:rinkeby:alchemy
247+ ```
248+
249+ 2 . Register your upkeep on the Keepers UI
250+
251+ You can go to [ keepers.chain.link] ( https://keepers.chain.link/new-custom-logic )
252+
253+ 3 . Watch for your counter to automatically start going up!
254+
255+ After a delay, run:
256+
257+ ```
258+ ape run scripts/read_counter.py --network ethereum:rinkeby:alchemy
259+ ```
260+
261+ And it should be updated!
262+
263+
264+
265+
192266# Miscellaneous
193267
1942681 . Testing and forking is a bit tricky at the moment.
0 commit comments