Skip to content
Snippets Groups Projects
README.md 2.4 KiB
Newer Older
  • Learn to ignore specific revisions
  • Xiliang Chen's avatar
    Xiliang Chen committed
    # open-runtime-module-library
    
    Xiliang Chen's avatar
    Xiliang Chen committed
    
    [![Crates.io](https://img.shields.io/crates/v/orml-tokens)](https://crates.io/search?q=orml)
    [![GitHub](https://img.shields.io/github/license/open-web3-stack/open-runtime-module-library)](https://github.com/open-web3-stack/open-runtime-module-library/blob/master/LICENSE)
    
    
    Bryan Chen's avatar
    Bryan Chen committed
    The Open Runtime Module Library (ORML) is a community maintained collection of Substrate runtime modules.
    
    
    Xiliang Chen's avatar
    Xiliang Chen committed
    ## Runtime Modules Overview
    
    Bryan Chen's avatar
    Bryan Chen committed
    
    
    Xiliang Chen's avatar
    Xiliang Chen committed
    - [orml-traits](./traits)
    
    Bryan Chen's avatar
    Bryan Chen committed
        - Shared traits including `BasicCurrency`, `MultiCurrency`, `Auction` and more.
    
    Xiliang Chen's avatar
    Xiliang Chen committed
    - [orml-utilities](./utilities)
    
    	- Various utilities including `OrderSet`.
    
    Xiliang Chen's avatar
    Xiliang Chen committed
    - [orml-tokens](./tokens)
    
    Bryan Chen's avatar
    Bryan Chen committed
        - Fungible tokens module that implements `MultiCurrency` trait.
    
    Xiliang Chen's avatar
    Xiliang Chen committed
    - [orml-currencies](./currencies)
    
    Bryan Chen's avatar
    Bryan Chen committed
    	- Provide `MultiCurrency` implementation using `pallet-balances` and `orml-tokens` module.
    
    Xiliang Chen's avatar
    Xiliang Chen committed
    - [orml-oracle](./oracle)
    
    Bryan Chen's avatar
    Bryan Chen committed
        - Oracle module that makes off-chain data available on-chain.
    
    Xiliang Chen's avatar
    Xiliang Chen committed
    - [orml-auction](./auction)
    
    Bryan Chen's avatar
    Bryan Chen committed
    	- Auction module that implements `Auction` trait.
    
    Xiliang Chen's avatar
    Xiliang Chen committed
    - [orml-vesting](./vesting)
    
    Xiliang Chen's avatar
    Xiliang Chen committed
        - Provides scheduled balance locking mechanism, in a *graded vesting* way.
    
    Xiliang Chen's avatar
    Xiliang Chen committed
    - [orml-gradually-update](./gradually-update)
    
        - Provides way to adjust numeric parameter gradually over a period of time.
    
    Bryan Chen's avatar
    Bryan Chen committed
    
    
    Xiliang Chen's avatar
    Xiliang Chen committed
    ## Example
    
    Xiliang Chen's avatar
    Xiliang Chen committed
    Checkout [orml-workshop](https://github.com/xlc/orml-workshop) for example usage.
    
    Xiliang Chen's avatar
    Xiliang Chen committed
    
    ## Development
    
    ### Makefile targets
    
    Bryan Chen's avatar
    Bryan Chen committed
    
    - `make check`
    
    Shaopeng Wang's avatar
    Shaopeng Wang committed
    	- Type check the code, without std feature, excluding tests.
    
    Bryan Chen's avatar
    Bryan Chen committed
    - `make check-tests`
    	- Type check the code, with std feature, including tests.
    - `make test`
    	- Run tests.
    
    Shaopeng Wang's avatar
    Shaopeng Wang committed
    ### `Cargo.toml`
    
    ORML use `Cargo.dev.toml` to avoid workspace conflicts with project cargo config. To use cargo commands in ORML workspace, create `Cargo.toml` by running
    
    - `cp Cargo.dev.toml Cargo.toml`, or
    - `make Cargo.toml`, or
    - change the command to `make dev-check` etc which does the copy. (For the full list of `make` commands, check `Makefile`)
    
    
    Bryan Chen's avatar
    Bryan Chen committed
    # Projects using ORML
    
    _In alphabetical order_
    
    - [Acala Network](https://github.com/AcalaNetwork/Acala)
    
    - [Bit.Country](https://github.com/bit-country/Bit-Country-Blockchain)
    
    - [ChainX](https://github.com/chainx-org/ChainX)
    
    Jakub Pánik's avatar
    Jakub Pánik committed
    - [HydraDX](https://github.com/galacticcouncil/hack.HydraDX-node)
    
    Bryan Chen's avatar
    Bryan Chen committed
    - [Laminar Chain](https://github.com/laminar-protocol/laminar-chain)
    
    - [Setheum Network](https://github.com/Setheum-Labs/Setheum)
    
    Xiliang Chen's avatar
    Xiliang Chen committed
    - [_Add your project here_](https://github.com/open-web3-stack/open-runtime-module-library/edit/master/README.md)