Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

v1 state

Back to all declarations

maxSeats

untyped bigint

Value

(5 <untyped> bigint)

maxTerm

untyped bigint

// seconds

Value

(7776000 <untyped> bigint)

StatusSubmitted

untyped string

Value

"submitted"

StatusChangesRequested

untyped string

Value

"changes_requested"

StatusRecommended

untyped string

Value

"recommended"

StatusDeclined

untyped string

Value

"declined"

seat

type

A seat is active strictly before until. Lead is a public label and grants nothing.

Value

v1.seat

Application

type

An Application is a founder's request for review and the latest decision on it. Earlier revisions and decisions stay in the event log.

Value

v1.Application

admin

.uverse.address

Value

<gnolang.StringValue>

pendingAdmin

.uverse.address

Value

<zero>

seats

v0.Tree

// manager address -> seat; at most maxSeats entries

Open
OID
0afffa…bffb:6
seats details

Inspect ref

conflicts

v0.Tree

// "\<collection>/\<address>" -> true; never removed

Open
OID
0afffa…bffb:8
conflicts details

Inspect ref

applications

v0.Tree

// collection -> \*Application

Open
OID
0afffa…bffb:10
applications details

Inspect ref

lastFiling

v0.ID

Value

<zero>

filings

v0.Tree

// seqid key -> collection, in order of first filing

Open
OID
0afffa…bffb:13
filings details

Inspect ref

zeroHash

string

Value

"0000000000000000000000000000000000000000000000000000000000000000"

commitment

func(hash string, cid string)

commitment checks a pointer to public text: the SHA-256 of its exact bytes as 64 lowercase hex digits, not all zero, and a bounded IPFS CID it can be fetched from (CIDv1 "bafy..." or "bafk..." in base32, or CIDv0 "Qm..." in base58). Clients must hash what they fetch before showing it. Private prose never goes on chain. Byte ranges, not alphabet lookups: this is most of the cost of a call that takes a pointer.

Open
OID
0afffa…bffb:21
commitment details

Inspect func

ProposeAdmin

func(next .uverse.address)

ProposeAdmin starts a handoff to any account or realm. Nothing changes until that exact address accepts.

Open
OID
0afffa…bffb:22
ProposeAdmin details

Inspect func

CancelAdminProposal

func()
Open
OID
0afffa…bffb:23
CancelAdminProposal details

Inspect func

AcceptAdmin

func()

AcceptAdmin completes the handoff. No caller has the empty address, so nobody accepts while nothing is proposed. The admin holds no seat: a manager who accepts gives its seat up.

Open
OID
0afffa…bffb:24
AcceptAdmin details

Inspect func

GetPendingAdmin

func() .uverse.address
Open
OID
0afffa…bffb:26
GetPendingAdmin details

Inspect func

checkAccount

func(who .uverse.address)

checkAccount refuses an address the chain never gives a caller: another spelling of an account would read as a stranger.

Open
OID
0afffa…bffb:27
checkAccount details

Inspect func

active

func(who .uverse.address) bool
Open
OID
0afffa…bffb:28
active details

Inspect func

ActiveManager

func(who .uverse.address) bool
Open
OID
0afffa…bffb:29
ActiveManager details

Inspect func

ActiveManagerCount

func() int
Open
OID
0afffa…bffb:30
ActiveManagerCount details

Inspect func

AppointManager

func(who .uverse.address, lead bool, until int64)

AppointManager seats a manager until a time at most 90 days ahead, or replaces the term of one already seated. Expired seats are dropped first, so the tree never holds more than maxSeats entries.

Open
OID
0afffa…bffb:31
AppointManager details

Inspect func

RemoveManager

func(who .uverse.address)
Open
OID
0afffa…bffb:32
RemoveManager details

Inspect func

conflictKey

func(collection string, who .uverse.address) string
Open
OID
0afffa…bffb:33
conflictKey details

Inspect func

recorded

func(collection string, who .uverse.address) bool
Open
OID
0afffa…bffb:34
recorded details

Inspect func

HasConflict

func(collection string, who .uverse.address) bool

