https://github.com/unlock-protocol/hardhat-plugin-example
A simple example of how to use hardhat plugin
https://github.com/unlock-protocol/hardhat-plugin-example
Last synced: 21 days ago
JSON representation
A simple example of how to use hardhat plugin
- Host: GitHub
- URL: https://github.com/unlock-protocol/hardhat-plugin-example
- Owner: unlock-protocol
- Created: 2022-02-10T12:23:09.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-15T18:56:36.000Z (almost 4 years ago)
- Last Synced: 2025-01-12T20:44:28.982Z (over 1 year ago)
- Language: JavaScript
- Size: 166 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Unlock Hardhat Plugin Sample Project
This project demonstrates a basic use case for Hardhat Unlock.
## How to use
1. install deps with `yarn` or `npm i`
2. add your RPC endpoint to the `hardhat.config.js` (as [explained here](https://hardhat.org/config/))
3. from your terminal, try running the following (with the address of your lock):
```shell
npx hardhat lock:info --lock-address --network
```
### Test locally
Create a lock and buy a bunch of keys
```
yarn hardhat run scripts/createSampleLock.js
```