For the complete documentation index, see llms.txt. This page is also available as Markdown.

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
) string

CreateProject creates a new launchpad project callable by the administrator or governance.

Halt check: reverts while the Launchpad halt scope is active.

Parameters

Name
Type
Description

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

Name
Type
Description

projectId

string

identifier assigned to the newly created project.

source

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

Name
Type
Description

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

Name
Type
Description

amount

int64

number of reward tokens transferred after active claims are reserved.

source

Last updated