Sundial
搜索文档…
Projects

Create Project

The create project button is currently hidden for security reasons and will open later. Projects could contact us and prepare relevant information to create the project. The fundraising application shall state the purpose of the fund and the project commitment. It will be the Meta-Evidence in arbitration.
    projectSellTokenAddress: The token address of sell token.
    projectFundTokenAddress: The token address of fund token.
    projectSellDeposit: The token amount of sell token.
    projectFundDeposit: The token amount of fund token.
    startTime: When the stream starts.
    stopTime: When the stream stops.
    lockPeriod: The time of lock for unsale token.
    hash: The hash of fundraising application in ipfs.
1
function createProject(address projectSellTokenAddress, uint256 projectSellDeposit, address projectFundTokenAddress,
2
uint256 projectFundDeposit, uint256 startTime, uint256 stopTime, uint256 lockPeriod, string calldata hash)
3
external returns (uint256)
Copied!
The project creation time needs to be less than startTime.

Withdraw

The projects could withdraw stream balance into the wallet. Withdrawal amount needs not exceed the stream balance at that time.
    projectId: The id of the project to withdraw tokens from.
    amount: The amount of tokens to withdraw.
1
function withdrawFromProject(uint256 projectId, uint256 amount) external returns (bool)
Copied!
When the projects has arbitration, the project will not be able to withdraw.

Refund

The projects could refund the remain XYZ token to the wallet after the lock period.
RemainXYZToken=TargetSelltokenActualSellTokenRemain XYZ Token = Target Sell token - Actual Sell Token
    projectId: The id of the project to refund tokens from.
1
function projectRefunds(uint256 projectId) external returns (bool)
Copied!

Create Dispute

The project should pay the arbitration fee within 24 hours after the arbitration is created. The arbitration will be submitted to the Decentralized Court after the project pay.
    projectId: The id of the project to create dispute.
1
function createDisputeForProject(uint256 projectId) external payable returns(bool)
Copied!

Submit Evidence

When the arbitration is submitted to the decentralized court, the project could submit the evidence in your own defence.
    projectId: The id of the project to create dispute.
    _evidence: The hash of evidence in ipfs.
1
function submitEvidence(uint256 projectId, string calldata _evidence) external
Copied!
最近更新 2mo ago