eosio_macros
cargo install eosio_macros

eosio_macros

EOSIO SDK for Rust – APIs for building smart contracts on EOSIO blockchains in Rust

by sagan-software

0.3.1 (see all)License:MIT OR Apache-2.0
cargo install eosio_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

GitHub Stars

92

LAST COMMIT

2yrs ago

MAINTAINERS

1

CONTRIBUTORS

3

OPEN ISSUES

3

OPEN PRs

0
VersionTagPublished
0.3.1
2yrs ago
0.3.0
2yrs ago
0.2.0
4yrs ago
0.1.0
4yrs ago
No alternatives found
No tutorials found
Add a tutorial