npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@windingtree/lif-token

v0.1.2-erc827

Published

Winding Tree Platform Token

Downloads

6

Readme

Líf Token

Líf is the token of the Winding Tree platform.

Líf is a SmartToken, based in the ERC20 standard with extra methods to send value and data on transfers and approvals, allowing the execution of calls in those methdos too.

This repository also has all the contracts related with the Token Generation Event (TGE), an strategy that combines a crowdsale, a market validation mechanism and vested payments.

Build Status Coverage Status

Requirements

LTS Node 8.9.4 is required for running the tests.

Install

npm install

Contracts

  • LifToken: ERC827 token for the Winding Tree platform. Uses OpenZeppelin ERC827Token, StandardToken, BurnableToken, MintableToken and PausableToken contracts.
  • LifChannels: Implementation of simple state channels for Lif token holders.
  • LifCrowdsale: Implementation of the Lif Token Generation Event (TGE) Crowdsale: A 2 week fixed price, uncapped token sale, with a discounted rate for contributions during the private presale and a Market Validation Mechanism that will receive the funds over the USD 10M soft cap.
  • LifMarketValidationMechanism (MVM): holds the ETH received during the TGE in excess of $10M for a fixed period of time (24 or 48 months depending on the total amount received) releasing part of the funds to the foundation in a monthly basis with a distribution skewed towards the end (most of the funds are released by the end of the MVM lifetime). Token holders can send their tokens to the MVM in exchange of eth at a rate that complements the distribution curve (the rate is higher at the beginning of the MVM and goes towards 0 by the end of it).
  • VestedPayment.sol: Handles two time-locked payments: The 5% extra tokens that the foundation receives for long-term funding (starts after the MVM finishes, with same duration as the MVM: 2 or 4 years) and the 12.8% extra tokens that the founders receive (1y cliff, 4y total). Both are created during the Crowdsale finalization.

Test

  • To run all tests: npm test

  • To run a specific test: npm test -- test/Crowdsale.js

There are also two environment variables (GEN_TESTS_QTY and GEN_TESTS_TIMEOUT) that regulate the duration/depth of the property-based tests, so for example:

GEN_TESTS_QTY=50 GEN_TESTS_TIMEOUT=300 npm test

Will make the property-based tests in test/CrowdsaleGenTest.js to run 50 examples in a maximum of 5 minutes

License

Líf Token is open source and distributed under the GPL v3 license.