launches
v0.Tree// id -> \*Launch
- OID
- 0444ee…5a49:4
launches details
bySymbol
v0.Tree// symbol -> id string
- OID
- 0444ee…5a49: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
100519935
inited
boolValue
true
testSkipBanker
boolValue
false
pointsEnabled
boolValue
true
Trade
typeTrade is one price sample for charts (capped history per launch).
Value
padv7.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
padv7.Launch
Init
func()Init sets the protocol treasury. First EOA caller becomes fee recipient.
- OID
- 0444ee…5a49:14
Init details
requireInit
func()- OID
- 0444ee…5a49:16
requireInit details
SetPointsEnabled
func(on bool)SetPointsEnabled toggles pointsv2 notifications (protocol admin only). pointsv2 must AllowPad(this package path) or OnTrade/OnCreate will panic and revert the trade.
- OID
- 0444ee…5a49:17
SetPointsEnabled details
PointsEnabled
func() boolPointsEnabled reports whether pad notifies pointsv2 after trades/creates.
- OID
- 0444ee…5a49:18
PointsEnabled details
notifyTrade
func(trader .uverse.address, id string, side int64, volumeUgnot int64)- OID
- 0444ee…5a49:19
notifyTrade details
notifyCreate
func(creator .uverse.address, id string)- OID
- 0444ee…5a49:20
notifyCreate details
mustLaunch
func(id string) *padv7.Launch- OID
- 0444ee…5a49:21
mustLaunch details
balOf
func(l *padv7.Launch, addr .uverse.address) int64- OID
- 0444ee…5a49:22
balOf details
addBal
func(l *padv7.Launch, addr .uverse.address, delta int64)addBal mints (delta>0) or burns (delta\<0) GRC20 via pad-owned PrivateLedger.
- OID
- 0444ee…5a49:23
addBal details
requireMinOut
func(got int64, minOut int64, what string)- OID
- 0444ee…5a49:24
requireMinOut details
snipeBoughtOf
func(l *padv7.Launch, buyer .uverse.address) int64- OID
- 0444ee…5a49:25
snipeBoughtOf details
checkAndAddSnipe
func(l *padv7.Launch, buyer .uverse.address, tokensOut int64)- OID
- 0444ee…5a49:26
checkAndAddSnipe details
sendUgnot
func(to .uverse.address, amount int64)- OID
- 0444ee…5a49:27
sendUgnot details
requireUserPayment
func() int64- OID
- 0444ee…5a49:28
requireUserPayment details
noteBuyer
func(l *padv7.Launch, buyer .uverse.address)- OID
- 0444ee…5a49:29
noteBuyer details
tradeKey
func(n int64) string- OID
- 0444ee…5a49:30
tradeKey details
spotPriceScaled
func(l *padv7.Launch) int64spotPriceScaled returns ugnot/token \* 1e6 from current curve or pool reserves.
- OID
- 0444ee…5a49:31
spotPriceScaled details
recordTrade
func(l *padv7.Launch, side int, ugnot int64, tokens int64)- OID
- 0444ee…5a49:32
recordTrade details
maybeRefundBond
func(l *padv7.Launch)- OID
- 0444ee…5a49:33
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
- 0444ee…5a49:34
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
- 0444ee…5a49:35
AdenaPathOf details
adenaKeyFromTokenID
func(tokenID string, symbol string) stringadenaKeyFromTokenID strips the trailing .seq from Token.ID when present.
- OID
- 0444ee…5a49:36
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
- 0444ee…5a49:37
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
- 0444ee…5a49:38
Sell details
Graduate
func(id string)Graduate permissionlessly moves a ready curve into a permanently locked CPMM.
- OID
- 0444ee…5a49:39
Graduate details
graduate
func(l *padv7.Launch)- OID
- 0444ee…5a49:40
graduate details
TokenIDOf
func(id string) stringTokenIDOf returns the GRC20 Token.ID() for a launch.
- OID
- 0444ee…5a49:41
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
- 0444ee…5a49:42
GRC20Bank details
SwapBuy
func(id string, minTokensOut int64) int64SwapBuy buys tokens from the graduated pool with -send ugnot. minTokensOut: slippage floor (0 = disabled).
- OID
- 0444ee…5a49:43
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
- 0444ee…5a49:44
SwapSell details
Transfer
func(id string, to .uverse.address, amount int64)Transfer moves GRC20 tokens between addresses (user-initiated).
- OID
- 0444ee…5a49:45
Transfer details
Approve
func(id string, spender .uverse.address, amount int64)Approve sets GRC20 allowance so DEX/contracts can TransferFrom.
- OID
- 0444ee…5a49:46
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
- 0444ee…5a49:47
TransferFrom details
ClaimCreatorFees
func(id string) int64ClaimCreatorFees withdraws accrued creator fees for a launch.
- OID
- 0444ee…5a49:48
ClaimCreatorFees details
ClaimProtocolFees
func() int64ClaimProtocolFees withdraws protocol treasury fees.
- OID
- 0444ee…5a49:49
ClaimProtocolFees details
TransferProtocol
func(newAddr .uverse.address)TransferProtocol rotates the protocol fee recipient (current protocol only).
- OID
- 0444ee…5a49:50
TransferProtocol details
ProtocolAddress
func() stringProtocolAddress returns the current protocol treasury address.
- OID
- 0444ee…5a49:51
ProtocolAddress details
BalanceOf
func(id string, owner .uverse.address) int64- OID
- 0444ee…5a49:52
BalanceOf details
ListBuyers
func(id string) stringListBuyers returns unique buyer addresses (one per line), capped for query size. Only addresses that bought at least once on this pad (UniqueBuyers). Not full GRC20 holders who received tokens via transfer.
- OID
- 0444ee…5a49:53
ListBuyers details
GetStatus
func(id string) int- OID
- 0444ee…5a49:54
GetStatus details
GetRaised
func(id string) int64- OID
- 0444ee…5a49:55
GetRaised details
GetPool
func(id string) (ugnot int64, token int64)- OID
- 0444ee…5a49:56
GetPool details
GetCreatorFees
func(id string) int64- OID
- 0444ee…5a49:57
GetCreatorFees details
ProtocolFees
func() int64- OID
- 0444ee…5a49:58
ProtocolFees details
LaunchCount
func() int- OID
- 0444ee…5a49:59
LaunchCount details
ResolveSymbol
func(symbol string) string- OID
- 0444ee…5a49:60
ResolveSymbol details
ListIDs
func() stringListIDs returns newline-separated launch IDs (sorted by AVL key / creation order).
- OID
- 0444ee…5a49:61
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
- 0444ee…5a49:62
LaunchInfo details
ParamsInfo
func() stringParamsInfo returns fixed MVP parameters for UI display. total|curve|poolSeed|gradThreshold|feeBps|createBond
- OID
- 0444ee…5a49:63
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
- 0444ee…5a49:64
TradeHistory details
TradeCount
func(id string) intTradeCount returns number of stored chart samples for a launch.
- OID
- 0444ee…5a49:65
TradeCount details
resetForTest
func()resetForTest clears package state between unit tests.
- OID
- 0444ee…5a49:66
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
- 0444ee…5a49:67
Render details
sanitize
func(s string) string- OID
- 0444ee…5a49:69
sanitize details
renderHome
func() string- OID
- 0444ee…5a49:70
renderHome details
renderToken
func(id string) string- OID
- 0444ee…5a49:71
renderToken details
progressBar
func(pct int64) string- OID
- 0444ee…5a49:72
progressBar details
renderHelp
func() string- OID
- 0444ee…5a49:73