UniswapRouteService
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
__construct()
public
__construct(string|null $contractAddress, ConnectionInterface $credentials) : mixed
Parameters
-
$contractAddress
: string|null
-
-
$credentials
: ConnectionInterface
-
Return values
mixed
—
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
—
getContract()
public
getContract() : UniswapRouter|ContractService
Return values
UniswapRouter|ContractService
—
getContractAddress()
public
getContractAddress() : string|null
Return values
string|null
—
getEventsTopics()
public
getEventsTopics() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
getFactory()
public
getFactory() : UniswapFactoryService
Return values
UniswapFactoryService
—
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
—
getRouterInfo()
public
getRouterInfo() : Router
Return values
Router
—
getRouterInfoJson()
public
getRouterInfoJson() : string
-
throws
-
JsonException
Return values
string
—
loadRouterInfo()
public
loadRouterInfo() : self
Return values
self
—
setContractAddress()
public
setContractAddress(string|null $contractAddress) : UniswapRouteService
Parameters
-
$contractAddress
: string|null
-
Return values
UniswapRouteService
—