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.

v0 state

Back to all declarations

submitted

*v0.Tree

submitted holds versions users have posted on-chain: version string -> submitter.

Open
OID
08a190…e6be:4
submitted details

Inspect pointer

Submit

func(version string)

Submit stores a valid version on-chain, tagged with the caller's address, so Render("/sorted") can list everyone's submissions in precedence order. It validates the input with [semver.Parse](/gno.land/p/nym-moultest123/x/daily/semver/v0#Parse) and panics on anything malformed.

Open
OID
08a190…e6be:6
Submit details

Inspect func

renderCompare

func(a string, b string) string
Open
OID
08a190…e6be:10
renderCompare details

Inspect func

describe

func(label string, s string) string
Open
OID
08a190…e6be:11
describe details

Inspect func

entry

type

entry pairs a parsed version with the address that submitted it.

Value

v0.entry

byPrecedence

type

byPrecedence sorts entries ascending. \`sort\` on-chain has no Slice helper, so we implement sort.Interface; ordering defers to semver.Compare on the original strings.

Value

v0.byPrecedence
submitted : *v0.Tree Inspect
Submit : func(version string) Inspect
Render : func(path string) string Inspect
renderHome : func() string Inspect
renderCompare : func(a string, b string) string Inspect
describe : func(label string, s string) string Inspect
renderSorted : func() string Inspect
entry : type =v0.entry
byPrecedence : type =v0.byPrecedence
relSym : func(c int) string Inspect
word : func(c int) string Inspect