1. Jun 29, 2020
  2. Jun 26, 2020
  3. Jun 25, 2020
  4. Jun 24, 2020
  5. Jun 21, 2020
  6. Jun 18, 2020
    • Wei Tang's avatar
      Pallet: Atomic Swap (#6349) · bd5ad9fd
      Wei Tang authored
      
      
      * Init atomic swap pallet
      
      * Implement module swap operations
      
      * Add successful swap test
      
      * Bump node spec_version
      
      * Fix storage name
      
      * Add ProofLimit parameter to prevent proof size being too large
      
      * Add missing events
      
      * Basic weight support
      
      * Add basic docs
      
      * Mark swap on claim
      
      This handles the additional case if `repatriate_reserved` fails.
      
      * Add additional expire handler
      
      * Update frame/atomic-swap/src/lib.rs
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      
      * Add docs on ProofLimit
      
      * Fix test
      
      * Return Ok(()) even when the transfer fails
      
      Because we need to mark the swap as claimed no matter what.
      
      * Remove retry logic
      
      It's overkill. Swap is about something being executed, not necessarily successful.
      Although there should be logic (reserve and unreserve) to make it so that both parties *believes*
      that the execution is successful.
      
      * succeed -> succeeded
      
      * Add docs on duration -- revealer should use duration shorter than counterparty
      
      * Missing trait type
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      bd5ad9fd
  7. Jun 17, 2020
  8. Jun 15, 2020
    • thiolliere's avatar
      Introduce in-origin filtering (#6318) · c2ad2727
      thiolliere authored
      
      
      * impl filter in origin
      
      * remove IsCallable usage. Breaking: utility::batch(root, calls) no longer bypass BasicCallFilter
      
      * rename BasicCallFilter -> BaseCallFilter
      
      * refactor code
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * remove forgotten temporar comment
      
      * better add suggestion in another PR
      
      * refactor: use Clone instead of mem::replace
      
      * fix tests
      
      * fix tests
      
      * fix tests
      
      * fix benchmarks
      
      * Make root bypass filter in utility::batch
      
      * fix unused imports
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      c2ad2727
  9. Jun 10, 2020
    • Shaopeng Wang's avatar
      "OR gate" for EnsureOrigin (#6237) · ccdac645
      Shaopeng Wang authored
      * 'OR gate' for EnsureOrigin.
      
      * Formatting.
      
      * More formatting.
      
      * Add docstring; Update 'Success' type.
      
      * Bump runtime impl_version.
      
      * Fix successful_origin.
      
      * Add either into std feature list.
      
      * Update docs.
      ccdac645
  10. Jun 09, 2020
  11. Jun 08, 2020
  12. Jun 06, 2020
  13. Jun 05, 2020
  14. Jun 02, 2020
  15. May 27, 2020
  16. May 26, 2020
  17. May 22, 2020
  18. May 21, 2020
    • Marcio Diaz's avatar
      Implement FixedPoint trait. (#5877) · 72386f60
      Marcio Diaz authored
      
      
      * Implement Fixed trait.
      
      * Fix tests
      
      * Fix tests
      
      * Fix tests 2
      
      * Address review comment regarding from_i129.
      
      * Remove precision by using log10() as suggested in review.
      
      * Add small comments.
      
      * Use checked versions + panic for ops::*.
      
      * Remove repeated test.
      
      * Uncomment test.
      
      * Remove casts.
      
      * Add more comments.
      
      * Add tests.
      
      * Panic on saturating_div_int
      
      * More tests.
      
      * More docs.
      
      * Saturating renames.
      
      * Fix to_bound doc.
      
      * Move some impl to trait.
      
      * Add range
      
      * Add macro pre.
      
      * More round() tests.
      
      * Delete confusion.
      
      * More impl to trait
      
      * Add doc for fixedpoint op.
      
      * Remove trailing spaces.
      
      * Suggested docs changes.
      
      * More tests and comments for roundings.
      
      * Some quickcheck tests.
      
      * Add missing panic, more test/comments.
      
      * Nits.
      
      * Rename.
      
      * Remove primitives-types import.
      
      * Apply review suggestions
      
      * Fix long lines and add some fuzz.
      
      * fix long line
      
      * Update fuzzer
      
      * Bump impl
      
      * fix warnings
      
      Co-authored-by: default avatarGavin Wood <[email protected]>
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      72386f60
    • Shawn Tabrizi's avatar
      Offences Weight for OnInitialize (#5961) · ac049a97
      Shawn Tabrizi authored
      
      
      * Weight accounting for on_offence.
      
      * Try to compute weight.
      
      * Guesstimate upper bounds on db read/writes for slashing
      
      * greater than or equal to
      
      * add new trait
      
      * Update mock.rs
      
      * Add basic weight test
      
      * one more test
      
      * Update frame/staking/src/lib.rs
      
      Co-authored-by: default avatarthiolliere <[email protected]>
      
      * Update frame/staking/src/lib.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      * Add test for offences queue
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      Co-authored-by: default avatarthiolliere <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      ac049a97
    • thiolliere's avatar
      Allow operational recovery path if on_initialize use fullblock. (#6089) · b50c3338
      thiolliere authored
      
      
      * note_preimage using operational
      
      * Update frame/democracy/src/lib.rs
      
      Co-authored-by: default avatarGavin Wood <[email protected]>
      b50c3338
    • Alexander Theißen's avatar
      Allow fee calculation to happen off-chain (#6076) · 9dd21b1e
      Alexander Theißen authored
      
      
      * Emit a PaymentParameters event once per block
      
      This contains per-block paramaters need to calculate
      fees off-chain.
      
      * Add WeightToFee trait
      
      * Add documentation to polynomial types
      
      * Ignore pseudo code snippet for doc tests
      
      * Use `Mul` implementation of Perbill
      
      * Add tests for WeightToFeePolynomial
      
      * Revert "Emit a PaymentParameters event once per block"
      
      This reverts commit 6c4763baff3d8179676a3c1660fe7063fd56a8ca.
      
      Co-authored-by: default avatarGavin Wood <[email protected]>
      9dd21b1e
  19. May 20, 2020
  20. May 18, 2020
  21. May 15, 2020
  22. May 14, 2020
  23. May 13, 2020
  24. May 07, 2020
    • Shawn Tabrizi's avatar
      Update System Weights (#5888) · b0d17b02
      Shawn Tabrizi authored
      
      
      * Update system weights
      
      * Use maximum block weight for scheduler
      
      * Update offences to use full block
      
      * Move weight inside if statement
      
      * Add one read to offences `on_initialize`
      
      * Delete factory test
      
      * Revert "Delete factory test"
      
      This reverts commit 8f95aacd63a028ef1b415185b45367b4140d86fd.
      
      * Revert "Add one read to offences `on_initialize`"
      
      This reverts commit 7df7ebc73625ed79b14086f13c247d4058ee87d6.
      
      * Revert "Move weight inside if statement"
      
      This reverts commit 87277d07913a7d1868eeee85ef4673f51ee4013b.
      
      * Revert "Update offences to use full block"
      
      This reverts commit 0bbe0ce18e9419b032157f7d37dea6481078cdc0.
      
      * Use scheduler in Sudo
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarAlexander Popiak <[email protected]>
      
      * Revert "Use scheduler in Sudo"
      
      This reverts commit 95bd2768dfea100bdf682cf4fe6c0f46e8e1f66e.
      
      * remove max extrinsic weight (it does nothing useful)
      
      * fix tests
      
      * introduce `sudo_unchecked_weight`
      
      * bump spec version
      
      * scheduler 80 percent of maximum
      
      * Update `set_changes_trie_config` weight
      
      * Update bin/node/runtime/src/lib.rs
      
      * Update frame/democracy/src/tests.rs
      
      * Update tests.rs
      
      * update based on feedback
      
      Co-authored-by: default avatarAlexander Popiak <[email protected]>
      b0d17b02
    • Shawn Tabrizi's avatar
      Extend Schedule Pallet for Root Scheduling/Canceling (#5907) · d8b7520a
      Shawn Tabrizi authored
      * Add root dispatch to scheduler
      
      * Move encode operation upwards
      
      * fix benchmark
      
      * extend extrinsics
      
      * add some clarifying comments
      
      * start to add benchmarking
      
      * finish weights
      
      * remove double encode
      
      * bump spec
      
      * Update weights
      
      * more accurate weights
      
      * bump base weight
      d8b7520a