1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright 2019-2022 ChainSafe Systems
// SPDX-License-Identifier: Apache-2.0, MIT

use fvm_shared3::METHOD_CONSTRUCTOR;
use num_derive::FromPrimitive;

pub use self::state::State;
pub use self::types::*;

mod state;
mod types;

/// Datacap actor methods available
#[derive(FromPrimitive)]
#[repr(u64)]
pub enum Method {
    Constructor = METHOD_CONSTRUCTOR,
    MintExported = frc42_macros::method_hash!("Mint"),
    DestroyExported = frc42_macros::method_hash!("Destroy"),
    NameExported = frc42_macros::method_hash!("Name"),
    SymbolExported = frc42_macros::method_hash!("Symbol"),
    GranularityExported = frc42_macros::method_hash!("Granularity"),
    TotalSupplyExported = frc42_macros::method_hash!("TotalSupply"),
    BalanceExported = frc42_macros::method_hash!("Balance"),
    TransferExported = frc42_macros::method_hash!("Transfer"),
    TransferFromExported = frc42_macros::method_hash!("TransferFrom"),
    IncreaseAllowanceExported = frc42_macros::method_hash!("IncreaseAllowance"),
    DecreaseAllowanceExported = frc42_macros::method_hash!("DecreaseAllowance"),
    RevokeAllowanceExported = frc42_macros::method_hash!("RevokeAllowance"),
    BurnExported = frc42_macros::method_hash!("Burn"),
    BurnFromExported = frc42_macros::method_hash!("BurnFrom"),
    AllowanceExported = frc42_macros::method_hash!("Allowance"),
}