Expand description
§Hylo Clients
Offchain clients for Hylo protocol transactions and quotes.
§Quick Start
use hylo_clients::prelude::*;
use hylo_idl::tokens::{HYUSD, JITOSOL};
let client = RouterClient::new_random_keypair(
Cluster::Mainnet,
CommitmentConfig::confirmed(),
)?;
// Mint JITOSOL -> hyUSD via router
let user = Pubkey::new_unique();
let signature = client.run_transaction::<JITOSOL, HYUSD>(
RouterArgs { amount: 1_000_000_000, user, slippage_config: None },
).await?;§Clients
router_client::RouterClient— All user-facing token operations (mint, redeem, swap, earn pool) via the router programexchange_client::ExchangeClient— Admin operations for the exchange programearn_pool_client::EarnPoolClient— Admin operations for the earn pool program
Modules§
- earn_
pool_ client - exchange_
client - memo
- Memo formatting for Squads vault transactions. The memo is the instruction name followed by a hash of its canonical encoding, letting reviewers verify a proposal matches expected args by independently rebuilding the instruction and comparing hashes.
- prelude
- program_
client - router_
client - squads
- Squads v4 integration for wrapping protocol instructions in a multisig vault transaction.
- transaction
- Transaction building traits.
- util