Skip to main content

JBRulesetMetadataResolver

Git Source

Functions​

reservedPercent​

function reservedPercent(JBRuleset memory ruleset) internal pure returns (uint16);

cashOutTaxRate​

function cashOutTaxRate(JBRuleset memory ruleset) internal pure returns (uint16);

baseCurrency​

function baseCurrency(JBRuleset memory ruleset) internal pure returns (uint32);

pausePay​

function pausePay(JBRuleset memory ruleset) internal pure returns (bool);

pauseCreditTransfers​

function pauseCreditTransfers(JBRuleset memory ruleset) internal pure returns (bool);

allowOwnerMinting​

function allowOwnerMinting(JBRuleset memory ruleset) internal pure returns (bool);

allowSetCustomToken​

function allowSetCustomToken(JBRuleset memory ruleset) internal pure returns (bool);

allowTerminalMigration​

function allowTerminalMigration(JBRuleset memory ruleset) internal pure returns (bool);

allowSetTerminals​

function allowSetTerminals(JBRuleset memory ruleset) internal pure returns (bool);

allowSetController​

function allowSetController(JBRuleset memory ruleset) internal pure returns (bool);

allowAddAccountingContext​

function allowAddAccountingContext(JBRuleset memory ruleset) internal pure returns (bool);

allowAddPriceFeed​

function allowAddPriceFeed(JBRuleset memory ruleset) internal pure returns (bool);

ownerMustSendPayouts​

function ownerMustSendPayouts(JBRuleset memory ruleset) internal pure returns (bool);

holdFees​

function holdFees(JBRuleset memory ruleset) internal pure returns (bool);

useTotalSurplusForCashOuts​

function useTotalSurplusForCashOuts(JBRuleset memory ruleset) internal pure returns (bool);

useDataHookForPay​

function useDataHookForPay(JBRuleset memory ruleset) internal pure returns (bool);

useDataHookForCashOut​

function useDataHookForCashOut(JBRuleset memory ruleset) internal pure returns (bool);

dataHook​

function dataHook(JBRuleset memory ruleset) internal pure returns (address);

metadata​

function metadata(JBRuleset memory ruleset) internal pure returns (uint16);

packRulesetMetadata​

Pack the funding cycle metadata.

function packRulesetMetadata(JBRulesetMetadata memory rulesetMetadata) internal pure returns (uint256 packed);

Parameters

NameTypeDescription
rulesetMetadataJBRulesetMetadataThe ruleset metadata to validate and pack.

Returns

NameTypeDescription
packeduint256The packed uint256 of all metadata params. The first 8 bits specify the version.

expandMetadata​

Expand the funding cycle metadata.

function expandMetadata(JBRuleset memory ruleset) internal pure returns (JBRulesetMetadata memory);

Parameters

NameTypeDescription
rulesetJBRulesetThe funding cycle having its metadata expanded.

Returns

NameTypeDescription
<none>JBRulesetMetadatarulesetMetadata The ruleset's metadata object.