TransferOwnership
func(next .uverse.address)- OID
- 0563c5…2182:3
TransferOwnership details
CancelOwnershipTransfer
func()- OID
- 0563c5…2182:5
CancelOwnershipTransfer details
AcceptOwnership
func()- OID
- 0563c5…2182:6
AcceptOwnership details
QueueOracle
func(next .uverse.address)- OID
- 0563c5…2182:7
QueueOracle details
RevokeOracle
func()- OID
- 0563c5…2182:8
RevokeOracle details
CancelOracle
func()- OID
- 0563c5…2182:9
CancelOracle details
ExecuteOracle
func()- OID
- 0563c5…2182:10
ExecuteOracle details
SetArbiter
func(next .uverse.address)- OID
- 0563c5…2182:11
SetArbiter details
QueueFeeRecipient
func(next .uverse.address)- OID
- 0563c5…2182:12
QueueFeeRecipient details
CancelFeeRecipient
func()- OID
- 0563c5…2182:13
CancelFeeRecipient details
ExecuteFeeRecipient
func()- OID
- 0563c5…2182:14
ExecuteFeeRecipient details
SetPaused
func(p bool)- OID
- 0563c5…2182:15
SetPaused details
SetCaps
func(market int64, account int64)- OID
- 0563c5…2182:16
SetCaps details
SetAuditAgent
func(next string)SetAuditAgent appoints the reviewer that may dispute with a bond; "" disables it.
- OID
- 0563c5…2182:17
SetAuditAgent details
ClaimFees
func()ClaimFees pays the caller's accrued fees (entry fees, copy fees, forfeited bonds).
- OID
- 0563c5…2182:18
ClaimFees details
ClaimFeesTo
func(to .uverse.address)- OID
- 0563c5…2182:19
ClaimFeesTo details
claimFeesTo
func(to .uverse.address)- OID
- 0563c5…2182:20
claimFeesTo details
createArgs
typeValue
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) int64CreateClaim 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 "".
- OID
- 0563c5…2182:21
CreateClaim details
CreateRematch
func(parentID int64, deadline int64, stakeAmount int64) int64CreateRematch 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.
- OID
- 0563c5…2182:23
CreateRematch details
createClaim
func(a vs.createArgs) int64- OID
- 0563c5…2182:24
createClaim details
orDefault
func(s string, d string) string- OID
- 0563c5…2182:25
orDefault details
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.
- OID
- 0563c5…2182:26
SetInvited details
ChallengeClaim
func(claimID int64, stakeAmount int64, referrer string)ChallengeClaim takes the counter position with \`stakeAmount\` mUSD (less the entry fee).
- OID
- 0563c5…2182:27
ChallengeClaim details
checkChallenge
func(c *vs.Claim, user .uverse.address, stakeAmount int64)- OID
- 0563c5…2182:28
checkChallenge details
SetLockAt
func(claimID int64, at int64)SetLockAt closes a claim to new challengers early, by its creator or the owner. Only ever earlier.
- OID
- 0563c5…2182:29
SetLockAt details
CancelClaim
func(claimID int64)CancelClaim refunds the creator of a claim nobody has challenged yet.
- OID
- 0563c5…2182:30
CancelClaim details
boolStr
func(b bool) string- OID
- 0563c5…2182:31
boolStr details
stateNames
[]string- OID
- 0563c5…2182:33
stateNames details
sideName
func(c *vs.Claim, s int) string- OID
- 0563c5…2182:34
sideName details
when
func(unix int64) string- OID
- 0563c5…2182:36
when details
Render
func(path string) string- OID
- 0563c5…2182:37
Render details
renderHome
func() string- OID
- 0563c5…2182:38
renderHome details
renderClaim
func(c *vs.Claim) string- OID
- 0563c5…2182:39
renderClaim details
bpsX
func(bps int64) string- OID
- 0563c5…2182:40
bpsX details
hashOrNone
func(h string) string- OID
- 0563c5…2182:41
hashOrNone details
validVerdict
func(side int)- OID
- 0563c5…2182:42
validVerdict details
validHash
func(h string)- OID
- 0563c5…2182:44
validHash details
setCutoff
func(c *vs.Claim, cutoff int64)- OID
- 0563c5…2182:45
setCutoff details
refundAt
func(c *vs.Claim) int64refundAt is when RefundExpired opens: grace counted from the deadline, or from the proposal or dispute if later. From then on new verdicts are refused.
- OID
- 0563c5…2182:46
refundAt details
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.
- OID
- 0563c5…2182:47
ResolveClaimWithCutoff details
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.
- OID
- 0563c5…2182:48
DisputeResolution details
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.
- OID
- 0563c5…2182:49
VetoProposal details
FinalizeResolution
func(claimID int64)FinalizeResolution settles an undisputed proposal once its window has closed. Anyone may call it.
- OID
- 0563c5…2182:50
FinalizeResolution details
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.
- OID
- 0563c5…2182:51
ResolveDisputeWithCutoff details
settleBond
func(c *vs.Claim, returnIt bool)- OID
- 0563c5…2182:52
settleBond details
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.
- OID
- 0563c5…2182:53
RefundExpired details
EligibleTotals
func(claimID int64) (int64, int64)EligibleTotals are the creator's and the challengers' stakes that compete under the settlement cutoff.
- OID
- 0563c5…2182:54
EligibleTotals details
eligibleTotals
func(c *vs.Claim) (int64, int64)- OID
- 0563c5…2182:55
eligibleTotals details
settle
func(c *vs.Claim, winnerSide int, summary string, confidence int, evidenceHash string)- OID
- 0563c5…2182:56
settle details
distribute
func(c *vs.Claim, outcome int) (totalPaid int64, totalFees int64)distribute pays only eligible risk; late principal is refunded as on a draw.
- OID
- 0563c5…2182:57
distribute details
ClaimCount
func() int64- OID
- 0563c5…2182:58
ClaimCount details
Owner
func() .uverse.address- OID
- 0563c5…2182:60
Owner details
Arbiter
func() .uverse.address- OID
- 0563c5…2182:61
Arbiter details
Oracle
func() .uverse.address- OID
- 0563c5…2182:62
Oracle details
AuditAgent
func() .uverse.address- OID
- 0563c5…2182:63
AuditAgent details
FeeRecipient
func() .uverse.address- OID
- 0563c5…2182:64
FeeRecipient details
Paused
func() bool- OID
- 0563c5…2182:65
Paused details
DisputeWindow
func() int64- OID
- 0563c5…2182:66
DisputeWindow details
AccruedFees
func(a .uverse.address) int64- OID
- 0563c5…2182:67
AccruedFees details
UserStats
func(a .uverse.address) (int64, int64)- OID
- 0563c5…2182:68
UserStats details
HasChallenged
func(id int64, a .uverse.address) bool- OID
- 0563c5…2182:69
HasChallenged details
Invited
func(id int64, a .uverse.address) bool- OID
- 0563c5…2182:70
Invited details
PlatformStats
func() (int64, int64)PlatformStats: claims opened, claims resolved.
- OID
- 0563c5…2182:71
PlatformStats details
FeeStats
func() (int64, int64, int64)FeeStats: accrued, claimed and outstanding fees. Outstanding is always covered by the realm's balance.
- OID
- 0563c5…2182:72
FeeStats details
ConfigJSON
func() string- OID
- 0563c5…2182:73
ConfigJSON details
ClaimJSON
func(id int64) string- OID
- 0563c5…2182:74
ClaimJSON details
ClaimsJSON
func(offset int, limit int) stringClaimsJSON lists claims newest first: \`offset\` skips that many from the newest.
- OID
- 0563c5…2182:75
ClaimsJSON details
ChallengersJSON
func(id int64) stringChallengersJSON lists a claim's challengers in the order they joined.
- OID
- 0563c5…2182:76
ChallengersJSON details
claimJSON
func(c *vs.Claim) string- OID
- 0563c5…2182:77
claimJSON details
kv
func(k string, v string) string- OID
- 0563c5…2182:78
kv details
StOpen
untyped bigintClaim states.
Value
(0 <untyped> bigint)
StActive
untyped bigintClaim states.
Value
(1 <untyped> bigint)
StResolved
untyped bigintClaim states.
Value
(2 <untyped> bigint)
StCancelled
untyped bigintClaim 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 bigintWinner sides.
Value
(0 <untyped> bigint)
SideCreator
untyped bigintWinner sides.
Value
(1 <untyped> bigint)
SideChallengers
untyped bigintWinner sides.
Value
(2 <untyped> bigint)
SideDraw
untyped bigintWinner sides.
Value
(3 <untyped> bigint)
SideUnresolvable
untyped bigintWinner sides.
Value
(4 <untyped> bigint)
MaxChallengers
untyped bigintValue
(100 <untyped> bigint)
MaxPoolMultiple
int64Value
5
MinStake
int64Value
100000
DisputeBond
int64Value
2000000
DefaultPayoutBps
int64// 2x
Value
20000
MaxPayoutBps
int64Value
100000
MaxDeadlineAhead
int64Value
31536000
MaxEntryBps
int64Value
100
ChallengeLockSeconds
int64Value
60
ReferrerFeeBps
int64Value
100
CopyFeeBps
int64Value
100
ResolutionGraceSeconds
int64Value
604800
MinLiveDisputeWindow
int64Value
86400
TestnetDisputeWindow
int64Value
600
Deployer
.uverse.addressValue
<gnolang.StringValue>
InitialOracle
.uverse.addressValue
<gnolang.StringValue>
InitialArbiter
.uverse.addressValue
<gnolang.StringValue>
Challenger
typeValue
vs.Challenger
Proposal
typeValue
vs.Proposal
Claim
typeValue
vs.Claim
claims
v0.Tree// padded id -> \*Claim
- OID
- 0563c5…2182:80
claims details
claimCount
int64Value
0
totalResolved
int64Value
0
wins
v0.Tree// address -> int64
- OID
- 0563c5…2182:84
wins details
losses
v0.Tree- OID
- 0563c5…2182:86
losses details
accruedFees
v0.Tree// address -> int64
- OID
- 0563c5…2182:88
accruedFees details
lifetimeFeesAccrued
int64Value
0
lifetimeFeesClaimed
int64Value
0
roles
*mimir.Roles- OID
- 0563c5…2182:109
roles details
disputeWindow
int64Value
600
init.112
func()- OID
- 0563c5…2182:93
init.112 details
now
func() int64- OID
- 0563c5…2182:95
now details
emit
func(typ string, attrs []string)- OID
- 0563c5…2182:96
emit details
itoa
func(n int64) string- OID
- 0563c5…2182:97
itoa details
caller
func() .uverse.address- OID
- 0563c5…2182:98
caller details
key
func(id int64) string- OID
- 0563c5…2182:99
key details
getClaim
func(id int64) *vs.Claim- OID
- 0563c5…2182:100
getClaim details
counter
func(t *v0.Tree, a .uverse.address) int64- OID
- 0563c5…2182:101
counter details
bump
func(t *v0.Tree, a .uverse.address)- OID
- 0563c5…2182:102
bump details
accrue
func(id int64, to .uverse.address, amount int64)- OID
- 0563c5…2182:103
accrue details
pull
func(from .uverse.address, amount int64)- OID
- 0563c5…2182:104
pull details
push
func(to .uverse.address, amount int64)- OID
- 0563c5…2182:105
push details
takeEntry
func(c *vs.Claim, user .uverse.address, amount int64) int64takeEntry 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.
- OID
- 0563c5…2182:106
takeEntry details
grossPayout
func(stake int64, bps int64) int64- OID
- 0563c5…2182:107
grossPayout details
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.
- OID
- 0563c5…2182:108