View functions that pack and unpack addLiquidity parameters.
Functions
unpackAddLiquidityArgs
Unpacks packed addLiquidity parameters.
function unpackAddLiquidityArgs(bytes memory argsPacked)
public
pure
returns (IMaverickV2Pool.AddLiquidityParams memory args);
packAddLiquidityArgs
Packs addLiquidity paramters into a bytes object. The packing is [kind, ticksArray, amountsArray] where the arrays are packed like this: [length, array[0], array[1],..., array[length-1]]. length is 1 byte (256 total possible elements).
function packAddLiquidityArgs(IMaverickV2Pool.AddLiquidityParams memory args)
public
pure
returns (bytes memory argsPacked);
packAddLiquidityArgsArray
Packs addLiquidity paramters array element-wise.
function packAddLiquidityArgsArray(IMaverickV2Pool.AddLiquidityParams[] memory args)
public
pure
returns (bytes[] memory argsPacked);
unpackUint88Array
Unpacks sqrtPrice breaks bytes object into array.
function unpackUint88Array(bytes memory packedArray) public pure returns (uint88[] memory fullArray);
packUint88Array
Packs sqrtPrice breaks array with this format: [length, array[0], array[1],..., array[length-1]] where length is 1 byte.
function packUint88Array(uint88[] memory fullArray) public pure returns (bytes memory packedArray);