0.2.3 • Published 2 years ago

tt-staking-lib v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

TT Staking lib

This library provides a helper class with methods for the TT staking contract.

Usage

  • Install as npm package
    # use yarn or npm of your choice
    yarn add tt-staking-lib
  • Use the helper
    import {StakingHelper} from "tt-staking-lib"

    const helper = new StakingHelper({
        stakingAddress: config.stakingContract,
    });
    const apy = await helper.getAPY()

To make the return value for getAPY(), multiply that by 100.

Currently supported:

  • getAPY
  • getAccountStakedInfo
  • getBlocksUntilSession

Develop

  • Run yarn install
  • See .env.example for env config.
  • Use DEBUG=staking yarn test to run, test and debug

Publish

yarn publish
0.2.3

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.8

2 years ago

0.1.9

2 years ago

0.2.2

2 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago