Expand description
Contains the operations of proposals.
Structs§
- Approve
Proposal - A transaction to approve a
Proposal
. - Borrow
Action - Action used to borrow in transaction OnChainIdentity’s assets.
- Borrow
Action With Intent - A
BorrowAction
coupled with a user-provided function to describe how the borrowed assets shall be used. - Config
Change Proposal
action that modifies anOnChainIdentity
’s configuration - e.g:- Controller
Execution - Borrow an
OnChainIdentity
’s controller capability to exert control on a sub-owned identity. - Controller
Execution With Intent - A
ControllerExecution
action coupled with a user-provided function to describe how the borrowed identity’s controller capability will be used. - Create
Proposal - A transaction to create a
Proposal
. - Execute
Proposal - A transaction to execute a
Proposal
. - Proposal
Builder - A builder for creating a
Proposal
. - Send
Action - An action used to transfer [
crate::migration::OnChainIdentity
]-owned assets to other addresses. - Update
DidDocument - Proposal’s action for updating a DID Document.
- Upgrade
- Action for upgrading the version of an on-chain identity to the package’s version.
- User
Driven Tx - A transaction that requires user input in order to be executed.
Enums§
- Proposal
Result - The result of creating a
Proposal
. When aProposal
is executed in the same transaction as its creation, aProposalResult::Executed
is returned.ProposalResult::Pending
otherwise.
Traits§
- Borrow
Intent FnT - Instances of BorrowIntentFnT can be used as user-provided function to describe how a borrowed assets shall be used.
- Controller
Intent FnT - 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
’sProposal
s.
Type Aliases§
- Borrow
Intent Fn - Boxed dynamic trait object of {@link BorrowIntentFnT}
- Controller
Intent Fn - Boxed dynamic trait object of {@link ControllerIntentFnT}