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

pad state

Back to all declarations

launches

v0.Tree

// id -> \*Launch

Open
OID
02a605…dcbb:4
launches details

Inspect ref

bySymbol

v0.Tree

// symbol -> id string

Open
OID
02a605…dcbb:6
bySymbol details

Inspect ref

nextID

v0.ID

Value

<zero>

protocolAddr

.uverse.address

Value

<gnolang.StringValue>

protocolFees

int64

Value

199078648

inited

bool

Value

true

testSkipBanker

bool

Value

false

Trade

type

Trade is one price sample for charts (capped history per launch).

Value

pad.Trade

Launch

type

Launch is one meme market: curve phase then locked pool phase.

Value

pad.Launch

Init

func()

Init sets the protocol treasury. First EOA caller becomes fee recipient.

Open
OID
02a605…dcbb:12
Init details

Inspect func

mustLaunch

func(id string) *pad.Launch
Open
OID
02a605…dcbb:15
mustLaunch details

Inspect func

balOf

func(l *pad.Launch, addr .uverse.address) int64
Open
OID
02a605…dcbb:16
balOf details

Inspect func

setBal

func(l *pad.Launch, addr .uverse.address, amount int64)
Open
OID
02a605…dcbb:17
setBal details

Inspect func

addBal

func(l *pad.Launch, addr .uverse.address, delta int64)
Open
OID
02a605…dcbb:18
addBal details

Inspect func

sendUgnot

func(to .uverse.address, amount int64)
Open
OID
02a605…dcbb:19
sendUgnot details

Inspect func

requireUserPayment

func() int64
Open
OID
02a605…dcbb:20
requireUserPayment details

Inspect func

noteBuyer

func(l *pad.Launch, buyer .uverse.address)
Open
OID
02a605…dcbb:21
noteBuyer details

Inspect func

spotPriceScaled

func(l *pad.Launch) int64

spotPriceScaled returns ugnot/token \* 1e6 from current curve or pool reserves.

Open
OID
02a605…dcbb:23
spotPriceScaled details

Inspect func

recordTrade

func(l *pad.Launch, side int, ugnot int64, tokens int64)
Open
OID
02a605…dcbb:24
recordTrade details

Inspect func

maybeRefundBond

func(l *pad.Launch)
Open
OID
02a605…dcbb:25
maybeRefundBond details

Inspect func

Create

func(name string, symbol string, uri string) string

Create deploys a fair-launch meme. Requires CreateBondUgnot via -send. No pre-mint; all tradeable float starts on the bonding curve.

Open
OID
02a605…dcbb:26
Create details

Inspect func

Buy

func(id string) int64

Buy spends -send ugnot on the bonding curve; credits tokens to the caller. Auto-graduates when RaisedUgnot >= GraduationThreshold.

Open
OID
02a605…dcbb:27
Buy details

Inspect func

Sell

func(id string, tokensIn int64) int64

Sell burns curve tokens and pays ugnot (fee on output).

Open
OID
02a605…dcbb:28
Sell details

Inspect func

Graduate

func(id string)

Graduate permissionlessly moves a ready curve into a permanently locked CPMM.

Open
OID
02a605…dcbb:29
Graduate details

Inspect func

SwapBuy

func(id string) int64

SwapBuy buys tokens from the graduated pool with -send ugnot.

Open
OID
02a605…dcbb:31
SwapBuy details

Inspect func

SwapSell

func(id string, tokensIn int64) int64

SwapSell sells tokens into the graduated pool for ugnot.

Open
OID
02a605…dcbb:32
SwapSell details

Inspect func

Transfer

func(id string, to .uverse.address, amount int64)

Transfer moves factory-ledger tokens between addresses.

Open
OID
02a605…dcbb:33
Transfer details

Inspect func

ClaimCreatorFees

func(id string) int64

ClaimCreatorFees withdraws accrued creator fees for a launch.

Open
OID
02a605…dcbb:34
ClaimCreatorFees details

Inspect func

ClaimProtocolFees

func() int64

ClaimProtocolFees withdraws protocol treasury fees.

Open
OID
02a605…dcbb:35
ClaimProtocolFees details

Inspect func

BalanceOf

func(id string, owner .uverse.address) int64
Open
OID
02a605…dcbb:36
BalanceOf details

Inspect func

GetRaised

func(id string) int64
Open
OID
02a605…dcbb:38
GetRaised details

Inspect func

GetPool

func(id string) (ugnot int64, token int64)
Open
OID
02a605…dcbb:39
GetPool details

Inspect func

GetCreatorFees

func(id string) int64
Open
OID
02a605…dcbb:40
GetCreatorFees details

Inspect func

ResolveSymbol

func(symbol string) string
Open
OID
02a605…dcbb:43
ResolveSymbol details

Inspect func

ListIDs

func() string

ListIDs returns newline-separated launch IDs (sorted by AVL key / creation order).

Open
OID
02a605…dcbb:44
ListIDs details

Inspect func

LaunchInfo

func(id string) string

LaunchInfo 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 status: 0=curve 1=graduated

Open
OID
02a605…dcbb:45
LaunchInfo details

Inspect func

ParamsInfo

func() string

ParamsInfo returns fixed MVP parameters for UI display. total|curve|poolSeed|gradThreshold|feeBps|createBond

Open
OID
02a605…dcbb:46
ParamsInfo details

Inspect func

TradeHistory

func(id string) string

TradeHistory returns newline-separated chart points: height|side|ugnot|tokens|priceScaled side: 0=buy 1=sell 2=open/graduate. Ordered oldest → newest.

