stateKind
typeState of a single proposal.
Value
v0.stateKind
statePending
v0.stateKindValue
<zero>
stateExecuted
v0.stateKindValue
<zero>
proposal
typeproposal is a single approval request.
Value
v0.proposal
owners
*v0.Tree// owner address string -> struct{}{}
- OID
- 008cde…8cd4:41
owners details
ownerCount
intPackage-level persistent state.
Value
0
threshold
intPackage-level persistent state.
Value
0
initialized
boolPackage-level persistent state.
Value
false
proposals
*v0.Tree// decimal id string -> \*proposal
- OID
- 008cde…8cd4:43
proposals details
nextID
intPackage-level persistent state.
Value
0
errAlreadyInit
*errors.errorString- OID
- 008cde…8cd4:10
errAlreadyInit details
errNotInit
*errors.errorString- OID
- 008cde…8cd4:13
errNotInit details
errBadThreshold
*errors.errorString- OID
- 008cde…8cd4:16
errBadThreshold details
errNoOwners
*errors.errorString- OID
- 008cde…8cd4:19
errNoOwners details
errNotOwner
*errors.errorString- OID
- 008cde…8cd4:22
errNotOwner details
errNoProposal
*errors.errorString- OID
- 008cde…8cd4:25
errNoProposal details
errDupApproval
*errors.errorString- OID
- 008cde…8cd4:28
errDupApproval details
errExecuted
*errors.errorString- OID
- 008cde…8cd4:31
errExecuted details
init.18
func()- OID
- 008cde…8cd4:33
init.18 details
caller
func() .uverse.address- OID
- 008cde…8cd4:35
caller details
isOwner
func(a .uverse.address) bool- OID
- 008cde…8cd4:36
isOwner details
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.
- OID
- 008cde…8cd4:37
Setup details
Propose
func(description string) intPropose creates a new proposal authored by an owner and returns its id.
- OID
- 008cde…8cd4:38
Propose details
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.
- OID
- 008cde…8cd4:39
Approve details
Render
func(path string) stringRender returns a Markdown view of the multisig configuration and proposals.
- OID
- 008cde…8cd4:40