Skip to main content

ArgumentsDecoder

Library with gas efficient alternatives to abi.decode

Functions#

decodeUint256Memory#

function decodeUint256Memory(  bytes data) internal returns (uint256 value)

Parameters:#

NameTypeDescription
databytes

decodeUint256#

function decodeUint256(  bytes data) internal returns (uint256 value)

Parameters:#

NameTypeDescription
databytes

decodeBoolMemory#

function decodeBoolMemory(  bytes data) internal returns (bool value)

Parameters:#

NameTypeDescription
databytes

decodeBool#

function decodeBool(  bytes data) internal returns (bool value)

Parameters:#

NameTypeDescription
databytes

decodeTargetAndCalldata#

function decodeTargetAndCalldata(  bytes data) internal returns (address target, bytes args)

Parameters:#

NameTypeDescription
databytes