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

Phase

type

Phase is a case's position in the commit-reveal lifecycle.

Value

v0.Phase

PhaseCommit

v0.Phase

Value

<gnolang.StringValue>

PhaseReveal

v0.Phase

Value

<gnolang.StringValue>

PhaseClosed

v0.Phase

Value

<gnolang.StringValue>

Juror

type

Juror is one panelist and their (eventually revealed) verdict.

Value

v0.Juror

Case

type

Case is a single dispute under review by a fixed panel.

Value

v0.Case

cases

[]*v0.Case

// index 0 => ID 1

Value

<zero>

MaxCases

untyped bigint

The bounds on what a wallet may open. OpenCase is callable by anyone, so without them the case list and every panel grow without limit, and so does the index page that renders them.

Value

(1000 <untyped> bigint)

MaxJurors

untyped bigint

The bounds on what a wallet may open. OpenCase is callable by anyone, so without them the case list and every panel grow without limit, and so does the index page that renders them.

Value

(25 <untyped> bigint)

MaxSubject

untyped bigint

// bytes

Value

(200 <untyped> bigint)

IndexRecent

untyped bigint

// cases the index lists, newest first

Value

(50 <untyped> bigint)

MaxCommitment

untyped bigint

// bytes; commit.Verdict returns 64

Value

(128 <untyped> bigint)

OpenCase

func(subject string, jurorsCSV string) uint64

OpenCase starts a dispute with a fixed panel of jurors, given as comma-separated addresses. An odd panel size avoids ties; duplicates and invalid addresses are rejected. The panel is a string, not a \[]address, because MsgCall carries every argument as a string and the VM decodes no slice but \[]byte: a \[]address parameter made this function unreachable from any wallet.

Open
OID
0924fa…4a2d:4
OpenCase details

Inspect func

Commit

func(caseID uint64, commitment string)

Commit locks in a juror's hidden verdict. commitment must equal commit.Verdict(verdict, salt) — computed off-chain. When the last juror commits, the case advances to the reveal phase automatically.

Open
OID
0924fa…4a2d:6
Commit details

Inspect func

Reveal

func(caseID uint64, verdict bool, salt string)

Reveal opens a juror's verdict. The (verdict, salt) must reproduce the commitment made earlier, or the reveal is rejected. When the last juror reveals, the case closes and the majority outcome is recorded.

Open
OID
0924fa…4a2d:7
Reveal details

Inspect func

Get

func(caseID uint64) v0.Case

Get returns a copy of a case (jurors flattened separately via Jury).

Open
OID
0924fa…4a2d:8
Get details

Inspect func

Outcome

func(caseID uint64) string

Outcome returns the recorded outcome, or "" if the case is still open.

Open
OID
0924fa…4a2d:9
Outcome details

Inspect func

Count

func() int

Count returns the number of cases.

Open
OID
0924fa…4a2d:10
Count details

Inspect func

allCommitted

func(c *v0.Case) bool
Open
OID
0924fa…4a2d:12
allCommitted details

Inspect func

allRevealed

func(c *v0.Case) bool
Open
OID
0924fa…4a2d:13
allRevealed details

Inspect func

mustCase

func(id uint64) *v0.Case
Open
OID
0924fa…4a2d:14
mustCase details

Inspect func

mustJuror

func(c *v0.Case, addr .uverse.address) *v0.Juror
Open
OID
0924fa…4a2d:15
mustJuror details

Inspect func

assert

func(cond bool, msg string)
Open
OID
0924fa…4a2d:17
assert details

Inspect func

Render

func(path string) string

Render shows all cases, or one case's panel + tally at :\<id>.

Open
OID
0924fa…4a2d:18
Render details

Inspect func

renderCase

func(id uint64) string
Open
OID
0924fa…4a2d:20
renderCase details

Inspect func

short

func(a .uverse.address) string
Open
OID
0924fa…4a2d:22
short details

Inspect func

parseJurors

func(csv string) [].uverse.address
Open
OID
0924fa…4a2d:23
parseJurors details

Inspect func
Phase : type =v0.Phase
PhaseCommit : v0.Phase =<gnolang.StringValue>
PhaseReveal : v0.Phase =<gnolang.StringValue>
PhaseClosed : v0.Phase =<gnolang.StringValue>
Juror : type =v0.Juror
Case : type =v0.Case
cases : []*v0.Case =<zero>
MaxCases : untyped bigint =(1000 <untyped> bigint)
MaxJurors : untyped bigint =(25 <untyped> bigint)
MaxSubject : untyped bigint =(200 <untyped> bigint)
IndexRecent : untyped bigint =(50 <untyped> bigint)
MaxCommitment : untyped bigint =(128 <untyped> bigint)
OpenCase : func(subject string, jurorsCSV string) uint64 Inspect
Commit : func(caseID uint64, commitment string) Inspect
Reveal : func(caseID uint64, verdict bool, salt string) Inspect
Get : func(caseID uint64) v0.Case Inspect
Outcome : func(caseID uint64) string Inspect
Count : func() int Inspect
closeCase : func(c *v0.Case) Inspect
allCommitted : func(c *v0.Case) bool Inspect
allRevealed : func(c *v0.Case) bool Inspect
mustCase : func(id uint64) *v0.Case Inspect
mustJuror : func(c *v0.Case, addr .uverse.address) *v0.Juror Inspect
boolStr : func(b bool) string Inspect
assert : func(cond bool, msg string) Inspect
Render : func(path string) string Inspect
renderIndex : func() string Inspect
renderCase : func(id uint64) string Inspect
parseID : func(s string) uint64 Inspect
short : func(a .uverse.address) string Inspect
parseJurors : func(csv string) [].uverse.address Inspect
caller : func() .uverse.address Inspect