1. Jul 23, 2019
    • DemiMarie-parity's avatar
      BABE Epochs (#3028) · f78a7807
      DemiMarie-parity authored and asynchronous rob's avatar asynchronous rob committed
      
      
      * Add `epoch` field to `SlotInfo`
      
      * Add slot calculations
      
      * More work on epochs in BABE
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Typo: `/` not `%` for division
      
      * Delete useless `LastSlotInEpoch::put(false)`
      
      * Bump `spec_version`
      
      * Make test suite pass again
      
      * Implement BABE epoch randomness signing
      
      * Try to fix compilation
      
      Currently causes a stack overflow in the compiler
      
      * Fix rustc stack overflow
      
      * Add missing `PartialEq` and `Eq` implementations
      
      * Fix compile errors in test suite
      
      * Another silly compile error
      
      * Clone `epoch`
      
      * Fix compile error in benchmarks
      
      * Implement `clone` for `Epoch`
      
      * Merge master
      
      * AUTHORING TEST PASSES!!!
      
      * Fix compilation
      
      * Bump `spec_version`
      
      * Fix compilation
      
      * Fix compilation (again)
      
      * Remove an outdated FIXME
      
      * Fix run.sh and move it to scripts/
      
      * Delete commented-out code
      
      * Fix documentation
      
      Co-Authored-By: default avatarAndré Silva <[email protected]>
      
      * Fix BABE initialization and refactor
      
      * Respond to review
      
      * typo
      
      * Remove useless data in `CheckedHeader::Deferred`
      
      * Remove `slot_number` from Epoch
      
      It is not needed, and only served to waste space and cause confusion.
      
      * Remove epoch from BABE digests
      
      * Move digest.rs to primitives
      
      * Fix incorrect warning names
      
      * Fix compile error
      
      * Consistent field naming for BABE digests
      
      * More compiler error fixex
      
      * Unbound variable
      
      * more compile errors
      
      * another compile error
      
      * Fix compile errors in runtime
      
      * another compile error
      
      * Another compile error
      
      * Fix wasm build
      
      * missing import
      
      * Fix more compile errors
      
      * yet another compile error
      
      * compile fix in test runtime
      
      * Fix and simplify the BABE runtime
      
      The BABE runtime was massively overcomplicated and also wrong.  It
      assumed it needed to:
      
      1. delay new authorities taking effect until the next epoch
      2. not delay emitting `Consensus` digests to mark epoch changes
      
      However, the first is handled by the `srml_session` crate, and the
      second is flat-out incorrect: `Consensus` digests take effect
      immediately.  Furthermore, `srml_babe` tried to duplicate the
      functionality of `srml_session::PeriodicSession`, but did it both
      clumsily and incorrectly.  Fortunately, the new code is simpler and far
      more likely to be correct.
      
      * Use `system` to get the test authorities
      
      The genesis block used by tests defines no authorities.  Only the test
      suite is affected.
      
      * Fix test runtime impl for BabeApi::epoch() with std
      
      * Fix compilation
      
      * Cached authorities are in the form of an epoch
      
      not a `Vec<AuthorityId>`.
      
      * `slots_per_epoch` is not fixed in general
      
      The BABE code previously assumed `slots_per_epoch` to be a constant,
      but that assumption is false in general.  Furthermore, removing this
      assumption also allows a lot of code to go away.
      
      * fix compile error
      
      * Implement epoch checker
      
      * Fix runtime compilation
      
      * fork-tree: add method for finding a node in the tree
      
      * babe: register epoch transitions in fork tree and validate them
      
      * fork-tree: add method for arbitrary pruning
      
      * Expose the queued validator set to SRML modules
      
      BABE needs to know not only what the current validator set is, but also
      what the next validator set will be.  Expose this to clients of the
      session module.
      
      * Bump hex-literal
      
      Hopefully this will fix the panic
      
      * babe: prune epoch change fork tree on finality
      
      * babe: validate epoch index on transition
      
      * babe: persist epoch changes tree
      
      * Fix compile error in tests
      
      * Fix compile error in tests
      
      * Another compile error in tests
      
      * Fix compilation of tests
      
      * core: move grandpa::is_descendent_of to client utils
      
      * babe: use is_descendent_of from client utils
      
      * babe: extract slot_number from pre_digest in import_block
      
      * Move BABE testsuite to its own file
      
      * Initial part of test code
      
      * Missing `WeightMultiplierUpdate` in test-runtime
      
      * bump `spec_version`
      
      * Add a test that a very bogus is rejected
      
      * Run the tests again
      
      * Fix compiler diagnostics
      
      * Bump `spec_version`
      
      * Initial infrastructure for mutation testing
      
      * Mutation testing of block import
      
      * babe: revert epoch changes in case of block import error
      
      * babe: fix logging target
      
      * babe: BabeBlockImport doesn't box inner BlockImport
      
      * babe: fix epoch check in block import
      
      * babe: populate authorities cache on block authorship
      
      * babe: remove unused functions
      
      * babe: use RANDOMNESS_LENGTH const
      
      * babe: remove unneeded config parameters
      
      * core: revert change to hex dependency version
      
      * cleanup gitignore
      
      * babe: add docs to aux_schema
      
      * babe: remove useless drops in tests
      
      * babe: remove annoying macos smart quotes
      
      * fork-tree: docs
      
      * fork-tree: add tests
      
      * babe: style
      
      * babe: rename randomness config variable
      
      * babe: remove randomness helper function
      
      * babe: style fixes
      
      * babe: add docs
      
      * babe: fix tests
      
      * node: bump spec_version
      
      * babe: fix tests
      f78a7807
  2. Jul 21, 2019
  3. Jul 10, 2019
  4. Jul 08, 2019
    • Shawn Tabrizi's avatar
      Make priviledged functions explicity use `origin` (#3045) · 3d728447
      Shawn Tabrizi authored
      * Make priviledged functions explicity use `origin`
      
      * Fix typo in docs
      
      * Fix more tests
      
      * Remove `root` pathway, add semicolons
      3d728447
    • asynchronous rob's avatar
      Slash and prove membership of prior sessions (#2970) · 7df8e52c
      asynchronous rob authored
      
      
      * skeleton for tracking historical sessions
      
      * refactor OpaqueKeys
      
      * some more skeleton work
      
      * adjust session to new OpaqueKeys API
      
      * further refactoring of key-type-ids
      
      * session gets validator ID parameter
      
      * run up against compiler
      
      * tweak staking to support new session changes
      
      * first run at child storage for deduplication
      
      * Make session use `AccountId` as `ValidatorId`
      
      * run up against child trie issues
      
      * switch to using normal trie but with a fixed prefix
      
      * clear out some println
      
      * add dedup test
      
      * flesh out historical module more
      
      * introduce ExposureOf for staking
      
      * test the historical module
      
      * WASM compiles
      
      * tests all compile
      
      * do some mock change
      
      * fix bulk of tests
      
      * fix staking tests
      
      * test obsolecence mechanic
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * some more style nits
      
      * a couple more nits
      
      * tweak tries
      
      * fix typo thie -> this
      7df8e52c
  5. Jul 04, 2019
    • David Craven's avatar
      Session keys buffered for a session. (#2946) · 336053f7
      David Craven authored
      * Session keys buffered for the duration of a session.
      
      * Add queued_keys getter.
      
      * Make sure genesis state is consistent.
      
      * Add validator_count validators.
      
      * Compensate for session delay.
      
      * Remove unused code.
      
      * Add num_validators option.
      
      * Fix session numbers.
      
      * Fix merge.
      
      * Reintroduce changed.
      
      * Update runtime.
      
      * Make NextKeyFor private.
      
      * Move block initialization to function.
      
      * Update lib.rs
      
      * Add test for change propagation.
      
      * Fix docstring.
      
      * Use get instead of take.
      
      * Initialize validators from keys.
      
      * Next try.
      
      * Fix build.
      
      * Fix warning.
      
      * Make initial validator selection more transparent.
      
      * Make storage items private.
      
      * Reorder genesis initialization.
      
      * Update Cargo.lock
      
      * Update runtime version.
      
      * Update runtime version.
      
      * Update Cargo.lock
      
      * Update runtime version.
      
      * Add docs.
      336053f7
  6. Jul 02, 2019
    • David Craven's avatar
      Turn storage items into parameters (#2883) · cf036f68
      David Craven authored
      * balances: Turn storage items into parameters.
      
      * contract: Turn storage items into parameters.
      
      * council: Turn storage items into parameters.
      
      * finality-tracker: Turn storage items into parameters.
      
      * treasury: Turn storage items into parameters.
      
      * democracy: Fix tests.
      
      * example: Fix tests.
      
      * executive: Fix tests.
      
      * staking: Fix tests.
      
      * Update runtime.
      
      * Update template-node.
      
      * Update runtime version.
      
      * Fix executor tests.
      
      * Fix node cli tests.
      
      * Address grumbles.
      
      * Add removed default values to docs.
      
      * Make gas price a storage item.
      
      * Set associated consts must be callable outside of build.
      
      * Fix not enough gas to pay for transfer fee.
      
      * Fix build.
      
      * Emit metadata.
      
      * Fix build.
      
      * Add default values for all parameter types.
      
      * Fix build.
      
      * Fix build.
      
      * Fix build.
      
      * Fix build.
      cf036f68
  7. Jul 01, 2019
    • Bastian Köcher's avatar
      Make constants exposable in metadata (#2975) · 7202403b
      Bastian Köcher authored
      
      
      * Some cleanup
      
      * Add module constant metadata declaration
      
      * Begin to integrate the constants in `decl_module`
      
      * Fixes tests
      
      * Fix compilation and add tests
      
      * Remove duplicate code
      
      * Expose constants in democracy and staking + further fixes
      
      * Update srml/metadata/src/lib.rs
      
      Co-Authored-By: default avatarYJ <[email protected]>
      
      * Hide `RawEvent` metadata function
      
      * Prevent whitespaces in types
      
      * Fix `offchain_worker` and `constants` with instances
      
      * Up the `impl_version`
      
      * Fix macro
      
      * Incrase impl_version
      7202403b
  8. Jun 28, 2019
    • Kian Peymani's avatar
      Enable staking equalise. (#2886) · a57e649f
      Kian Peymani authored
      * Enable equalise.
      
      * Bump.
      
      * Line-width
      
      * Add benchmarks for equalise.
      
      * Line-width
      
      * Re-trigger CI.
      
      * Fix test.
      
      * Some nits.
      
      * Rename.
      
      * Bump.
      a57e649f
  9. Jun 27, 2019
    • Bastian Köcher's avatar
      Implement a proper generic resolution in `decl_storage!` (#2913) · 62b7c05d
      Bastian Köcher authored
      
      
      * Add failing test case
      
      * move storage maps to blake2_128 (#2268)
      
      * remove default hash, introduce twox_128 and blake2
      
      * use blake2_128 & create ext_blake2_128
      
      * refactor code
      
      * add benchmark
      
      * factorize generator
      
      * fix
      
      * parameterizable hasher
      
      * some fix
      
      * fix
      
      * fix
      
      * fix
      
      * metadata
      
      * fix
      
      * remove debug print
      
      * map -> blake2_256
      
      * fix test
      
      * fix test
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarthiolliere <[email protected]>
      
      * impl twox 128 concat (#2353)
      
      * impl twox_128_concat
      
      * comment addressed
      
      * fix
      
      * impl twox_128->64_concat
      
      * fix test
      
      * Fix compilation and cleanup some docs
      
      * Lol
      
      * Remove traits from storage types that are not generic
      
      * Get instance test almost working as wanted
      
      * Make `srml-support-test` compile again :)
      
      * Fixes test of srml-support
      
      * Fix compilation
      
      * Break some lines
      
      * Remove incorrect macro match arm
      
      * Integrates review feedback
      
      * Update documentation
      
      * Fix compilation
      62b7c05d
  10. Jun 24, 2019
  11. Jun 15, 2019
  12. Jun 14, 2019
    • Gavin Wood's avatar
      New sessions, kill consensus module (#2802) · bda86418
      Gavin Wood authored
      
      
      * Draft of new sessions
      
      * Reintroduce tuple impls
      
      * Move staking module to new session API
      
      * More work on staking and grandpa.
      
      * Use iterator to avoid cloning and tuple macro
      
      * Make runtime build again
      
      * Polish the OpaqueKeys devex
      
      * Move consensus logic into system & aura.
      
      * Fix up system module
      
      * Get build mostly going. Stuck at service.rs
      
      * Building again
      
      * Update srml/staking/src/lib.rs
      
      Co-Authored-By: default avatarDemiMarie-parity <[email protected]>
      
      * Refactoring out Consensus module, AuthorityIdOf, &c.
      
      * Refactored out DigestItem::AuthoritiesChanged. Building.
      
      * Remove tentative code
      
      * Remove invalid comment
      
      * Make Seal opaque and introduce nice methods for handling opaque items.
      
      * Start to use proper digest for Aura authorities tracking.
      
      * Fix up grandpa, remove system::Raw/Log
      
      * Refactor Grandpa to use new logging infrastructure.
      
      Also make authorityid/sessionkey static. Switch over to storing
      authorities in a straight Vec.
      
      * Building again
      
      * Tidy up some AuthorityIds
      
      * Expunge most of the rest of the AuthorityKey confusion.
      
      Also, de-generify Babe and re-generify Aura.
      
      * Remove cruft
      
      * Untangle last of the `AuthorityId`s.
      
      * Sort out finality_tracker
      
      * Refactor median getting
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarRobert Habermeier <[email protected]>
      
      * Session tests works
      
      * Update core/sr-primitives/src/generic/digest.rs
      
      Co-Authored-By: default avatarDemiMarie-parity <[email protected]>
      
      * Session tests works
      
      * Fix for staking from @dvc94ch
      
      * log an error
      
      * fix test runtime build
      
      * Some test fixes
      
      * Staking mock update to new session api.
      
      * Fix build.
      
      * Move OpaqueKeys to primitives.
      
      * Use on_initialize instead of check_rotate_session.
      
      * Update tests to new staking api.
      
      * fixup mock
      
      * Fix bond_extra_and_withdraw_unbonded_works.
      
      * Fix bond_with_little_staked_value_bounded_by_slot_stake.
      
      * Fix bond_with_no_staked_value.
      
      * Fix change_controller_works.
      
      * Fix less_than_needed_candidates_works.
      
      * Fix multi_era_reward_should_work.
      
      * Fix nominating_and_rewards_should_work.
      
      * Fix nominators_also_get_slashed.
      
      * Fix phragmen_large_scale_test.
      
      * Fix phragmen_poc_works.
      
      * Fix phragmen_score_should_be_accurate_on_large_stakes.
      
      * Fix phragmen_should_not_overflow.
      
      * Fix reward_destination_works.
      
      * Fix rewards_should_work.
      
      * Fix sessions_and_eras_should_work.
      
      * Fix slot_stake_is_least_staked_validator.
      
      * Fix too_many_unbond_calls_should_not_work.
      
      * Fix wrong_vote_is_null.
      
      * Fix runtime.
      
      * Fix wasm runtime build.
      
      * Update Cargo.lock
      
      * Fix warnings.
      
      * Fix grandpa tests.
      
      * Fix test-runtime build.
      
      * Fix template node build.
      
      * Fix stuff.
      
      * Update Cargo.lock to fix CI
      
      * Re-add missing AuRa logs
      
      Runtimes are required to know about every digest they receive ― they
      panic otherwise.  This re-adds support for AuRa pre-runtime digests.
      
      * Update core/consensus/babe/src/digest.rs
      
      Co-Authored-By: default avatarDemiMarie-parity <[email protected]>
      
      * Kill log trait and all that jazz.
      
      * Refactor staking tests.
      
      * Fix ci runtime wasm check.
      
      * Line length 120.
      
      * Make tests build again
      
      * Remove trailing commas in function declarations
      
      The `extern_functions!` macro doesn’t like them, perhaps due to a bug in
      rustc.
      
      * Fix type error
      
      * Fix compilation errors
      
      * Fix a test
      
      * Another couple of fixes
      
      * Fix another test
      
      * More test fixes
      
      * Another test fix
      
      * Bump runtime.
      
      * Wrap long line
      
      * Fix build, remove redundant code.
      
      * Issue to track TODO
      
      * Leave the benchmark code alone.
      
      * Fix missing `std::time::{Instant, Duration}`
      
      * Indentation
      
      * Aura ConsensusLog as enum
      bda86418
  13. Jun 12, 2019
  14. Jun 05, 2019
    • Kian Peymani's avatar
      Some benchmarks for phragmen (#2650) · a5964e40
      Kian Peymani authored
      * Add some benchmarks for phragmen
      
      * Fix dep. import.
      
      * Clean up with some macros.
      
      * more details.
      
      * Fix dual import.
      
      * Remove wrong assertions.
      
      * Add a few more.
      a5964e40
  15. May 29, 2019
  16. May 25, 2019
  17. May 22, 2019
    • Gavin Wood's avatar
      Remove `As` (#2602) · 3860d7c8
      Gavin Wood authored
      
      
      * Start to remove the `As` bound on `SimpleArtithmetic`
      
      This just introduces standard numeric bounds, assuming a minimum of
      `u32`. Also included is a saturating from/into trait allowing ergonomic
      infallible conversion when you don't care if it saturates.
      
      * Remove As from Balances trait
      
      * Remove As from Aura module
      
      * Remove As from Babe module
      
      * Expunge `As` from contract
      
      * Council module
      
      * Democracy
      
      * Finality tracker
      
      * Grandpa
      
      * First bit of indices
      
      * indices
      
      * Line lengths
      
      * session
      
      * system
      
      * Staking
      
      * Square up all other uses of As.
      
      * RHD update
      
      * Fix build/test
      
      * Remove As trait
      
      * line widths
      
      * Remove final As ref
      
      * Update srml/staking/src/lib.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update core/client/src/cht.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Update core/client/db/src/light.rs
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      
      * whitespace
      
      * Apply suggestions from code review
      
      Co-Authored-By: default avatarBastian Köcher <[email protected]>
      Co-Authored-By: default avatarAndré Silva <[email protected]>
      
      * Bring back u32 check for number on CLI
      3860d7c8
  18. 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
  19. 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
  20. Apr 23, 2019
  21. 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
  22. Apr 17, 2019
  23. 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
  24. Apr 04, 2019
  25. 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
  26. 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
  27. Mar 26, 2019
    • thiolliere's avatar
      improve docs (#2068) · 571d0943
      thiolliere authored
      
      
      * improve decl_storage instance doc
      
      * use decl_event doc accordignly
      
      * automate doc and while allow to extend it on event
      
      * some missed ones
      
      * Update srml/example/src/lib.rs
      
      Co-Authored-By: default avatarthiolliere <[email protected]>
      
      * Update srml/support/procedural/src/storage/transformation.rs
      571d0943
  28. Mar 25, 2019
  29. Mar 23, 2019
  30. 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
  31. 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
  32. 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
  33. Mar 13, 2019