Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

ISRC9_V2DispatcherTrait

Fully qualified path: openzeppelin_interfaces::account::src9::ISRC9_V2DispatcherTrait

Part of the group: dispatchers

pub trait ISRC9_V2DispatcherTrait<T>

Trait functions

execute_from_outside_v2

Allows anyone to submit a transaction on behalf of the account as long as they have the relevant signatures.

This method allows reentrancy. A call to __execute__ or execute_from_outside_v2 can trigger another nested transaction to execute_from_outside_v2 thus the implementation MUST verify that the provided signature matches the hash of outside_execution and that nonce was not already used.

The implementation should expect version to be set to 2 in the domain separator.

Arguments:

  • outside_execution - The parameters of the transaction to execute.
  • signature - A valid signature on the SNIP-12 message encoding of outside_execution.

Fully qualified path: openzeppelin_interfaces::account::src9::ISRC9_V2DispatcherTrait::execute_from_outside_v2

fn execute_from_outside_v2(
    self: T, outside_execution: OutsideExecution, signature: Span<felt252>,
) -> Array<Span<felt252>>

is_valid_outside_execution_nonce

Get the status of a given nonce. true if the nonce is available to use.

Fully qualified path: openzeppelin_interfaces::account::src9::ISRC9_V2DispatcherTrait::is_valid_outside_execution_nonce

fn is_valid_outside_execution_nonce(self: T, nonce: felt252) -> bool