macro_rules! nep17 {
($($tokens:tt)*) => { ... };
}Expand description
NEP-17 (fungible token) standard macro.
Currently unavailable on the wasm32 export ABI. A compliant NEP-17
contract needs a symbol() method that returns a string and
balanceOf/transfer methods that take Hash160 (ByteString)
accounts. The #[neo_method] auto-export wrappers marshal scalar
integer/boolean types only, so this macro cannot emit a working,
standards-compliant contract yet. Any invocation therefore fails to
compile with guidance rather than silently exporting no methods (the
behaviour before v0.13.2).
Until the typed-parameter export ABI lands, write the contract by hand
with #[neo_contract] + #[neo_method] using integer account ids —
see contracts/nep17-token for a complete working example.