Search Apps Documentation Source Content File Folder Download Copy Actions Download

proxy.gno

1.58 Kb ยท 54 lines
 1package launchpad
 2
 3// CreateProject creates a new launchpad project with tiered allocations.
 4func CreateProject(
 5	cur realm,
 6	name string,
 7	tokenPath string,
 8	recipient address,
 9	depositAmount int64,
10	conditionTokens string,
11	conditionAmounts string,
12	tier30Ratio int64,
13	tier90Ratio int64,
14	tier180Ratio int64,
15	startTime int64,
16) string {
17	return getImplementation().CreateProject(
18		name,
19		tokenPath,
20		recipient,
21		depositAmount,
22		conditionTokens,
23		conditionAmounts,
24		tier30Ratio,
25		tier90Ratio,
26		tier180Ratio,
27		startTime,
28	)
29}
30
31// CollectProtocolFee collects accumulated protocol fees from launchpad operations.
32func CollectProtocolFee(cur realm) {
33	getImplementation().CollectProtocolFee()
34}
35
36// TransferLeftFromProjectByAdmin transfers the remaining rewards of a project to a specified recipient.
37func TransferLeftFromProjectByAdmin(cur realm, projectID string, recipient address) int64 {
38	return getImplementation().TransferLeftFromProjectByAdmin(projectID, recipient)
39}
40
41// DepositGns deposits GNS tokens to a launchpad project tier.
42func DepositGns(cur realm, targetProjectTierID string, depositAmount int64, referrer string) string {
43	return getImplementation().DepositGns(targetProjectTierID, depositAmount, referrer)
44}
45
46// CollectDepositGns collects rewards from a deposit.
47func CollectDepositGns(cur realm, depositID string) (int64, error) {
48	return getImplementation().CollectDepositGns(depositID)
49}
50
51// CollectRewardByDepositId collects rewards from a deposit.
52func CollectRewardByDepositId(cur realm, depositID string) int64 {
53	return getImplementation().CollectRewardByDepositId(depositID)
54}