A bunch of sample contracts and scripts that can be used as inspiration to build on top of services we provide.
This repo is structured like a truffle project. Here is a list of what each folder contains:- contracts/ : Actual Solidity code.
- build/ : .json artifacts for all the contracts that this repo needs.
- migrations/ : Deployment scripts for the contracts.
- scripts/ : scripts for programatically interacting with contracts.
Other than truffle we the repo makes use of these packages:
- @chainlink/contracts
- @openzeppelin/contracts
npm install @chainlink/contracts
npm install @openzeppelin/contracts
- Copy the contract code from the contracts/ folder.
- Paste the contract in a new file in remix workspace.
- compile the file with the specified compiler version.
- Select injected web3 to interact with the chain specified in your metamask.
- deploy the contract anew or paste an address and load it there.
Here are the most important infos about the Node, you can also check it out on the Chainlink Market
- SingleConsumerSample: Coming Soon
- Operator (Oracle Contract): 0x0610868e4Ca6bE003D564519ADB81cbcFcfba22F
- Job_Id: "e770f4e4d7974b0c92857674527930fc"
- Payment: 2 Link
- Gas available: 500 000
- SingleConsumerSample: 0x9AEF9600385A7639030C22d667826A0F1ABc0782
- Operator (Oracle Contract): 0x83a9F5733511297A227B787297E9A3091b5BCf86
- Job_Id: "055d534f03fd4005ba60ec3754fe8b77"
- Payment: 0 Link