Skip to content
  1. May 28, 2020
    • Sergey Pepyakin's avatar
      pallet-contracts: State rent fixes (#6147) · c8fe8b53
      Sergey Pepyakin authored
      
      
      * Don't store the storage size offset in the contract itself.
      
      * Clean the AccountDb code a bit
      
      * Use `storage_size: 0` when creating AliveContractInfo
      
      * Count empty storage items.
      
      * Update frame/contracts/src/account_db.rs
      
      Co-authored-by: default avatarNikolay Volf <[email protected]>
      
      * Use more clear wording.
      
      Co-authored-by: default avatarAlexander Theißen <[email protected]>
      
      * Change the order of decrement and increment for storage size
      
      Co-authored-by: default avatarNikolay Volf <[email protected]>
      Co-authored-by: default avatarAlexander Theißen <[email protected]>
      c8fe8b53
    • Alexander Theißen's avatar
      Make post dispatch fee consistent with a direct calculation (#6165) · c672cce4
      Alexander Theißen authored
      * Make post dispatch fee consistent with a direct calculation
      
      * Remove unnecessary `saturated_into` calls
      
      * Add test with negative multipliers
      
      * Added regression test
      
      * Test improvements
      c672cce4
    • Bernhard Schuster's avatar
      offchain storage lock (#6010) · 95d73994
      Bernhard Schuster authored
      
      
      * feat/offchain/storage: add remove interface method
      
      * feat/offchain/storeage: add remote to StorageValueRef
      
      * feat/offchain/storage: add storage lock
      
      * fix/review: Apply suggestions from code review
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
      
      * refactor/offchain/storage/lock: introduce `Lockable` trait part 1 of 2
      
      * chore/offchain/rename: _remove -> clean
      
      * feat/offchain/storage/lock: add TimeAndBlock based part 2 of 2
      
      * fix/offchain/storage/lock: block and time expiry must be && not ||
      
      * chore/offchain/storage: minor fmt doc comments
      
      * doc/comment: prefer markdown emphasis over CAPS
      
      * doc/comment: rewrap multiline module level docs
      
      * doc/comment: rephrase
      
      * impl sleep_until and use the actual time for the test env
      
      * feat/test: add more tests, ignore some sample impl doctests
      
      * fix/review: Apply suggestions from code review
      
      Co-authored-by: default avatarNikolay Volf <[email protected]>
      
      * doc/comment: better description
      
      * fix/review: Apply suggestions from code review
      
      Co-authored-by: default avatarNikolay Volf <[email protected]>
      
      * chore/storage: lifetime cleanup
      
      * fix/cleanup: trait bounds, cargo-spellcheck + extra explanations
      
      * fix/doc: periods +-
      
      * fix/review: Apply suggestions from code review
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      
      * cleanup: remove explicit lifetime bound, copy -> clone
      
      * fix/review: make trait Lockable contain only static, try_lock should not return Err(Option<L>),
      
      * chore/lifetimes: remove a couple of lifetime bounds which the compiler can figure out
      
      * refactor: migrate to an instant based
      
      * fix/feedback: fix, reduce, rename, docs update pending
      
      * docs/reword: adjust to changed code
      
      * fix/offchain/testing: timestamp and sleep_until shall not block
      
      * chore/lines: lines must < 100 chars
      
      * fix/docs: add missing pub field doc comments
      
      * refactor/x: try_lock does not need to return an Option<_>
      
      * refactor/simplify: a better way of waiting for a lock to resolve
      
      * docs: consistency
      
      * fix/line: < 100
      
      * fix/doctest/use: avoid crate::
      
      * fix/doctest: *
      
      * fix/review: remove unused trait bound
      
      * fix/review: pretty by const fn
      
      * fix/review: reduce default timeout to 20s
      
      * docs: grammar
      
      * fix/review: add with_block_deadline
      
      * doc: revamp BlockNumberProvider documentation to be less frame centric
      
      * chore: fmt
      
      * docs: add missing doc comment
      
      Co-authored-by: default avatarBernhard Schuster <[email protected]>
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      Co-authored-by: default avatarPeter Goodspeed-Niklaus <[email protected]>
      Co-authored-by: default avatarNikolay Volf <[email protected]>
      95d73994
    • Gavin Wood's avatar
      Update locks on upgrade (#6172) · 1d93746b
      Gavin Wood authored
      1d93746b
    • Kian Paimani's avatar
      Fix Election when ForceNone V1 (#6166) · ecccf469
      Kian Paimani authored
      
      
      * Clean
      
      * Better doc
      
      * Better better doc
      
      * Again better doc
      
      * Fix indemt
      
      * Update frame/staking/src/lib.rs
      
      * Update frame/staking/src/lib.rs
      
      * Better test
      
      Co-authored-by: default avatarGavin Wood <[email protected]>
      ecccf469
  2. May 27, 2020
  3. May 26, 2020
  4. May 25, 2020
  5. May 23, 2020
  6. May 22, 2020
  7. May 21, 2020
  8. May 20, 2020
  9. May 19, 2020
  10. May 18, 2020
  11. May 16, 2020
  12. May 15, 2020
  13. May 14, 2020
  14. May 13, 2020
    • emostov's avatar
      Add tests to Sudo Pallet (#5963) · 71da6e96
      emostov authored
      
      
      * transition treasury to configurable moduleids
      
      * make election module id configurable
      
      * convert runtime and pallet to accept module id config elections-phragmen
      
      * add ModuleId to evm pallet
      
      * change society pallet to configurable module id
      
      * delete commented out module_id
      
      * fix merge residual compile errors
      
      * setup initial mock structure
      
      * establish privelleged function test
      
      * save progress
      
      * first pass new_test_ext
      
      * test sudo to make sure it error when non-root
      
      * add set keys tests
      
      * fix unused result from set_key call
      
      * remove unused imports warnings
      
      * pre master merge
      
      * Expose BlockHashCount on system metadata constants (#5960)
      
      * squash
      
      * fix whitespace
      
      * spelling and whitespace
      
      * a single pesky space
      
      * add logger module to mock
      
      * add logger dispatch to privlleged function
      
      * sub logger in for dummy functions
      
      * create first of several event tests
      
      * first pass at test coverage for events
      
      * comment house keeping
      
      * spell check
      
      * Expose BlockHashCount on system metadata constants (#5960)
      
      * establish privelleged function test
      
      * save progress
      
      * first pass new_test_ext
      
      * test sudo to make sure it error when non-root
      
      * add set keys tests
      
      * fix unused result from set_key call
      
      * remove unused imports warnings
      
      * pre master merge
      
      * squash
      
      * fix whitespace
      
      * spelling and whitespace
      
      * a single pesky space
      
      * add logger module to mock
      
      * add logger dispatch to privlleged function
      
      * sub logger in for dummy functions
      
      * create first of several event tests
      
      * first pass at test coverage for events
      
      * comment house keeping
      
      * implement last_seen_account storage item, event, and, logger function
      
      * create vec account log and use in tests
      
      * allow weight to be passed into account log
      
      * refactor all log dispatchables
      
      * save progress
      
      * complete initial transition to refactored logger
      
      * cleaning
      
      * fix merge residual compile errors
      
      setup initial mock structure
      
      establish privelleged function test
      
      save progress
      
      first pass new_test_ext
      
      test sudo to make sure it error when non-root
      
      add set keys tests
      
      fix unused result from set_key call
      
      parent 5151bd784545ededa6153052a93fcc309f7b3885
      author zeke <[email protected]> 1589076740 -0700
      committer zeke <[email protected]> 1589350443 -0700
      
      parent 5151bd784545ededa6153052a93fcc309f7b3885
      author zeke <[email protected]> 1589076740 -0700
      committer zeke <[email protected]> 1589350442 -0700
      
      remove unused imports warnings
      
      fix unused result from set_key call
      
      remove unused imports warnings
      
      pre master merge
      
      Expose BlockHashCount on system metadata constants (#5960)
      
      squash
      
      fix whitespace
      
      spelling and whitespace
      
      a single pesky space
      
      add logger module to mock
      
      add logger dispatch to privlleged function
      
      sub logger in for dummy functions
      
      create first of several event tests
      
      first pass at test coverage for events
      
      comment house keeping
      
      pre master merge
      
      Expose BlockHashCount on system metadata constants (#5960)
      
      Expose BlockHashCount on system metadata constants (#5960)
      
      fix whitespace
      
      spell check
      
      implement last_seen_account storage item, event, and, logger function
      
      create vec account log and use in tests
      
      allow weight to be passed into account log
      
      refactor all log dispatchables
      
      save progress
      
      complete initial transition to refactored logger
      
      cleaning
      
      * clean up
      
      * cleaning
      
      * condense non_privileged logs into 1 fn
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarJaco Greeff <[email protected]>
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      71da6e96
  15. May 12, 2020