Milestone Contract
Address
Address : (not yet deployed) on Klaytn Blockchain Main-net
Summary
Milestone contracts define milestones for projects provided to Otherworld.
Defines the milestone details.
Milestones are included in one universe.
A milestone can contain multiple comments.
Defines the current progress of the milestone.
Defines the current progress of the milestone.
Defines the metadata URL for the milestone.
Defines the comment details.
Comments are included in one milestone.
Defines the metadata URL of the comment.
Data
Base
Name
Type
Created Timestamp
Uint
Milestone
Name
Type
ID
Uint
Universe ID
Uint
Metadata URL
String
State
String
Progressing
Uint
Is Active
Boolean
Updated Timestamp
Uint
Created Timestamp
Uint
Comment
Name
Type
ID
Uint
Milestone ID
Uint
Metadata URL
String
Is Active
Boolean
Created Timestamp
Uint
Interface
interface IOWMilestone {
function addMilestone(uint256 _universeId, string calldata _URL) external;
function setMilestoneURL(uint256 _milestoneId, string calldata _URL)
external;
function setMilestoneUniverse(uint256 _milestoneId, uint256 _universeId)
external;
function setMilestoneState(
uint256 _milestoneId,
MilestoneBase.MilestoneState _state
) external;
function setMilestoneProgressing(uint256 _milestoneId, uint8 _progressing)
external;
function setMilestoneActive(uint256 _milestoneId, bool _isActive) external;
function isExistMilestoneById(uint256 _milestoneId)
external
view
returns (bool);
function getMilestoneById(uint256 _milestoneId)
external
view
returns (MilestoneBase.Milestone memory);
function getMilestoneOfUniverse(uint256 _universeId)
external
view
returns (MilestoneBase.Milestone[] memory);
function addComment(uint256 _milestoneId, string calldata _URL) external;
function setCommentURL(uint256 _commentId, string calldata _URL) external;
function setCommentMilestone(uint256 _commentId, uint256 _milestoneId)
external;
function setCommentActive(uint256 _commentId, bool _isActive) external;
function isExistCommentById(uint256 _commentId)
external
view
returns (bool);
function getCommentById(uint256 _commentId)
external
view
returns (MilestoneBase.Comment memory);
function getCommentOfMilestone(uint256 _milestoneId)
external
view
returns (MilestoneBase.Comment[] memory);
function setBaseURI(string calldata _baseURI) external;
function getBaseURI() external view returns (string memory);
}
Last updated