ISplitsMain

Git Source

Author: 0xSplits

Interface for SplitsFactory to interact with SplitsMain

Functions

createSplit

function createSplit(
    address[] calldata accounts,
    uint32[] calldata percentAllocations,
    uint32 distributorFee,
    address controller
) external returns (address);

distributeETH

function distributeETH(
    address split,
    address[] calldata accounts,
    uint32[] calldata percentAllocations,
    uint32 distributorFee,
    address distributorAddress
) external;

getHash

function getHash(address split) external view returns (bytes32);

predictImmutableSplitAddress

function predictImmutableSplitAddress(
    address[] calldata accounts,
    uint32[] calldata percentAllocations,
    uint32 distributorFee
) external view returns (address);

updateSplit

function updateSplit(
    address split,
    address[] calldata accounts,
    uint32[] calldata percentAllocations,
    uint32 distributorFee
) external;

withdraw

function withdraw(address account, uint256 withdrawETH, address[] calldata tokens) external;