Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Community realm. Read the code first. Community realm, deployed by its author. Read the code before you interact or send coins.

pado state

Back to all declarations

launches

v0.Tree

// id -> \*launch

Open
OID
03c847…fe8f:4
launches details

Inspect ref

bySymbol

v0.Tree

// symbol -> id

Open
OID
03c847…fe8f:6
bySymbol details

Inspect ref

nextID

v0.ID

Value

<zero>

nextTokenID

v0.ID

Value

<zero>

padAddr

.uverse.address

Value

<gnolang.StringValue>

owner

.uverse.address

Value

<gnolang.StringValue>

prepaid

v0.Tree

// caller -> int64 claimable WUGNOT

Open
OID
03c847…fe8f:12
prepaid details

Inspect ref

totalPrepaid

int64

Value

0

testSkipBanker

bool

Value

false

testBank

int64

Value

0

Init

func()

Init sets the owner when deploy did not capture one. One shot.

Open
OID
03c847…fe8f:18
Init details

Inspect func

TransferAdmin

func(next .uverse.address)

TransferAdmin rotates the launchpad owner. The raise stays in the realm.

Open
OID
03c847…fe8f:19
TransferAdmin details

Inspect func

Create

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

Create opens one token. raiseUgnot is the quote this curve locks before graduate, in ugnot. Only the realm owner may call. The value is fixed here.

Open
OID
03c847…fe8f:20
Create details

Inspect func

Buy

func(id string, amount int64, minTokensOut int64) int64

Buy spends up to amount WUGNOT on the curve and mints tokens to the caller. No fee. A fill that reaches the raise graduates inside this call.

Open
OID
03c847…fe8f:21
Buy details

Inspect func

Sell

func(id string, tokensIn int64, minUgnotOut int64) int64

Sell burns curve tokens and returns the quote this launch holds. No fee. Payout is capped at this launch's raised quote, so a rounding step cannot spend another launch's WUGNOT or the virtual seed.

Open
OID
03c847…fe8f:22
Sell details

Inspect func

Graduate

func(id string)

Graduate moves a filled curve into this realm's internal pool. The quote stays on this token's books. Anyone may call it once ready.

Open
OID
03c847…fe8f:23
Graduate details

Inspect func

SwapBuy

func(id string, amount int64, minTokensOut int64) int64

SwapBuy buys from the post-graduate pool. No fee.

Open
OID
03c847…fe8f:24
SwapBuy details

Inspect func

SwapSell

func(id string, tokensIn int64, minUgnotOut int64) int64

SwapSell sells into the post-graduate pool. No fee. Pays only from this launch's pool quote.

Open
OID
03c847…fe8f:25
SwapSell details

Inspect func

ClaimWugnot

func() int64

ClaimWugnot withdraws the caller's prepaid remainder. It does not withdraw a launch's raised quote or pool.

Open
OID
03c847…fe8f:26
ClaimWugnot details

Inspect func

Transfer

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

Transfer moves this realm's token. The quote reserve does not move.

Open
OID
03c847…fe8f:27
Transfer details

Inspect func

Approve

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

Approve lets spender TransferFrom the caller's tokens.

Open
OID
03c847…fe8f:28
Approve details

Inspect func

TransferFrom

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

TransferFrom spends the caller's allowance.

Open
OID
03c847…fe8f:29
TransferFrom details

Inspect func

RealmAddr

func() .uverse.address
Open
OID
03c847…fe8f:31
RealmAddr details

Inspect func

RequestedRaiseOf

func(id string) int64
Open
OID
03c847…fe8f:33
RequestedRaiseOf details

Inspect func

VirtualOf

func(id string) (vu0 int64, vu int64, vt int64)
Open
OID
03c847…fe8f:37
VirtualOf details

Inspect func

PoolOf

func(id string) (ugnot int64, tokens int64)
Open
OID
03c847…fe8f:38
PoolOf details

Inspect func

BalanceOf

func(id string, addr .uverse.address) int64
Open
OID
03c847…fe8f:39
BalanceOf details

Inspect func

Allowance

func(id string, who .uverse.address, spender .uverse.address) int64
Open
OID
03c847…fe8f:40
Allowance details

Inspect func

PrepaidOf

func(addr .uverse.address) int64
Open
OID
03c847…fe8f:41
PrepaidOf details

Inspect func

ResolveSymbol

func(symbol string) string
Open
OID
03c847…fe8f:42
ResolveSymbol details

Inspect func

launch

type

launch is one token book. token and ledger stay unexported so other packages cannot mint.

Value

pado.launch

seedForRaise

func(raise int64) (vu0 int64, target int64)
Open
OID
03c847…fe8f:43
seedForRaise details

Inspect func

requireEOA

func() .uverse.address
Open
OID
03c847…fe8f:46
requireEOA details

Inspect func

mustLaunch

func(id string) *pado.launch
Open
OID
03c847…fe8f:48
mustLaunch details

Inspect func

bal

func(l *pado.launch, addr .uverse.address) int64
Open
OID
03c847…fe8f:49
bal details

Inspect func

mint

func(l *pado.launch, addr .uverse.address, amount int64)
Open
OID
03c847…fe8f:50
mint details

Inspect func

burn

func(l *pado.launch, addr .uverse.address, amount int64)
Open
OID
03c847…fe8f:51
burn details

Inspect func

checkSnipe

func(l *pado.launch, buyer .uverse.address, tokens int64)
Open
OID
03c847…fe8f:52
checkSnipe details

Inspect func

snipeOf

func(l *pado.launch, buyer .uverse.address) int64
Open
OID
03c847…fe8f:53
snipeOf details

Inspect func

reservedWugnot

func() int64
Open
OID
03c847…fe8f:54
reservedWugnot details

Inspect func

creditOrigin

func()