HasConflict reports a recorded conflict only: a filing, a recusal or an admin's mark. Conflicted is the full rule.

Open
OID
0afffa…bffb:35
HasConflict details

Inspect func

Conflicted

func(collection string, who .uverse.address) bool

Conflicted reports whether an account may not act as a manager on a collection: it created the collection, holds or is proposed for its creator role now, or has a recorded conflict. It aborts on an unknown collection.

Open
OID
0afffa…bffb:36
Conflicted details

Inspect func

conflicted

func(info v1.Info, who .uverse.address) bool
Open
OID
0afffa…bffb:37
conflicted details

Inspect func

manager

func(collection string) .uverse.address
Open
OID
0afffa…bffb:39
manager details

Inspect func

Resign

func()

Resign gives up the calling manager's own seat at once.

Open
OID
0afffa…bffb:40
Resign details

Inspect func

reopen

func(collection string, who .uverse.address)

reopen voids the decision of a manager found conflicted after making it: the application awaits review again, so a conflict cannot be dodged by deciding first and disclosing later.

Open
OID
0afffa…bffb:41
reopen details

Inspect func

Recuse

func(collection string)

Recuse records the calling manager's own conflict on a collection and voids its decision there, if it made the latest one. A recorded conflict is permanent: nobody, the admin included, can clear it, and recusing again records and emits nothing.

Open
OID
0afffa…bffb:42
Recuse details

Inspect func

MarkConflict

func(collection string, who .uverse.address)

MarkConflict records a conflict the admin knows of, on a manager or on an account that may become one, and voids that account's latest decision on the collection as Recuse does. Marking a recorded conflict again records and emits nothing.

Open
OID
0afffa…bffb:43
MarkConflict details

Inspect func

founder

func(collection string) .uverse.address
Open
OID
0afffa…bffb:44
founder details

Inspect func

applicationOf

func(collection string) *v1.Application
Open
OID
0afffa…bffb:45
applicationOf details

Inspect func

GetApplication

func(collection string) v1.Application

GetApplication returns a copy of a collection's application, the zero value (revision 0) when nobody applied, as ApplicationJSON answers null.

Open
OID
0afffa…bffb:46
GetApplication details

Inspect func

Apply

func(collection string, statementHash string, statementCID string)

Apply files the founder's application for a collection. The founder may file again at any time before a recommendation, to correct a pointer or after a manager asked for changes or declined. Each filing is a new revision awaiting review. Filing records the filer's conflict on the collection for good. A realm that holds the creator role never applies: the founder calls in person.

Open
OID
0afffa…bffb:47
Apply details

Inspect func

Review

func(collection string, revision int64, status string, reasonHash string, reasonCID string)

Review records one manager's decision on the revision it read, which must still be the latest. Any unconflicted manager may decide again, whatever the latest decision. A recommendation is advice to the admin and gives the collection nothing by itself.

Open
OID
0afffa…bffb:48
Review details

Inspect func

maxFeature

untyped bigint

// seconds

Value

(1209600 <untyped> bigint)

holdSpan

untyped bigint

Value

(86400 <untyped> bigint)

maxHold

untyped bigint

Value

(2592000 <untyped> bigint)

subjects

[4]string

What a founder may appeal: the decision on its application, a hold, the collection's verification, or a feature decision.

Open
OID
0afffa…bffb:51
subjects details

Inspect array

feature

type

A feature slot exists only when one manager proposed it and another approved it. The admin can clear a slot and can never create one.

Value

v1.feature

hold

type

A hold hides a collection from curated views until a time. It changes presentation only: nothing about the collection's tokens is frozen.

Value

v1.hold

verification

type

Value

v1.verification

appeal

type

Value

v1.appeal

features

v0.Tree

// collection -> \*feature

Open
OID
0afffa…bffb:53
features details

Inspect ref

holds

v0.Tree

// collection -> \*hold

Open
OID
0afffa…bffb:55
holds details

Inspect ref

verifications

v0.Tree

// collection -> verification

Open
OID
0afffa…bffb:57
verifications details

Inspect ref

