0.0.1-beta.0 • Published 2 years ago
@passage-protocol/tollbooth-core v0.0.1-beta.0
Tollbooth core
This repository contains the core contracts for the Tollbooth membership framework by Passage protocol
Documentation for the Tollbooth membership framework can be found here
Install
To consume the Tollbooth core contracts or ABIs from your own project
npm install @passage/tollbooth-core
or
yarn add @passage/tollbooth-core
Development
To install packages and dependencies for your development environment
yarn install
Test
To run all tests
yarn test
To run some subset of tests
yarn hardhat compile && yarn hardhat test --grep register
To calculate code coverage
yarn coverage
Deploy
For full deployment documentation see the wiki page here
Copy .env.template
to .env
and define fields as required
To deploy a new membership contract to testnet
yarn hardhat run scripts/deploy_membership.ts --network goerli
To verify contract source code
yarn hardhat verify --contract contracts/Membership.sol:Membership --network goerli 0xdeploymentaddress "Highly Exclusive" 0xmetadataprovider ""
0.0.1-beta.0
2 years ago