@faircrypto/xen-stake

0.1.1 • Public • Published

XEN Stake NFT // Proof-of-Stake XENFT

XEN Stake is yet another part in XEN Crypto ecosystem. It allows a user to create a special version of XEN Crypto stake, which:

  • Is locked (non-redeemable) until the maturity is reached
  • Is transferable* to any other user's wallet

Similarly to ordinary XEN Crypto stake, PoS XENFT could be redeemed without any penalty at any time after the maturity is reached.

NB*: there's a blackout period -7/+7 days around maturity time during which transfers are prohibited. This is a safety precaution to prevent possible price manipulation on external exchanges.

Installation

npm install

Tests

npm run test

Code Style

https://docs.soliditylang.org/en/latest/style-guide.html

Check code lint

npm run lint

Fix code lint

npm run lint:fix

Git Hook

This project uses Husky to run git hooks. The pre-commit hook runs lint-staged to run code lint checking and code formatting before committing.

Install Husky hooks

npm run husky:install

Forwarder

Reference forwarder implementation from OpenGSN: https://github.com/opengsn/gsn/blob/master/packages/contracts/src/forwarder/Forwarder.sol

Package Sidebar

Install

npm i @faircrypto/xen-stake

Weekly Downloads

10

Version

0.1.1

License

MIT

Unpacked Size

12.5 MB

Total Files

61

Last publish

Collaborators

  • lbelyaev
  • nibty