Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@givepraise/reputation-token

Package Overview
Dependencies
Maintainers
2
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@givepraise/reputation-token

Contracts for reputation tokens to be distributed accordingly to the community quantification of Praise.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
2
Weekly downloads
 
Created
Source

Reputation Token and Token Factory

The TokenFactory contract has one non-restricted function create to create new ReputationToken contracts. To create a new token you have to pass the following parameter:

string memory _name,    // The name of the token
string memory _symbol,  // The symbol of the token
uint8 _decimals,        // The number of decimals of the token
address _owner,         // The owner of the token
bool _transferable      // Whether the token is transferable
bool _burnable          // Whether the token is burnable

The ReputationToken itself is based on OpenZeppelins ERC20Vote extension. The constructor takes the same parameters described above. Beside the general token functions, mint, checkpoints, delegation and permit are also transfer and burn locks implemented. The transfer lock can be enabled and disabled by the owner at any time. The burn lock is set in constructor and can't be changed afterwards.

Installation

To install all dependencies, please run:

npm install

Test

You can run all test cases with the following comment:

npm test

Keywords

FAQs

Package last updated on 17 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc