df-papertrade-core 0.0.11-beta

Papertrade SDK for Rust on df-hyperliquid-core: intents, relayer, live account, session keys, signed writes, deposits and exact venue math. Wasm-ready.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Cancelling a queued intent before the relayer sends it.

use df_hyperliquid_core::utils::Address;

/// Cancels a queued intent before the relayer sends it. Signed by the session key under
/// [`CANCEL_DOMAIN`](crate::client::deployment::CANCEL_DOMAIN), with no nonce and a `uint256`
/// deadline.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct CancelIntent {
    pub user: Address,
    pub intent_id: [u8; 32],
    pub deadline: u64,
}