Crates.io | stp258-standard |
lib.rs | stp258-standard |
version | 0.5.3 |
source | src |
created_at | 2021-03-28 07:33:08.667838 |
updated_at | 2021-03-28 09:55:57.880878 |
description | Provide `Stp258Standard` implementation using `pallet-balances` and `stp258-serp` |
homepage | https://setheum.xyz |
repository | https://github.com/Setheum-Labs/stp258-standard/ |
max_upload_size | |
id | 374566 |
size | 53,837 |
Multi-Currency Stablecoin SERP Module built on top of Stp258Serp
and SerpTraits
.
The STP258 Standard module provides a mixed stablecoin system, by configuring a
native currency which implements Stp258AssetExtended
, and a
multi-currency which implements Stp258Currency
.
This module is built on the STP-258 Serp implementing the SERP Traits.
The stp258 module provides implementations for following traits.
Stp258Currency
- Abstraction over a fungible multi-currency stablecoin system.Stp258CurrencyExtended
- Extended Stp258Currency
with additional helper
types and methods, like updating balance
by a given signed integer amount.transfer
- Transfer some balance to another account, in a given
currency.transfer_native_currency
- Transfer some balance to another account, in
native currency set in
Config::Stp258Native
.update_balance
- Update balance by signed integer amount, in a given
currency, root origin required.This Pallet is built on STP258 Serp pallet.
This Pallet is inspired by the ORML Currencies Pallet developed by Open Web3 Stack, for reference check The ORML Repo.