appeals

v0.Tree

// "\<collection>/\<subject>" -> \*appeal, the latest

Open
OID
0afffa…bffb:59
appeals details

Inspect ref

lastAppeal

v0.ID

Value

<zero>

openAppeals

v0.Tree

// seqid key -> appeals key, in filing order

Open
OID
0afffa…bffb:62
openAppeals details

Inspect ref

featureOf

func(collection string) *v1.feature
Open
OID
0afffa…bffb:63
featureOf details

Inspect func

holdOf

func(collection string) *v1.hold
Open
OID
0afffa…bffb:65
holdOf details

Inspect func

appealOf

func(key string) *v1.appeal
Open
OID
0afffa…bffb:66
appealOf details

Inspect func

standing

func(collection string, who .uverse.address) bool

standing reports whether who could act on the collection as a manager now. An unapproved slot's empty approver holds no seat.

Open
OID
0afffa…bffb:67
standing details

Inspect func

pair

func(collection string, first .uverse.address, second .uverse.address)

pair enforces the two-manager rule when second completes what first began: two different managers, the first still seated and unconflicted. The second was checked as the caller.

Open
OID
0afffa…bffb:68
pair details

Inspect func

running

func(collection string, f *v1.feature) bool

running reports a slot that runs, approved by two managers that both keep their standing: whether hidden or not, it is the collection's slot.

Open
OID
0afffa…bffb:69
running details

Inspect func

ProposeFeature

func(collection string, reasonHash string, reasonCID string, until int64)

ProposeFeature opens a slot of at most 14 days. It features nothing until a second manager approves. It replaces a slot that is not running: one still unapproved, or one whose proposer or approver lost its standing.

Open
OID
0afffa…bffb:70
ProposeFeature details

Inspect func

ApproveFeature

func(collection string)
Open
OID
0afffa…bffb:71
ApproveFeature details

Inspect func

IsFeatured

func(collection string) bool

IsFeatured holds only while the slot runs, both of its managers keep their standing and the collection is not hidden.

Open
OID
0afffa…bffb:72
IsFeatured details

Inspect func

ClearFeature

func(collection string, reasonHash string, reasonCID string)
Open
OID
0afffa…bffb:73
ClearFeature details

Inspect func

HideTemporarily

func(collection string, reasonHash string, reasonCID string)

HideTemporarily hides a collection for 24 hours on one manager's word. The record outlives the hold: no manager can start another until the admin clears it.

Open
OID
0afffa…bffb:74
HideTemporarily details

Inspect func

ConfirmHide

func(collection string)

ConfirmHide lets a second manager keep a running hold for 24 hours from now, once. After that, or once the admin has set the term, only the admin changes it.

Open
OID
0afffa…bffb:75
ConfirmHide details

Inspect func

ExtendHide

func(collection string, until int64, reasonHash string, reasonCID string)

ExtendHide sets the term of a recorded hold, running or over, to a time at most 30 days ahead, and replaces its public reason.

Open
OID
0afffa…bffb:76
ExtendHide details

Inspect func

ClearHide

func(collection string, reasonHash string, reasonCID string)
Open
OID
0afffa…bffb:77
ClearHide details

Inspect func

IsHidden

func(collection string) bool

IsHidden holds while the hold runs and the manager whose word set its term keeps its standing: the starter, or the confirmer once it confirmed. A term the admin set rests on the admin alone.

Open
OID
0afffa…bffb:78
IsHidden details

Inspect func

SetVerified

func(collection string, value bool, reasonHash string, reasonCID string)

SetVerified is the admin's statement that a collection is what it claims to be. It says nothing about price or future value.

Open
OID
0afffa…bffb:79
SetVerified details

Inspect func

IsVerified

func(collection string) bool
Open
OID
0afffa…bffb:80
IsVerified details

Inspect func

Appeal

func(collection string, subject string, statementHash string, statementCID string)

Appeal files the founder's objection on one subject. A collection has at most one open appeal per subject; a resolved one can be followed by another.

Open
OID
0afffa…bffb:81
Appeal details

Inspect func

