跳到主要内容

IJBSplitsPayer

Git Source

Inherits: IERC165

Functions

defaultSplitsProjectId

function defaultSplitsProjectId() external view returns (uint256);

defaultSplitsDomain

function defaultSplitsDomain() external view returns (uint256);

defaultSplitsGroup

function defaultSplitsGroup() external view returns (uint256);

splitsStore

function splitsStore() external view returns (IJBSplitsStore);

initialize

function initialize(
uint256 _defaultSplitsProjectId,
uint256 _defaultSplitsDomain,
uint256 _defaultSplitsGroup,
uint256 _defaultProjectId,
address payable _defaultBeneficiary,
bool _defaultPreferClaimedTokens,
string memory _defaultMemo,
bytes memory _defaultMetadata,
bool _preferAddToBalance,
address _owner
) external;

setDefaultSplitsReference

function setDefaultSplitsReference(uint256 _projectId, uint256 _domain, uint256 _group) external;

setDefaultSplits

function setDefaultSplits(
uint256 _projectId,
uint256 _domain,
uint256 _group,
JBGroupedSplits[] memory _splitsGroup
) external;

Events

SetDefaultSplitsReference

event SetDefaultSplitsReference(
uint256 indexed projectId, uint256 indexed domain, uint256 indexed group, address caller
);

Pay

event Pay(
uint256 indexed projectId,
address beneficiary,
address token,
uint256 amount,
uint256 decimals,
uint256 leftoverAmount,
uint256 minReturnedTokens,
bool preferClaimedTokens,
string memo,
bytes metadata,
address caller
);

AddToBalance

event AddToBalance(
uint256 indexed projectId,
address beneficiary,
address token,
uint256 amount,
uint256 decimals,
uint256 leftoverAmount,
string memo,
bytes metadata,
address caller
);

DistributeToSplitGroup

event DistributeToSplitGroup(
uint256 indexed projectId, uint256 indexed domain, uint256 indexed group, address caller
);

DistributeToSplit

event DistributeToSplit(JBSplit split, uint256 amount, address defaultBeneficiary, address caller);