1.0.9 • Published 12 days ago

thorn-protocol-sdk v1.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
12 days 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.9

12 days ago

1.0.8

1 month ago

1.0.7

1 month ago

1.0.6

1 month ago

1.0.5

1 month ago

1.0.4

1 month ago

1.0.3

1 month ago

1.0.2

1 month ago

1.0.1

1 month ago

1.0.0

1 month ago