MintPermissionLib

Git Source

Encodes, decodes, and verifies mint auth data for each permission type.

Functions

allowList_Encode

function allowList_Encode(bytes32[] memory proof) internal pure returns (bytes memory auth);

allowList_Decode

function allowList_Decode(bytes memory auth) internal pure returns (bytes32[] memory proof);

allowList_Leaf

function allowList_Leaf(address user) internal pure returns (bytes32);

allowTable_Encode

function allowTable_Encode(uint96 price, uint16 limit, bytes32[] memory proof)
    internal
    pure
    returns (bytes memory auth);

allowTable_Decode

function allowTable_Decode(bytes memory auth)
    internal
    pure
    returns (uint96 price, uint16 limit, bytes32[] memory proof);

allowTable_Leaf

function allowTable_Leaf(address user, uint96 price, uint16 limit) internal pure returns (bytes32);