0.0.5 • Published 1 year ago

@bitbeckers/hypercerts-protocol v0.0.5

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

hypercerts-protocol Github Actions Hardhat License: MIT

Contracts

IHypercertToken

This interface is the requirements set for hypercert compliant tokens. This enables developer to use their own prefered token implementation or standard.

HypercertMinter

Example implementation for a hypercert token that is an ERC1155 NFT under the hood with an Allowlist extenstion.

Goerli

HypercertMinter (UUPS Proxy) is deployed to proxy address: 0xcC08266250930E98256182734913Bf1B36102072

Sepolia

HypercertMinter (UUPS Proxy) is deployed to proxy address: 0x2E5C3A3015a4A25819Bb2277C65df7Fe2e909CC8 0x2E5C3A3015a4A25819Bb2277C65df7Fe2e909CC8

Usage

Here's a list of the most frequently needed commands.

Build

Build the contracts:

$ forge build

Clean

Delete the build artifacts and cache directories:

$ forge clean

Compile

Compile the contracts:

$ forge build

Deploy

Deployment of the contract to EVM compatible net is managed by OpenZeppelin. Primarily because of proxy management and safety checks.

Run: yarn hardhat deploy --network sepolia

Format

Format the contracts with Prettier:

$ yarn prettier

Gas Usage

Get a gas report:

$ forge test --gas-report

Lint

Lint the contracts:

$ yarn lint

Test

Foundry

Solidity tests are executed using Foundry Run the tests:

$ forge test

License

MIT © Paul Razvan Berg