1.0.21 • Published 1 year ago

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

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

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago