# open-runtime-module-library **Repository Path**: charkali/open-runtime-module-library ## Basic Information - **Project Name**: open-runtime-module-library - **Description**: No description available - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-23 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # open-runtime-module-library The Open Runtime Module Library (ORML) is a community maintained collection of Substrate runtime modules. ## Runtime Modules Overview - [orml-traits](./traits) - Shared traits including `BasicCurrency`, `MultiCurrency`, `Auction` and more. - [orml-utilities](./utilities) - Various utilities including `OrderSet`. - [orml-tokens](./tokens) - Fungible tokens module that implements `MultiCurrency` trait. - [orml-currencies](./currencies) - Provide `MultiCurrency` implementation using `pallet-balances` and `orml-tokens` module. - [orml-oracle](./oracle) - Oracle module that makes off-chain data available on-chain. - [orml-auction](./auction) - Auction module that implements `Auction` trait. - [orml-vesting](./vesting) - Provides scheduled balance locking mechanism, in a *graded vesting* way. - [orml-gradually-update](./gradually-update) - Provides way to adjust numeric parameter gradually over a period of time. ## Installation ### Runtime `Cargo.toml` To add an `ORML` module to your runtime, simply include the following to your runtime's `Cargo.toml` file. For instance, to add `orml-tokens` module: ```TOML [dependencies] # --snip-- orml-tokens = { git = "https://github.com/laminar-protocol/open-runtime-module-library.git", default-features = false } ``` and update your runtime's `std` feature to include this module: ```TOML std = [ # --snip-- 'orml-tokens/std', ] ``` ### Runtime `lib.rs` You should implement it's trait like so: ```rust /// Used for orml_tokens impl orml_tokens::Trait for Runtime { type Event = Event; // --snip-- } ``` and include it in your `construct_runtime!` macro: ```rust Tokens: orml_tokens::{Module, Storage, Call, Event, Config}, ``` ## Development ### Makefile targets - `make check` - Type check the code, without std feature, exclduing tests. - `make check-tests` - Type check the code, with std feature, including tests. - `make test` - Run tests.