Documentation

UniswapRouteService
in package

Table of Contents

$contract  : UniswapRouter
$contractAddress  : string|null
$factoryService  : UniswapFactoryService
$routerInfo  : Router
__construct()  : mixed
getAmountIn()  : mixed
getAmountOut()  : mixed
getAmountsIn()  : mixed
getAmountsOut()  : mixed
getContract()  : UniswapRouter|ContractService
getContractAddress()  : string|null
getEventsTopics()  : array<string|int, mixed>
getFactory()  : UniswapFactoryService
getFunctionSelector()  : array<string|int, mixed>
getQuote()  : mixed
getRouterInfo()  : Router
getRouterInfoJson()  : string
loadRouterInfo()  : self
setContractAddress()  : UniswapRouteService

Properties

Methods

getAmountIn()

public getAmountIn(mixed $amountOut, mixed $reserveIn, mixed $reserveOut) : mixed
Parameters
$amountOut : mixed
$reserveIn : mixed
$reserveOut : mixed
Return values
mixed

getAmountOut()

public getAmountOut(mixed $amountIn, mixed $reserveIn, mixed $reserveOut) : mixed
Parameters
$amountIn : mixed
$reserveIn : mixed
$reserveOut : mixed
Return values
mixed

getAmountsIn()

public getAmountsIn(mixed $amountOut, mixed ...$paths) : mixed
Parameters
$amountOut : mixed
$paths : mixed
Return values
mixed

getAmountsOut()

public getAmountsOut(mixed $amountIn, mixed ...$paths) : mixed
Parameters
$amountIn : mixed
$paths : mixed
Return values
mixed

getContractAddress()

public getContractAddress() : string|null
Return values
string|null

getEventsTopics()

public getEventsTopics() : array<string|int, mixed>
Return values
array<string|int, mixed>

getFunctionSelector()

public getFunctionSelector(string $name) : array<string|int, mixed>
Parameters
$name : string
Return values
array<string|int, mixed>

getQuote()

public getQuote(mixed $amountA, mixed $reserveA, mixed $reserveB) : mixed
Parameters
$amountA : mixed
$reserveA : mixed
$reserveB : mixed
Return values
mixed

getRouterInfoJson()

public getRouterInfoJson() : string
Tags
throws
JsonException
Return values
string

Search results