Type aliases
APWToken
AddLiquidityParams
Add
Liquidity
Params
: { account
?: string; amm
: AMM; amount
: BigNumberish; maxAmountsIn
?: [BigNumberish, BigNumberish]; pairId
: PairId }Type declaration
Optional account?: string
amount: BigNumberish
Optional maxAmountsIn?: [BigNumberish, BigNumberish]
Error
Error: { error?: string }
FutureAggregate
Future
Aggregate
: { address
: string; amm
: AMM; depositsPaused
: boolean; ibtAddress
: string; nextPeriodIndex
: BigNumber; nextPeriodTimestamp
: BigNumber; period
: BigNumber; platform
: string; ptAddress
: string; vault
: FutureVault; withdrawalsPaused
: boolean }Type declaration
address: string
depositsPaused: boolean
ibtAddress: string
nextPeriodIndex: BigNumber
nextPeriodTimestamp: BigNumber
period: BigNumber
platform: string
ptAddress: string
withdrawalsPaused: boolean
Network
Options
Options: { autoApprove?: boolean }
Type declaration
Optional autoApprove?: boolean
PairId
Pool
QueryParams
QueryParams: { signerOrProvider: Signer | Provider }
Type declaration
signerOrProvider: Signer | Provider
RemoveLiquidityParams
Remove
Liquidity
Params
: { account
?: string; amm
: AMM; amount
: BigNumberish; minAmountsOut
?: [BigNumberish, BigNumberish]; pairId
: PairId }Type declaration
Optional account?: string
amount: BigNumberish
Optional minAmountsOut?: [BigNumberish, BigNumberish]
RequireExclusive
RequireExclusive<T, Keys>: Pick<T, Exclude<keyof T, Keys>> & { [ K in Keys]-?: Required<Pick<T, K>> & Partial<Record<Exclude<Keys, K>, undefined>> }[Keys]
Type parameters
SDKFunctionReturnType
SDKFunction
Return
Type
<T>: Error & TType parameters
SDKOptions
SDKOptions: { initialize: boolean }
SDKProps
SDKProps
: { defaultSlippage
?: number; network
: Network; provider
: Provider; signer
?: Signer | null }Type declaration
Optional defaultSlippage?: number
provider: Provider
Optional signer?: Signer | null
SwapParams
Swap
Params
: { amm
: AMM; amount
: BigNumberish; deadline
?: Date; from
: APWToken; slippageTolerance
: number; to
: APWToken }Type declaration
amount: BigNumberish
Optional deadline?: Date
slippageTolerance: number
Transaction
Transaction: { transaction?: ContractTransaction }
Type declaration
Optional transaction?: ContractTransaction
TransactionParams
TransactionParams: { signer: Signer }
WithNetwork
WithOptional
WithOptional<T, K>: Omit<T, K> & Partial<Pick<T, K>>
Type parameters