1.0.17 • Published 9 months ago

thorn-protocol-sdk v1.0.17

Weekly downloads
-
License
ISC
Repository
github
Last release
9 months ago

Table of contents

THORN PROTOCOL SDK

Install

npm install thorn-protocol-sdk

Thorn Pool Info

import {StableSwapInfo} from "thorn-protocol-sdk"

Enum type

enum StableSwapType {
  TwoPool = 2,
  ThreePool = 3
}

Pool info construction:

  const poolInfo= new StableSwapInfo(
    _rpc: string,
    _chainId: number,
    type: StableSwapType, 
  )

Pool info execution

User Share

 const userShare= await poolInfo.getUserShareAmount(
    poolAddress: address of a pool,
    userAddress: address of a user
 )

User current amounts

const userCurrentAmounts= await poolInfo.getUserCurrentAmounts(
    poolAddress: address of a pool,
    userAddress: address of a user
 )
1.0.17

9 months ago

1.0.16

10 months ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.15

10 months ago

1.0.14

10 months ago

1.0.13

11 months ago

1.0.12

12 months 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

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago