open-index/open-npm huggingface dataset:
npm package: @passage-protocol/tollbooth-core
Description: Passage Protocol Tollbooth core contracts, interfaces, and ABIs
Author: Passage Protocol
Latest version: 0.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](https://github.com/passage-protocol/toll-booth/wiki)*

## 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](https://github.com/passage-protocol/toll-booth/wiki/Deployment)*

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