UniswapV2Pair class

Inheritance

Constructors

UniswapV2Pair({required String contractAddress, required EvmRpcInterface rpc})

Properties

abi ContractABI
finalinherited
contractAddress String
finalinherited
hashCode int
The hash code for this object.
no setterinherited
rpc EvmRpcInterface
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

allowance({required String owner, required String spender}) Future<BigInt>
approveTx({required String sender, required String spender, required BigInt value, EvmFeeInformation<EvmGasPrice>? feeInfo}) Future<RawEvmTransaction>
balanceOf(String address) Future<BigInt>
buildTransactionForFunction({required ContractFunctionWithValues function, required String sender, EvmFeeInformation<EvmGasPrice>? feeInfo, BigInt? value}) Future<RawEvmTransaction>
inherited
getReserves() Future<(BigInt, BigInt)>
interact({required ContractFunctionWithValues function, required Uint8List seed, required String sender, EvmFeeInformation<EvmGasPrice>? feeInfo, BigInt? value, List<AccessListItem>? accessList}) Future<String>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read({required ExternalContractFunctionWithValues function, BlockNum? atBlock, required List<FunctionParam>? outputs, StateMutability? stateMutability}) Future<ExternalContractFunctionWithValuesAndOutputs>
inherited
readSafe({required LocalContractFunctionWithValues function, BlockNum? atBlock}) Future<LocalContractFunctionWithValuesAndOutputs>
inherited
token0() Future<String>
token1() Future<String>
toString() String
A string representation of this object.
inherited
totalSupply() Future<BigInt>

Operators

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