BBTiers

Functions

createTiers

function createTiers(
    uint256 profileId, 
    uint256[] calldata prices, 
    string[] calldata cids, 
    bool[] memory deprecated, 
    address[] calldata supportedCurrencies, 
    uint256[] calldata priceMultipliers
) external returns (uint256 tierSetId)

Creates a set of tiers

Parameters

Return Values

editTiers

function editTiers(
    uint256 profileId, 
    uint256 tierSetId, 
    uint256[] calldata prices, 
    string[] calldata cids, 
    bool[] memory deprecated
) external

Set the values of a set of tiers

Parameters

setSupportedCurrencies

function setSupportedCurrencies(
    uint256 profileId, 
    uint256 tierSetId, 
    address[] calldata supportedCurrencies, 
    uint256[] calldata priceMultipliers
) external

Set a tier sets supported ERC20 tokens for payment

Parameters

getTier

function getTier(
    uint256 profileId, 
    uint256 tierSetId, 
    uint256 tierId, 
    address currency
) external view returns (string memory cid, uint256 price, bool deprecated)

Returns an existing tier

Parameters

Return Values

getTierSet

function getTierSet(
    uint256 profileId, 
    uint256 tierSetId
) external view returns (uint256[] memory prices, string[] memory cids, bool[] memory deprecated)

Returns an existing set of tiers

Parameters

Return Values

totalTiers

function totalTiers(
    uint256 profileId, 
    uint256 tierSetId
) external view returns (uint256 total)

Returns the total number of tiers in a tier set

Parameters

Return Values

totalTierSets

function totalTierSets(
    uint256 profileId
) external view returns (uint256 total)

Returns the total number of tier sets owned by a profile

Parameters

Return Values

getCurrencyMultiplier

function getCurrencyMultiplier(
    uint256 profileId, 
    uint256 tierSetId, 
    address currency
) external view returns (uint256 multiplier)

Returns the currency multiplier of ERC20 token in a tier set

Parameters

Return Values

isCurrencySupported

function isCurrencySupported(
    uint256 profileId, 
    uint256 tierSetId, 
    address currency
) external view returns (bool supported)

Returns true if a ERC20 token is supported by a tier set

Parameters

Return Values

Last updated