ABIService
extends ABIEncryptService
in package
Tags
Table of Contents
- $events : array<string|int, mixed>
- $functions : array<string|int, mixed>
- $strictMode : bool
- $constructor : Method|null
- $receive : Method|null
- __construct() : mixed
- ABI constructor.
- decodeAddressResponse() : string
- decodeArg() : mixed
- decodeArrayValue() : array<string|int, mixed>
- decodeEventParams() : mixed
- decodeFunctionArgs() : array<string|int, mixed>
- decodeResponse() : array<string|int, mixed>
- encodeArg() : string
- encodeCall() : string
- generateMethodSelector() : string
- generateMethodSelectors() : array<string|int, mixed>
- getEventsTopics() : array<string|int, mixed>
- isDynamicType() : bool
- nestedTypes() : mixed
- staticPartLength() : mixed
Properties
$events
protected
array<string|int, mixed>
$events
$functions
protected
array<string|int, mixed>
$functions
$strictMode
protected
bool
$strictMode
$constructor
private
Method|null
$constructor
= null
$receive
private
Method|null
$receive
= null
private ?Method $fallback = null;
Methods
__construct()
ABI constructor.
public
__construct(array<string|int, mixed> $abi) : mixed
Parameters
- $abi : array<string|int, mixed>
Return values
mixed —decodeAddressResponse()
public
decodeAddressResponse(string $hex) : string
Parameters
- $hex : string
Return values
string —decodeArg()
public
decodeArg(string $type, string $encoded[, string $method = '' ]) : mixed
Parameters
- $type : string
- $encoded : string
- $method : string = ''
Tags
Return values
mixed —decodeArrayValue()
public
decodeArrayValue(string $type, string $encoded[, string $method = '' ]) : array<string|int, mixed>
Parameters
- $type : string
- $encoded : string
- $method : string = ''
Return values
array<string|int, mixed> —decodeEventParams()
public
decodeEventParams(string $name, array<string|int, mixed> $encodedEventLog) : mixed
Parameters
- $name : string
- $encodedEventLog : array<string|int, mixed>
Return values
mixed —decodeFunctionArgs()
public
decodeFunctionArgs(string $name, string $encoded) : array<string|int, mixed>
Parameters
- $name : string
- $encoded : string
Return values
array<string|int, mixed> —decodeResponse()
public
decodeResponse(string $name, string $encoded) : array<string|int, mixed>
Parameters
- $name : string
- $encoded : string
Tags
Return values
array<string|int, mixed> —encodeArg()
public
encodeArg(string $type, $value) : string
Parameters
Tags
Return values
string —encodeCall()
public
encodeCall(string $name, array<string|int, mixed>|null $args) : string
Parameters
- $name : string
- $args : array<string|int, mixed>|null
Return values
string —generateMethodSelector()
public
generateMethodSelector(string $name) : string
Parameters
- $name : string
Return values
string —generateMethodSelectors()
public
generateMethodSelectors() : array<string|int, mixed>
Return values
array<string|int, mixed> —getEventsTopics()
public
getEventsTopics() : array<string|int, mixed>
Return values
array<string|int, mixed> —isDynamicType()
public
isDynamicType(string $type) : bool
Parameters
- $type : string
Return values
bool —nestedTypes()
public
nestedTypes(mixed $name) : mixed
Parameters
- $name : mixed
Return values
mixed —staticPartLength()
public
staticPartLength(mixed $name) : mixed
Parameters
- $name : mixed