UniswapV2Router class

Inheritance

Constructors

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

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

addLiquidityETHTx({required String token, required BigInt amountTokenDesired, required BigInt amountETHMin, required BigInt amountTokenMin, required String to, required BigInt deadline, required String sender, required BigInt amountETHDesired}) Future<RawEvmTransaction>
addLiquidityTx({required String tokenA, required String tokenB, required BigInt amountADesired, required BigInt amountBDesired, required BigInt amountAMin, required BigInt amountBMin, required String to, required BigInt deadline, required String sender}) Future<RawEvmTransaction>
buildTransactionForFunction({required ContractFunctionWithValues function, required String sender, EvmFeeInformation<EvmGasPrice>? feeInfo, BigInt? value}) Future<RawEvmTransaction>
inherited
getAmountsIn({required BigInt amountOut, required List<String> path}) Future<List<BigInt>>
getAmountsOut({required BigInt amountIn, required List<String> path}) Future<List<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
quote({required BigInt amountA, required BigInt reserveA, required BigInt reserveB}) Future<BigInt>
read({required ExternalContractFunctionWithValues function, BlockNum? atBlock, required List<FunctionParam>? outputs, StateMutability? stateMutability}) Future<ExternalContractFunctionWithValuesAndOutputs>
inherited
readSafe({required LocalContractFunctionWithValues function, BlockNum? atBlock}) Future<LocalContractFunctionWithValuesAndOutputs>
inherited
removeLiquidityETHTx({required String token, required BigInt liquidity, required BigInt amountTokenMin, required BigInt amountETHMin, required String to, required BigInt deadline, required String sender}) Future<RawEvmTransaction>
swapEthForExactTokens({required BigInt amountOut, required BigInt amountInMax, required List<String> path, required String to, required BigInt deadline, required Uint8List seed, required String sender}) Future<String>
swapEthForExactTokensTx({required BigInt amountOut, required BigInt amountInMax, required List<String> path, required String to, required BigInt deadline, required String sender}) Future<RawEvmTransaction>
swapExactEthForTokens({required BigInt amountIn, required BigInt amountOutMin, required List<String> path, required String to, required BigInt deadline, required Uint8List seed, required String sender, EvmFeeInformation<EvmGasPrice>? feeInformation}) Future<String>
swapExactEthForTokensTransaction({required BigInt amountIn, required BigInt amountOutMin, required List<String> path, required String to, required BigInt deadline, required String sender, EvmFeeInformation<EvmGasPrice>? feeInformation}) Future<RawEvmTransaction>
swapExactTokenForTokens({required BigInt amountIn, required BigInt amountOutMin, required List<String> path, required String to, required BigInt deadline, required Uint8List seed, required String sender}) Future<String>
swapExactTokenForTokensTx({required BigInt amountIn, required BigInt amountOutMin, required List<String> path, required String to, required BigInt deadline, required String sender}) Future<RawEvmTransaction>
swapExactTokensForEth({required BigInt amountIn, required BigInt amountOutMin, required List<String> path, required String to, required BigInt deadline, required Uint8List seed, required String sender}) Future<String>
swapExactTokensForEthTx({required BigInt amountIn, required BigInt amountOutMin, required List<String> path, required String to, required BigInt deadline, required String sender}) Future<RawEvmTransaction>
swapTokenForExactEth({required BigInt amountOut, required BigInt amountInMax, required List<String> path, required String to, required BigInt deadline, required Uint8List seed, required String sender}) Future<String>
swapTokenForExactEthTx({required BigInt amountOut, required BigInt amountInMax, required List<String> path, required String to, required BigInt deadline, required String sender}) Future<RawEvmTransaction>
swapTokenForExactTokens({required BigInt amountOut, required BigInt amountInMax, required List<String> path, required String to, required BigInt deadline, required Uint8List seed, required String sender}) Future<String>
swapTokenForExactTokensTx({required BigInt amountOut, required BigInt amountInMax, required List<String> path, required String to, required BigInt deadline, required String sender}) Future<RawEvmTransaction>
toString() String
A string representation of this object.
inherited

Operators

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