Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

IAbbot

Fully qualified path: opus::interfaces::abbot::IAbbot

pub trait IAbbot<TContractState>

Trait functions

get_trove_owner

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

fn get_trove_owner(self: @TContractState, trove_id: u64) -> Option<ContractAddress>

get_user_trove_ids

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

fn get_user_trove_ids(self: @TContractState, user: ContractAddress) -> Span<u64>

get_troves_count

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

fn get_troves_count(self: @TContractState) -> u64

get_trove_asset_balance

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

fn get_trove_asset_balance(self: @TContractState, trove_id: u64, yang: ContractAddress) -> u128

open_trove

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

fn open_trove(
    ref self: TContractState,
    yang_assets: Span<AssetBalance>,
    forge_amount: Wad,
    max_forge_fee_pct: Wad,
) -> u64

close_trove

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

fn close_trove(ref self: TContractState, trove_id: u64)

deposit

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

fn deposit(ref self: TContractState, trove_id: u64, yang_asset: AssetBalance)

withdraw

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

fn withdraw(ref self: TContractState, trove_id: u64, yang_asset: AssetBalance)

forge

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

fn forge(ref self: TContractState, trove_id: u64, amount: Wad, max_forge_fee_pct: Wad)

melt

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

fn melt(ref self: TContractState, trove_id: u64, amount: Wad)