CatapultServer  v0.5.0.1 (Elephant)
catapult::state::MultisigCosignatoriesMixin Class Reference

Mixin for storing information about cosignatories of an account. More...

Inheritance diagram for catapult::state::MultisigCosignatoriesMixin:

Public Member Functions

 MultisigCosignatoriesMixin ()
 Creates multisig cosignatories mixin. More...
 
const utils::SortedKeySetcosignatories () const
 Gets cosignatory account keys. More...
 
utils::SortedKeySetcosignatories ()
 Gets cosignatory account keys. More...
 
bool hasCosignatory (const Key &key) const
 Returns true if key is a cosignatory. More...
 
uint8_t minApproval () const
 Gets the number of cosignatories required when approving (any) transaction. More...
 
void setMinApproval (uint8_t minApproval)
 Sets the number of cosignatories required (minApproval) when approving (any) transaction. More...
 
uint8_t minRemoval () const
 Gets the number of cosignatories required when removing an account. More...
 
void setMinRemoval (uint8_t minRemoval)
 Sets the number of cosignatories required (minRemoval) when removing an account. More...
 

Private Attributes

utils::SortedKeySet m_cosignatories
 
uint8_t m_minApproval
 
uint8_t m_minRemoval
 

Detailed Description

Mixin for storing information about cosignatories of an account.

Constructor & Destructor Documentation

◆ MultisigCosignatoriesMixin()

catapult::state::MultisigCosignatoriesMixin::MultisigCosignatoriesMixin ( )
inline

Creates multisig cosignatories mixin.

Member Function Documentation

◆ cosignatories() [1/2]

utils::SortedKeySet& catapult::state::MultisigCosignatoriesMixin::cosignatories ( )
inline

Gets cosignatory account keys.

◆ cosignatories() [2/2]

const utils::SortedKeySet& catapult::state::MultisigCosignatoriesMixin::cosignatories ( ) const
inline

Gets cosignatory account keys.

Here is the caller graph for this function:

◆ hasCosignatory()

bool catapult::state::MultisigCosignatoriesMixin::hasCosignatory ( const Key key) const
inline

Returns true if key is a cosignatory.

◆ minApproval()

uint8_t catapult::state::MultisigCosignatoriesMixin::minApproval ( ) const
inline

Gets the number of cosignatories required when approving (any) transaction.

Here is the caller graph for this function:

◆ minRemoval()

uint8_t catapult::state::MultisigCosignatoriesMixin::minRemoval ( ) const
inline

Gets the number of cosignatories required when removing an account.

Here is the caller graph for this function:

◆ setMinApproval()

void catapult::state::MultisigCosignatoriesMixin::setMinApproval ( uint8_t  minApproval)
inline

Sets the number of cosignatories required (minApproval) when approving (any) transaction.

Here is the call graph for this function:

◆ setMinRemoval()

void catapult::state::MultisigCosignatoriesMixin::setMinRemoval ( uint8_t  minRemoval)
inline

Sets the number of cosignatories required (minRemoval) when removing an account.

Here is the call graph for this function:

Member Data Documentation

◆ m_cosignatories

utils::SortedKeySet catapult::state::MultisigCosignatoriesMixin::m_cosignatories
private

◆ m_minApproval

uint8_t catapult::state::MultisigCosignatoriesMixin::m_minApproval
private

◆ m_minRemoval

uint8_t catapult::state::MultisigCosignatoriesMixin::m_minRemoval
private

The documentation for this class was generated from the following file: