Crate balancer_sdk
source · [−]Expand description
#![doc = include_str!(“../README.md”)]
Re-exports
pub use helpers::*;
Modules
Defines the pool structs and their methods.
Defines the vault struct and its methods.
Macros
Simple conversion from a string slice to an Address
Simple conversion from a string slice to an I256
Simple conversion from a string slice to an U256
Structs
Generated by ethcontract
https://dev.balancer.fi/resources/joins-and-exits/pool-exits#api
The FundManagement struct defines where the input tokens for the first swap are coming from and where any tokens received from swaps should be sent. See Balancer documentation
Little-endian 256-bit signed integer.
PoolBalanceOp describes the type of operation (deposit/withdraw/update), the pool ID, the token, and the amount.
A secret key used for signing and hashing.
The SingleSwap struct defines which pool we’re trading with and what kind of swap we want to perform.
Little-endian large integer type 256-bit unsigned integer.
Enums
The account type used for signing the transaction.
Withdraw, Deposit, Update,
General, MinimalSwapInfo, TwoToken,
GivenIn, GivenOut
Traits
Parse a value from a string