Expand description
Approval state for simple multisig
Fields§
§approved_by: Vec<AccountId>
List of accounts that have approved an action thus far
created_at_nanoseconds: u64
Network timestamp when the request was created
Implementations§
source§impl ApprovalState
impl ApprovalState
Trait Implementations§
source§impl<Au, Ac> ApprovalConfiguration<Ac, ApprovalState> for Configuration<Au>where
Au: AccountAuthorizer,
impl<Au, Ac> ApprovalConfiguration<Ac, ApprovalState> for Configuration<Au>where
Au: AccountAuthorizer,
§type ApprovalError = ApprovalError
type ApprovalError = ApprovalError
Errors when approving a request
§type RemovalError = RemovalError
type RemovalError = RemovalError
Errors when removing a request
§type AuthorizationError = <Au as AccountAuthorizer>::AuthorizationError
type AuthorizationError = <Au as AccountAuthorizer>::AuthorizationError
Errors when authorizing an account
§type ExecutionEligibilityError = ExecutionEligibilityError
type ExecutionEligibilityError = ExecutionEligibilityError
Errors when evaluating a request for execution candidacy
source§fn is_approved_for_execution(
&self,
action_request: &ActionRequest<Ac, ApprovalState>
) -> Result<(), ExecutionEligibilityError>
fn is_approved_for_execution(
&self,
action_request: &ActionRequest<Ac, ApprovalState>
) -> Result<(), ExecutionEligibilityError>
Has the request reached full approval?
source§fn is_removable(
&self,
action_request: &ActionRequest<Ac, ApprovalState>
) -> Result<(), Self::RemovalError>
fn is_removable(
&self,
action_request: &ActionRequest<Ac, ApprovalState>
) -> Result<(), Self::RemovalError>
Can this request be removed by an allowed account?
Is the account allowed to execute, approve, or remove this request?
Modify action_request.approval_state in-place to increase approval
source§impl BorshDeserialize for ApprovalStatewhere
Vec<AccountId>: BorshDeserialize,
u64: BorshDeserialize,
impl BorshDeserialize for ApprovalStatewhere
Vec<AccountId>: BorshDeserialize,
u64: BorshDeserialize,
source§impl BorshSerialize for ApprovalStatewhere
Vec<AccountId>: BorshSerialize,
u64: BorshSerialize,
impl BorshSerialize for ApprovalStatewhere
Vec<AccountId>: BorshSerialize,
u64: BorshSerialize,
source§impl Debug for ApprovalState
impl Debug for ApprovalState
source§impl Default for ApprovalState
impl Default for ApprovalState
source§impl<'de> Deserialize<'de> for ApprovalState
impl<'de> Deserialize<'de> for ApprovalState
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more