Expand description
Namada shielded token.
Modules§
- conversion
- MASP rewards conversions
- storage_
key - Shielded token storage keys
- utils
- MASP utilities
Structs§
- Conversion
Leaf - A representation of a leaf in the conversion tree
- Conversion
State - A representation of the conversion state
- Dec
- A 256 bit number with
POS_DECIMAL_PRECISIONnumber of Dec places. - Key
- A storage key is made of storage key segments
DbKeySeg, separated byKEY_SEGMENT_SEPARATOR. - Masp
Epoch - Wrapper type around
Epochfor type safe operations involving the masp epoch - Masp
Transaction - A MASP transaction.
- Masp
TxId - Wrapper for masp_primitive’s TxId
- Shielded
Params - Token parameters for each kind of asset held on chain
Enums§
Traits§
- Option
Ext - An extension to
Optionto allow turningNonecase to an Error from a static string (handy for WASM). - Result
Ext - Result extension to easily wrap custom errors into
Error. - Storage
Read - Common storage read interface
- Storage
Write - Common storage write interface
- With
Conversion State - Able to borrow mutable conversion state.
Functions§
- mint_
rewards - Mint MASP rewards tokens and increment the stored total rewards.
- read_
token_ map - Read the masp token map.
- read_
total_ rewards - Read the total rewards minted by MASP.
- read_
undated_ balance - Read the undated balance of the given token in the MASP.
- write_
params - Initialize parameters for the token in storage during the genesis block.
- write_
token_ map - Write a new masp token map.
Type Aliases§
- Result
- Result of a storage API call.