Derive Macro stellar_axelar_std_derive::Operatable

source ·
#[derive(Operatable)]
Expand description

Implements the Operatable interface for a Soroban contract.

§Example

use stellar_axelar_std_derive::Operatable;

#[contract]
#[derive(Operatable)]
pub struct Contract;

#[contractimpl]
impl Contract {
    pub fn __constructor(env: &Env, owner: Address) {
        stellar_axelar_std::interfaces::set_operator(env, &owner);
    }
}