1.0.7 • Published 6 months ago

erc721a-governance-token v1.0.7

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

ERC721a Governance Token

An ERC721a token with voting rights

codecov Tests slither Open Sample with Remix npm version contributions welcome

ERC721aGovernanceToken is a Solidity library that equips ERC721A tokens with Open Zeppelin governance capabilities. It leverages the ERC721A implementation for efficient batch minting, significantly reducing gas costs. This makes it ideal for projects requiring NFTs with voting powers and an emphasis on cost-efficient minting.

Features

  • Low Gas Batch Minting: Utilizes ERC721A for gas-efficient batch minting of NFTs.
  • Governance Ready: Integrates OpenZeppelin's Votes extension for token-based voting and delegation.

Installation

Install the package with npm:

npm install erc721a-governance-token

Or with yarn:

yarn add erc721a-governance-token

Usage

To use this library in your project, import it into your Solidity contract:

import "erc721a-governance-token/contracts/ERC721aGovernanceToken.sol";

contract YourContract is ERC721aGovernanceToken {
  // your contract code
}

Open Sample with Remix

Follow Open Zeppelin's guide on HOW TO SET UP ON-CHAIN GOVERNANCE for instructions on how to proceed from here and build your DAO.

Running Tests

To run tests, clone the repository and run:

npm install
npm run test

Linting

Run the linter with:

npm run lint

Contributing

Contributions are welcome! Please submit an issue or a PR.

License

This project is licensed under the MIT License.

Acknowledgements

1.0.7

6 months ago

1.0.6

6 months ago

1.0.5

6 months ago

1.0.4

6 months ago

1.0.1

6 months ago

1.0.0

6 months ago