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

v0 state

Back to all declarations

stateKind

type

State of a single proposal.

Value

v0.stateKind

statePending

v0.stateKind

Value

<zero>

stateExecuted

v0.stateKind

Value

<zero>

proposal

type

proposal is a single approval request.

Value

v0.proposal

owners

*v0.Tree

// owner address string -> struct{}{}

Open
OID
008cde…8cd4:41
owners details

Inspect pointer

ownerCount

int

Package-level persistent state.

Value

0

threshold

int

Package-level persistent state.

Value

0

initialized

bool

Package-level persistent state.

Value

false

proposals

*v0.Tree

// decimal id string -> \*proposal

Open
OID
008cde…8cd4:43
proposals details

Inspect pointer

nextID

int

Package-level persistent state.

Value

0

isOwner

func(a .uverse.address) bool
Open
OID
008cde…8cd4:36
isOwner details

Inspect func

Setup

func(ownersCSV string, thresholdN int)

Setup configures the multisig exactly once. owners is a comma-separated list of bech32 addresses; threshold is the number of approvals required to execute a proposal. It panics (cross-realm abort) on invalid input or if already set.

Open
OID
008cde…8cd4:37
Setup details

Inspect func

Propose

func(description string) int

Propose creates a new proposal authored by an owner and returns its id.

Open
OID
008cde…8cd4:38
Propose details

Inspect func

Approve

func(id int)

Approve records an owner's approval for a proposal. When the count of distinct approvals reaches the threshold, the proposal becomes Executed.

Open
OID
008cde…8cd4:39
Approve details

Inspect func

Render

func(path string) string

Render returns a Markdown view of the multisig configuration and proposals.

Open
OID
008cde…8cd4:40
Render details

Inspect func
stateKind : type =v0.stateKind
statePending : v0.stateKind =<zero>
stateExecuted : v0.stateKind =<zero>
proposal : type =v0.proposal
owners : *v0.Tree Inspect
ownerCount : int =0
threshold : int =0
initialized : bool =false
proposals : *v0.Tree Inspect
nextID : int =0
errAlreadyInit : *errors.errorString Inspect
errNotInit : *errors.errorString Inspect
errBadThreshold : *errors.errorString Inspect
errNoOwners : *errors.errorString Inspect
errNotOwner : *errors.errorString Inspect
errNoProposal : *errors.errorString Inspect
errDupApproval : *errors.errorString Inspect
errExecuted : *errors.errorString Inspect
init.18 : func() Inspect
caller : func() .uverse.address Inspect
isOwner : func(a .uverse.address) bool Inspect
Setup : func(ownersCSV string, thresholdN int) Inspect
Propose : func(description string) int Inspect
Approve : func(id int) Inspect
Render : func(path string) string Inspect