PoolV1 class

Constructors

PoolV1(InternalAddress address, [ContractProvider? provider, PoolGasConstant? gasConstants])

Properties

abi ↔ ContractABI?
getter/setter pairinherited
address ↔ InternalAddress
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
init ↔ ContractInit?
getter/setter pairinherited
provider ↔ ContractProvider?
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createBurnBody({required InternalAddress responseAddress, required BigInt amount, BigInt? queryId}) → Cell
createCollectFeesBody({BigInt? queryId}) → Cell
getBurnTxParams({required InternalAddress responseAddress, required BigInt amount, BigInt? gasAmount, BigInt? queryId}) Future<SenderArguments>
getCollectFeeTxParams({BigInt? gasAmount, BigInt? queryId}) → SenderArguments
getExpectedLiquidity({required BigInt jettonAmount}) Future<({BigInt amount0, BigInt amount1})>
getExpectedOutputs(ContractProvider provider, {required BigInt amount, required InternalAddress jettonWallet}) Future<(BigInt, BigInt, BigInt)>
getExpectedTokens({required BigInt amount0, required BigInt amount1}) Future<BigInt>
getJettonData() Future<({InternalAddress adminAddress, Cell content, bool mintable, BigInt totalSupply, Cell walletCode})>
Returns a jetton data as a record
inherited
getJettonWallet(ContractProvider provider, {required InternalAddress ownerAddress}) Future<JettonWallet>
getLpAccount(ContractProvider provider, {required InternalAddress ownerAddress}) Future<LpAccountV1>
getLpAccountAddress({required InternalAddress ownerAddress}) Future<InternalAddress>
getPoolData() Future<({BigInt collectedToken0ProtocolFee, BigInt collectedToken1ProtocolFee, BigInt lpFee, BigInt protocolFee, InternalAddress protocolFeeAddress, BigInt refFee, BigInt reserve0, BigInt reserve1, InternalAddress token0WalletAddress, InternalAddress token1WalletAddress})>
getWalletAddress(InternalAddress owner) Future<InternalAddress>
Returns a jetton wallet address a Future
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
sendBurn(Sender via, {required InternalAddress responseAddress, required BigInt amount, BigInt? gasAmount, BigInt? queryId}) Future<void>
sendCollectFees(ContractProvider provider, Sender via, {BigInt? gasAmount, BigInt? queryId}) Future<void>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

gasConstants PoolGasConstant
getter/setter pair
version DexVersion
getter/setter pair