https://github.com/antoncoding/opyn-otoken-creator
hardhat script to interact with opyn v1 and create call options
https://github.com/antoncoding/opyn-otoken-creator
Last synced: 11 months ago
JSON representation
hardhat script to interact with opyn v1 and create call options
- Host: GitHub
- URL: https://github.com/antoncoding/opyn-otoken-creator
- Owner: antoncoding
- Created: 2021-07-08T09:15:51.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-07-09T08:07:46.000Z (over 4 years ago)
- Last Synced: 2025-02-08T07:25:22.583Z (about 1 year ago)
- Language: TypeScript
- Size: 131 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# oToken Creator script
Hardhat script to help you create call option with opyn v1.
Opyn v1 was design for put options, it can also be used to deploy calls, but they need be deployed as "reversed puts", which can be a little bit tricky. We create this script to help make the process easier.
## Install
```shell
npm install
```
## Setup environment
* Update `.env` file to export `INFURA_KEY`.
* Add a `.secret` file containing mnemonic to deploy otoken
## Deploy a call option
See parameter descriptions with the following command
```shell
npx hardhat createCall --help
```
### Example
```shell
npx hardhat createCall --asset ETH --strike-price 32 --expiry 1638345600 --network mainnet
```