#eosio #crypto #dapp #blockchain #eos

eosio_numstr

Basic helper functions to work with EOSIO names and symbols

3 unstable releases

0.3.0 Feb 4, 2020
0.2.2 Jun 12, 2019
0.2.1 Jun 2, 2019

#3 in #eos

Download history 20/week @ 2024-04-08 47/week @ 2024-04-15 32/week @ 2024-04-22 15/week @ 2024-04-29 22/week @ 2024-05-06 20/week @ 2024-05-13 24/week @ 2024-05-20 15/week @ 2024-05-27 19/week @ 2024-06-03 14/week @ 2024-06-10 16/week @ 2024-06-17 21/week @ 2024-06-24 24/week @ 2024-07-08 24/week @ 2024-07-15 10/week @ 2024-07-22

60 downloads per month
Used in 8 crates (4 directly)

MIT/Apache

20KB
362 lines

Build Status

eosio_numstr

This crate provides functions for converting EOSIO names and symbols to and from string representations.

Creating an EOSIO name:

use eosio_numstr::name_from_bytes;
let name = name_from_bytes("eosio".bytes()).unwrap();
assert_eq!(name, 6138663577826885632);

Creating an EOSIO symbol:

use eosio_numstr::symbol_from_bytes;
let symbol = symbol_from_bytes(4, "EOS".bytes()).unwrap();
assert_eq!(symbol, 1162826500);

License: MIT OR Apache-2.0


lib.rs:

This crate provides functions for converting EOSIO names and symbols to and from string representations.

Creating an EOSIO name:

use eosio_numstr::name_from_bytes;
let name = name_from_bytes("eosio".bytes()).unwrap();
assert_eq!(name, 6138663577826885632);

Creating an EOSIO symbol:

use eosio_numstr::symbol_from_bytes;
let symbol = symbol_from_bytes(4, "EOS".bytes()).unwrap();
assert_eq!(symbol, 1162826500);

No runtime deps