Skip to content Search Apps Documentation Source Content Run Reset Eval Playground 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.

vs state

Back to all declarations

TransferOwnership

func(next .uverse.address)
Open
OID
0563c5…2182:3
TransferOwnership details

Inspect func

CancelOwnershipTransfer

func()
Open
OID
0563c5…2182:5
CancelOwnershipTransfer details

Inspect func

QueueOracle

func(next .uverse.address)
Open
OID
0563c5…2182:7
QueueOracle details

Inspect func

SetArbiter

func(next .uverse.address)
Open
OID
0563c5…2182:11
SetArbiter details

Inspect func

QueueFeeRecipient

func(next .uverse.address)
Open
OID
0563c5…2182:12
QueueFeeRecipient details

Inspect func

CancelFeeRecipient

func()
Open
OID
0563c5…2182:13
CancelFeeRecipient details

Inspect func

ExecuteFeeRecipient

func()
Open
OID
0563c5…2182:14
ExecuteFeeRecipient details

Inspect func

SetCaps

func(market int64, account int64)
Open
OID
0563c5…2182:16
SetCaps details

Inspect func

SetAuditAgent

func(next string)

SetAuditAgent appoints the reviewer that may dispute with a bond; "" disables it.

Open
OID
0563c5…2182:17
SetAuditAgent details

Inspect func

ClaimFees

func()

ClaimFees pays the caller's accrued fees (entry fees, copy fees, forfeited bonds).

Open
OID
0563c5…2182:18
ClaimFees details

Inspect func

ClaimFeesTo

func(to .uverse.address)
Open
OID
0563c5…2182:19
ClaimFeesTo details

Inspect func

claimFeesTo

func(to .uverse.address)
Open
OID
0563c5…2182:20
claimFeesTo details

Inspect func

createArgs

type

Value

vs.createArgs

CreateClaim

func(question string, creatorPosition string, counterPosition string, resolutionURL string, deadline int64, stakeAmount int64, category string, parentID int64, marketType string, oddsMode string, challengerPayoutBps int64, handicapLine string, settlementRule string, maxChallengers int, isPrivate bool, referrer string) int64

