Skip to main content

PoolContract

@bidask-protocol/sdk


@bidask-protocol/sdk / PoolContract

Class: PoolContract

Defined in: contracts/PoolContract.ts:7

Implements​

  • Contract

Properties​

address​

address: Address

Defined in: contracts/PoolContract.ts:19

Implementation of​

Contract.address


Opcodes​

static Opcodes: object

Defined in: contracts/PoolContract.ts:8

AddBothLiquidity​

AddBothLiquidity: number = 0x3ea0bafc

AddLiquidity​

AddLiquidity: number = 0x96feef7b

Swap​

Swap: number = 0xf2ef6c1b

SwapV2​

SwapV2: number = 0xc09da84e

Methods​

getActiveRange()​

getActiveRange(provider): Promise<Address>

Defined in: contracts/PoolContract.ts:32

Parameters​

provider​

ContractProvider

Returns​

Promise<Address>


getPoolInfo()​

getPoolInfo(provider): Promise<PoolInfo>

Defined in: contracts/PoolContract.ts:21

Parameters​

provider​

ContractProvider

Returns​

Promise<PoolInfo>


getRangeAddress()​

getRangeAddress(provider, firstBin): Promise<Address>

Defined in: contracts/PoolContract.ts:53

Parameters​

provider​

ContractProvider

firstBin​

number

Returns​

Promise<Address>


getRangesStatusesByLiquidityBins()​

getRangesStatusesByLiquidityBins(provider, liquidityBins): Promise<Record<number, RangeStatus>>

Defined in: contracts/PoolContract.ts:61

Parameters​

provider​

ContractProvider

liquidityBins​

LiquidityProvideBins

Returns​

Promise<Record<number, RangeStatus>>


getRangeStatus()​

getRangeStatus(provider, range): Promise<RangeStatus>

Defined in: contracts/PoolContract.ts:86

Parameters​

provider​

ContractProvider

range​

number

Returns​

Promise<RangeStatus>


getTradeAccountAddress()​

getTradeAccountAddress(provider, params): Promise<Address>

Defined in: contracts/PoolContract.ts:41

Internal

Parameters​

provider​

ContractProvider

params​
seedCell​

Cell

userAddress​

Address

Returns​

Promise<Address>


create()​

static create(address): PoolContract

Defined in: contracts/PoolContract.ts:15

Parameters​

address​

Address

Returns​

PoolContract