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

bubblerumble2 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)

RosterMax

untyped bigint

// distinct bidders a pool pays dividends and team shares to

Value

(200 <untyped> bigint)

MaxBoost

int64

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

Value

10

PotShare

int64

Value

55

DivShare

int64

// to earlier bidders of the pool, pro-rata by paid-in

Value

30

RefShare

int64

// to the bidder's inviter

Value

10

CreatorShare

int64

Value

5

TeamShare

int64

Value

20

pkgPath

untyped string

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

Value

"gno.land/r/g1leu8d2vsplhehcfkjg50mwgdpxdkt8tztu95wr/bubblerumble2"

Entry

type

Value

bubblerumble2.Entry

Member

type

Member is a distinct bidder of a pool: the roster dividends and team shares go to.

Value

bubblerumble2.Member

Pool

type

Value

bubblerumble2.Pool

Player

type

Player is what the realm remembers about an address across pools.

Value

bubblerumble2.Player

players

map[.uverse.address]*bubblerumble2.Player
Open
OID
011ba7…328e:5
players details

Inspect map

teamPaid

map[string]int64

// flag -> gross bid volume under it

Open
OID
011ba7…328e:7
teamPaid details

Inspect map

teamWon

map[string]int64

// flag -> pots closed under it

Open
OID
011ba7…328e:9
teamWon details

Inspect map

teamSize

map[string]int64

// flag -> players flying it

Open
OID
011ba7…328e:11
teamSize details

Inspect map

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.

Open
OID
011ba7…328e:13
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
011ba7…328e:15
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. The creator earns CreatorShare of every bid.

Open
OID
011ba7…328e:16
CreatePool details

Inspect func

Bid

func(id int64, ref string, flag string)

Bid pays at least the current price and resets the clock. ref is the address that invited the bidder ("" for none; only the first bid ever sets it), flag a two-letter country to play under ("" keeps the last one).

Open
OID
011ba7…328e:17
Bid details

Inspect func

Claim

func(id int64)

Claim pays out a finished pool: 80% to the winner, 20% shared among the roster members flying the winner's flag (pro-rata by paid-in, the winner included) — or everything to the winner when nobody else flew it. Anyone may call it.

Open
OID
011ba7…328e:18
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
011ba7…328e:19
Cancel details

Inspect func

player

func(a .uverse.address) *bubblerumble2.Player
Open
OID
011ba7…328e:20
player details

Inspect func

send

func(to .uverse.address, ugnot int64)
Open
OID
011ba7…328e:21
send details

Inspect func

pool

func(id int64) *bubblerumble2.Pool
Open
OID
011ba7…328e:22
pool details

Inspect func

userCaller

func() .uverse.address
Open
OID
011ba7…328e:23
userCaller details

Inspect func

cleanName

func(s string) string
Open
OID
011ba7…328e:25
cleanName details

Inspect func

cleanFlag

func(s string) string

cleanFlag accepts a two-letter country code, upper-cased; anything else is "".

Open
OID
011ba7…328e:26
cleanFlag details

Inspect func

GNOT

func(ugnot int64) string

GNOT formats ugnot as GNOT with the trailing zeros trimmed.

Open
OID
011ba7…328e:29
GNOT details

Inspect func

short

func(a .uverse.address) string
Open
OID
011ba7…328e:30
short details

Inspect func

Render

func(path string) string

Render serves gnoweb ("" and "\<id>") and the page ("json", "json/\<id>", "me/\<address>", "teams").

Open
OID
011ba7…328e:32
Render details

Inspect func

jsonTeams

func() string

jsonTeams is the country leaderboard: paid in, won, and players per flag.

Open
OID
011ba7…328e:36
jsonTeams details

Inspect func

jsonMe

func(a .uverse.address) string

jsonMe is what the page shows a connected wallet about itself.

Open
OID
011ba7…328e:37
jsonMe 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)
RosterMax : untyped bigint =(200 <untyped> bigint)
MaxBoost : int64 =10
PotShare : int64 =55
DivShare : int64 =30
RefShare : int64 =10
CreatorShare : int64 =5
TeamShare : int64 =20
pkgPath : untyped string ="gno.land/r/g1leu8d2vsplhehcfkjg50mwgdpxdkt8tztu95wr/bubblerumble2"
Entry : type =bubblerumble2.Entry
Member : type =bubblerumble2.Member
Pool : type =bubblerumble2.Pool
Player : type =bubblerumble2.Player
pools : []*bubblerumble2.Pool (len=7) Inspect
players : map[.uverse.address]*bubblerumble2.Player Inspect
teamPaid : map[string]int64 Inspect
teamWon : map[string]int64 Inspect
teamSize : map[string]int64 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, ref string, flag string) Inspect
Claim : func(id int64) Inspect
Cancel : func(id int64) Inspect
player : func(a .uverse.address) *bubblerumble2.Player Inspect
send : func(to .uverse.address, ugnot int64) Inspect
pool : func(id int64) *bubblerumble2.Pool Inspect
userCaller : func() .uverse.address Inspect
ugnotSent : func() int64 Inspect
cleanName : func(s string) string Inspect
cleanFlag : 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
jsonTeams : func() string Inspect
jsonMe : func(a .uverse.address) string Inspect
markdownAll : func() string Inspect