Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

IAbbotSafeDispatcherTrait

Fully qualified path: opus::interfaces::abbot::IAbbotSafeDispatcherTrait

Part of the group: dispatchers

pub trait IAbbotSafeDispatcherTrait<T>

Trait functions

get_trove_owner

Fully qualified path: opus::interfaces::abbot::IAbbotSafeDispatcherTrait::get_trove_owner

fn get_trove_owner(self: T, trove_id: u64) -> Result<Option<ContractAddress>, Array<felt252>>

get_user_trove_ids

Fully qualified path: opus::interfaces::abbot::IAbbotSafeDispatcherTrait::get_user_trove_ids

fn get_user_trove_ids(self: T, user: ContractAddress) -> Result<Span<u64>, Array<felt252>>

get_troves_count

Fully qualified path: opus::interfaces::abbot::IAbbotSafeDispatcherTrait::get_troves_count

fn get_troves_count(self: T) -> Result<u64, Array<felt252>>

get_trove_asset_balance

Fully qualified path: opus::interfaces::abbot::IAbbotSafeDispatcherTrait::get_trove_asset_balance

fn get_trove_asset_balance(
    self: T, trove_id: u64, yang: ContractAddress,
) -> Result<u128, Array<felt252>>

open_trove

Fully qualified path: opus::interfaces::abbot::IAbbotSafeDispatcherTrait::open_trove

fn open_trove(
    self: T, yang_assets: Span<AssetBalance>, forge_amount: Wad, max_forge_fee_pct: Wad,
) -> Result<u64, Array<felt252>>

close_trove

Fully qualified path: opus::interfaces::abbot::IAbbotSafeDispatcherTrait::close_trove

fn close_trove(self: T, trove_id: u64) -> Result<(), Array<felt252>>

deposit

Fully qualified path: opus::interfaces::abbot::IAbbotSafeDispatcherTrait::deposit

fn deposit(self: T, trove_id: u64, yang_asset: AssetBalance) -> Result<(), Array<felt252>>

withdraw

Fully qualified path: opus::interfaces::abbot::IAbbotSafeDispatcherTrait::withdraw

fn withdraw(self: T, trove_id: u64, yang_asset: AssetBalance) -> Result<(), Array<felt252>>

forge

Fully qualified path: opus::interfaces::abbot::IAbbotSafeDispatcherTrait::forge

fn forge(self: T, trove_id: u64, amount: Wad, max_forge_fee_pct: Wad) -> Result<(), Array<felt252>>

melt

Fully qualified path: opus::interfaces::abbot::IAbbotSafeDispatcherTrait::melt

fn melt(self: T, trove_id: u64, amount: Wad) -> Result<(), Array<felt252>>