(&self)
| 66 | } |
| 67 | |
| 68 | pub fn get_supported_operations(&self) -> Vec<StandardOperation> { |
| 69 | match self { |
| 70 | TokenStandard::InternetComputerNative | TokenStandard::ICRC1 => vec![ |
| 71 | StandardOperation::Balance, |
| 72 | StandardOperation::Transfer, |
| 73 | StandardOperation::ListTransfers, |
| 74 | ], |
| 75 | } |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | impl FromStr for TokenStandard { |