Skip to main content

anychain_filecoin/
format.rs

1use anychain_core::Format;
2
3use core::fmt;
4use serde::Serialize;
5
6/// Represents the format of a Filecoin address
7#[derive(Serialize, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
8pub enum FilecoinFormat {
9    Base32,
10}
11
12impl Format for FilecoinFormat {}
13
14impl fmt::Display for FilecoinFormat {
15    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
16        write!(f, "Base32")
17    }
18}