Skip to main content

IFundingCycles

Git Source

Functions

latestIdOf

function latestIdOf(uint256 _projectId) external view returns (uint256);

count

function count() external view returns (uint256);

BASE_WEIGHT

function BASE_WEIGHT() external view returns (uint256);

MAX_CYCLE_LIMIT

function MAX_CYCLE_LIMIT() external view returns (uint256);

get

function get(uint256 _fundingCycleId) external view returns (FundingCycle memory);

queuedOf

function queuedOf(uint256 _projectId) external view returns (FundingCycle memory);

currentOf

function currentOf(uint256 _projectId) external view returns (FundingCycle memory);

currentBallotStateOf

function currentBallotStateOf(uint256 _projectId) external view returns (BallotState);

configure

function configure(
uint256 _projectId,
FundingCycleProperties calldata _properties,
uint256 _metadata,
uint256 _fee,
bool _configureActiveFundingCycle
) external returns (FundingCycle memory fundingCycle);

tap

function tap(uint256 _projectId, uint256 _amount) external returns (FundingCycle memory fundingCycle);

Events

Configure

event Configure(
uint256 indexed fundingCycleId,
uint256 indexed projectId,
uint256 reconfigured,
FundingCycleProperties _properties,
uint256 metadata,
address caller
);

Tap

event Tap(
uint256 indexed fundingCycleId, uint256 indexed projectId, uint256 amount, uint256 newTappedAmount, address caller
);

Init

event Init(
uint256 indexed fundingCycleId,
uint256 indexed projectId,
uint256 number,
uint256 previous,
uint256 weight,
uint256 start
);