df-hyperliquid-core 0.0.9-beta

Hyperliquid SDK for Rust: markets, account, trading, transfers, earn and deploy, with exact decimals and signing. Native and wasm.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! HYPE staking: moves between spot and staking, delegation, validators and rewards.

pub mod account;
pub mod actions;
pub mod plan;
pub mod reads;

pub use account::{PendingWithdrawal, REWARDS_WINDOW_MS, Staking, pending_withdrawals, rewards_since, staking};
pub use actions::{CDeposit, CWithdraw, TokenDelegate, hype_wei};
pub use plan::{Balance, Change, Ctx, Effect, Plan, Refused};
pub use reads::{
    Delegation, DelegatorSummary, MAINNET_DELEGATION_LOCK_MS, MAINNET_UNSTAKING_MS, MAX_PENDING_WITHDRAWALS, Reward,
    StakeDelta, StakeEvent, TESTNET_DELEGATION_LOCK_MS, TESTNET_UNSTAKING_MS, ValidatorStats, ValidatorSummary,
    delegation_lock_ms, delegations, delegations_request, delegator_history, delegator_history_request,
    delegator_rewards, delegator_rewards_request, delegator_summary, delegator_summary_request, locked_until,
    unstaking_ms, validator_summaries, validator_summaries_request,
};