Open
OID
02a605…dcbb:47
TradeHistory details

Inspect func

TradeCount

func(id string) int

TradeCount returns number of stored chart samples for a launch.

Open
OID
02a605…dcbb:48
TradeCount details

Inspect func

resetForTest

func()

resetForTest clears package state between unit tests.

Open
OID
02a605…dcbb:49
resetForTest details

Inspect func

TotalSupply

int64

Value

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

int64

Value

50000000

FeeBPS

int64

Value

120

CreatorFeeShareBPS

int64

Value

4000

ProtocolFeeShareBPS

int64

Value

4000

CreateBondUgnot

int64

Value

1000000

BondRefundBuyers

int

Value

5

BondRefundMaxHeights

int64

// ~ loosely long window; chain-dependent

Value

100000

AntiSnipeHeights

int64

Value

20

AntiSnipeMaxBuyBPS

int64

// 5% of total supply per tx in first windows

Value

500

StatusCurve

untyped bigint

Value

(0 <untyped> bigint)

StatusGraduated

untyped bigint

Value

(1 <untyped> bigint)

MaxTradeHistory

untyped bigint

Value

(128 <untyped> bigint)

TradeSideBuy

untyped bigint

Value

(0 <untyped> bigint)

TradeSideSell

untyped bigint

Value

(1 <untyped> bigint)

TradeSideOpen

untyped bigint

// initial listing mark

Value

(2 <untyped> bigint)

DenomUgnot

untyped string

Value

"ugnot"

Render

func(path string) string

Render provides on-chain discovery (gnoweb). Read-only by convention. Paths: "" — home / list token/{id} — launch detail help — API help

Open
OID
02a605…dcbb:50
Render details

Inspect func

renderToken

func(id string) string
Open
OID
02a605…dcbb:54
renderToken details

Inspect func

progressBar

func(pct int64) string
Open
OID
02a605…dcbb:55
progressBar details

Inspect func
launches : v0.Tree Inspect
bySymbol : v0.Tree Inspect
nextID : v0.ID =<zero>
protocolAddr : .uverse.address =<gnolang.StringValue>
protocolFees : int64 =199078648
inited : bool =true
testSkipBanker : bool =false
Trade : type =pad.Trade
Launch : type =pad.Launch
Init : func() Inspect
requireInit : func() Inspect
mustLaunch : func(id string) *pad.Launch Inspect
balOf : func(l *pad.Launch, addr .uverse.address) int64 Inspect
setBal : func(l *pad.Launch, addr .uverse.address, amount int64) Inspect
addBal : func(l *pad.Launch, addr .uverse.address, delta int64) Inspect
sendUgnot : func(to .uverse.address, amount int64) Inspect
requireUserPayment : func() int64 Inspect
noteBuyer : func(l *pad.Launch, buyer .uverse.address) Inspect
tradeKey : func(n int64) string Inspect
spotPriceScaled : func(l *pad.Launch) int64 Inspect
recordTrade : func(l *pad.Launch, side int, ugnot int64, tokens int64) Inspect
maybeRefundBond : func(l *pad.Launch) Inspect
Create : func(name string, symbol string, uri string) string Inspect
Buy : func(id string) int64 Inspect
Sell : func(id string, tokensIn int64) int64 Inspect
Graduate : func(id string) Inspect
graduate : func(l *pad.Launch) Inspect
SwapBuy : func(id string) int64 Inspect
SwapSell : func(id string, tokensIn int64) int64 Inspect
Transfer : func(id string, to .uverse.address, amount int64) Inspect
ClaimCreatorFees : func(id string) int64 Inspect
ClaimProtocolFees : func() int64 Inspect
BalanceOf : func(id string, owner .uverse.address) int64 Inspect
GetStatus : func(id string) int Inspect
GetRaised : func(id string) int64 Inspect
GetPool : func(id string) (ugnot int64, token int64) Inspect
GetCreatorFees : func(id string) int64 Inspect
ProtocolFees : func() int64 Inspect
LaunchCount : func() int Inspect
ResolveSymbol : func(symbol string) string Inspect
ListIDs : func() string Inspect
LaunchInfo : func(id string) string Inspect
ParamsInfo : func() string Inspect
TradeHistory : func(id string) string Inspect
TradeCount : func(id string) int Inspect
resetForTest : func() Inspect
TotalSupply : int64 =1000000000
CurveSupply : int64 =800000000
PoolSeed : int64 =200000000
VirtualUgnot0 : int64 =30000000
VirtualToken0 : int64 =1073000191
GraduationThreshold : int64 =50000000
FeeBPS : int64 =120
CreatorFeeShareBPS : int64 =4000
ProtocolFeeShareBPS : int64 =4000
CreateBondUgnot : int64 =1000000
BondRefundBuyers : int =5
BondRefundMaxHeights : int64 =100000
AntiSnipeHeights : int64 =20
AntiSnipeMaxBuyBPS : int64 =500
StatusCurve : untyped bigint =(0 <untyped> bigint)
StatusGraduated : untyped bigint =(1 <untyped> bigint)
MaxTradeHistory : untyped bigint =(128 <untyped> bigint)
TradeSideBuy : untyped bigint =(0 <untyped> bigint)
TradeSideSell : untyped bigint =(1 <untyped> bigint)
TradeSideOpen : untyped bigint =(2 <untyped> bigint)
DenomUgnot : untyped string ="ugnot"
Render : func(path string) string Inspect
sanitize : func(s string) string Inspect
renderHome : func() string Inspect
renderToken : func(id string) string Inspect
progressBar : func(pct int64) string Inspect
renderHelp : func() string Inspect