pub struct TwapVerificationContext<'a> {
pub challenge: Option<&'a PlatformTwapChallengeResponse>,
pub operation: &'a PlatformTwapChallengeRequest,
pub market_id: &'a str,
pub prepared: &'a PlatformTwapPrepareResponse,
pub owner_wallet: &'a str,
pub session_public_key: &'a str,
}Expand description
Everything a verifier needs to decide whether the session may sign one prepared TWAP-control transaction.
Fields§
§challenge: Option<&'a PlatformTwapChallengeResponse>Present only on the two-step (challenge) path.
operation: &'a PlatformTwapChallengeRequestThe requested action, exactly as sent.
market_id: &'a str§prepared: &'a PlatformTwapPrepareResponse§owner_wallet: &'a str§session_public_key: &'a strTrait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TwapVerificationContext<'a>
impl<'a> RefUnwindSafe for TwapVerificationContext<'a>
impl<'a> Send for TwapVerificationContext<'a>
impl<'a> Sync for TwapVerificationContext<'a>
impl<'a> Unpin for TwapVerificationContext<'a>
impl<'a> UnsafeUnpin for TwapVerificationContext<'a>
impl<'a> UnwindSafe for TwapVerificationContext<'a>
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