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

Functions

CollectDepositGns

func CollectDepositGns(cur realm, depositID string) (int64, error)

CollectDepositGns collects rewards from a deposit.

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "CollectDepositGns" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "topaz-1" -remote "https://rpc.topaz.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.topaz.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "CollectDepositGns" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "topaz-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.topaz.testnets.gno.land" call.tx
  

CollectEmissionReward

func CollectEmissionReward(cur realm)

CollectEmissionReward collects accumulated launchpad emission rewards.

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "CollectEmissionReward" -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "topaz-1" -remote "https://rpc.topaz.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.topaz.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "CollectEmissionReward" -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "topaz-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.topaz.testnets.gno.land" call.tx
  

CollectProtocolFee

func CollectProtocolFee(cur realm)

CollectProtocolFee collects accumulated protocol fees from launchpad operations.

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "CollectProtocolFee" -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "topaz-1" -remote "https://rpc.topaz.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.topaz.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "CollectProtocolFee" -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "topaz-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.topaz.testnets.gno.land" call.tx
  

CollectProtocolFeeReward

func CollectProtocolFeeReward(cur realm, tokenPath string)

CollectProtocolFeeReward collects accumulated launchpad protocol fee rewards for the provided token path.

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "CollectProtocolFeeReward" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "topaz-1" -remote "https://rpc.topaz.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.topaz.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "CollectProtocolFeeReward" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "topaz-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.topaz.testnets.gno.land" call.tx
  

CollectRewardByDepositId

func CollectRewardByDepositId(cur realm, depositID string) int64

CollectRewardByDepositId collects rewards from a deposit.

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "CollectRewardByDepositId" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "topaz-1" -remote "https://rpc.topaz.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.topaz.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "CollectRewardByDepositId" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "topaz-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.topaz.testnets.gno.land" call.tx
  

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 with tiered allocations.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "CreateProject" -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "topaz-1" -remote "https://rpc.topaz.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.topaz.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "CreateProject" -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "topaz-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.topaz.testnets.gno.land" call.tx
  

DepositGns

func DepositGns(cur realm, targetProjectTierID string, depositAmount int64, referrer string) string

DepositGns deposits GNS tokens to a launchpad project tier.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "DepositGns" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "topaz-1" -remote "https://rpc.topaz.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.topaz.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "DepositGns" -args $'' -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "topaz-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.topaz.testnets.gno.land" call.tx
  

GetCurrentDepositId

func GetCurrentDepositId() int64

GetCurrentDepositId returns the current deposit counter value.

Command

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

Result

GetDepositAmount

func GetDepositAmount(depositId string) (int64, error)

GetDepositAmount returns the deposit amount of a deposit by its ID.

Param

Command

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

Result

GetDepositCount

func GetDepositCount() int

GetDepositCount returns the total number of deposits.

Command

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

Result

GetDepositCreatedAt

func GetDepositCreatedAt(depositId string) (int64, error)

GetDepositCreatedAt returns the created time of a deposit by its ID.

Param

Command

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

Result

GetDepositCreatedHeight

func GetDepositCreatedHeight(depositId string) (int64, error)

GetDepositCreatedHeight returns the created height of a deposit by its ID.

Param

Command

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

Result

GetDepositEndTime

func GetDepositEndTime(depositId string) (int64, error)

GetDepositEndTime returns the end time of a deposit by its ID.

Param

Command

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

Result

GetDepositProjectID

func GetDepositProjectID(depositId string) (string, error)

GetDepositProjectID returns the project ID of a deposit by its ID.

Param

Command

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

Result

GetDepositProjectTierID

func GetDepositProjectTierID(depositId string) (string, error)

GetDepositProjectTierID returns the project tier ID of a deposit by its ID.

Param

Command

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

Result

GetDepositTier

func GetDepositTier(depositId string) (int64, error)

GetDepositTier returns the tier of a deposit by its ID.

Param

Command

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

Result

GetDepositWithdrawnHeight

func GetDepositWithdrawnHeight(depositId string) (int64, error)

GetDepositWithdrawnHeight returns the withdrawn height of a deposit by its ID.

Param

Command

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

Result

GetDepositWithdrawnTime

func GetDepositWithdrawnTime(depositId string) (int64, error)

GetDepositWithdrawnTime returns the withdrawn time of a deposit by its ID.

Param

Command

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

Result

GetImplementationPackagePath

