@thorchain/asgardex-token

Token types and helpers for ASGARDEX clients

Usage no npm install needed!

<script type="module">
  import thorchainAsgardexToken from 'https://cdn.skypack.dev/@thorchain/asgardex-token';
</script>

README

@thorchain/asgardex-token

Library to deal with denomination of tokens in a type safety way.

Modules

  • token - Core w/ constants and helper functions
  • types - TypeScript types for denominations

Installation

yarn add @thorchain/asgardex-token

Following peer dependencies have to be installed into your project. These are not included in @thorchain/asgardex-token.

yarn add bignumber.js

Usage

  • Use token.test.ts as an example to get a first overview about how to use @thorchain/asgardex-token.