IAbbotDispatcherTrait
Fully qualified path: opus::interfaces::abbot::IAbbotDispatcherTrait
Part of the group: dispatchers
pub trait IAbbotDispatcherTrait<T>
Trait functions
get_trove_owner
Fully qualified path: opus::interfaces::abbot::IAbbotDispatcherTrait::get_trove_owner
fn get_trove_owner(self: T, trove_id: u64) -> Option<ContractAddress>
get_user_trove_ids
Fully qualified path: opus::interfaces::abbot::IAbbotDispatcherTrait::get_user_trove_ids
fn get_user_trove_ids(self: T, user: ContractAddress) -> Span<u64>
get_troves_count
Fully qualified path: opus::interfaces::abbot::IAbbotDispatcherTrait::get_troves_count
fn get_troves_count(self: T) -> u64
get_trove_asset_balance
Fully qualified path: opus::interfaces::abbot::IAbbotDispatcherTrait::get_trove_asset_balance
fn get_trove_asset_balance(self: T, trove_id: u64, yang: ContractAddress) -> u128
open_trove
Fully qualified path: opus::interfaces::abbot::IAbbotDispatcherTrait::open_trove
fn open_trove(
self: T, yang_assets: Span<AssetBalance>, forge_amount: Wad, max_forge_fee_pct: Wad,
) -> u64
close_trove
Fully qualified path: opus::interfaces::abbot::IAbbotDispatcherTrait::close_trove
fn close_trove(self: T, trove_id: u64)
deposit
Fully qualified path: opus::interfaces::abbot::IAbbotDispatcherTrait::deposit
fn deposit(self: T, trove_id: u64, yang_asset: AssetBalance)
withdraw
Fully qualified path: opus::interfaces::abbot::IAbbotDispatcherTrait::withdraw
fn withdraw(self: T, trove_id: u64, yang_asset: AssetBalance)
forge
Fully qualified path: opus::interfaces::abbot::IAbbotDispatcherTrait::forge
fn forge(self: T, trove_id: u64, amount: Wad, max_forge_fee_pct: Wad)
melt
Fully qualified path: opus::interfaces::abbot::IAbbotDispatcherTrait::melt
fn melt(self: T, trove_id: u64, amount: Wad)