func GetImplementationPackagePath() string

GetImplementationPackagePath returns the package path of the currently active implementation.

Command

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

Result

GetProjectActiveStatus

func GetProjectActiveStatus(projectId string) (bool, error)

GetProjectActiveStatus returns whether a project is currently active.

Param

Command

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

Result

GetProjectCount

func GetProjectCount() int

GetProjectCount returns the total number of projects.

Command

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

Result

GetProjectCreatedAt

func GetProjectCreatedAt(projectId string) (int64, error)

GetProjectCreatedAt returns the created time of a project by its ID.

Param

Command

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

Result

GetProjectCreatedHeight

func GetProjectCreatedHeight(projectId string) (int64, error)

GetProjectCreatedHeight returns the created height of a project by its ID.

Param

Command

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

Result

GetProjectDepositAmount

func GetProjectDepositAmount(projectId string) (int64, error)

GetProjectDepositAmount returns the deposit amount of a project by its ID.

Param

Command

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

Result

GetProjectIDs

func GetProjectIDs(offset, count int) []string

GetProjectIDs returns a paginated list of project IDs.

Params

Command

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

Result

GetProjectName

func GetProjectName(projectId string) (string, error)

GetProjectName returns the name of a project by its ID.

Param

Command

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

Result

GetProjectTierDepositCount

func GetProjectTierDepositCount(projectId string, tier int64) int

GetProjectTierDepositCount returns the total number of deposits for a project tier.

Params

Command

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

Result

GetProjectTierDepositIDs

func GetProjectTierDepositIDs(projectId string, tier int64, offset, count int) []string

GetProjectTierDepositIDs returns a paginated list of deposit IDs for a project tier.

Params

Command

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

Result

GetProjectTierDistributeAmountPerSecondX128

func GetProjectTierDistributeAmountPerSecondX128(projectId string, tier int64) (*u256.Uint, error)

GetProjectTierDistributeAmountPerSecondX128 returns the distribute amount per second (Q128) of a project tier.

Params

Command

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

Result

GetProjectTierEndTime

func GetProjectTierEndTime(projectId string, tier int64) (int64, error)

GetProjectTierEndTime returns the end time of a project tier.

Params

Command

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

Result

GetProjectTierRewardAccumulatedDistributeAmount

func GetProjectTierRewardAccumulatedDistributeAmount(projectTierId string) (int64, error)

GetProjectTierRewardAccumulatedDistributeAmount returns the accumulated distribute amount of a reward manager.

Param

Command

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

Result

GetProjectTierRewardAccumulatedRewardPerDepositX128

func GetProjectTierRewardAccumulatedRewardPerDepositX128(projectTierId string) (*u256.Uint, error)

GetProjectTierRewardAccumulatedRewardPerDepositX128 returns the accumulated reward per deposit (Q128) of a reward manager.

Param

Command

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

Result

GetProjectTierRewardAccumulatedTime

func GetProjectTierRewardAccumulatedTime(projectTierId string) (int64, error)

GetProjectTierRewardAccumulatedTime returns the accumulated time of a reward manager.

Param

Command

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

Result

GetProjectTierRewardClaimableDuration

func GetProjectTierRewardClaimableDuration(projectTierId string) (int64, error)

GetProjectTierRewardClaimableDuration returns the reward claimable duration of a reward manager.

Param

Command

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

Result

GetProjectTierRewardDistributeAmountPerSecondX128

func GetProjectTierRewardDistributeAmountPerSecondX128(projectTierId string) (*u256.Uint, error)

GetProjectTierRewardDistributeAmountPerSecondX128 returns the distribute amount per second (Q128) of a reward manager.

Param

Command

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

Result

GetProjectTierRewardDistributeEndTime

func GetProjectTierRewardDistributeEndTime(projectTierId string) (int64, error)

GetProjectTierRewardDistributeEndTime returns the distribute end time of a reward manager.

Param

Command

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

Result

GetProjectTierRewardDistributeStartTime

func GetProjectTierRewardDistributeStartTime(projectTierId string) (int64, error)

GetProjectTierRewardDistributeStartTime returns the distribute start time of a reward manager.

Param

Command

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

Result

GetProjectTierRewardManagerCount

func GetProjectTierRewardManagerCount() int

GetProjectTierRewardManagerCount returns the total number of reward managers.

Command

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

Result

GetProjectTierRewardTotalClaimedAmount

