TokenPaymentInfoMethodsV0

Trait TokenPaymentInfoMethodsV0 

Source
pub trait TokenPaymentInfoMethodsV0: TokenPaymentInfoAccessorsV0 {
    // Provided methods
    fn is_valid_for_required_cost(&self, required_cost: TokenAmount) -> bool { ... }
    fn matches_token_contract(
        &self,
        contract_id: &Option<Identifier>,
        token_contract_position: TokenContractPosition,
    ) -> bool { ... }
    fn token_id(&self, current_contract_id: Identifier) -> Identifier { ... }
}

Provided Methods§

Source

fn is_valid_for_required_cost(&self, required_cost: TokenAmount) -> bool

Source

fn matches_token_contract( &self, contract_id: &Option<Identifier>, token_contract_position: TokenContractPosition, ) -> bool

Source

fn token_id(&self, current_contract_id: Identifier) -> Identifier

Implementors§