zera-sdk 0.1.0

Rust SDK for ZERA transactions, validator APIs, and bridge workflows
Documentation
pub mod bridge;
pub mod dex;
pub mod staking;

#[cfg(feature = "bridge-guardian")]
pub use bridge::guardian;
#[cfg(feature = "bridge-solana")]
pub use bridge::solana;
pub use bridge::zera;
pub use dex::{
    add_liquidity, add_liquidity_and_send, add_liquidity_with_client, compute_lock_timestamp,
    create_liquidity_pool, create_liquidity_pool_and_send, create_liquidity_pool_with_client,
    remove_liquidity, remove_liquidity_and_send, remove_liquidity_with_client, resolve_amount,
    resolve_amount_with_client, swap, swap_and_send, swap_with_client, unlock_liquidity,
    unlock_liquidity_and_send, unlock_liquidity_with_client, AddLiquidityOptions,
    CreateLiquidityPoolOptions, DexOptions, RemoveLiquidityOptions, SwapOptions,
    UnlockLiquidityOptions, DEFAULT_LOCK_DURATION, DEX_CONTRACT_NAME, DEX_INSTANCE,
};
pub use staking::{
    instant_stake, instant_stake_and_send, instant_stake_with_client, release_instant,
    release_instant_and_send, release_instant_with_client, release_liquid_stake,
    release_liquid_stake_and_send, release_liquid_stake_with_client, stake, stake_and_send,
    stake_with_client, update_instant_wallet, update_instant_wallet_and_send,
    update_instant_wallet_with_client, update_wallet, update_wallet_and_send,
    update_wallet_with_client, InstantStakeOptions, StakeOptions, StakingOptions,
    StakingTransactionResult, UpdateInstantWalletOptions, UpdateWalletOptions,
    DEFAULT_STAKING_FEE_ID, STAKING_CONTRACT_NAME, STAKING_INSTANCE,
};