func GetProjectTierRewardTotalClaimedAmount(projectTierId string) (int64, error)

GetProjectTierRewardTotalClaimedAmount returns the total claimed amount of a reward manager.

Param

Command

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

Result

GetProjectTierRewardTotalDistributeAmount

func GetProjectTierRewardTotalDistributeAmount(projectTierId string) (int64, error)

GetProjectTierRewardTotalDistributeAmount returns the total distribute amount of a reward manager.

Param

Command

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

Result

GetProjectTierStartTime

func GetProjectTierStartTime(projectId string, tier int64) (int64, error)

GetProjectTierStartTime returns the start time of a project tier.

Params

Command

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

Result

GetProjectTierTotalCollectedAmount

func GetProjectTierTotalCollectedAmount(projectId string, tier int64) (int64, error)

GetProjectTierTotalCollectedAmount returns the total collected amount of a project tier.

Params

Command

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

Result

GetProjectTierTotalDepositAmount

func GetProjectTierTotalDepositAmount(projectId string, tier int64) (int64, error)

GetProjectTierTotalDepositAmount returns the total deposit amount of a project tier.

Params

Command

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

Result

GetProjectTierTotalDepositCount

func GetProjectTierTotalDepositCount(projectId string, tier int64) (int64, error)

GetProjectTierTotalDepositCount returns the total deposit count of a project tier.

Params

Command

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

Result

GetProjectTierTotalDistributeAmount

func GetProjectTierTotalDistributeAmount(projectId string, tier int64) (int64, error)

GetProjectTierTotalDistributeAmount returns the total distribute amount of a project tier.

Params

Command

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

Result

GetProjectTierTotalWithdrawAmount

func GetProjectTierTotalWithdrawAmount(projectId string, tier int64) (int64, error)

GetProjectTierTotalWithdrawAmount returns the total withdraw amount of a project tier.

Params

Command

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

Result

GetProjectTierTotalWithdrawCount

func GetProjectTierTotalWithdrawCount(projectId string, tier int64) (int64, error)

GetProjectTierTotalWithdrawCount returns the total withdraw count of a project tier.

Params

Command

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

Result

GetProjectTiersRatios

func GetProjectTiersRatios(projectId string) (map[int64]int64, error)

GetProjectTiersRatios returns the tiers ratios map of a project by its ID.

Param

Command

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

Result

GetProjectTokenPath

func GetProjectTokenPath(projectId string) (string, error)

GetProjectTokenPath returns the token path of a project by its ID.

Param

Command

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

Result

GetTotalGNSStakedAmount

func GetTotalGNSStakedAmount() int64

GetTotalGNSStakedAmount returns the total amount of GNS currently staked across all launchpad deposits.

Command

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

Result

MakeProjectID

func MakeProjectID(tokenPath string, createdHeight int64) string

MakeProjectID generates a unique project ID based on the given token path and the current block height.

The generated ID combines the `tokenPath` and the current block height in the following format: "{tokenPath}:{height}"

Parameters: - tokenPath (string): The path of the token associated with the project.

Returns: - string: A unique project ID in the format "tokenPath:height".

Params

Command

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

Result

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

NewBPTreeN

func NewBPTreeN(fanout int) *bptree.BPTree

NewBPTreeN allocates a BP-tree under /r/gnoswap/launchpad's realm context (the realm that declares Project/Deposit/RewardManager). The tree's PkgID is therefore /r/gnoswap/launchpad, matching the domain values it stores, so tree.Set leaf-slot writes clear the readonly-taint gate regardless of which realm (launchpad/v1, mock, tests) calls Set. Implementations, mocks, and tests must allocate launchpad trees through here rather than calling bptree.NewBPTreeN directly in their own realm.

Param

Command

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

Result

RegisterInitializer

func RegisterInitializer(cur realm, initializer func(_ int, rlm realm, launchpadStore ILaunchpadStore) ILaunchpad)

RegisterInitializer registers a new launchpad implementation version. This function is called by each version (v1, v2, etc.) during initialization to register their implementation with the proxy system.

The initializer function creates a new instance of the implementation using the provided launchpadStore interface.

Security: Only contracts within the domain path can register initializers. Each package path can only register once to prevent duplicate registrations.

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "RegisterInitializer" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "topaz-1" -remote "https://rpc.topaz.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.topaz.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "RegisterInitializer" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "topaz-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.topaz.testnets.gno.land" call.tx
  

