deposit.gno

DepositGns

func DepositGns(
    targetProjectTierId string,
    amount uint64,
) string

Deposits GNS to a launchpad project pool.

Parameters

Name
Type
Description

targetProjectTierId

string

The pool tier ID to deposit.

amount

uint64

The amount of GNS token to deposit.

Return Values

Name
Type
Description

depositId

string

The ID of the deposit.

CollectDepositGns

func CollectDepositGns() uint64

Collects the deposited GNS.

Return Values

Name
Type
Description

amount

uint64

The collected amount of GNS.

CollectDepositGnsByProjectId

func CollectDepositGnsByProjectId(
    projectId string,
) uint64

Collects the deposited GNS using a projectID.

Parameters

Name
Type
Description

projectId

string

The ID of a project to collect GNS.

Return Values

Name
Type
Description

amount

uint64

The collected amount of GNS.

CollectDepositGnsByDepositId

func CollectDepositGnsByDepositId(
    depositId string,
) uint64

Collects the deposited GNS using a depositID.

Parameters

Name
Type
Description

depositId

string

The ID of a deposit to collect GNS.

Return Values

Name
Type
Description

amount

uint64

The collected amount of gns.

Last updated

Was this helpful?