Skip to content
Snippets Groups Projects
  1. Dec 03, 2019
  2. Dec 02, 2019
  3. Dec 01, 2019
  4. Nov 29, 2019
  5. Nov 27, 2019
  6. Nov 26, 2019
    • 邱昊's avatar
      fix: add Debug to MultiCurrency::Error (#45) · 3b82f2ea
      邱昊 authored
      3b82f2ea
    • 邱昊's avatar
      add fixed u128 (#39) · b1728c20
      邱昊 authored
      * add fixed u128
      
      * update fixed-u128
      
      * fix: divide 0 will panic
      
      * fix: will use u128::max_value() when try_into failued in div and mul functions
      
      * test: add checked_div test
      
      * rename: palette to frame
      
      * update fixed-128
      
      * remove add/sub/mul/div operator
      
      * add overflow/underflow tests
      b1728c20
  7. Nov 25, 2019
  8. Nov 22, 2019
  9. Nov 21, 2019
  10. Nov 20, 2019
    • Shaopeng Wang's avatar
      Update currency traits and adapter impl (#34) · 24123b7f
      Shaopeng Wang authored
      * Update paint balance adapting.
      
      * Update error type.
      
      * Update multi currency to basic currency adapting.
      
      * Remove HasCompact bound for CurrencyId.
      
      * Update BasicCurrencyAdapter struct define.
      24123b7f
  11. Nov 17, 2019
  12. Nov 16, 2019
  13. Nov 15, 2019
  14. Nov 14, 2019
  15. Nov 13, 2019
    • Shaopeng Wang's avatar
      Update slash (#26) · 04d6f900
      Shaopeng Wang authored
      * Update slash: return gap instead of slashed amount.
      
      * Add unit test for tokens module slash.
      04d6f900
    • Shaopeng Wang's avatar
      Currencies Module (#22) · 8e5ab5b2
      Shaopeng Wang authored
      * Impl BasicCurrency & BasicCurrencyExtended.
      
      * Add currencies module.
      
      * Minor fixes
      
      * Add equality bounds for CurrencyId.
      
      * Currencies: add transfer dispatch.
      
      * Currencies: impl BasicCurrencyExtended.
      
      * Add unit tests for currencies module.
      
      * More unit test for currencies module.
      
      * Currencies module: add NativeCurrency type.
      
      * Update unit tests for native currency.
      
      * Add BasicCurrency impl for any type which implements srml_support::traits::Currency.
      
      * Fix typo.
      
      * Add BasicCurrencyAdapter.
      
      * BasicCurrencyAdapter unit tests.
      
      * Update BasicCurrencyAdapter.
      
      * Update slash impl for BasicCurrencyAdapter.
      8e5ab5b2
    • 邱昊's avatar
      feat: prices module (#23) · 33329a2b
      邱昊 authored
      * feat: prices module
      
      * fix: add check to avoid dividing by zero
      
      * fix: delete num_traits dependency
      33329a2b
    • wangjj9219's avatar
      fix fmt error and bug and add tests (#20) · 90b89dfc
      wangjj9219 authored
      * add auction module
      
      * remove redundant traits definition
      
      * add tests
      
      * get reference instead of ownership
      
      * optimized code
      90b89dfc
  16. Nov 12, 2019
  17. Nov 08, 2019
  18. Nov 07, 2019
  19. Nov 06, 2019
  20. Nov 05, 2019
    • Shaopeng Wang's avatar
      Tokens module unit tests (#6) · 47371ab1
      Shaopeng Wang authored
      * Tokens module unit tests.
      
      * Remove workspace src directory
      
      * Add example crate.
      
      * fmt
      
      * Update example.
      
      * Minor fixes.
      
      * Remove allow dead code.
      47371ab1
Loading