pub struct DefaultTransactionVerifier;Expand description
The SDK’s built-in verifier: verify_order_transaction,
verify_twap_transaction, and verify_execution_transaction behind
the OrderVerifier, TwapVerifier, and ExecutionVerifier traits.
Pass &DefaultTransactionVerifier to the one-call execute_* helpers
unless the application enforces a stricter policy of its own.
Trait Implementations§
Source§impl Clone for DefaultTransactionVerifier
impl Clone for DefaultTransactionVerifier
Source§fn clone(&self) -> DefaultTransactionVerifier
fn clone(&self) -> DefaultTransactionVerifier
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DefaultTransactionVerifier
Source§impl Debug for DefaultTransactionVerifier
impl Debug for DefaultTransactionVerifier
Source§impl Default for DefaultTransactionVerifier
impl Default for DefaultTransactionVerifier
Source§fn default() -> DefaultTransactionVerifier
fn default() -> DefaultTransactionVerifier
Returns the “default value” for a type. Read more
impl Eq for DefaultTransactionVerifier
Source§impl ExecutionVerifier for DefaultTransactionVerifier
impl ExecutionVerifier for DefaultTransactionVerifier
Source§fn verify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
context: &'life1 ExecutionVerificationContext<'life2>,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn verify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
context: &'life1 ExecutionVerificationContext<'life2>,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Reject unless the prepared transaction is acceptable for this exact
Vault session and public economic intent.
Source§impl OrderVerifier for DefaultTransactionVerifier
impl OrderVerifier for DefaultTransactionVerifier
Source§fn verify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
context: &'life1 OrderVerificationContext<'life2>,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn verify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
context: &'life1 OrderVerificationContext<'life2>,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Reject unless the prepared transaction implements the exact signed
order operation for this Vault session.
impl StructuralPartialEq for DefaultTransactionVerifier
Source§impl TwapVerifier for DefaultTransactionVerifier
impl TwapVerifier for DefaultTransactionVerifier
Source§fn verify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
context: &'life1 TwapVerificationContext<'life2>,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn verify<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
context: &'life1 TwapVerificationContext<'life2>,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Reject unless the prepared transaction implements the exact bounded
TWAP action authorized by the external owner.
Auto Trait Implementations§
impl Freeze for DefaultTransactionVerifier
impl RefUnwindSafe for DefaultTransactionVerifier
impl Send for DefaultTransactionVerifier
impl Sync for DefaultTransactionVerifier
impl Unpin for DefaultTransactionVerifier
impl UnsafeUnpin for DefaultTransactionVerifier
impl UnwindSafe for DefaultTransactionVerifier
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more