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: set and get. The key argument of set and get is 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: set and get. The key1 and key2 arguments of set and get are 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: set and get. The key argument of set and get is used as a dictionary key.
  • Creates an Odra module that stores a single value under a given named key. The module has two methods: set and get. If the value is not set and an error is passed as the fourth argument, get will revert with the provided error.