FactoryServiceTrait

Trait FactoryServiceTrait 

Source
pub trait FactoryServiceTrait {
    type Error: From<StdError>;

    // Required methods
    fn create_wallet(
        &self,
        ctx: ExecCtx<'_>,
        create_wallet_msg: CreateWalletMsg,
    ) -> Result<Response, Self::Error>;
    fn migrate_wallet(
        &self,
        ctx: ExecCtx<'_>,
        migrations_msg: MigrateWalletMsg,
    ) -> Result<Response, Self::Error>;
    fn wallet_by_vid(
        &self,
        ctx: QueryCtx<'_>,
        vid: String,
    ) -> Result<Option<Addr>, StdError>;
    fn wallet_by_vid_chain(
        &self,
        ctx: QueryCtx<'_>,
        vid: String,
        chain_id: String,
    ) -> Result<Option<String>, StdError>;
}
Expand description

The trait for users to interact with factory contract

Required Associated Types§

Required Methods§

Source

fn create_wallet( &self, ctx: ExecCtx<'_>, create_wallet_msg: CreateWalletMsg, ) -> Result<Response, Self::Error>

Source

fn migrate_wallet( &self, ctx: ExecCtx<'_>, migrations_msg: MigrateWalletMsg, ) -> Result<Response, Self::Error>

Source

fn wallet_by_vid( &self, ctx: QueryCtx<'_>, vid: String, ) -> Result<Option<Addr>, StdError>

Returns the wallet address of this vectis ID

Source

fn wallet_by_vid_chain( &self, ctx: QueryCtx<'_>, vid: String, chain_id: String, ) -> Result<Option<String>, StdError>

Returns the wallet address of this vectis ID and chain_id

Implementors§