Module proposals

Source
Expand description

Contains the operations of proposals.

Structs§

ApproveProposal
A transaction to approve a Proposal.
BorrowAction
Action used to borrow in transaction OnChainIdentity’s assets.
BorrowActionWithIntent
A BorrowAction coupled with a user-provided function to describe how the borrowed assets shall be used.
ConfigChange
Proposal action that modifies an OnChainIdentity’s configuration - e.g:
ControllerExecution
Borrow an OnChainIdentity’s controller capability to exert control on a sub-owned identity.
ControllerExecutionWithIntent
A ControllerExecution action coupled with a user-provided function to describe how the borrowed identity’s controller capability will be used.
CreateProposal
A transaction to create a Proposal.
ExecuteProposal
A transaction to execute a Proposal.
ProposalBuilder
A builder for creating a Proposal.
SendAction
An action used to transfer [crate::migration::OnChainIdentity]-owned assets to other addresses.
UpdateDidDocument
Proposal’s action for updating a DID Document.
Upgrade
Action for upgrading the version of an on-chain identity to the package’s version.
UserDrivenTx
A transaction that requires user input in order to be executed.

Enums§

ProposalResult
The result of creating a Proposal. When a Proposal is executed in the same transaction as its creation, a ProposalResult::Executed is returned. ProposalResult::Pending otherwise.

Traits§

BorrowIntentFnT
Instances of BorrowIntentFnT can be used as user-provided function to describe how a borrowed assets shall be used.
ControllerIntentFnT
Instances of ControllerIntentFnT can be used as user-provided function to describe how a borrowed identity’s controller capability will be used.
ProposalT
Interface that allows the creation and execution of an OnChainIdentity’s Proposals.

Type Aliases§

BorrowIntentFn
Boxed dynamic trait object of {@link BorrowIntentFnT}
ControllerIntentFn
Boxed dynamic trait object of {@link ControllerIntentFnT}