erc721a-governance-token
v1.0.7
Published
An ERC721a token with voting rights
Downloads
8
Maintainers
Readme
ERC721a Governance Token
An ERC721a token with voting rights
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
}
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.