launchpad_project.gno
CreateProject
func CreateProject(
cur realm,
name string,
tokenPath string,
recipient address,
depositAmount int64,
conditionTokens string,
conditionAmounts string,
tier30Ratio int64,
tier90Ratio int64,
tier180Ratio int64,
startTime int64
) stringCreateProject creates a new launchpad project callable by the administrator or governance.
Halt check: reverts while the Launchpad halt scope is active.
Parameters
cur
realm
current realm context; callers use cross(cur) when crossing into this realm.
name
string
human-readable project name.
tokenPath
string
token path whose tokens are distributed as project rewards.
recipient
address
address authorized to receive project rewards and project proceeds.
depositAmount
int64
total reward-token amount allocated to the project.
conditionTokens
string
optional *PAD*-separated token paths required for deposits.
conditionAmounts
string
optional *PAD*-separated required amounts matching conditionTokens.
tier30Ratio
int64
reward allocation ratio for the 30-day tier.
tier90Ratio
int64
reward allocation ratio for the 90-day tier.
tier180Ratio
int64
reward allocation ratio for the 180-day tier.
startTime
int64
Unix timestamp at which project reward distribution starts.
Return Values
projectId
string
identifier assigned to the newly created project.
TransferLeftFromProjectByAdmin
TransferLeftFromProjectByAdmin transfers unreserved reward tokens from an ended project. Active depositor claims remain reserved and are excluded; only the administrator may call it.
Halt check: reverts while the Launchpad halt scope is active.
Parameters
cur
realm
current realm context; callers use cross(cur) when crossing into this realm.
projectID
string
identifier of the ended project whose remaining balance is transferred.
recipient
address
destination address for the transferable balance.
Return Values
amount
int64
number of reward tokens transferred after active claims are reserved.
Last updated