1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! CoreWriter, the write path from HyperEVM to HyperCore: a system contract
//! at `0x3333...3333` (`CoreWriter.sol` in the docs):
//!
//! ```text
//! event RawAction(address indexed user, bytes data);
//! function sendRawAction(bytes calldata data) external;
//! ```
//!
//! `data` is the encoding version (one byte, 1), the action id (a big-endian
//! `uint24`), then the action's fields ABI-encoded with no selector.
//!
//! - The action acts for `msg.sender`: an agent key sending it acts for the
//! agent's own account, never for the account it trades for.
//! - The transaction's value must be 0: value voids the action silently, with
//! no log.
//! - Orders and vault transfers are delayed on chain by a few seconds.
//!
//! Units: `limitPx` and `sz` are 1e8 whatever the market; `usd` and `ntl`
//! are perp USDC at 1e6; staking and delegation `wei` are HYPE at 1e8; any
//! other `wei` is in the token's `weiDecimals`; `maxFeeRate` is in tenths of a
//! basis point (10 is 0.01%).
pub use Action;
pub use BadAction;
pub use ;
pub use ;
pub use ;