launches
v0.Tree// id -> \*Launch
- OID
- 08df2a…24c1:4
launches details
bySymbol
v0.Tree// symbol -> id string
- OID
- 08df2a…24c1:6
bySymbol details
nextID
v0.IDValue
<zero>
nextTokenID
v0.ID// GRC20 identity sequence (shared for all launches)
Value
<zero>
protocolAddr
.uverse.addressValue
<gnolang.StringValue>
protocolFees
int64Value
0
inited
boolValue
true
testSkipBanker
boolValue
false
Trade
typeTrade is one price sample for charts (capped history per launch).
Value
padv5.Trade
Launch
typeLaunch is one meme market: curve phase then locked pool phase. token/ledger are unexported so external packages cannot Mint/Burn via field access.
Value
padv5.Launch
Init
func()Init sets the protocol treasury. First EOA caller becomes fee recipient.
- OID
- 08df2a…24c1:13
Init details
requireInit
func()- OID
- 08df2a…24c1:15
requireInit details
mustLaunch
func(id string) *padv5.Launch- OID
- 08df2a…24c1:16
mustLaunch details
balOf
func(l *padv5.Launch, addr .uverse.address) int64- OID
- 08df2a…24c1:17
balOf details
addBal
func(l *padv5.Launch, addr .uverse.address, delta int64)addBal mints (delta>0) or burns (delta\<0) GRC20 via pad-owned PrivateLedger.
- OID
- 08df2a…24c1:18
addBal details
requireMinOut
func(got int64, minOut int64, what string)- OID
- 08df2a…24c1:19
requireMinOut details
snipeBoughtOf
func(l *padv5.Launch, buyer .uverse.address) int64- OID
- 08df2a…24c1:20
snipeBoughtOf details
checkAndAddSnipe
func(l *padv5.Launch, buyer .uverse.address, tokensOut int64)- OID
- 08df2a…24c1:21
checkAndAddSnipe details
sendUgnot
func(to .uverse.address, amount int64)- OID
- 08df2a…24c1:22
sendUgnot details
requireUserPayment
func() int64- OID
- 08df2a…24c1:23
requireUserPayment details
noteBuyer
func(l *padv5.Launch, buyer .uverse.address)- OID
- 08df2a…24c1:24
noteBuyer details
tradeKey
func(n int64) string- OID
- 08df2a…24c1:25
tradeKey details
spotPriceScaled
func(l *padv5.Launch) int64spotPriceScaled returns ugnot/token \* 1e6 from current curve or pool reserves.
- OID
- 08df2a…24c1:26
spotPriceScaled details
recordTrade
func(l *padv5.Launch, side int, ugnot int64, tokens int64)- OID
- 08df2a…24c1:27
recordTrade details
maybeRefundBond
func(l *padv5.Launch)- OID
- 08df2a…24c1:28
maybeRefundBond details
Create
func(name string, symbol string, uri string) stringCreate deploys a fair-launch meme. Requires CreateBondUgnot via -send. No pre-mint; all tradeable float starts on the bonding curve.
- OID
- 08df2a…24c1:29
Create details
AdenaPathOf
func(id string) stringAdenaPathOf returns the grc20reg / Adena token key: packagePath.SYMBOL (Token.ID is packagePath.SYMBOL.seq — Adena rejects that form).
- OID
- 08df2a…24c1:30
AdenaPathOf details
adenaKeyFromTokenID
func(tokenID string, symbol string) stringadenaKeyFromTokenID strips the trailing .seq from Token.ID when present.
- OID
- 08df2a…24c1:31
adenaKeyFromTokenID details
Buy
func(id string, minTokensOut int64) int64Buy spends -send ugnot on the bonding curve; credits tokens to the caller. minTokensOut: slippage floor (0 = disabled). Auto-graduates at threshold. Oversized buys that would exceed remaining curve supply panic (no silent dust).
- OID
- 08df2a…24c1:32
Buy details
Sell
func(id string, tokensIn int64, minUgnotOut int64) int64Sell burns curve tokens and pays ugnot (fee on output). minUgnotOut: slippage floor (0 = disabled).
- OID
- 08df2a…24c1:33
Sell details
Graduate
func(id string)Graduate permissionlessly moves a ready curve into a permanently locked CPMM.
- OID
- 08df2a…24c1:34
Graduate details
graduate
func(l *padv5.Launch)- OID
- 08df2a…24c1:35
graduate details
TokenIDOf
func(id string) stringTokenIDOf returns the GRC20 Token.ID() for a launch.
- OID
- 08df2a…24c1:36
TokenIDOf details
GRC20Bank
func(id string) *grc20.TokenGRC20Bank returns the underlying \*grc20.Token for interop (metadata / external DEX). Does not expose PrivateLedger — mint/burn stay pad-only.
- OID
- 08df2a…24c1:37
GRC20Bank details
SwapBuy
func(id string, minTokensOut int64) int64SwapBuy buys tokens from the graduated pool with -send ugnot. minTokensOut: slippage floor (0 = disabled).
- OID
- 08df2a…24c1:38
SwapBuy details
SwapSell
func(id string, tokensIn int64, minUgnotOut int64) int64SwapSell sells tokens into the graduated pool for ugnot. minUgnotOut: slippage floor (0 = disabled).
- OID
- 08df2a…24c1:39
SwapSell details
Transfer
func(id string, to .uverse.address, amount int64)Transfer moves GRC20 tokens between addresses (user-initiated).
- OID
- 08df2a…24c1:40
Transfer details
Approve
func(id string, spender .uverse.address, amount int64)Approve sets GRC20 allowance so DEX/contracts can TransferFrom.
- OID
- 08df2a…24c1:41
Approve details
TransferFrom
func(id string, from .uverse.address, to .uverse.address, amount int64)TransferFrom spends allowance: spender = MsgCall EOA caller. Enables DEX / routers that hold allowance from Approve.
- OID
- 08df2a…24c1:42
TransferFrom details
ClaimCreatorFees
func(id string) int64ClaimCreatorFees withdraws accrued creator fees for a launch.
- OID
- 08df2a…24c1:43
ClaimCreatorFees details
ClaimProtocolFees
func() int64ClaimProtocolFees withdraws protocol treasury fees.
- OID
- 08df2a…24c1:44
ClaimProtocolFees details
TransferProtocol
func(newAddr .uverse.address)TransferProtocol rotates the protocol fee recipient (current protocol only).
- OID
- 08df2a…24c1:45
TransferProtocol details
ProtocolAddress
func() stringProtocolAddress returns the current protocol treasury address.
- OID
- 08df2a…24c1:46
ProtocolAddress details
BalanceOf
func(id string, owner .uverse.address) int64- OID
- 08df2a…24c1:47
BalanceOf details
GetStatus
func(id string) int- OID
- 08df2a…24c1:48
GetStatus details
GetRaised
func(id string) int64- OID
- 08df2a…24c1:49
GetRaised details
GetPool
func(id string) (ugnot int64, token int64)- OID
- 08df2a…24c1:50
GetPool details
GetCreatorFees
func(id string) int64- OID
- 08df2a…24c1:51
GetCreatorFees details
ProtocolFees
func() int64- OID
- 08df2a…24c1:52
ProtocolFees details
LaunchCount
func() int- OID
- 08df2a…24c1:53
LaunchCount details
ResolveSymbol
func(symbol string) string- OID
- 08df2a…24c1:54
ResolveSymbol details
ListIDs
func() stringListIDs returns newline-separated launch IDs (sorted by AVL key / creation order).
- OID
- 08df2a…24c1:55
ListIDs details
LaunchInfo
func(id string) stringLaunchInfo returns a single-line pipe-delimited summary for UIs/indexers: id|name|symbol|status|raised|sold|buyers|creatorFees|poolUgnot|poolToken|uri|creator|virtualUgnot|virtualToken|created|tokenID|gnoswapReady status: 0=curve 1=graduated; gnoswapReady: 0|1
- OID
- 08df2a…24c1:56
LaunchInfo details
ParamsInfo
func() stringParamsInfo returns fixed MVP parameters for UI display. total|curve|poolSeed|gradThreshold|feeBps|createBond
- OID
- 08df2a…24c1:57
ParamsInfo details
TradeHistory
func(id string) stringTradeHistory returns newline-separated chart points: height|side|ugnot|tokens|priceScaled side: 0=buy 1=sell 2=open/graduate. Ordered oldest → newest.
- OID
- 08df2a…24c1:58
TradeHistory details
TradeCount
func(id string) intTradeCount returns number of stored chart samples for a launch.
- OID
- 08df2a…24c1:59
TradeCount details
resetForTest
func()resetForTest clears package state between unit tests.
- OID
- 08df2a…24c1:60
resetForTest details
TotalSupply
int64Value
1000000000
CurveSupply
int64// sold on bonding curve
Value
800000000
PoolSeed
int64// locked into CPMM at graduation
Value
200000000
VirtualUgnot0
int64// 30 GNOT virtual
Value
30000000
VirtualToken0
int64// virtual token side
Value
1073000191
GraduationThreshold
int64Value
100000000
FeeBPS
int64Value
120
CreatorFeeShareBPS
int64Value
4000
ProtocolFeeShareBPS
int64Value
4000
CreateBondUgnot
int64Value
2000000
BondRefundBuyers
intValue
5
BondRefundMinRaised
int64// ≥5 GNOT raised
Value
10000000
BondRefundMaxHeights
int64Value
100000
AntiSnipeHeights
int64Value
30
AntiSnipeMaxBuyBPS
int64// 5% per address in window
Value
300
StatusCurve
untyped bigintValue
(0 <untyped> bigint)
StatusGraduated
untyped bigintValue
(1 <untyped> bigint)
MaxTradeHistory
untyped bigintValue
(256 <untyped> bigint)
TradeSideBuy
untyped bigintValue
(0 <untyped> bigint)
TradeSideSell
untyped bigintValue
(1 <untyped> bigint)
TradeSideOpen
untyped bigint// initial listing mark
Value
(2 <untyped> bigint)
DenomUgnot
untyped stringValue
"ugnot"
Render
func(path string) stringRender provides on-chain discovery (gnoweb). Read-only by convention. Paths: "" — home / list token/{id} — launch detail help — API help
- OID
- 08df2a…24c1:61
Render details
sanitize
func(s string) string- OID
- 08df2a…24c1:63
sanitize details
renderHome
func() string- OID
- 08df2a…24c1:64
renderHome details
renderToken
func(id string) string- OID
- 08df2a…24c1:65
renderToken details
progressBar
func(pct int64) string- OID
- 08df2a…24c1:66
progressBar details
renderHelp
func() string- OID
- 08df2a…24c1:67