IJBRulesets
Functions
latestRulesetIdOf
function latestRulesetIdOf(uint256 projectId) external view returns (uint256);
currentApprovalStatusForLatestRulesetOf
function currentApprovalStatusForLatestRulesetOf(uint256 projectId) external view returns (JBApprovalStatus);
currentOf
function currentOf(uint256 projectId) external view returns (JBRuleset memory ruleset);
deriveCycleNumberFrom
function deriveCycleNumberFrom(
uint256 baseRulesetCycleNumber,
uint256 baseRulesetStart,
uint256 baseRulesetDuration,
uint256 start
)
external
returns (uint256);
deriveStartFrom
function deriveStartFrom(
uint256 baseRulesetStart,
uint256 baseRulesetDuration,
uint256 mustStartAtOrAfter
)
external
view
returns (uint256 start);
deriveWeightFrom
function deriveWeightFrom(
uint256 projectId,
uint256 baseRulesetStart,
uint256 baseRulesetDuration,
uint256 baseRulesetWeight,
uint256 baseRulesetWeightCutPercent,
uint256 baseRulesetCacheId,
uint256 start
)
external
view
returns (uint256 weight);
getRulesetOf
function getRulesetOf(uint256 projectId, uint256 rulesetId) external view returns (JBRuleset memory);
latestQueuedOf
function latestQueuedOf(uint256 projectId)
external
view
returns (JBRuleset memory ruleset, JBApprovalStatus approvalStatus);