CollectDepositGns
func CollectDepositGns(cur realm, depositID string) (int64, error)
Link
Execute
CollectDepositGns collects rewards from a deposit.
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 5000000 -send " " -broadcast -chainid "test11" -remote "https://rpc.test11.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test11.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "CollectDepositGns" -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test11" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test11.testnets.gno.land" call.tx
CollectProtocolFee
func CollectProtocolFee(cur realm)
Link
Execute
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 5000000 -send " " -broadcast -chainid "test11" -remote "https://rpc.test11.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test11.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "CollectProtocolFee" -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test11" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test11.testnets.gno.land" call.tx
CollectRewardByDepositId
func CollectRewardByDepositId(cur realm, depositID string) int64
Link
Execute
CollectRewardByDepositId collects rewards from a deposit.
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 5000000 -send " " -broadcast -chainid "test11" -remote "https://rpc.test11.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test11.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "CollectRewardByDepositId" -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test11" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test11.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
Link
Execute
CreateProject creates a new launchpad project with tiered allocations.
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 5000000 -send " " -broadcast -chainid "test11" -remote "https://rpc.test11.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test11.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 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test11" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test11.testnets.gno.land" call.tx
DepositGns
func DepositGns(cur realm, targetProjectTierID string, depositAmount int64, referrer string) string
Link
Execute
DepositGns deposits GNS tokens to a launchpad project tier.
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 5000000 -send " " -broadcast -chainid "test11" -remote "https://rpc.test11.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test11.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 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test11" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test11.testnets.gno.land" call.tx
GetCurrentDepositId
func GetCurrentDepositId() int64
Link
Execute
GetCurrentDepositId returns the current deposit counter value.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetCurrentDepositId()"
GetDepositAmount
func GetDepositAmount(depositId string) (int64, error)
Link
Execute
GetDepositAmount returns the deposit amount of a deposit by its ID.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetDepositAmount( )"
GetDepositCount
func GetDepositCount() int
Link
Execute
GetDepositCount returns the total number of deposits.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetDepositCount()"
GetDepositCreatedAt
func GetDepositCreatedAt(depositId string) (int64, error)
Link
Execute
GetDepositCreatedAt returns the created time of a deposit by its ID.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetDepositCreatedAt( )"
GetDepositCreatedHeight
func GetDepositCreatedHeight(depositId string) (int64, error)
Link
Execute
GetDepositCreatedHeight returns the created height of a deposit by its ID.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetDepositCreatedHeight( )"
GetDepositEndTime
func GetDepositEndTime(depositId string) (int64, error)
Link
Execute
GetDepositEndTime returns the end time of a deposit by its ID.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetDepositEndTime( )"
GetDepositProjectID
func GetDepositProjectID(depositId string) (string, error)
Link
Execute
GetDepositProjectID returns the project ID of a deposit by its ID.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetDepositProjectID( )"
GetDepositProjectTierID
func GetDepositProjectTierID(depositId string) (string, error)
Link
Execute
GetDepositProjectTierID returns the project tier ID of a deposit by its ID.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetDepositProjectTierID( )"
GetDepositTier
func GetDepositTier(depositId string) (int64, error)
Link
Execute
GetDepositTier returns the tier of a deposit by its ID.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetDepositTier( )"
GetDepositWithdrawnHeight
func GetDepositWithdrawnHeight(depositId string) (int64, error)
Link
Execute
GetDepositWithdrawnHeight returns the withdrawn height of a deposit by its ID.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetDepositWithdrawnHeight( )"
GetDepositWithdrawnTime
func GetDepositWithdrawnTime(depositId string) (int64, error)
Link
Execute
GetDepositWithdrawnTime returns the withdrawn time of a deposit by its ID.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetDepositWithdrawnTime( )"
GetImplementationPackagePath
func GetImplementationPackagePath() string
Link
Execute
GetImplementationPackagePath returns the package path of the currently active implementation.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetImplementationPackagePath()"
GetProjectActiveStatus
func GetProjectActiveStatus(projectId string) (bool, error)
Link
Execute
GetProjectActiveStatus returns whether a project is currently active.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectActiveStatus( )"
GetProjectCount
func GetProjectCount() int
Link
Execute
GetProjectCount returns the total number of projects.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectCount()"
GetProjectCreatedAt
func GetProjectCreatedAt(projectId string) (int64, error)
Link
Execute
GetProjectCreatedAt returns the created time of a project by its ID.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectCreatedAt( )"
GetProjectCreatedHeight
func GetProjectCreatedHeight(projectId string) (int64, error)
Link
Execute
GetProjectCreatedHeight returns the created height of a project by its ID.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectCreatedHeight( )"
GetProjectDepositAmount
func GetProjectDepositAmount(projectId string) (int64, error)
Link
Execute
GetProjectDepositAmount returns the deposit amount of a project by its ID.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectDepositAmount( )"
GetProjectIDs
func GetProjectIDs(offset, count int) []string
Link
Execute
GetProjectIDs returns a paginated list of project IDs.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectIDs( , )"
GetProjectName
func GetProjectName(projectId string) (string, error)
Link
Execute
GetProjectName returns the name of a project by its ID.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectName( )"
GetProjectTierDepositCount
func GetProjectTierDepositCount(projectId string, tier int64) int
Link
Execute
GetProjectTierDepositCount returns the total number of deposits for a project tier.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTierDepositCount( , )"
GetProjectTierDepositIDs
func GetProjectTierDepositIDs(projectId string, tier int64, offset, count int) []string
Link
Execute
GetProjectTierDepositIDs returns a paginated list of deposit IDs for a project tier.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTierDepositIDs( , , , )"
GetProjectTierDistributeAmountPerSecondX128
func GetProjectTierDistributeAmountPerSecondX128(projectId string, tier int64) (*u256.Uint, error)
Link
Execute
GetProjectTierDistributeAmountPerSecondX128 returns the distribute amount per second (Q128) of a project tier.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTierDistributeAmountPerSecondX128( , )"
GetProjectTierEndTime
func GetProjectTierEndTime(projectId string, tier int64) (int64, error)
Link
Execute
GetProjectTierEndTime returns the end time of a project tier.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTierEndTime( , )"
GetProjectTierRewardAccumulatedDistributeAmount
func GetProjectTierRewardAccumulatedDistributeAmount(projectTierId string) (int64, error)
Link
Execute
GetProjectTierRewardAccumulatedDistributeAmount returns the accumulated distribute amount of a reward manager.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTierRewardAccumulatedDistributeAmount( )"
GetProjectTierRewardAccumulatedHeight
func GetProjectTierRewardAccumulatedHeight(projectTierId string) (int64, error)
Link
Execute
GetProjectTierRewardAccumulatedHeight returns the accumulated height of a reward manager.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTierRewardAccumulatedHeight( )"
GetProjectTierRewardAccumulatedRewardPerDepositX128
func GetProjectTierRewardAccumulatedRewardPerDepositX128(projectTierId string) (*u256.Uint, error)
Link
Execute
GetProjectTierRewardAccumulatedRewardPerDepositX128 returns the accumulated reward per deposit (Q128) of a reward manager.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTierRewardAccumulatedRewardPerDepositX128( )"
GetProjectTierRewardAccumulatedTime
func GetProjectTierRewardAccumulatedTime(projectTierId string) (int64, error)
Link
Execute
GetProjectTierRewardAccumulatedTime returns the accumulated time of a reward manager.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTierRewardAccumulatedTime( )"
GetProjectTierRewardClaimableDuration
func GetProjectTierRewardClaimableDuration(projectTierId string) (int64, error)
Link
Execute
GetProjectTierRewardClaimableDuration returns the reward claimable duration of a reward manager.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTierRewardClaimableDuration( )"
GetProjectTierRewardDistributeAmountPerSecondX128
func GetProjectTierRewardDistributeAmountPerSecondX128(projectTierId string) (*u256.Uint, error)
Link
Execute
GetProjectTierRewardDistributeAmountPerSecondX128 returns the distribute amount per second (Q128) of a reward manager.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTierRewardDistributeAmountPerSecondX128( )"
GetProjectTierRewardDistributeEndTime
func GetProjectTierRewardDistributeEndTime(projectTierId string) (int64, error)
Link
Execute
GetProjectTierRewardDistributeEndTime returns the distribute end time of a reward manager.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTierRewardDistributeEndTime( )"
GetProjectTierRewardDistributeStartTime
func GetProjectTierRewardDistributeStartTime(projectTierId string) (int64, error)
Link
Execute
GetProjectTierRewardDistributeStartTime returns the distribute start time of a reward manager.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTierRewardDistributeStartTime( )"
GetProjectTierRewardManagerCount
func GetProjectTierRewardManagerCount() int
Link
Execute
GetProjectTierRewardManagerCount returns the total number of reward managers.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTierRewardManagerCount()"
GetProjectTierRewardTotalClaimedAmount
func GetProjectTierRewardTotalClaimedAmount(projectTierId string) (int64, error)
Link
Execute
GetProjectTierRewardTotalClaimedAmount returns the total claimed amount of a reward manager.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTierRewardTotalClaimedAmount( )"
GetProjectTierRewardTotalDistributeAmount
func GetProjectTierRewardTotalDistributeAmount(projectTierId string) (int64, error)
Link
Execute
GetProjectTierRewardTotalDistributeAmount returns the total distribute amount of a reward manager.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTierRewardTotalDistributeAmount( )"
GetProjectTierStartTime
func GetProjectTierStartTime(projectId string, tier int64) (int64, error)
Link
Execute
GetProjectTierStartTime returns the start time of a project tier.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTierStartTime( , )"
GetProjectTierTotalCollectedAmount
func GetProjectTierTotalCollectedAmount(projectId string, tier int64) (int64, error)
Link
Execute
GetProjectTierTotalCollectedAmount returns the total collected amount of a project tier.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTierTotalCollectedAmount( , )"
GetProjectTierTotalDepositAmount
func GetProjectTierTotalDepositAmount(projectId string, tier int64) (int64, error)
Link
Execute
GetProjectTierTotalDepositAmount returns the total deposit amount of a project tier.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTierTotalDepositAmount( , )"
GetProjectTierTotalDepositCount
func GetProjectTierTotalDepositCount(projectId string, tier int64) (int64, error)
Link
Execute
GetProjectTierTotalDepositCount returns the total deposit count of a project tier.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTierTotalDepositCount( , )"
GetProjectTierTotalDistributeAmount
func GetProjectTierTotalDistributeAmount(projectId string, tier int64) (int64, error)
Link
Execute
GetProjectTierTotalDistributeAmount returns the total distribute amount of a project tier.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTierTotalDistributeAmount( , )"
GetProjectTierTotalWithdrawAmount
func GetProjectTierTotalWithdrawAmount(projectId string, tier int64) (int64, error)
Link
Execute
GetProjectTierTotalWithdrawAmount returns the total withdraw amount of a project tier.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTierTotalWithdrawAmount( , )"
GetProjectTierTotalWithdrawCount
func GetProjectTierTotalWithdrawCount(projectId string, tier int64) (int64, error)
Link
Execute
GetProjectTierTotalWithdrawCount returns the total withdraw count of a project tier.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTierTotalWithdrawCount( , )"
GetProjectTiersRatios
func GetProjectTiersRatios(projectId string) (map[int64]int64, error)
Link
Execute
GetProjectTiersRatios returns the tiers ratios map of a project by its ID.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTiersRatios( )"
GetProjectTokenPath
func GetProjectTokenPath(projectId string) (string, error)
Link
Execute
GetProjectTokenPath returns the token path of a project by its ID.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTokenPath( )"
MakeProjectID
func MakeProjectID(tokenPath string, createdHeight int64) string
Link
Execute
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".
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.MakeProjectID( , )"
MakeProjectTierID
func MakeProjectTierID(projectID string, duration int64) string
Link
Execute
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".
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.MakeProjectTierID( , )"
RegisterInitializer
func RegisterInitializer(cur realm, initializer func(launchpadStore ILaunchpadStore) ILaunchpad)
Link
Execute
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.
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 5000000 -send " " -broadcast -chainid "test11" -remote "https://rpc.test11.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test11.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "RegisterInitializer" -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test11" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test11.testnets.gno.land" call.tx
TransferLeftFromProjectByAdmin
func TransferLeftFromProjectByAdmin(cur realm, projectID string, recipient address) int64
Link
Execute
TransferLeftFromProjectByAdmin transfers the remaining rewards of a project to a specified recipient.
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 5000000 -send " " -broadcast -chainid "test11" -remote "https://rpc.test11.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test11.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "TransferLeftFromProjectByAdmin" -args $' ' -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test11" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test11.testnets.gno.land" call.tx
UpgradeImpl
func UpgradeImpl(cur realm, packagePath string)
Link
Execute
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.
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 5000000 -send " " -broadcast -chainid "test11" -remote "https://rpc.test11.testnets.gno.land" ADDRESS gnokey query -remote "https://rpc.test11.testnets.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/gnoswap/launchpad" -func "UpgradeImpl" -args $' ' -gas-fee 1000000ugnot -gas-wanted 5000000 -send " " ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "test11" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.test11.testnets.gno.land" call.tx
NewCounter
func NewCounter() *Counter
Link
Execute
NewCounter creates a new Counter starting at 0.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.NewCounter()"
GetDeposit
func GetDeposit(depositId string) (*Deposit, error)
Link
Execute
GetDeposit retrieves a deposit by its ID. Returns a cloned deposit to prevent external modification.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetDeposit( )"
NewDeposit
func NewDeposit(
depositID string,
projectID string,
tier int64,
depositor address,
depositAmount int64,
createdHeight int64,
createdTime int64,
endTime int64,
) *Deposit
Link
Execute
NewDeposit returns a pointer to a new Deposit with the given values.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.NewDeposit( , , , , , , , )"
NewLaunchpadStore
func NewLaunchpadStore(kvStore store.KVStore) ILaunchpadStore
Link
Execute
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.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.NewLaunchpadStore( )"
GetProject
func GetProject(projectId string) (*Project, error)
Link
Execute
GetProject retrieves a project by its ID. Returns a cloned project to prevent external modification.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProject( )"
NewProject
func NewProject(
name string,
tokenPath string,
depositAmount int64,
recipient address,
createdHeight int64,
createdAt int64,
) *Project
Link
Execute
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.NewProject( , , , , , )"
GetProjectCondition
func GetProjectCondition(projectId string, tokenPath string) (*ProjectCondition, error)
Link
Execute
GetProjectCondition retrieves a specific condition of a project. Returns a cloned condition to prevent external modification.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectCondition( , )"
NewProjectCondition
func NewProjectCondition(tokenPath string, minimumAmount int64) *ProjectCondition
Link
Execute
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.NewProjectCondition( , )"
NewProjectConditionsWithError
func NewProjectConditionsWithError(conditionTokens string, conditionAmounts string) ([]*ProjectCondition, error)
Link
Execute
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.NewProjectConditionsWithError( , )"
GetProjectTier
func GetProjectTier(projectId string, tier int64) (*ProjectTier, error)
Link
Execute
GetProjectTier retrieves a specific tier of a project. Returns a cloned tier to prevent external modification.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTier( , )"
NewProjectTier
func NewProjectTier(
projectID string,
tierDuration int64,
totalDistributeAmount int64,
startTime int64,
endTime int64,
) *ProjectTier
Link
Execute
NewProjectTier returns a pointer to a new ProjectTier with the given values.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.NewProjectTier( , , , , )"
GetProjectTierRewardManager
func GetProjectTierRewardManager(projectTierId string) (*RewardManager, error)
Link
Execute
GetProjectTierRewardManager retrieves a reward manager by project tier ID. Returns a cloned reward manager to prevent external modification.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetProjectTierRewardManager( )"
NewRewardManager
func NewRewardManager(
totalDistributeAmount int64,
distributeStartTime int64,
distributeEndTime int64,
rewardCollectableDuration int64,
currentHeight int64,
currentTime int64,
) *RewardManager
Link
Execute
NewRewardManager returns a pointer to a new RewardManager with the given values.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.NewRewardManager( , , , , , )"
GetRewardState
func GetRewardState(projectTierId string, depositId string) (*RewardState, error)
Link
Execute
GetRewardState retrieves a reward state by project tier ID and deposit ID. Returns a cloned reward state to prevent external modification.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.GetRewardState( , )"
NewRewardState
func NewRewardState(
accumulatedRewardPerDepositX128 *u256.Uint,
depositAmount,
distributeStartTime,
distributeEndTime int64,
claimableTime int64,
) *RewardState
Link
Execute
NewRewardState returns a pointer to a new RewardState with the given values.
Command
gnokey query vm/qeval -remote "https://rpc.test11.testnets.gno.land " -data "gno.land/r/gnoswap/launchpad.NewRewardState( , , , , )"