The purpose of the repo is to showcase the workflow of a very basic call option built on top of the Opium Protocol
After cloning the repository, run the following commands:
- Set your INFURA_API_KEY environment variable in a .env file
- Set your MNEMONIC environment variable in a .env file
- yarn install
- yarn test
- create call option
- push data (underlying's current market price) into the oracle
- time-travel after the option's maturity date and execute the option contract
Read more on the tutorial published on medium