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
40
41
42
43
44
45
46
47
48
49
//! Altius Transaction SDK
//!
//! This crate provides utilities for signing and encoding Altius USD multi-token transactions.
//! It can be used by:
//! - `explorer-api` for faucet functionality
//! - Any client that needs to send transactions to Altius
//!
//! # Security Note
//!
//! This SDK does NOT contain any private keys or addresses. All chain-specific
//! configuration (fee token address, faucet keys, etc.) must be provided by
//! the application layer through environment variables or configuration files.
//!
//! # Example
//!
//! ```rust,ignore
//! use altius_tx_sdk::{TxBuilder, Signer, BASE_FEE_ATTO, Address};
//!
//! // Create a signer
//! let signer = Signer::from_private_key("0x...")?;
//!
//! // Build an ERC20 transfer transaction
//! let tx = TxBuilder::new()
//! .chain_id(1337)
//! .nonce(0)
//! .erc20_transfer(token, recipient, amount)
//! .fee_token(fee_token)
//! .max_fee_per_gas_usd(BASE_FEE_ATTO * 2)
//! .build();
//!
//! // Sign and encode
//! let raw_tx = signer.sign_and_encode(tx).await?;
//! ```
pub use ;
pub use ;
pub use ;
pub use ;
// Re-export useful types
pub use ;