PackLib

Functions

unpackExactInputSingleArgsAmounts

function unpackExactInputSingleArgsAmounts(bytes memory argsPacked)
    internal
    pure
    returns (address recipient, IMaverickV2Pool pool, bool tokenAIn, uint256 amountIn, uint256 amountOutMinimum);

unpackAddLiquidityArgs

function unpackAddLiquidityArgs(bytes memory argsPacked)
    internal
    pure
    returns (IMaverickV2Pool.AddLiquidityParams memory args);

packAddLiquidityArgs

function packAddLiquidityArgs(IMaverickV2Pool.AddLiquidityParams memory args)
    internal
    pure
    returns (bytes memory argsPacked);

packAddLiquidityArgsToArray

function packAddLiquidityArgsToArray(IMaverickV2Pool.AddLiquidityParams memory args)
    internal
    pure
    returns (bytes[] memory argsPacked);

packAddLiquidityArgsArray

function packAddLiquidityArgsArray(IMaverickV2Pool.AddLiquidityParams[] memory args)
    internal
    pure
    returns (bytes[] memory argsPacked);

unpackInt32Array

function unpackInt32Array(bytes memory input) internal pure returns (int32[] memory array);

unpackUint128Array

function unpackUint128Array(bytes memory input) internal pure returns (uint128[] memory array);

unpackUint88Array

function unpackUint88Array(bytes memory input) internal pure returns (uint88[] memory array);

packArray

function packArray(int32[] memory array) internal pure returns (bytes memory output);

packArray

function packArray(uint128[] memory array) internal pure returns (bytes memory output);

packArray

function packArray(uint88[] memory array) internal pure returns (bytes memory output);

_unpackArray

function _unpackArray(bytes memory input, uint256 elementBytes) internal pure returns (uint256[] memory array);

_packArray

function _packArray(uint256[] memory array, uint256 elementBytes) internal pure returns (bytes memory output);

Last updated