abax_contracts 1.0.0

Contracts for the Abax Protocol
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
// SPDX-License-Identifier: BUSL-1.1
use ink::primitives::AccountId;
use pendzl::traits::Balance;

/// Data needed to emit PSP22 Transfer event.
#[derive(Default, Debug, scale::Decode, scale::Encode, Clone)]
#[cfg_attr(feature = "std", derive(scale_info::TypeInfo))]
pub struct TransferEventData {
    pub from: Option<AccountId>,
    pub to: Option<AccountId>,
    pub amount: Balance,
}