eosio_numstr

Crates.ioeosio_numstr
lib.rseosio_numstr
version0.3.0
sourcesrc
created_at2019-06-02 03:11:16.648234
updated_at2020-02-04 01:25:00.496444
descriptionBasic helper functions to work with EOSIO names and symbols
homepagehttps://sagan-software.github.io/eosio-rust/
repositoryhttps://github.com/sagan-software/eosio-rust
max_upload_size
id138411
size31,599
Liam Curry (liamcurry)

documentation

https://sagan-software.github.io/eosio-rust/eosio-numstr/

README

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

Commit count: 266

cargo fmt