0.2.3 • Published 10 months ago

tt-staking-lib v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months 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

10 months ago

0.2.1

1 year ago

0.2.0

1 year ago

0.1.8

1 year ago

0.1.9

1 year ago

0.2.2

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago