@unlock-protocol/contracts
TypeScript icon, indicating that this package has built-in type declarations

0.0.22 • Public • Published

Contracts

Javascript usage

// get latest
import unlock from '@unlock-protocol/contracts/Unlock'

// get previous versions
import unlock from '@unlock-protocol/contracts/UnlockV0'
import { UnlockV0 } from '@unlock-protocol/contracts'

Solidity usage

NB: all the contracts have been flattened and exist mostly for archiving.

import "@unlock-protocol/contracts/Unlock/UnlockV0.sol";

Build the package

After adding a contract, you need to append the file to the index by running:

yarn build:index

Run Tests

Make sure all the contracts are building correctly by running

yarn test

Build the docs

Output documentation for Unlock and PublicLock in the /docs folder

yarn docs

Readme

Keywords

none

Package Sidebar

Install

npm i @unlock-protocol/contracts

Weekly Downloads

1,023

Version

0.0.22

License

none

Unpacked Size

5.19 MB

Total Files

107

Last publish

Collaborators

  • unlock-dev
  • ops-unlock
  • clemsos
  • julien51