An open API service indexing awesome lists of open source software.

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

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
```