1.0.21 • Published 21 days ago

@a-dex/a-dex-sdk v1.0.21

Weekly downloads
-
License
MIT
Repository
github
Last release
21 days ago

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.

1.0.21

21 days ago

1.0.20

21 days ago

1.0.19

2 months ago

1.0.18

3 months ago

1.0.17

4 months ago

1.0.16

4 months ago

1.0.15

5 months ago

1.0.14

5 months ago

1.0.13

5 months ago

1.0.12

8 months ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

2 years ago