UniswapFactoryService
Table of Contents
-
$contract
: UniswapFactory
-
$contractAddress
: string|null
-
$factoryInfo
: Factory
-
$pairService
: UniswapPairService
-
__construct()
: mixed
-
getAllPairs()
: array<string|int, mixed>
-
getContract()
: UniswapFactory|ContractService
-
getContractAddress()
: string|null
-
getFactoryInfo()
: Factory
-
getFactoryInfoJson()
: string
-
getPairByTokens()
: string
-
getPairInfo()
: Pair
-
getPairInfoSimple()
: Pair
-
getPairs()
: array<string|int, mixed>
-
getPairsFromTo()
: array<string|int, mixed>
-
loadFactoryInfo()
: self
-
setContractAddress()
: UniswapFactoryService
__construct()
public
__construct(string $contractAddress, ConnectionInterface $credentials) : mixed
Parameters
-
$contractAddress
: string
-
-
$credentials
: ConnectionInterface
-
-
throws
-
InvalidContractInstanceKeyException
Return values
mixed
—
getAllPairs()
public
getAllPairs() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
getContract()
public
getContract() : UniswapFactory|ContractService
Return values
UniswapFactory|ContractService
—
getContractAddress()
public
getContractAddress() : string|null
Return values
string|null
—
getFactoryInfo()
public
getFactoryInfo() : Factory
Return values
Factory
—
getFactoryInfoJson()
public
getFactoryInfoJson() : string
-
throws
-
JsonException
Return values
string
—
getPairByTokens()
public
getPairByTokens(string $tokenA, string $tokenB) : string
Parameters
-
$tokenA
: string
-
-
$tokenB
: string
-
Return values
string
—
getPairInfo()
public
getPairInfo(string $address) : Pair
Parameters
-
$address
: string
-
Return values
Pair
—
getPairInfoSimple()
public
getPairInfoSimple(string $address) : Pair
Parameters
-
$address
: string
-
Return values
Pair
—
getPairs()
public
getPairs([int $elements = 15 ], int $from) : array<string|int, mixed>
Parameters
-
$elements
: int
= 15
-
-
$from
: int
-
Return values
array<string|int, mixed>
—
getPairsFromTo()
public
getPairsFromTo(int $from[, int $to = 15 ]) : array<string|int, mixed>
Parameters
-
$from
: int
-
-
$to
: int
= 15
-
Return values
array<string|int, mixed>
—
loadFactoryInfo()
public
loadFactoryInfo() : self
Return values
self
—
setContractAddress()
public
setContractAddress(string|null $contractAddress) : UniswapFactoryService
Parameters
-
$contractAddress
: string|null
-
Return values
UniswapFactoryService
—