Crate odra_modules
source ·Expand description
Odra’s library of plug and play modules
Modules§
- Access control module.
- CEP-18 Token implemented in Odra.
- CEP-18 Casper Fungible Token standard implementation.
- ERC20 token standard implementation.
- Erc721 standard implementation.
- A pluggable Odra module implementing Erc721Receiver.
- A pluggable Odra module implementing Erc721 token with metadata and ownership.
- Erc1155 standard implementation.
- A pluggable Odra module implementing Erc1155Receiver.
- A pluggable Odra module implementing Erc1155 token with ownership.
- Security module
- Wrapped CSPR token implementation
Macros§
- Creates an Odra module that stores a values in a given dictionary. The module has two methods:
setandget. Thekeyargument ofsetandgetis base64-encoded and then used as a dictionary key. - Creates an Odra module that stores a values in a given dictionary. The module has two methods:
setandget. Thekey1andkey2arguments ofsetandgetare converted to bytes, combined into a single bytes vector, and finally hex-encoded and then used as a dictionary key. - Creates an Odra module that stores a values in a given dictionary. The module has two methods:
setandget. Thekeyargument ofsetandgetis used as a dictionary key. - Creates an Odra module that stores a single value under a given named key. The module has two methods:
setandget. If the value is not set and an error is passed as the fourth argument,getwill revert with the provided error.