creditOrigin attributes this tx's ugnot to the caller in tests, where OriginSend stands in for a prior wugnot.Transfer.

Open
OID
03c847…fe8f:57
creditOrigin details

Inspect func

lockPrepaid

func(user .uverse.address, amount int64)
Open
OID
03c847…fe8f:58
lockPrepaid details

Inspect func

prepaidOf

func(addr .uverse.address) int64
Open
OID
03c847…fe8f:59
prepaidOf details

Inspect func

addPrepaid

func(addr .uverse.address, amount int64)
Open
OID
03c847…fe8f:60
addPrepaid details

Inspect func

subPrepaid

func(addr .uverse.address, amount int64)
Open
OID
03c847…fe8f:61
subPrepaid details

Inspect func

payOut

func(to .uverse.address, amount int64)
Open
OID
03c847…fe8f:62
payOut details

Inspect func

TotalSupply

int64

Value

1000000000

CurveSupply

int64

Value

800000000

VirtualToken0

int64

Value

1073000191

MinRaiseUgnot

int64

// 1 GNOT

Value

1000000

MaxRaiseUgnot

int64

// 1\_000\_000 GNOT

Value

1000000000000000

AntiSnipeHeights

int64

Value

20

AntiSnipeMaxBuyBPS

int64

// 5% of TotalSupply per address

Value

500

MaxURILen

untyped bigint

Value

(256 <untyped> bigint)

StatusCurve

untyped bigint

Value

(0 <untyped> bigint)

StatusGraduated

untyped bigint

Value

(1 <untyped> bigint)

DenomUgnot

untyped string

Value

"ugnot"

Render

func(path string) string

Render lists the launches in this realm. Quote figures are ugnot.

Open
OID
03c847…fe8f:64
Render details

Inspect func
launches : v0.Tree Inspect
bySymbol : v0.Tree Inspect
nextID : v0.ID =<zero>
nextTokenID : v0.ID =<zero>
padAddr : .uverse.address =<gnolang.StringValue>
owner : .uverse.address =<gnolang.StringValue>
prepaid : v0.Tree Inspect
totalPrepaid : int64 =0
testSkipBanker : bool =false
testBank : int64 =0
init.10 : func() Inspect
Init : func() Inspect
TransferAdmin : func(next .uverse.address) Inspect
Create : func(name string, symbol string, uri string, raiseUgnot int64) string Inspect
Buy : func(id string, amount int64, minTokensOut int64) int64 Inspect
Sell : func(id string, tokensIn int64, minUgnotOut int64) int64 Inspect
Graduate : func(id string) Inspect
SwapBuy : func(id string, amount int64, minTokensOut int64) int64 Inspect
SwapSell : func(id string, tokensIn int64, minUgnotOut int64) int64 Inspect
ClaimWugnot : func() int64 Inspect
Transfer : func(id string, to .uverse.address, amount int64) Inspect
Approve : func(id string, spender .uverse.address, amount int64) Inspect
TransferFrom : func(id string, from .uverse.address, to .uverse.address, amount int64) Inspect
Owner : func() .uverse.address Inspect
RealmAddr : func() .uverse.address Inspect
RaiseOf : func(id string) int64 Inspect
RequestedRaiseOf : func(id string) int64 Inspect
RaisedOf : func(id string) int64 Inspect
StatusOf : func(id string) int Inspect
SoldOf : func(id string) int64 Inspect
VirtualOf : func(id string) (vu0 int64, vu int64, vt int64) Inspect
PoolOf : func(id string) (ugnot int64, tokens int64) Inspect
BalanceOf : func(id string, addr .uverse.address) int64 Inspect
Allowance : func(id string, who .uverse.address, spender .uverse.address) int64 Inspect
PrepaidOf : func(addr .uverse.address) int64 Inspect
ResolveSymbol : func(symbol string) string Inspect
launch : type =pado.launch
seedForRaise : func(raise int64) (vu0 int64, target int64) Inspect
ready : func(l *pado.launch) bool Inspect
graduate : func(l *pado.launch) Inspect
requireEOA : func() .uverse.address Inspect
requireOwner : func() Inspect
mustLaunch : func(id string) *pado.launch Inspect
bal : func(l *pado.launch, addr .uverse.address) int64 Inspect
mint : func(l *pado.launch, addr .uverse.address, amount int64) Inspect
burn : func(l *pado.launch, addr .uverse.address, amount int64) Inspect
checkSnipe : func(l *pado.launch, buyer .uverse.address, tokens int64) Inspect
snipeOf : func(l *pado.launch, buyer .uverse.address) int64 Inspect
reservedWugnot : func() int64 Inspect
bankBal : func() int64 Inspect
freeWugnot : func() int64 Inspect
creditOrigin : func() Inspect
lockPrepaid : func(user .uverse.address, amount int64) Inspect
prepaidOf : func(addr .uverse.address) int64 Inspect
addPrepaid : func(addr .uverse.address, amount int64) Inspect
subPrepaid : func(addr .uverse.address, amount int64) Inspect
payOut : func(to .uverse.address, amount int64) Inspect
formatID : func(n v0.ID) string Inspect
TotalSupply : int64 =1000000000
CurveSupply : int64 =800000000
VirtualToken0 : int64 =1073000191
MinRaiseUgnot : int64 =1000000
MaxRaiseUgnot : int64 =1000000000000000
AntiSnipeHeights : int64 =20
AntiSnipeMaxBuyBPS : int64 =500
MaxURILen : untyped bigint =(256 <untyped> bigint)
StatusCurve : untyped bigint =(0 <untyped> bigint)
StatusGraduated : untyped bigint =(1 <untyped> bigint)
DenomUgnot : untyped string ="ugnot"
Render : func(path string) string Inspect
esc : func(s string) string Inspect