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

bubblerumble state

Back to all declarations

MinWindow

int64

// seconds

Value

10

MaxWindow

int64

// 30 days

Value

2592000

MinBasePrice

int64

// ugnot, 0.001 GNOT

Value

1000

MaxBasePrice

int64

// ugnot, 1,000,000 GNOT

Value

1000000000000

MaxNameLen

untyped bigint

Value

(40 <untyped> bigint)

HistoryLen

untyped bigint

// bids kept per pool for the feed

Value

(50 <untyped> bigint)

MaxBoost

int64

// the shortest clock a bid can buy is window/MaxBoost

Value

10

Entry

type

Value

bubblerumble.Entry

Pool

type

Value

bubblerumble.Pool

pkgPath

untyped string

pkgPath must match gnomod.toml: the realm's own address derives from it.

Value

"gno.land/r/g1leu8d2vsplhehcfkjg50mwgdpxdkt8tztu95wr/bubblerumble"

realmAddr

.uverse.address

Value

<gnolang.StringValue>

Price

func(base int64, n int64) int64

Price of the next bid in a pool with the given base price and n bids so far. Sublinear in n: bid 1 costs base, bid 4 costs 2·base, bid 100 costs 10·base.

Open
OID
038115…fe20:5
Price details

Inspect func

ClockFor

func(window int64, price int64, sent int64) int64

ClockFor is the clock a bid buys by paying sent against a price: the window divided by the multiple paid, never below window/MaxBoost.

Open
OID
038115…fe20:7
ClockFor details

Inspect func

CreatePool

func(name string, window int64, basePrice int64) int64

CreatePool opens a pool. Any ugnot sent with the call seeds its pot. Returns the new pool's id.

Open
OID
038115…fe20:8
CreatePool details

Inspect func

Bid

func(id int64)

Bid pays at least the current price into a pool's pot and resets its clock; paying k× the price makes this bid's clock window/k (see ClockFor).

Open
OID
038115…fe20:9
Bid details

Inspect func

Claim

func(id int64)

Claim sends a finished pool's pot to its winner. Anyone may call it.

Open
OID
038115…fe20:10
Claim details

Inspect func

Cancel

func(id int64)

Cancel lets the creator take the seed back from a pool nobody has bid on.

Open
OID
038115…fe20:11
Cancel details

Inspect func

send

func(to .uverse.address, ugnot int64)
Open
OID
038115…fe20:12
send details

Inspect func

pool

func(id int64) *bubblerumble.Pool
Open
OID
038115…fe20:13
pool details

Inspect func

userCaller

func() .uverse.address
Open
OID
038115…fe20:14
userCaller details

Inspect func

cleanName

func(s string) string
Open
OID
038115…fe20:16
cleanName details

Inspect func

GNOT

func(ugnot int64) string

GNOT formats ugnot as GNOT with the trailing zeros trimmed.

Open
OID
038115…fe20:19
GNOT details

Inspect func

short

func(a .uverse.address) string
Open
OID
038115…fe20:20
short details

Inspect func

Render

func(path string) string

Render serves gnoweb ("" and "\<id>") and the web page ("json" and "json/\<id>").

Open
OID
038115…fe20:22
Render details

Inspect func
MinWindow : int64 =10
MaxWindow : int64 =2592000
MinBasePrice : int64 =1000
MaxBasePrice : int64 =1000000000000
MaxNameLen : untyped bigint =(40 <untyped> bigint)
HistoryLen : untyped bigint =(50 <untyped> bigint)
MaxBoost : int64 =10
Entry : type =bubblerumble.Entry
Pool : type =bubblerumble.Pool
pkgPath : untyped string ="gno.land/r/g1leu8d2vsplhehcfkjg50mwgdpxdkt8tztu95wr/bubblerumble"
pools : []*bubblerumble.Pool (len=7) Inspect
realmAddr : .uverse.address =<gnolang.StringValue>
Price : func(base int64, n int64) int64 Inspect
ClockFor : func(window int64, price int64, sent int64) int64 Inspect
CreatePool : func(name string, window int64, basePrice int64) int64 Inspect
Bid : func(id int64) Inspect
Claim : func(id int64) Inspect
Cancel : func(id int64) Inspect
send : func(to .uverse.address, ugnot int64) Inspect
pool : func(id int64) *bubblerumble.Pool Inspect
userCaller : func() .uverse.address Inspect
ugnotSent : func() int64 Inspect
cleanName : func(s string) string Inspect
itoa : func(n int64) string Inspect
parseID : func(s string) int64 Inspect
GNOT : func(ugnot int64) string Inspect
short : func(a .uverse.address) string Inspect
dur : func(sec int64) string Inspect
Render : func(path string) string Inspect
unix : func(t time.Time) string Inspect
jbool : func(b bool) string Inspect
jsonAll : func() string Inspect
markdownAll : func() string Inspect