Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

launchpad package

Function

MakeProjectTierID

func MakeProjectTierID(projectID string, duration int64) string

MakeProjectTierID generates a unique tier ID based on the given project ID and the tier duration.

The generated ID combines the `projectId` and the `duration` in the following format: "{projectId}:{duration}"

Parameters: - projectId (string): The unique ID of the project associated with the tier. - duration (uint64): The duration of the tier (e.g., 30, 90, 180 days).

Returns: - string: A unique tier ID in the format "projectId:duration".

Params

Command

gnokey query vm/qeval -remote "https://rpc.topaz.testnets.gno.land" -data "gno.land/r/gnoswap/launchpad.MakeProjectTierID(,)"

Result