TransferLeftFromProjectByAdmin

func TransferLeftFromProjectByAdmin(cur realm, projectID string, recipient address) int64

TransferLeftFromProjectByAdmin transfers the remaining rewards of a project to a specified recipient.

Params

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "TransferLeftFromProjectByAdmin" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "topaz-1" -remote "https://rpc.topaz.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.topaz.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "TransferLeftFromProjectByAdmin" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "topaz-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.topaz.testnets.gno.land" call.tx
  

UpgradeImpl

func UpgradeImpl(cur realm, packagePath string)

UpgradeImpl switches the active launchpad implementation to a different version. This function allows seamless upgrades from one version to another without data migration or downtime.

Security: Only admin or governance can perform upgrades. The new implementation must have been previously registered via RegisterInitializer.

Param

Command

# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.

gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "UpgradeImpl" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "topaz-1" -remote "https://rpc.topaz.testnets.gno.land" ADDRESSgnokey query -remote "https://rpc.topaz.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "UpgradeImpl" -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "topaz-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.topaz.testnets.gno.land" call.tx
  

NewCounter

func NewCounter() *Counter

NewCounter creates a new Counter starting at 0.

Command

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

Result

GetDeposit

func GetDeposit(depositId string) (*Deposit, error)

GetDeposit retrieves a deposit by its ID. Returns a cloned deposit to prevent external modification.

Param

Command

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

Result

NewDeposit

func NewDeposit( depositID string, projectID string, tier int64, depositor address, depositAmount int64, createdHeight int64, createdTime int64, endTime int64, ) *Deposit

NewDeposit returns a pointer to a new Deposit with the given values.

Params

Command

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

Result

NewLaunchpadStore

func NewLaunchpadStore(kvStore store.KVStore) ILaunchpadStore

NewLaunchpadStore creates a new launchpad store instance with the provided KV store. This function is used by the upgrade system to create storage instances for each implementation.

Param

Command

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

Result

GetProject

func GetProject(projectId string) (*Project, error)

GetProject retrieves a project by its ID. Returns a cloned project to prevent external modification.

Param

Command

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

Result

NewProject

func NewProject( name string, tokenPath string, depositAmount int64, recipient address, createdHeight int64, createdAt int64, ) *Project

Params

Command

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

Result

GetProjectCondition

func GetProjectCondition(projectId string, tokenPath string) (*ProjectCondition, error)

GetProjectCondition retrieves a specific condition of a project. Returns a cloned condition to prevent external modification.

Params

Command

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

Result

NewProjectCondition

func NewProjectCondition(tokenPath string, minimumAmount int64) *ProjectCondition

Params

Command

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

Result

NewProjectConditionsWithError

func NewProjectConditionsWithError(conditionTokens string, conditionAmounts string) ([]*ProjectCondition, error)

Params

Command

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

Result

GetProjectTier

func GetProjectTier(projectId string, tier int64) (*ProjectTier, error)

GetProjectTier retrieves a specific tier of a project. Returns a cloned tier to prevent external modification.

Params

Command

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

Result

NewProjectTier

func NewProjectTier( projectID string, tierDuration int64, totalDistributeAmount int64, startTime int64, endTime int64, ) *ProjectTier

NewProjectTier returns a pointer to a new ProjectTier with the given values.

Params

Command

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

Result

GetProjectTierRewardManager

func GetProjectTierRewardManager(projectTierId string) (*RewardManager, error)

GetProjectTierRewardManager retrieves a reward manager by project tier ID. Returns a cloned reward manager to prevent external modification.

Param

Command

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

Result

NewRewardManager

func NewRewardManager( totalDistributeAmount int64, distributeStartTime int64, distributeEndTime int64, rewardCollectableDuration int64, ) *RewardManager

NewRewardManager returns a pointer to a new RewardManager with the given values.

Params

Command

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

Result

GetRewardState

func GetRewardState(projectTierId string, depositId string) (*RewardState, error)

GetRewardState retrieves a reward state by project tier ID and deposit ID. Returns a cloned reward state to prevent external modification.

Params

Command

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

Result

NewRewardState

func NewRewardState( accumulatedRewardPerDepositX128 *u256.Uint, depositAmount, distributeStartTime, distributeEndTime int64, claimableTime int64, ) *RewardState

NewRewardState returns a pointer to a new RewardState with the given values.

Params

Command

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

Result