CreateClaim opens a claim with \`stakeAmount\` mUSD (less the entry fee) on the creator's position. oddsMode is "pool" or "fixed"; challengerPayoutBps applies to fixed odds (below 10000 means the 2x default). maxChallengers 0 means the maximum. referrer is the copied basket's creator, or "".

Open
OID
0563c5…2182:21
CreateClaim details

Inspect func

CreateRematch

func(parentID int64, deadline int64, stakeAmount int64) int64

CreateRematch opens a new claim inheriting its terms from a parent. The caller is the creator and pays the stake. The parent's referrer carries over only to the parent's own creator.

Open
OID
0563c5…2182:23
CreateRematch details

Inspect func

createClaim

func(a vs.createArgs) int64
Open
OID
0563c5…2182:24
createClaim details

Inspect func

orDefault

func(s string, d string) string
Open
OID
0563c5…2182:25
orDefault details

Inspect func

SetInvited

func(claimID int64, accounts string, allowed bool)

SetInvited grants or revokes wallets on a private claim, up to MaxChallengers per call, as a comma-separated list. Revocation only blocks future entry. Rematches have their own empty list.

Open
OID
0563c5…2182:26
SetInvited details

Inspect func

ChallengeClaim

func(claimID int64, stakeAmount int64, referrer string)

ChallengeClaim takes the counter position with \`stakeAmount\` mUSD (less the entry fee).

Open
OID
0563c5…2182:27
ChallengeClaim details

Inspect func

checkChallenge

func(c *vs.Claim, user .uverse.address, stakeAmount int64)
Open
OID
0563c5…2182:28
checkChallenge details

Inspect func

SetLockAt

func(claimID int64, at int64)

SetLockAt closes a claim to new challengers early, by its creator or the owner. Only ever earlier.

Open
OID
0563c5…2182:29
SetLockAt details

Inspect func

CancelClaim

func(claimID int64)

CancelClaim refunds the creator of a claim nobody has challenged yet.

Open
OID
0563c5…2182:30
CancelClaim details

Inspect func

sideName

func(c *vs.Claim, s int) string
Open
OID
0563c5…2182:34
sideName details

Inspect func

renderClaim

func(c *vs.Claim) string
Open
OID
0563c5…2182:39
renderClaim details

Inspect func

hashOrNone

func(h string) string
Open
OID
0563c5…2182:41
hashOrNone details

Inspect func

setCutoff

func(c *vs.Claim, cutoff int64)
Open
OID
0563c5…2182:45
setCutoff details

Inspect func

refundAt

func(c *vs.Claim) int64

refundAt is when RefundExpired opens: grace counted from the deadline, or from the proposal or dispute if later. From then on new verdicts are refused.

Open
OID
0563c5…2182:46
refundAt details

Inspect func

ResolveClaimWithCutoff

func(claimID int64, winnerSide int, summary string, confidence int, evidenceHash string, cutoff int64)

ResolveClaimWithCutoff is the oracle's verdict on an active claim. With a dispute window it is a proposal; only stakes made strictly before \`cutoff\` (0 = all) compete, later ones are refunded.

Open
OID
0563c5…2182:47
ResolveClaimWithCutoff details

Inspect func

DisputeResolution

func(claimID int64)

DisputeResolution escalates a proposed verdict to the arbiter by posting DisputeBond. The bond comes back if the arbiter changes the verdict and is forfeited otherwise. Open to the creator, challengers, the audit agent and the arbiter.

Open
OID
0563c5…2182:48
DisputeResolution details

Inspect func

VetoProposal

func(claimID int64)

VetoProposal sends a proposal the owner believes wrong to the arbiter, inside the window. No bond; if the arbiter never rules, RefundExpired refunds.

Open
OID
0563c5…2182:49
VetoProposal details

Inspect func

FinalizeResolution

func(claimID int64)

FinalizeResolution settles an undisputed proposal once its window has closed. Anyone may call it.

Open
OID
0563c5…2182:50
FinalizeResolution details

Inspect func

ResolveDisputeWithCutoff

func(claimID int64, winnerSide int, summary string, confidence int, evidenceHash string, cutoff int64)

ResolveDisputeWithCutoff is the arbiter's final word on a disputed claim.

Open
OID
0563c5…2182:51
ResolveDisputeWithCutoff details

Inspect func

settleBond

func(c *vs.Claim, returnIt bool)
Open
OID
0563c5…2182:52
settleBond details

Inspect func

RefundExpired

func(claimID int64)

RefundExpired is the escape hatch, open to anyone once the grace has passed: - an active claim the oracle never resolved refunds every stake; - a disputed claim the arbiter never ruled on settles to the proposal and the bond is forfeited, unless the owner vetoed it or the realm is paused: then every stake is refunded and the bond goes back; - a paused, undisputed proposal refunds after the grace from its proposal.

Open
OID
0563c5…2182:53
RefundExpired details

Inspect func

EligibleTotals

func(claimID int64) (int64, int64)

EligibleTotals are the creator's and the challengers' stakes that compete under the settlement cutoff.

Open
OID
0563c5…2182:54
EligibleTotals details

Inspect func

eligibleTotals

func(c *vs.Claim) (int64, int64)
Open
OID
0563c5…2182:55
eligibleTotals details

Inspect func

settle

func(c *vs.Claim, winnerSide int, summary string, confidence int, evidenceHash string)
Open
OID
0563c5…2182:56
settle details

Inspect func

distribute

func(c *vs.Claim, outcome int) (totalPaid int64, totalFees int64)

distribute pays only eligible risk; late principal is refunded as on a draw.

Open
OID
0563c5…2182:57
distribute details

Inspect func

AuditAgent

func() .uverse.address
Open
OID
0563c5…2182:63
AuditAgent details

Inspect func

FeeRecipient

func() .uverse.address
Open
OID
0563c5…2182:64
FeeRecipient details

Inspect func

AccruedFees

func(a .uverse.address) int64
Open
OID
0563c5…2182:67
AccruedFees details

Inspect func

UserStats

func(a .uverse.address) (int64, int64)
Open
OID
0563c5…2182:68
UserStats details

Inspect func

HasChallenged

func(id int64, a .uverse.address) bool
Open
OID
0563c5…2182:69
HasChallenged details

Inspect func

Invited

func(id int64, a .uverse.address) bool
Open
OID
0563c5…2182:70
Invited details

Inspect func

PlatformStats

func() (int64, int64)

PlatformStats: claims opened, claims resolved.

Open
OID
0563c5…2182:71
PlatformStats details

Inspect func

FeeStats

func() (int64, int64, int64)

FeeStats: accrued, claimed and outstanding fees. Outstanding is always covered by the realm's balance.

Open
OID
0563c5…2182:72
FeeStats details

Inspect func

ClaimJSON

func(id int64) string
Open
OID
0563c5…2182:74
ClaimJSON details

Inspect func

ClaimsJSON

func(offset int, limit int) string

ClaimsJSON lists claims newest first: \`offset\` skips that many from the newest.

Open
OID
0563c5…2182:75
ClaimsJSON details

Inspect func

ChallengersJSON

func(id int64) string

ChallengersJSON lists a claim's challengers in the order they joined.

Open
OID
0563c5…2182:76
ChallengersJSON details

Inspect func

claimJSON

func(c *vs.Claim) string
Open
OID
0563c5…2182:77
claimJSON details

Inspect func

StOpen

untyped bigint

Claim states.

Value

(0 <untyped> bigint)

StActive

untyped bigint

Claim states.

Value

(1 <untyped> bigint)

StResolved

untyped bigint

Claim states.

Value

(2 <untyped> bigint)

StCancelled

untyped bigint

Claim states.

Value

(3 <untyped> bigint)

StProposed

untyped bigint

// the oracle has proposed a verdict; disputable until the window closes

Value

(4 <untyped> bigint)

StDisputed

untyped bigint

// a participant disputed; the arbiter decides

Value

(5 <untyped> bigint)

SideNone

untyped bigint

Winner sides.

Value

(0 <untyped> bigint)

SideCreator

untyped bigint

Winner sides.

Value

(1 <untyped> bigint)

SideChallengers

untyped bigint

Winner sides.

Value

(2 <untyped> bigint)

SideDraw

untyped bigint

Winner sides.

Value

(3 <untyped> bigint)

SideUnresolvable

untyped bigint

Winner sides.

Value

(4 <untyped> bigint)

MaxChallengers

untyped bigint

Value

(100 <untyped> bigint)

MaxPoolMultiple

int64

Value

5

MinStake

int64

Value

100000

DisputeBond

int64

Value

2000000

DefaultPayoutBps

int64

// 2x

Value

20000

MaxPayoutBps

int64

Value

100000

MaxDeadlineAhead

int64

Value

31536000

MaxEntryBps

int64

Value

100

ChallengeLockSeconds

int64

Value

60

ReferrerFeeBps

int64

Value

100

CopyFeeBps

int64

Value

100

ResolutionGraceSeconds

int64

Value

604800

MinLiveDisputeWindow

int64

Value

86400

TestnetDisputeWindow

int64

Value

600

Deployer

.uverse.address

Value

<gnolang.StringValue>

InitialOracle

.uverse.address

Value

<gnolang.StringValue>

InitialArbiter

.uverse.address

Value

<gnolang.StringValue>

Challenger

type

Value

vs.Challenger

Proposal

type

Value

vs.Proposal

Claim

type

Value

vs.Claim

claims

v0.Tree

// padded id -> \*Claim

Open
OID
0563c5…2182:80
claims details

Inspect ref

claimCount

int64

Value

0

totalResolved

int64

Value

0

wins

v0.Tree

// address -> int64

Open
OID
0563c5…2182:84
wins details

Inspect ref

accruedFees

v0.Tree

// address -> int64

Open
OID
0563c5…2182:88
accruedFees details

Inspect ref

lifetimeFeesAccrued

int64

Value

0

lifetimeFeesClaimed

int64

Value

0

disputeWindow

int64

Value

600

emit

func(typ string, attrs []string)
Open
OID
0563c5…2182:96
emit details

Inspect func

getClaim

func(id int64) *vs.Claim
Open
OID
0563c5…2182:100
getClaim details

Inspect func

counter

func(t *v0.Tree, a .uverse.address) int64
Open
OID
0563c5…2182:101
counter details

Inspect func

bump

func(t *v0.Tree, a .uverse.address)
Open
OID
0563c5…2182:102
bump details

Inspect func

accrue

func(id int64, to .uverse.address, amount int64)
Open
OID
0563c5…2182:103
accrue details

Inspect func

pull

func(from .uverse.address, amount int64)
Open
OID
0563c5…2182:104
pull details

Inspect func

push

func(to .uverse.address, amount int64)
Open
OID
0563c5…2182:105
push details

Inspect func

takeEntry

func(c *vs.Claim, user .uverse.address, amount int64) int64

takeEntry pulls \`amount\` from the caller, keeps the caller's entry fee and returns the rest: the stake that is recorded and can be won or refunded.

Open
OID
0563c5…2182:106
takeEntry details

Inspect func

grossPayout

func(stake int64, bps int64) int64
Open
OID
0563c5…2182:107
grossPayout details

Inspect func

payWinner

func(id int64, to .uverse.address, gross int64, principal int64, referrer .uverse.address) (paid int64, taken int64)

payWinner pays a winner. Only a copy trade pays a fee on winnings: ReferrerFeeBps of the profit to the referrer and CopyFeeBps to the platform. Profit is gross - principal floored at zero, so a refund and a break-even win are free. Nobody pays themselves.

Open
OID
0563c5…2182:108
payWinner details

Inspect func
TransferOwnership : func(next .uverse.address) Inspect
CancelOwnershipTransfer : func() Inspect
AcceptOwnership : func() Inspect
QueueOracle : func(next .uverse.address) Inspect
RevokeOracle : func() Inspect
CancelOracle : func() Inspect
ExecuteOracle : func() Inspect
SetArbiter : func(next .uverse.address) Inspect
QueueFeeRecipient : func(next .uverse.address) Inspect
CancelFeeRecipient : func() Inspect
ExecuteFeeRecipient : func() Inspect
SetPaused : func(p bool) Inspect
SetCaps : func(market int64, account int64) Inspect
SetAuditAgent : func(next string) Inspect
ClaimFees : func() Inspect
ClaimFeesTo : func(to .uverse.address) Inspect
claimFeesTo : func(to .uverse.address) Inspect
createArgs : type =vs.createArgs
CreateClaim : func(question string, creatorPosition string, counterPosition string, resolutionURL string, deadline int64, stakeAmount int64, category string, parentID int64, marketType string, oddsMode string, challengerPayoutBps int64, handicapLine string, settlementRule string, maxChallengers int, isPrivate bool, referrer string) int64 Inspect
CreateRematch : func(parentID int64, deadline int64, stakeAmount int64) int64 Inspect
createClaim : func(a vs.createArgs) int64 Inspect
orDefault : func(s string, d string) string Inspect
SetInvited : func(claimID int64, accounts string, allowed bool) Inspect
ChallengeClaim : func(claimID int64, stakeAmount int64, referrer string) Inspect
checkChallenge : func(c *vs.Claim, user .uverse.address, stakeAmount int64) Inspect
SetLockAt : func(claimID int64, at int64) Inspect
CancelClaim : func(claimID int64) Inspect
boolStr : func(b bool) string Inspect
stateNames : []string (len=6) Inspect
sideName : func(c *vs.Claim, s int) string Inspect
when : func(unix int64) string Inspect
Render : func(path string) string Inspect
renderHome : func() string Inspect
renderClaim : func(c *vs.Claim) string Inspect
bpsX : func(bps int64) string Inspect
hashOrNone : func(h string) string Inspect
validVerdict : func(side int) Inspect
validHash : func(h string) Inspect
setCutoff : func(c *vs.Claim, cutoff int64) Inspect
refundAt : func(c *vs.Claim) int64 Inspect
ResolveClaimWithCutoff : func(claimID int64, winnerSide int, summary string, confidence int, evidenceHash string, cutoff int64) Inspect
DisputeResolution : func(claimID int64) Inspect
VetoProposal : func(claimID int64) Inspect
FinalizeResolution : func(claimID int64) Inspect
ResolveDisputeWithCutoff : func(claimID int64, winnerSide int, summary string, confidence int, evidenceHash string, cutoff int64) Inspect
settleBond : func(c *vs.Claim, returnIt bool) Inspect
RefundExpired : func(claimID int64) Inspect
EligibleTotals : func(claimID int64) (int64, int64) Inspect
eligibleTotals : func(c *vs.Claim) (int64, int64) Inspect
settle : func(c *vs.Claim, winnerSide int, summary string, confidence int, evidenceHash string) Inspect
distribute : func(c *vs.Claim, outcome int) (totalPaid int64, totalFees int64) Inspect
ClaimCount : func() int64 Inspect
Owner : func() .uverse.address Inspect
Arbiter : func() .uverse.address Inspect
Oracle : func() .uverse.address Inspect
AuditAgent : func() .uverse.address Inspect
FeeRecipient : func() .uverse.address Inspect
Paused : func() bool Inspect
DisputeWindow : func() int64 Inspect
AccruedFees : func(a .uverse.address) int64 Inspect
UserStats : func(a .uverse.address) (int64, int64) Inspect
HasChallenged : func(id int64, a .uverse.address) bool Inspect
Invited : func(id int64, a .uverse.address) bool Inspect
PlatformStats : func() (int64, int64) Inspect
FeeStats : func() (int64, int64, int64) Inspect
ConfigJSON : func() string Inspect
ClaimJSON : func(id int64) string Inspect
ClaimsJSON : func(offset int, limit int) string Inspect
ChallengersJSON : func(id int64) string Inspect
claimJSON : func(c *vs.Claim) string Inspect
kv : func(k string, v string) string Inspect
StOpen : untyped bigint =(0 <untyped> bigint)
StActive : untyped bigint =(1 <untyped> bigint)
StResolved : untyped bigint =(2 <untyped> bigint)
StCancelled : untyped bigint =(3 <untyped> bigint)
StProposed : untyped bigint =(4 <untyped> bigint)
StDisputed : untyped bigint =(5 <untyped> bigint)
SideNone : untyped bigint =(0 <untyped> bigint)
SideCreator : untyped bigint =(1 <untyped> bigint)
SideChallengers : untyped bigint =(2 <untyped> bigint)
SideDraw : untyped bigint =(3 <untyped> bigint)
SideUnresolvable : untyped bigint =(4 <untyped> bigint)
MaxChallengers : untyped bigint =(100 <untyped> bigint)
MaxPoolMultiple : int64 =5
MinStake : int64 =100000
DisputeBond : int64 =2000000
DefaultPayoutBps : int64 =20000
MaxPayoutBps : int64 =100000
MaxDeadlineAhead : int64 =31536000
MaxEntryBps : int64 =100
ChallengeLockSeconds : int64 =60
ReferrerFeeBps : int64 =100
CopyFeeBps : int64 =100
ResolutionGraceSeconds : int64 =604800
MinLiveDisputeWindow : int64 =86400
TestnetDisputeWindow : int64 =600
Deployer : .uverse.address =<gnolang.StringValue>
InitialOracle : .uverse.address =<gnolang.StringValue>
InitialArbiter : .uverse.address =<gnolang.StringValue>
Challenger : type =vs.Challenger
Proposal : type =vs.Proposal
Claim : type =vs.Claim
claims : v0.Tree Inspect
claimCount : int64 =0
totalResolved : int64 =0
wins : v0.Tree Inspect
losses : v0.Tree Inspect
accruedFees : v0.Tree Inspect
lifetimeFeesAccrued : int64 =0
lifetimeFeesClaimed : int64 =0
roles : *mimir.Roles Inspect
disputeWindow : int64 =600
init.112 : func() Inspect
now : func() int64 Inspect
emit : func(typ string, attrs []string) Inspect
itoa : func(n int64) string Inspect
caller : func() .uverse.address Inspect
key : func(id int64) string Inspect
getClaim : func(id int64) *vs.Claim Inspect
counter : func(t *v0.Tree, a .uverse.address) int64 Inspect
bump : func(t *v0.Tree, a .uverse.address) Inspect
accrue : func(id int64, to .uverse.address, amount int64) Inspect
pull : func(from .uverse.address, amount int64) Inspect
push : func(to .uverse.address, amount int64) Inspect
takeEntry : func(c *vs.Claim, user .uverse.address, amount int64) int64 Inspect
grossPayout : func(stake int64, bps int64) int64 Inspect
payWinner : func(id int64, to .uverse.address, gross int64, principal int64, referrer .uverse.address) (paid int64, taken int64) Inspect