TransferOwnership
func(next .uverse.address)- OID
- 0cb759…5c07:3
TransferOwnership details
CancelOwnershipTransfer
func()- OID
- 0cb759…5c07:5
CancelOwnershipTransfer details
AcceptOwnership
func()- OID
- 0cb759…5c07:6
AcceptOwnership details
QueueOracle
func(next .uverse.address)- OID
- 0cb759…5c07:7
QueueOracle details
RevokeOracle
func()- OID
- 0cb759…5c07:8
RevokeOracle details
CancelOracle
func()- OID
- 0cb759…5c07:9
CancelOracle details
ExecuteOracle
func()- OID
- 0cb759…5c07:10
ExecuteOracle details
SetArbiter
func(next .uverse.address)- OID
- 0cb759…5c07:11
SetArbiter details
QueueFeeRecipient
func(next .uverse.address)- OID
- 0cb759…5c07:12
QueueFeeRecipient details
CancelFeeRecipient
func()- OID
- 0cb759…5c07:13
CancelFeeRecipient details
ExecuteFeeRecipient
func()- OID
- 0cb759…5c07:14
ExecuteFeeRecipient details
SetPaused
func(p bool)- OID
- 0cb759…5c07:15
SetPaused details
SetAuditAgent
func(next string)SetAuditAgent appoints the reviewer that may dispute with a bond; "" disables it.
- OID
- 0cb759…5c07:16
SetAuditAgent details
SetCaps
func(market int64, account int64)SetCaps sets guarded launch caps in net mUSD units (0 = none). They only gate new stakes.
- OID
- 0cb759…5c07:17
SetCaps details
SetLockAt
func(id int64, at int64)SetLockAt closes a market to new stakes early (kickoff), by its creator or the owner. Only ever earlier.
- OID
- 0cb759…5c07:18
SetLockAt details
owed
func(m *pool.Market, p *pool.Position) (gross int64, feeBase int64)owed is what \`user\` is owed from a resolved market: gross = stake back + share of the losing side. Full refund when either side is empty or on DRAW / UNRESOLVABLE. feeBase is the profit copy fees may be charged on: the user's NET profit (the share less their own stake on the losing side, so a hedger never pays a copy fee on their own money), counted only on the copied part of the winning stake. Deposits at or after the settlement cutoff are late: their net principal comes back and they share in nothing.
- OID
- 0cb759…5c07:19
owed details
winnerPayout
func(m *pool.Market, p *pool.Position) bool- OID
- 0cb759…5c07:21
winnerPayout details
copyFees
func(user .uverse.address, p *pool.Position, feeBase int64) (toRef int64, toPlatform int64)copyFees are the copy-trade fees on the copied net profit: (to the referrer, to the platform). Nobody pays themselves: a referrer or fee recipient who is the user waives that leg.
- OID
- 0cb759…5c07:22
copyFees details
Claim
func(id int64)Claim collects the caller's own payout.
- OID
- 0cb759…5c07:23
Claim details
ClaimFor
func(id int64, user .uverse.address)ClaimFor lets anyone push a user's payout to them. The money only ever goes to \`user\`.
- OID
- 0cb759…5c07:24
ClaimFor details
claimFor
func(id int64, user .uverse.address)- OID
- 0cb759…5c07:25
claimFor details
ClaimFees
func()ClaimFees pays the caller's accrued fees (entry fees, copy fees, forfeited bonds).
- OID
- 0cb759…5c07:26
ClaimFees details
ClaimFeesTo
func(to .uverse.address)- OID
- 0cb759…5c07:27
ClaimFeesTo details
claimFeesTo
func(to .uverse.address)- OID
- 0cb759…5c07:28
claimFeesTo details
CreateMarket
func(question string, labelA string, labelB string, resolutionURL string, category string, deadline int64, side int, referrer string, amount int64) int64CreateMarket opens a market with \`amount\` mUSD (pulled from the caller, less the entry fee) staked on \`side\` (SideA or SideB). \`referrer\` is the copied basket's creator, or "" for none. Returns the new market's id.
- OID
- 0cb759…5c07:29
CreateMarket details
Stake
func(id int64, side int, referrer string, amount int64)Stake puts \`amount\` mUSD (less the entry fee) on \`side\`. Repeated stakes add up.
- OID
- 0cb759…5c07:31
Stake details
addStake
func(m *pool.Market, side int, referrer .uverse.address, amount int64)- OID
- 0cb759…5c07:32
addStake details
StOpen
untyped bigintMarket states.
Value
(0 <untyped> bigint)
StProposed
untyped bigintMarket states.
Value
(1 <untyped> bigint)
StDisputed
untyped bigintMarket states.
Value
(2 <untyped> bigint)
StResolved
untyped bigintMarket states.
Value
(3 <untyped> bigint)
SideA
untyped bigintSides and outcomes.
Value
(1 <untyped> bigint)
SideB
untyped bigintSides and outcomes.
Value
(2 <untyped> bigint)
Draw
untyped bigintSides and outcomes.
Value
(3 <untyped> bigint)
Unresolvable
untyped bigintSides and outcomes.
Value
(4 <untyped> bigint)
MinStake
int64Value
100000
DisputeBond
int64Value
2000000
LockSeconds
int64Value
60
MaxDeadlineAhead
int64Value
31536000
MaxEntryBps
int64Value
100
ReferrerFeeBps
int64Value
100
CopyFeeBps
int64Value
100
ResolutionGraceSeconds
int64Value
604800
MaxDisputeWindow
int64Value
604800
MinLiveDisputeWindow
int64Value
86400
TestnetDisputeWindow
int64Value
600
Deployer
.uverse.addressInitial roles. The owner can change each one afterwards.
Value
<gnolang.StringValue>
InitialOracle
.uverse.addressInitial roles. The owner can change each one afterwards.
Value
<gnolang.StringValue>
InitialArbiter
.uverse.addressInitial roles. The owner can change each one afterwards.
Value
<gnolang.StringValue>
Market
typeValue
pool.Market
Position
typeValue
pool.Position
markets
v0.Tree// padded id -> \*Market
- OID
- 0cb759…5c07:34
markets details
marketCount
int64Value
3
accruedFees
v0.Tree// address -> int64
- OID
- 0cb759…5c07:37
accruedFees details
lifetimeFeesAccrued
int64Value
225500
lifetimeFeesClaimed
int64Value
0
roles
*mimir.Roles- OID
- 0cb759…5c07:107
roles details
disputeWindow
int64Value
600
init.58
func()- OID
- 0cb759…5c07:42
init.58 details
now
func() int64- OID
- 0cb759…5c07:44
now details
emit
func(typ string, attrs []string)- OID
- 0cb759…5c07:45
emit details
itoa
func(n int64) string- OID
- 0cb759…5c07:46
itoa details
key
func(id int64) string- OID
- 0cb759…5c07:47
key details
getMarket
func(id int64) *pool.Market- OID
- 0cb759…5c07:48
getMarket details
feesOf
func(a .uverse.address) int64- OID
- 0cb759…5c07:49
feesOf details
accrue
func(id int64, to .uverse.address, amount int64)- OID
- 0cb759…5c07:50
accrue details
pull
func(from .uverse.address, amount int64)pull moves exactly amount mUSD from the caller into this realm (needs an allowance).
- OID
- 0cb759…5c07:51
pull details
push
func(to .uverse.address, amount int64)- OID
- 0cb759…5c07:52
push details
caller
func() .uverse.address- OID
- 0cb759…5c07:53
caller details
assertOwner
func()- OID
- 0cb759…5c07:54
assertOwner details
assertNotPaused
func()- OID
- 0cb759…5c07:55
assertNotPaused details
parseReferrer
func(s string) .uverse.address- OID
- 0cb759…5c07:56
parseReferrer details
entryBps
func(a .uverse.address) int64- OID
- 0cb759…5c07:57
entryBps details
stateNames
[]string- OID
- 0cb759…5c07:59
stateNames details
outcomeName
func(m *pool.Market, o int) string- OID
- 0cb759…5c07:60
outcomeName details
pct
func(a int64, b int64) int64- OID
- 0cb759…5c07:62
pct details
when
func(unix int64) string- OID
- 0cb759…5c07:63
when details
Render
func(path string) string- OID
- 0cb759…5c07:64
Render details
renderHome
func() string- OID
- 0cb759…5c07:65
renderHome details
renderMarket
func(m *pool.Market) string- OID
- 0cb759…5c07:66
renderMarket details
helpLink
func(fn string, id int64) string- OID
- 0cb759…5c07:67
helpLink details
hashOrNone
func(h string) string- OID
- 0cb759…5c07:68
hashOrNone details
validOutcome
func(outcome int)- OID
- 0cb759…5c07:69
validOutcome details
validHash
func(h string)- OID
- 0cb759…5c07:71
validHash details
refundAt
func(m *pool.Market) int64refundAt is when RefundExpired opens: grace from the latest deadline, proposal or dispute.
- OID
- 0cb759…5c07:72
refundAt details
setCutoff
func(m *pool.Market, cutoff int64)- OID
- 0cb759…5c07:73
setCutoff details
Resolve
func(id int64, outcome int, summary string, evidenceHash string)Resolve is the oracle's verdict: final at once with no dispute window, else a proposal.
- OID
- 0cb759…5c07:74
Resolve details
ResolveWithCutoff
func(id int64, outcome int, summary string, evidenceHash string, cutoff int64)ResolveWithCutoff also sets the settlement cutoff: only deposits strictly before it compete; later ones get their net principal back.
- OID
- 0cb759…5c07:75
ResolveWithCutoff details
resolve
func(id int64, outcome int, summary string, evidenceHash string, cutoff int64)- OID
- 0cb759…5c07:76
resolve details
Dispute
func(id int64)Dispute escalates the proposal to the arbiter, pulling DisputeBond mUSD. Open to the market's participants, the audit agent and the arbiter.
- OID
- 0cb759…5c07:77
Dispute details
VetoProposal
func(id int64)VetoProposal lets the owner send a proposal it believes wrong to the arbiter, inside the window. No bond; if the arbiter never rules, RefundExpired refunds every stake rather than honouring the vetoed proposal.
- OID
- 0cb759…5c07:78
VetoProposal details
Finalize
func(id int64)Finalize settles an undisputed proposal once the window has closed. Anyone may call it.
- OID
- 0cb759…5c07:79
Finalize details
ResolveDispute
func(id int64, outcome int, summary string, evidenceHash string)ResolveDispute is the arbiter's final word on a disputed market.
- OID
- 0cb759…5c07:80
ResolveDispute details
ResolveDisputeWithCutoff
func(id int64, outcome int, summary string, evidenceHash string, cutoff int64)- OID
- 0cb759…5c07:81
ResolveDisputeWithCutoff details
resolveDispute
func(m *pool.Market, outcome int, summary string, evidenceHash string, cutoff int64)- OID
- 0cb759…5c07:82
resolveDispute details
RefundExpired
func(id int64)RefundExpired is the escape hatch, open to anyone once the grace has passed. A market the oracle never resolved is refunded in full; a dispute the arbiter never ruled on settles to the oracle's proposal and the bond is forfeited, so a cheap dispute cannot turn a loss into a free refund. A vetoed proposal, or any proposal while paused, refunds instead.
- OID
- 0cb759…5c07:83
RefundExpired details
settle
func(m *pool.Market, outcome int, summary string, evidenceHash string)- OID
- 0cb759…5c07:84
settle details
settleBond
func(m *pool.Market, returnIt bool)- OID
- 0cb759…5c07:85
settleBond details
boolStr
func(b bool) string- OID
- 0cb759…5c07:86
boolStr details
MarketCount
func() int64- OID
- 0cb759…5c07:87
MarketCount details
Owner
func() .uverse.address- OID
- 0cb759…5c07:89
Owner details
Arbiter
func() .uverse.address- OID
- 0cb759…5c07:90
Arbiter details
Oracle
func() .uverse.address- OID
- 0cb759…5c07:91
Oracle details
AuditAgent
func() .uverse.address- OID
- 0cb759…5c07:92
AuditAgent details
FeeRecipient
func() .uverse.address- OID
- 0cb759…5c07:93
FeeRecipient details
Paused
func() bool- OID
- 0cb759…5c07:94
Paused details
DisputeWindow
func() int64- OID
- 0cb759…5c07:95
DisputeWindow details
AccruedFees
func(a .uverse.address) int64- OID
- 0cb759…5c07:96
AccruedFees details
SideTotals
func(id int64) (int64, int64)SideTotals are the pool sizes: the implied probability of A is totalA / (totalA + totalB).
- OID
- 0cb759…5c07:97
SideTotals details
StakeOf
func(id int64, user .uverse.address) (int64, int64)- OID
- 0cb759…5c07:98
StakeOf details
EligibleTotals
func(id int64) (int64, int64)EligibleTotals are the side totals that compete under the settlement cutoff.
- OID
- 0cb759…5c07:99
EligibleTotals details
Claimable
func(id int64, user .uverse.address) (payout int64, fee int64)Claimable is what ClaimFor would pay \`user\` now (net) and the copy fees it would take. 0 if unresolved, already claimed or nothing owed.
- OID
- 0cb759…5c07:100
Claimable details
ConfigJSON
func() string- OID
- 0cb759…5c07:101
ConfigJSON details
MarketJSON
func(id int64) string- OID
- 0cb759…5c07:102
MarketJSON details
MarketsJSON
func(offset int, limit int) stringMarketsJSON lists markets newest first: \`offset\` skips that many from the newest.
- OID
- 0cb759…5c07:103
MarketsJSON details
PositionJSON
func(id int64, user .uverse.address) stringPositionJSON is one user's stake, claim state and claimable amount in a market.
- OID
- 0cb759…5c07:104
PositionJSON details
marketJSON
func(m *pool.Market) string- OID
- 0cb759…5c07:105
marketJSON details
kv
func(k string, v string) string- OID
- 0cb759…5c07:106