Trait TEgoStore

Source
pub trait TEgoStore {
Show 19 methods // Required methods fn wallet_main_register<'life0, 'async_trait>( &'life0 self, user_id: Principal, ) -> Pin<Box<dyn Future<Output = Result<Principal, EgoError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn wallet_main_new<'life0, 'async_trait>( &'life0 self, user_id: Principal, ) -> Pin<Box<dyn Future<Output = Result<UserApp, EgoError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn app_main_list<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<App>, EgoError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn app_main_get<'life0, 'async_trait>( &'life0 self, app_id: AppId, ) -> Pin<Box<dyn Future<Output = Result<App, EgoError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn wallet_app_install<'life0, 'async_trait>( &'life0 self, app_id: AppId, ) -> Pin<Box<dyn Future<Output = Result<UserApp, EgoError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn wallet_app_upgrade<'life0, 'async_trait>( &'life0 self, wallet_id: Principal, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn wallet_app_upgrade_by_wallet<'life0, 'async_trait>( &'life0 self, canister_id: Principal, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn wallet_app_remove(&self, wallet_id: Principal); fn wallet_app_list<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<UserApp>, EgoError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn wallet_cycle_balance<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<u128, EgoError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn wallet_cycle_list<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<CashFlow>, EgoError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn wallet_canister_track(&self, canister_id: Principal); fn wallet_canister_track_self(&self, wallet_id: Principal); fn wallet_canister_untrack(&self, canister_id: Principal); fn wallet_canister_untrack_self(&self, wallet_id: Principal); fn wallet_app_install_v2<'life0, 'async_trait>( &'life0 self, req: AppInstallRequest, ) -> Pin<Box<dyn Future<Output = Result<UserApp, EgoError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn wallet_app_upgrade_v2<'life0, 'async_trait>( &'life0 self, req: AppUpgradeRequest, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn wallet_app_reinstall_by_wallet_v2<'life0, 'async_trait>( &'life0 self, req: AppReInstallRequest, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait; fn wallet_app_upgrade_by_wallet_v2<'life0, 'async_trait>( &'life0 self, req: WalletUpgradeAppRequest, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait;
}

Required Methods§

Source

fn wallet_main_register<'life0, 'async_trait>( &'life0 self, user_id: Principal, ) -> Pin<Box<dyn Future<Output = Result<Principal, EgoError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn wallet_main_new<'life0, 'async_trait>( &'life0 self, user_id: Principal, ) -> Pin<Box<dyn Future<Output = Result<UserApp, EgoError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn app_main_list<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<App>, EgoError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn app_main_get<'life0, 'async_trait>( &'life0 self, app_id: AppId, ) -> Pin<Box<dyn Future<Output = Result<App, EgoError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn wallet_app_install<'life0, 'async_trait>( &'life0 self, app_id: AppId, ) -> Pin<Box<dyn Future<Output = Result<UserApp, EgoError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn wallet_app_upgrade<'life0, 'async_trait>( &'life0 self, wallet_id: Principal, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn wallet_app_upgrade_by_wallet<'life0, 'async_trait>( &'life0 self, canister_id: Principal, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn wallet_app_remove(&self, wallet_id: Principal)

Source

fn wallet_app_list<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<UserApp>, EgoError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn wallet_cycle_balance<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<u128, EgoError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn wallet_cycle_list<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<CashFlow>, EgoError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn wallet_canister_track(&self, canister_id: Principal)

Source

fn wallet_canister_track_self(&self, wallet_id: Principal)

Source

fn wallet_canister_untrack(&self, canister_id: Principal)

Source

fn wallet_canister_untrack_self(&self, wallet_id: Principal)

Source

fn wallet_app_install_v2<'life0, 'async_trait>( &'life0 self, req: AppInstallRequest, ) -> Pin<Box<dyn Future<Output = Result<UserApp, EgoError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn wallet_app_upgrade_v2<'life0, 'async_trait>( &'life0 self, req: AppUpgradeRequest, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn wallet_app_reinstall_by_wallet_v2<'life0, 'async_trait>( &'life0 self, req: AppReInstallRequest, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn wallet_app_upgrade_by_wallet_v2<'life0, 'async_trait>( &'life0 self, req: WalletUpgradeAppRequest, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§