Expand description
Contains the operations of proposals.
Structs§
- Access
SubIdentity - An action for accessing an OnChainIdentity that is owned by another OnChainIdentity.
- Access
SubIdentity Builder - A builder structure that eases the creation of an AccessSubIdentityTx.
- Access
SubIdentity Builder Error - Error type returned by AccessSubIdentityBuilder::finish.
- Access
SubIdentity Error - Error type returned by executing an AccessSubIdentityTx.
- Access
SubIdentity Tx - [Transaction] that allows a controller of
identityto accesssub_identityby borrowing one ofidentity’s token over it. - Approve
Proposal - A transaction to approve a
Proposal. - Borrow
Action - Action used to borrow in transaction OnChainIdentity’s assets.
- Borrow
Action With Intent - A
BorrowActioncoupled with a user-provided function to describe how the borrowed assets shall be used. - Config
Change Proposalaction 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
ControllerExecutionaction 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. - EmptyTx
- A type implenting [Transansaction] that doesn’t return anything meaningful.
- 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. - Unrelated
Identities - Error type that is returned when attempting to access an Identity
sub_identitythat is not controlled byidentity. - 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§
- Access
SubIdentity Builder Error Kind - Kind of failure that might happen when consuming an AccessSubIdentityBuilder.
- Proposed
TxResult - The result of attempting to perform an action on an Identity. This action can either be executed right away - when the executing controller has enough voting power to do so - or it can be pending, waiting for other controllers’ approvals.
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’sProposals. - SubAccess
FnT - Trait describing the function used to define what operation to perform on a sub-identity.
Type Aliases§
- Borrow
Intent Fn - Boxed dynamic trait object of {@link BorrowIntentFnT}
- Controller
Intent Fn - Boxed dynamic trait object of {@link ControllerIntentFnT}
- Proposal
Result - The result of creating a
Proposal. When aProposalis executed in the same transaction as its creation, aProposalResult::Executedis returned.ProposalResult::Pendingotherwise.