ResolveAppeal

func(collection string, subject string, upheld bool, reasonHash string, reasonCID string)

ResolveAppeal records the admin's answer and its public reason. It changes nothing else: the admin acts on an upheld appeal with the ordinary calls.

Open
OID
0afffa…bffb:82
ResolveAppeal details

Inspect func

jsonInt

func(n int64) string

int64 values are decimal strings so a JSON client cannot round them.

Open
OID
0afffa…bffb:83
jsonInt details

Inspect func

ManagersJSON

func() string

ManagersJSON lists the active seats, ordered by account.

Open
OID
0afffa…bffb:86
ManagersJSON details

Inspect func

ApplicationJSON

func(collection string) string

ApplicationJSON returns null for a collection nobody applied for.

Open
OID
0afffa…bffb:87
ApplicationJSON details

Inspect func

pageJSON

func(tree *v0.Tree, page int64, size int64, item func(...)) string

pageJSON renders a zero-based page of a tree in key order; the page size is 1..50.

Open
OID
0afffa…bffb:88
pageJSON details

Inspect func

ApplicationsJSON

func(page int64, size int64) string

ApplicationsJSON pages through the applications in order of first filing.

Open
OID
0afffa…bffb:89
ApplicationsJSON details

Inspect func

AccessJSON

func(collection string, who string) string

AccessJSON tells a private inbox what an account is to a collection right now: whether it holds the creator role ("founder"), an active manager, and whether Conflicted bars it from acting as one. It is public data to be read on every request, not a token. The answer also says where and when it was evaluated: the chain ID, the block height and the block time. The answer is not signed: checking them exposes an honest node on the wrong chain or behind it, and proves nothing against a node that lies. Its eight fields are a contract with that reader.

Open
OID
0afffa…bffb:90
AccessJSON details

Inspect func

featureJSON

func(collection string) string
Open
OID
0afffa…bffb:91
featureJSON details

Inspect func

holdJSON

func(collection string) string
Open
OID
0afffa…bffb:92
holdJSON details

Inspect func

verificationJSON

func(collection string) string
Open
OID
0afffa…bffb:93
verificationJSON details

Inspect func

appealJSON

func(key string) string
Open
OID
0afffa…bffb:94
appealJSON details

Inspect func

CollectionJSON

func(collection string) string

CollectionJSON is a collection's editorial record: what a client may show now, then the records behind it and the latest appeal on each subject. A part with no record is null.

Open
OID
0afffa…bffb:95
CollectionJSON details

Inspect func

AppealsJSON

func(page int64, size int64) string

AppealsJSON pages through the open appeals in filing order.

Open
OID
0afffa…bffb:96
AppealsJSON details

Inspect func

FeaturesJSON

func(page int64, size int64) string

FeaturesJSON pages through every collection that has a feature slot on record, in ID text order, saying whether it is featured right now.

Open
OID
0afffa…bffb:97
FeaturesJSON details

