eosio_macros

Crates.ioeosio_macros
lib.rseosio_macros
version0.3.1
sourcesrc
created_at2018-09-29 21:18:15.167289
updated_at2020-02-17 22:16:49.282784
descriptionMacros for creating compile-time EOSIO names and symbols.
homepagehttps://sagan-software.github.io/eosio-rust/
repositoryhttps://github.com/sagan-software/eosio-rust
max_upload_size
id87181
size16,639
Liam Curry (liamcurry)

documentation

https://sagan-software.github.io/eosio-rust/eosio-core-macros/

README

Build Status

eosio_macros

Macros for creating compile-time EOSIO names and symbols.

Creating EOSIO names:

use eosio_macros::n;
assert_eq!(n!("test"), 14_605_613_396_213_628_928);
assert_eq!(n!("1234"), 614_248_767_926_829_056);
assert_eq!(n!("123451234512"), 614_251_535_012_020_768);
assert_eq!(n!("eosio.token"), 6_138_663_591_592_764_928);

Creating EOSIO symbols:

use eosio_macros::s;
assert_eq!(s!(4, "EOS"), 1162826500);

License: MIT OR Apache-2.0

Commit count: 266

cargo fmt