Skip to main content

TokenManagerInterface

Trait TokenManagerInterface 

Source
pub trait TokenManagerInterface: OwnableInterface + UpgradableInterface {
    // Required method
    fn execute(
        env: &Env,
        contract: Address,
        func: Symbol,
        args: Vec<Val>,
    ) -> Result<Val, ContractError>;
}

Required Methods§

Source

fn execute( env: &Env, contract: Address, func: Symbol, args: Vec<Val>, ) -> Result<Val, ContractError>

Executes a function on the given contract.

§Arguments
  • contract - The address of the contract to execute the function on.
  • func - The symbol of the function to execute.
  • args - The arguments to pass to the function.
§Returns
  • Ok(Val) - The result of the function execution.
§Authorization

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§