Inspect func
maxSeats : untyped bigint =(5 <untyped> bigint)
maxTerm : untyped bigint =(7776000 <untyped> bigint)
StatusSubmitted : untyped string ="submitted"
StatusChangesRequested : untyped string ="changes_requested"
StatusRecommended : untyped string ="recommended"
StatusDeclined : untyped string ="declined"
seat : type =v1.seat
Application : type =v1.Application
admin : .uverse.address =<gnolang.StringValue>
pendingAdmin : .uverse.address =<zero>
seats : v0.Tree Inspect
conflicts : v0.Tree Inspect
applications : v0.Tree Inspect
lastFiling : v0.ID =<zero>
filings : v0.Tree Inspect
init.15 : func() Inspect
now : func() int64 Inspect
caller : func() .uverse.address Inspect
direct : func() .uverse.address Inspect
requireAdmin : func() Inspect
zeroHash : string ="0000000000000000000000000000000000000000000000000000000000000000"
commitment : func(hash string, cid string) Inspect
ProposeAdmin : func(next .uverse.address) Inspect
CancelAdminProposal : func() Inspect
AcceptAdmin : func() Inspect
GetAdmin : func() .uverse.address Inspect
GetPendingAdmin : func() .uverse.address Inspect
checkAccount : func(who .uverse.address) Inspect
active : func(who .uverse.address) bool Inspect
ActiveManager : func(who .uverse.address) bool Inspect
ActiveManagerCount : func() int Inspect
AppointManager : func(who .uverse.address, lead bool, until int64) Inspect
RemoveManager : func(who .uverse.address) Inspect
conflictKey : func(collection string, who .uverse.address) string Inspect
recorded : func(collection string, who .uverse.address) bool Inspect
HasConflict : func(collection string, who .uverse.address) bool Inspect
Conflicted : func(collection string, who .uverse.address) bool Inspect
conflicted : func(info v1.Info, who .uverse.address) bool Inspect
seated : func() .uverse.address Inspect
manager : func(collection string) .uverse.address Inspect
Resign : func() Inspect
reopen : func(collection string, who .uverse.address) Inspect
Recuse : func(collection string) Inspect
MarkConflict : func(collection string, who .uverse.address) Inspect
founder : func(collection string) .uverse.address Inspect
applicationOf : func(collection string) *v1.Application Inspect
GetApplication : func(collection string) v1.Application Inspect
Apply : func(collection string, statementHash string, statementCID string) Inspect
Review : func(collection string, revision int64, status string, reasonHash string, reasonCID string) Inspect
Render : func(string) string Inspect
maxFeature : untyped bigint =(1209600 <untyped> bigint)
holdSpan : untyped bigint =(86400 <untyped> bigint)
maxHold : untyped bigint =(2592000 <untyped> bigint)
subjects : [4]string Inspect
feature : type =v1.feature
hold : type =v1.hold
verification : type =v1.verification
appeal : type =v1.appeal
features : v0.Tree Inspect
holds : v0.Tree Inspect
verifications : v0.Tree Inspect
appeals : v0.Tree Inspect
lastAppeal : v0.ID =<zero>
openAppeals : v0.Tree Inspect
featureOf : func(collection string) *v1.feature Inspect
holdOf : func(collection string) *v1.hold Inspect
appealOf : func(key string) *v1.appeal Inspect
standing : func(collection string, who .uverse.address) bool Inspect
pair : func(collection string, first .uverse.address, second .uverse.address) Inspect
running : func(collection string, f *v1.feature) bool Inspect
ProposeFeature : func(collection string, reasonHash string, reasonCID string, until int64) Inspect
ApproveFeature : func(collection string) Inspect
IsFeatured : func(collection string) bool Inspect
ClearFeature : func(collection string, reasonHash string, reasonCID string) Inspect
HideTemporarily : func(collection string, reasonHash string, reasonCID string) Inspect
ConfirmHide : func(collection string) Inspect
ExtendHide : func(collection string, until int64, reasonHash string, reasonCID string) Inspect
ClearHide : func(collection string, reasonHash string, reasonCID string) Inspect
IsHidden : func(collection string) bool Inspect
SetVerified : func(collection string, value bool, reasonHash string, reasonCID string) Inspect
IsVerified : func(collection string) bool Inspect
Appeal : func(collection string, subject string, statementHash string, statementCID string) Inspect
ResolveAppeal : func(collection string, subject string, upheld bool, reasonHash string, reasonCID string) Inspect
jsonInt : func(n int64) string Inspect
StateJSON : func() string Inspect
ManagersJSON : func() string Inspect
ApplicationJSON : func(collection string) string Inspect
pageJSON : func(tree *v0.Tree, page int64, size int64, item func(...)) string Inspect
ApplicationsJSON : func(page int64, size int64) string Inspect
AccessJSON : func(collection string, who string) string Inspect
featureJSON : func(collection string) string Inspect
holdJSON : func(collection string) string Inspect
verificationJSON : func(collection string) string Inspect
appealJSON : func(key string) string Inspect
CollectionJSON : func(collection string) string Inspect
AppealsJSON : func(page int64, size int64) string Inspect
FeaturesJSON : func(page int64, size int64) string Inspect