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

v0 state

Back to all declarations

denom

untyped string

Value

"ugnot"

maxRecent

untyped bigint

Value

(10 <untyped> bigint)

maxMessageLen

untyped bigint

Value

(140 <untyped> bigint)

tipperStats

type

tipperStats is the persisted, accumulated record for one tipper.

Value

v0.tipperStats

tipEntry

type

tipEntry is one line in the recent-tips feed.

Value

v0.tipEntry

owner

.uverse.address

// captured deployer, set once in init

Value

<gnolang.StringValue>

tippers

v0.Tree

// address string -> \*tipperStats

Open
OID
05cea6…75b5:5
tippers details

Inspect ref

recent

[]v0.tipEntry

Value

<zero>

totalReceived

int64

Value

0

withdrawn

int64

Value

0

tipCount

int

Value

0

get

func(addr .uverse.address) *v0.tipperStats

get returns the stored \*tipperStats for addr, creating one if absent.

Open
OID
05cea6…75b5:12
get details

Inspect func

Tip

func(message string) string

Tip credits the caller's OriginSend ugnot to the jar and records it against their running total. Only an EOA calling directly via MsgCall may tip — see the payment-guard note on IsUserCall vs IsUser.

Open
OID
05cea6…75b5:13
Tip details

Inspect func

Balance

func() int64

Balance reports the ugnot still held by the jar (received minus withdrawn).

Open
OID
05cea6…75b5:14
Balance details

Inspect func

Withdraw

func(amount int64)

Withdraw sends amount ugnot from the jar to the owner. Owner-only.

Open
OID
05cea6…75b5:15
Withdraw details

Inspect func

byTotal

type

byTotal implements sort.Interface, ranking tippers by total tipped descending, ties broken by tip count then address for a fully deterministic order.

Value

v0.byTotal

leaderboard

func() []*v0.tipperStats

leaderboard collects all tippers ranked by total tipped descending.

Open
OID
05cea6…75b5:16
leaderboard details

Inspect func

medal

func(rank int) string

medal returns the emoji for a given zero-based rank, or "" past the podium.

Open
OID
05cea6…75b5:17
medal details

Inspect func

display

func(addr .uverse.address) string

display returns a shortened address for table display.

Open
OID
05cea6…75b5:18
display details

Inspect func

Render

func(path string) string

Render shows the jar's balance, the tipper leaderboard, and a feed of the most recent tips.

Open
OID
05cea6…75b5:19
Render details

Inspect func
denom : untyped string ="ugnot"
maxRecent : untyped bigint =(10 <untyped> bigint)
maxMessageLen : untyped bigint =(140 <untyped> bigint)
tipperStats : type =v0.tipperStats
tipEntry : type =v0.tipEntry
owner : .uverse.address =<gnolang.StringValue>
tippers : v0.Tree Inspect
recent : []v0.tipEntry =<zero>
totalReceived : int64 =0
withdrawn : int64 =0
tipCount : int =0
init.11 : func() Inspect
get : func(addr .uverse.address) *v0.tipperStats Inspect
Tip : func(message string) string Inspect
Balance : func() int64 Inspect
Withdraw : func(amount int64) Inspect
byTotal : type =v0.byTotal
leaderboard : func() []*v0.tipperStats Inspect
medal : func(rank int) string Inspect
display : func(addr .uverse.address) string Inspect
Render : func(path string) string Inspect