1. May 15, 2019
    • thiolliere's avatar
      Make perthings operate in type operator (#2501) · aa2c496a
      thiolliere authored
      * perthings operate in type operator
      
      * implementation with rem
      
      * fmt
      
      * doc
      
      * better fmt
      
      * bump version
      
      * Tests for pet-things
      
      * demonstrate output as type of operation
      
      * Remove redundant assertions.
      
      * rename test
      
      * update lock
      
      * bump impl version
      aa2c496a
  2. May 09, 2019
    • Kian Peymani's avatar
      Reformat Validator Election (#2406) · 71426fb0
      Kian Peymani authored
      * Add index caching to election
      
      * Initial draft of the new phragmen API.
      
      * Port post-processing to the new API.
      
      * Fix tests and accuracy.
      
      * Final fixes.
      
      * Unify convert namings.
      
      * Remove todo.
      
      * Some typos.
      
      * Bump.
      
      * Add extended balance type doc.
      
      * A bit more sophisticated weight compensation.
      
      * Fix review feedbacks.
      
      * Bump.
      
      * Final updates
      71426fb0
    • Xiliang Chen's avatar
      Remove As trait bound from Currency::Balance (#2205) · 57164aa7
      Xiliang Chen authored
      * remove As<64> bond
      
      * Currency trait refactor
      
      * bump spec version
      57164aa7
  3. Apr 23, 2019
  4. Apr 18, 2019
    • joe petrowski's avatar
      Make Documentation Examples Compile (#2310) · 61e63a04
      joe petrowski authored
      * opening and closing links
      
      * sudo example compiles
      
      * add Aura after it was merged to master
      
      * Timestamp doc testing passes
      
      * Timestamp doc testing works, extraneous lines commented out
      
      * balances
      
      * remove extern crate line
      
      * Removed unneeded code snippet from aura
      
      * make consensus compiles
      
      * executive compiles
      
      * cleanup unnecessary lines
      
      * staking (removed examples that are just copies of tests)
      
      * Apply suggestions from code review
      
      * unindent example
      61e63a04
  5. Apr 17, 2019
  6. Apr 16, 2019
    • joe petrowski's avatar
      Update Documentation (#2172) · fc0b348d
      joe petrowski authored
      
      
      * timestamp
      
      * balances
      
      * balances-remove-short-example
      
      * system
      
      * sudo (+missing period in balances)
      
      * contract
      
      * staking
      
      * fix unclear definition in balances
      
      * update after review
      
      * update genesis-config-sudo link
      
      Co-Authored-By: default avatarjoepetrowski <[email protected]>
      
      * genesis
      fc0b348d
  7. Apr 04, 2019
  8. Apr 02, 2019
  9. Apr 01, 2019
    • Gav Wood's avatar
      Bump version to 1.0.0 globally (#2149) · eca163ba
      Gav Wood authored
      * Bump versionb globally
      
      * Rebuild and fix
      
      * Rename fixes
      
      * Rebuild
      
      * Minor fix and code formatting for validator election
      
      * Fix tests
      
      * More test fixes
      
      * Fix several bugs in phragmen elections.
      
      * Rebuild, remove pointless closures
      eca163ba
  10. Mar 29, 2019
    • Kian Peymani's avatar
      Extended Balance Type for Staking's Election (#2134) · 958cc7ef
      Kian Peymani authored
      * First draft of extended balance type
      
      * Test cleanup.
      
      * Update staking docs.
      
      * Add a good failing test case for quintill
      
      * Bring back saturating.
      
      * Some final fixes
      
      * A few more.
      
      * Update wasm; Bump spec;
      
      * Re-bump.
      
      * Custom lossy conversion from currency to vote
      
      * remove print
      
      * Fix reverse conversion issue.
      
      * void. Re-trigger ci.
      958cc7ef
    • joe petrowski's avatar
      Convert all UK spelling to US (#2138) · 0ddcbf74
      joe petrowski authored
      * all the ise
      
      * forgot a misspelling
      
      * a few more replacements
      
      * bump impl
      
      * rollback and fixes
      
      * bump impl again
      
      * Add aliases for RPC
      
      * Update on_demand.rs
      0ddcbf74
  11. Mar 28, 2019
  12. Mar 27, 2019
    • Shawn Tabrizi's avatar
      Introduce `ReservableCurrency` Trait in Balances Module (#2124) · 1c160934
      Shawn Tabrizi authored
      * Introduce `ReservableCurrency`
      
      * Update Docs for `ReservableCurrency`
      
      * Update Tests
      
      * Bump spec and rebuild wasm
      
      * Extra: Add a note to `slash()`
      
      Discussion in Riot clarified the behavior of `slash()` and `can_slash()`. Trying to sneak clarifying comments about it into this PR
      
      * Update lib.rs
      
      * Don't drop the periods!
      
      CC @shawntabrizi
      1c160934
  13. Mar 26, 2019
  14. Mar 25, 2019
  15. Mar 23, 2019
  16. Mar 22, 2019
    • Kian Peymani's avatar
      Self-Vote for Staking (among others.) (#2078) · 564c954a
      Kian Peymani authored
      * initial doc for the staking module
      
      * Remove md style links.
      
      * Remove todos.
      
      * Add rust code types
      
      * Rename and fix review notes.
      
      * Add new md file
      
      * Final touches.
      
      * Migrate compleatly to rustdoc
      
      * Update link
      
      * Fix heading
      
      * Final touches wrt the new template.
      
      * Remove empty prereq.
      
      * Fix more reviews
      
      * Some final nits.
      
      * Fix some side issues.
      
      * Fix another set of reviews
      
      * Fix + stabilize leftover reivews.
      
      * Remove unused test parameters
      
      * Fix typo.
      
      * Merge redundant loops
      
      * Adds phantom self-vote
      
      * Fix broken tests.
      
      * Refactor some names to match the reference.
      
      * Remove redundant inner loops from election round.
      
      * Introduce phragmen post-processing.
      
      * Some fixes and todos.
      
      * Fix some tests with new phragmen params
      
      * Fix test
      
      * Bump spec
      
      * Fix wasm build
      
      * Fix tests and phragmen fallback. Avoid double-controlling
      
      * Fix and rebuild wasm
      
      * Whitespaces, whitespaces everywhere.
      
      * Rebuild
      
      * Disable post-processing.
      
      * Identify by stash, not controller account.
      
      * Couple of fixes
      
      * Fix first test
      
      * Fix invulnerability_should_work
      
      * Fix a couple more tests
      
      * Fix more tests
      
      * Fix more tests
      
      * Fix more tests
      
      * Fix some tests
      
      * Fix update-ledger.
      
      * Fix update-ledger.
      
      * Fix another test
      
      * Fix another test
      
      * Fix rest of staking tests
      
      * Remove printlns
      
      * Rebuild wasm
      
      * Fix & tests for auth/val syncing
      
      * Fix up threading for tests
      
      * Remove superfluous asserts
      564c954a
    • cheme's avatar
      Switch contract storage to child trie (#2002) · dd47be51
      cheme authored
      dd47be51
  17. Mar 20, 2019
    • Gav Wood's avatar
      Introduce safe types for handling imbalances (#2048) · dcd77a14
      Gav Wood authored and asynchronous rob's avatar asynchronous rob committed
      * Be a little safer with total issuance.
      
      * PairT instead of _Pair
      
      * Remove rev causing upset
      
      * Remove fees stuff.
      
      * Fix build (including tests)
      
      * Update runtime, bump version
      
      * Fix
      
      * Handle gas refunds properly.
      
      * Rename identifier
      
      ala #2025
      
      * Address grumbles
      
      * New not-quite-linear-typing API
      
      * Slimmer API
      
      * More linear-type test fixes
      
      * Fix tests
      
      * Tidy
      
      * Fix some grumbles
      
      * Keep unchecked functions private
      
      * Remove another less-than-safe currency function and ensure that
      contracts module can never create cash.
      
      * Address a few grumbles and fix tests
      dcd77a14
  18. Mar 14, 2019
    • Kian Peymani's avatar
      Phragmén Validator Election (#1915) · b86c96ea
      Kian Peymani authored
      * adds first draft phragmen with tuned tests and sr-primitives
      
      * fix a few docs and code styles
      
      * clean, organize and finish remaining test cases
      
      * more and more tests
      
      * update edge cases behavior and relavent tests
      
      * fix global test issues
      
      * updated wasm files
      
      * all tests fixed
      
      * cleanup
      
      * fix some global issues
      
      * fix global tests
      
      * bump versions
      
      * fix typo
      
      * first step toward extracting phragmen
      
      * Fix most of the grumbles.
      
      * fix rest of the grumbles
      
      * spaces to tabs
      
      * update wasm
      
      * Removed nightly feature.
      
      * More tests
      
      * Fix broken tests.
      
      * Bump and update wasm.
      b86c96ea
  19. Mar 13, 2019
  20. Mar 11, 2019
    • Bastian Köcher's avatar
      Cleanup rustdoc (#1965) · 0ea90111
      Bastian Köcher authored
      * Hide `__GetByteStruct*` types in the docs
      
      * Forward documentation to `GenesisConfig`
      
      * Hide `PhantomItem` in docs for `Call`
      
      * Hide public calls in `Module`
      
      * Forward documenation for storage functions
      
      * Hide auxiliary functions in documentation
      0ea90111
  21. Mar 06, 2019
    • Bastian Köcher's avatar
      Update copyrights to 2019 (#1932) · 7927054f
      Bastian Köcher authored
      7927054f
    • Gav Wood's avatar
      Aggregate all liquidity restrictions in a single place (#1921) · ccc11974
      Gav Wood authored
      * Clean up session key rotation
      
      * Fix build
      
      * Bump version
      
      * Introduce feature to balances.
      
      * Move staking locking logic over to central point
      
      * ^^^ rest
      
      * First part of assimilation
      
      * More assimilation
      
      * More assimilation
      
      * Fix most tests
      
      * Fix build
      
      * Move Balances to new locking system
      
      * :q!
      
      * Bump runtime version
      
      * Build runtime
      
      * Convenience function
      
      * Test fix.
      
      * Whitespace
      
      * Improve type legibility.
      
      * Fix comment.
      
      * More tests.
      
      * More tests.
      
      * Bump version
      
      * Caps
      
      * Whitespace
      
      * Whitespace
      
      * Remove unneeded function.
      ccc11974
  22. Mar 05, 2019
    • Hero Bird's avatar
      Make use of parity-codec "derive" crate feature (#1919) · 128d164f
      Hero Bird authored
      * Make use of parity-codec "derive" crate feature
      
      * Bump impl_version
      
      * Update wasm files and Cargo.lock files
      
      * Transferred to parity_codec derive feature for the rest of the crates
      
      * Update wasm binaries and lock files
      
      * Update core and node wasm binaries
      128d164f
  23. Mar 02, 2019
    • Gav Wood's avatar
      Stash/controller model for staking (#1782) · 828cd958
      Gav Wood authored
      * First steps to stash/controller separation
      
      * More drafting
      
      * More drafting
      
      * Finish draft.
      
      * Optimisation
      
      * Remove accidental commit
      
      * Make it build.
      
      * Fix linked map for traits.
      
      * Fix Option<_> variant.
      
      *  Improve naming a tad
      
      * Rebuild runtime
      
      * Builds!
      
      * First test.
      
      * Bump RT version
      
      * Minor fix
      
      * Update Mock
      
      * adds the correct reward testcase (+staking eras which was already ok)
      
      * fixes the basic staking testcase to work properly (along with a small fix in the module)
      
      * New logic to avoid controller transferring stash.
      
      * Fix some build issues.
      
      * adding some comments to tests
      
      * Fix impls.
      
      * adds a few more lines to explain the test case
      
      * More fixes.
      
      * gets the basic test up and running again
      
      * Fix rest of build
      
      * Rebuild wasm
      
      * Fix docs.
      
      * fix staking test with new chnages
      
      * updating some tests, pending questions
      
      * More working tests
      
      * adds double staking test
      
      * Docs
      
      * remove invalid slashing test
      
      * Payee stuff.
      
      * Fix build
      
      * Docs
      
      * Fix test
      
      * Fix a couple of tests
      
      * Layout plan for finishing tests before Pragmen
      
      * Add some working tests
      
      * re-build staking and reward tests
      
      * Add more tests
      
      * fix offline grace test
      
      * Nominator should have payee checked for cleanup
      
      * adds more nomination tets
      
      * adds validator prefs tests
      
      * Fix and clean up some TODOs
      
      * Fix a couple of issues
      
      * Fix tests
      
      * noting warnings from tests
      
      * final fix of local tests
      
      * Fix slot_stake bug
      
      * Half baked test
      
      * Add logic to limit `unstake_threshold` set in storage
      
      * Make sure to check before writing!
      
      Almost forgot this one
      
      * Move a couple of comments
      
      * fix last broken slot_stake test
      
      * Ignore broken test
      828cd958
  24. Feb 19, 2019
    • thiolliere's avatar
      Improve fees module (#1821) · 8065116b
      thiolliere authored
      * remove amount associated
      * make a new trait to bound some arithmetics to balances or assets:
        It also remove arithmetic bounds of srml-support::traits::Currency.
      
        To update your code then use srml_support::traits::ArithmeticType like:
        `type Currency: ArithmeticType + Currency<Self::AccountId, Balance=BalanceOf<Self>>; ` 
        with `type BalanceOf<T> = <<T as Trait>::Currency as ArithmeticType>::Type; `
      
      * improve decl_storage when it explicit serde bound: basically don't try to be smarter than rust and just use where clause.
      8065116b
  25. Feb 15, 2019
    • Xiliang Chen's avatar
      Transaction Fee Module (#1648) · fafffdb7
      Xiliang Chen authored
      * wip
      
      * Split bytes fee charging and charging by amount into different traits.
      
      * Move to edition 2018.
      
      * Implemented charge fee traits for fees module.
      
      * Implemented 'on_finalise' for fee module.
      
      * Updated fees finalize impl.
      
      * Renaming and documentation update.
      
      * Added overflow & underflow check for fee calculation.
      
      * Added mock and unit tests for fee module.
      
      * More unit tests for fees module.
      
      * Fixed srml-executive unit tests.
      
      * Remove transaction base/bytes fee from balances module, fix unit tests.
      
      * fix compile error
      
      * Fixed unit test.
      
      * Minor fixes.
      
      * Bump spec version.
      
      * Bump spec version.
      
      * Updated fees module and runtime wasm.
      
      * Fees module code style improvement; updated runtime wasm.
      
      * Bump spec and impl version.
      fafffdb7
  26. Feb 11, 2019
  27. Feb 10, 2019
    • Gav Wood's avatar
      Vesting schedules. (#1726) · e5ac7f09
      Gav Wood authored
      * Vesting.
      
      * Vesting stuff.
      
      * Add new wasm blobs
      
      * Bump runtime version
      
      * Update lock
      
      * Fix tests
      
      * Bump version
      e5ac7f09
  28. Feb 08, 2019
  29. Feb 05, 2019
  30. Jan 30, 2019
    • Benjamin Kampmann's avatar
      Document more TODOs as tickets (#1418) · 15ae7cfe
      Benjamin Kampmann authored
      Went through the TODOs, removed a bunch, which are outdated or nothing more than a regular comment, documented a bunch more as actual tickets and made them FIXMEs and unified their structure (`FIXME #TICKETNO DESC` for local tickets, `FIXME: DESC LINK` for external tickets) for easier in-editor support. Further more remove unnecessary remarks and related old code that I noticed in that instance.
      15ae7cfe
  31. Jan 29, 2019
  32. Jan 28, 2019
  33. Jan 25, 2019
  34. Jan 22, 2019
    • Bastian Köcher's avatar
      Rewrite Inherent data (#1488) · 70b1af7b
      Bastian Köcher authored
      
      
      * Implement new inherent data
      
      * Fixes compilation on wasm
      
      * Fixes after rebase
      
      * Switch back to generate inherent stuff by macro
      
      * Update after rebase
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarbkchr <[email protected]>
      
      * Fix compilation after rebase
      
      * Address grumbles
      
      * Remove `InherentDataProviders` from `Client`
      
      * Update wasm files after rebase
      
      * Address grumbles
      
      * Fixes compilation after latest merge
      
      * Last fix
      70b1af7b