unc-token
unc-token is crate for work with tokens in unc-protocol.
The crate includes UncToken type and constructors for converting data as UncToken and as u128 type values.
Examples
Basic
Add unc-token to your dependencies:
Here is the basic usage of unc-token crate:
use UncToken;
serde support
In order to use UncToken in serde
-serializable structs, enable serde
feature:
Here is the basic usage of unc-token crate with serde:
// When `serde` feature is enabled, UncToken can be used in serde-serializable structs.
// UncToken will be serialized to a token-precision u128 value encoded as string.
borsh support
In order to use UncToken in borsh
-serializable structs, enable borsh
feature:
Here is the basic usage of unc-token crate with borsh:
use ;
use UncToken;
UncToken information
UNC is used to price computation and storage on the UNC infrastructure. The network charges transaction fees in UNC to process changes and transactions.
License
This project is licensed under the MIT license and Apache-2.0 license.