templar_common::vault

Trait VaultExt

Source
pub trait VaultExt {
Show 33 methods // Required methods fn set_curator(account: AccountId); fn set_is_allocator(account: AccountId, allowed: bool); fn submit_guardian(new_g: AccountId); fn accept_guardian(); fn revoke_pending_guardian(); fn set_skim_recipient(account: AccountId); fn set_fee_recipient(account: AccountId); fn set_performance_fee(fee: U128); fn submit_timelock(new_timelock_ns: U64); fn accept_timelock(); fn revoke_pending_timelock(); fn submit_cap(market: AccountId, new_cap: U128); fn accept_cap(market: AccountId); fn revoke_pending_cap(market: AccountId); fn submit_market_removal(market: AccountId); fn revoke_pending_market_removal(market: AccountId); fn set_supply_queue(markets: Vec<AccountId>); fn set_withdraw_queue(queue: Vec<AccountId>); fn withdraw(amount: U128, receiver: AccountId) -> PromiseOrValue<()>; fn redeem(shares: U128, receiver: AccountId) -> PromiseOrValue<()>; fn execute_next_withdrawal_request() -> PromiseOrValue<()>; fn skim(token: AccountId) -> Promise; fn allocate( weights: AllocationWeights, amount: Option<U128>, ) -> PromiseOrValue<()>; fn get_configuration() -> VaultConfiguration; fn get_total_assets() -> U128; fn get_total_supply() -> U128; fn get_max_deposit() -> U128; fn convert_to_shares(assets: U128) -> U128; fn convert_to_assets(shares: U128) -> U128; fn preview_deposit(assets: U128) -> U128; fn preview_mint(shares: U128) -> U128; fn preview_withdraw(assets: U128) -> U128; fn preview_redeem(shares: U128) -> U128;
}

Required Methods§

Source

fn set_curator(account: AccountId)

Source

fn set_is_allocator(account: AccountId, allowed: bool)

Source

fn submit_guardian(new_g: AccountId)

Source

fn accept_guardian()

Source

fn revoke_pending_guardian()

Source

fn set_skim_recipient(account: AccountId)

Source

fn set_fee_recipient(account: AccountId)

Source

fn set_performance_fee(fee: U128)

Source

fn submit_timelock(new_timelock_ns: U64)

Source

fn accept_timelock()

Source

fn revoke_pending_timelock()

Source

fn submit_cap(market: AccountId, new_cap: U128)

Source

fn accept_cap(market: AccountId)

Source

fn revoke_pending_cap(market: AccountId)

Source

fn submit_market_removal(market: AccountId)

Source

fn revoke_pending_market_removal(market: AccountId)

Source

fn set_supply_queue(markets: Vec<AccountId>)

Source

fn set_withdraw_queue(queue: Vec<AccountId>)

Source

fn withdraw(amount: U128, receiver: AccountId) -> PromiseOrValue<()>

Source

fn redeem(shares: U128, receiver: AccountId) -> PromiseOrValue<()>

Source

fn execute_next_withdrawal_request() -> PromiseOrValue<()>

Source

fn skim(token: AccountId) -> Promise

Source

fn allocate( weights: AllocationWeights, amount: Option<U128>, ) -> PromiseOrValue<()>

Source

fn get_configuration() -> VaultConfiguration

Source

fn get_total_assets() -> U128

Source

fn get_total_supply() -> U128

Source

fn get_max_deposit() -> U128

Source

fn convert_to_shares(assets: U128) -> U128

Source

fn convert_to_assets(shares: U128) -> U128

Source

fn preview_deposit(assets: U128) -> U128

Source

fn preview_mint(shares: U128) -> U128

Source

fn preview_withdraw(assets: U128) -> U128

Source

fn preview_redeem(shares: U128) -> U128

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§