npm.io
1.1.0 • Published 2 months ago

@a-dex/a-dex-sdk

Licence
MIT
Version
1.1.0
Deps
3
Size
150 kB
Vulns
0
Weekly
32

a-dex-sdk

Unit Tests Lint code style: prettier npm version npm bundle size (scoped version)

Usage

This is a Node.js module available through the npm registry. Installation is done using the npm install command:

npm install @a-dex/a-dex-sdk

Initialize

Web library can be found in the [dist] folder

// standard import
const {
  SwapActionGenerator,
  SwapTransactionGenerator,
  ChainApi,
  RpcApi,
} = require("@a-dex/a-dex-sdk");

// ES6 import
import {
  SwapActionGenerator,
  SwapTransactionGenerator,
  ChainApi,
  RpcApi,
} from "@a-dex/a-dex-sdk";

Documentation

ChainApi

Chain API client.

RpcApi

A-DEX RPC API client.

SwapActionGenerator

Helper class to construct swap contract actions which can be signed and pushed on chain.

SwapTransactionGenerator

Helper class to construct swap contract transactions which can be signed and pushed on chain.

Utils

Helper functions for math calculations and data formating.

Keywords