This project contains an extremely simple streamlined deployment of the Gas Station Network (v3.0.0-beta.10) smart contracts using hardhat.
Using this as a guide for deployment logic and sequence, and this as a source for contract files.
First clone this repo:
git clone https://github.com/jjordan-quantum/gsn-contract-deployments.git
Install deps:
npm i
note: only tested on windows using node v16.20.0 and npm 8.19.4
Compile contracts:
npm run compile
Try deployment using built-in hardhat network:
npm run deploy
Try deploying to target network:
- first run the hardhat network in a separate terminal:
npx hardhat node
- run the deploy script using hardhat's localhost network option
npm run deploy:local
Run tests:
note: tests adapted from here
npm run test