Skip to content
  1. Feb 08, 2022
    • S E R A Y A's avatar
      fixed regression in inline docs (#10819) · 1b29ce00
      S E R A Y A authored
      1b29ce00
    • Shawn Tabrizi's avatar
      Add Storage Info to Various Pallets (#10810) · f6f82d87
      Shawn Tabrizi authored
      
      
      * atomic swap
      
      * bounties
      
      * bounties fmt
      
      * gilt
      
      * indices
      
      * nicks
      
      * randomness-collective-flip
      
      * recovery
      
      * reuse maxapprovals
      
      * Update tests.rs
      
      * Update frame/randomness-collective-flip/src/lib.rs
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * use the correct bound
      
      * complete recovery
      
      * use `bounded_vec` macro
      
      * Update tests.rs
      
      * transaction payment
      
      * uniques
      
      * mmr
      
      * example offchain worker
      
      * beefy-mmr
      
      * Update frame/recovery/src/lib.rs
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * Use BoundedVec instead of a type-parameterized BoundedString
      
      * cargo fmt
      
      * Update frame/atomic-swap/src/lib.rs
      
      * use config const
      
      * Update lib.rs
      
      * update mel_bound
      
      * fmt
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      Co-authored-by: default avatarKeith Yeung <[email protected]>
      f6f82d87
    • Yarik Bratashchuk's avatar
      `seal_delegate_call` api function (support for library contracts) (#10617) · d14e1c64
      Yarik Bratashchuk authored
      * seal_call_code implementation
      
      - tests
      - benchmark
      
      * Addressing @xgreenx's comments
      
      * Fix test-linux-stable-int
      
      * Rename seal_call_code to seal_delegate_call
      
      * Pass value unchanged into lib contract
      
      * Address @athei's comments
      
      - whitespace .wat issues
      - wrong/missing .wat comments
      - redundant .wat calls/declarations
      
      - change order of functions (seal_delegate_call right after seal_call)
        in decls, tests, benchmark
      - fix comments, move doc comments to enum variants
      - remove unnecessary empty lines
      
      - rename runtime cost DelegateCall to DelegateCallBase
      - do not set CallFlags::ALLOW_REENTRY for delegate_call
      
      * Do not pass CallFlags::ALLOWS_REENTRY for delegate_call
      
      * Update comment for seal_delegate_call and CallFlags
      
      * Addressing @athei's comments (minor)
      
      * Allow reentry for a new frame after delegate_call (revert)
      
      * Same seal_caller and seal_value_transferred for lib contract
      
      - test
      - refactor frame args due to review
      - logic for seal_caller (please review)
      
      * Put caller on frame for delegate_call, minor fixes
      
      * Update comment for delegate_call
      
      * Addressing @athei's comments
      
      * Update weights generated by benchmark
      
      * Improve comments
      
      * Address @HCastano's comments
      
      * Update weights, thanks @joao-paulo-parity
      
      * Improve InvalidCallFlags error comment
      d14e1c64
    • Qinxuan Chen's avatar
  2. Feb 07, 2022
  3. Feb 06, 2022
    • Gavin Wood's avatar
      Referenda and Conviction Voting pallets (#10195) · a6891951
      Gavin Wood authored
      * Initial draft of new referendum state machine.
      
      * Docs
      
      * Fixes
      
      * Fixes
      
      * Add conviction-voting pallet
      
      * Basic build
      
      * Building
      
      * Some TODOs
      
      * Tests building
      
      * Add missing file
      
      * Basic lifecycle test
      
      * Add couple of tests
      
      * Another test
      
      * More tests
      
      * Fixes
      
      * Fixes
      
      * Formatting
      
      * Fixes
      
      * Tests
      
      * Fixes
      
      * Fixes
      
      * More tests
      
      * Formatting
      
      * First few benchmarks
      
      * First few benchmarks
      
      * Defered queue servicing
      
      * More testing
      
      * Benchmarks
      
      * Fiddly benchmark
      
      * Final nudge benchmarks
      
      * Formatting
      
      * Formatting
      
      * Finished up benchmarks
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_referenda --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/referenda/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * Events finished
      
      * Missing file
      
      * No GenesisConfig for Referenda
      
      * Formatting
      
      * Docs
      
      * Docs
      
      * Docs
      
      * Per-class conviction voting
      
      * New test & mock utils
      
      * More tests
      
      * Tests
      
      * Tests finished 🎉
      
      
      
      * Benchmarking stuff
      
      * Fixes
      
      * Test harness
      
      * Test harness
      
      * Benchmarks for Conviction=Voting
      
      * Benchmarking pipeline complete
      
      * Docs
      
      * Formatting
      
      * Remove unneeded warning
      
      * Fix UI tests
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_conviction_voting --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/conviction-voting/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * Docs
      
      * Update frame/conviction-voting/src/vote.rs
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      
      * update sp-runtime version
      
      * MEL Fixes for Referenda and Conviction Voting (#10725)
      
      * free maxencodedlen
      
      * more maxencodedlen
      
      * more MEL
      
      * more mel
      
      * disable storage info
      
      * More Referenda Patches (#10760)
      
      * basic fixes
      
      * fix benchmarking
      
      * fix license
      
      * prevent panic in curve math
      
      * fmt
      
      * bump crate versions
      
      * Update mock.rs
      
      Co-authored-by: default avatarParity Bot <[email protected]>
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      a6891951
  4. Feb 05, 2022
  5. Feb 04, 2022
  6. Feb 03, 2022
  7. Feb 02, 2022
  8. Feb 01, 2022
  9. Jan 31, 2022
  10. Jan 28, 2022
  11. Jan 27, 2022
    • Davide Galassi's avatar
      Add stale branches heads to finality notifications (#10639) · 7f3bb8d0
      Davide Galassi authored
      
      
      * Add stale branches heads to finality notifications
      
      Warning. Previous implementation was sending a notification for
      each block between the previous (explicitly) finalized block and
      the new finalized one (with an hardcoded limit of 256).
      
      Now finality notification is sent only for the new finalized head and it
      contains the hash of the new finalized head, new finalized head header,
      a list of all the implicitly finalized blocks and a list of stale
      branches heads (i.e. the branches heads that are not part of the
      canonical chain anymore).
      
      * Add implicitly finalized blocks list to `ChainEvent::Finalized` message
      
      The list contains all the blocks between the previously finalized block
      up to the parent of the currently finalized one, sorted by block number.
      
      `Finalized` messages handler, part of the `MaintainedTransactionPool`
      implementation for `BasicPool`, still propagate full set of finalized
      blocks to the txpool by iterating over implicitly finalized blocks list.
      
      * Rust fmt
      
      * Greedy evaluation of `stale_heads` during finalization
      
      * Fix outdated assumption in a comment
      
      * Removed a test optimization that is no more relevant
      
      The loop was there to prevent sending to
      `peer.network.on_block_finalized` the full list of finalized blocks.
      
      Now only the finalized heads are received.
      
      * Last finalized block lookup not required anymore
      
      * Tests for block finality notifications payloads
      
      * Document a bit tricky condition to avoid duplicate finalization notifications
      
      * More idiomatic way to skip an iterator entry
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Cargo fmt iteration
      
      * Typo fix
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Fix potential failure when a finalized orphan block is imported
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      7f3bb8d0
    • Kian Paimani's avatar
      better way to resolve `Phase::Emergency` via governance (#10663) · 498c3a5e
      Kian Paimani authored
      
      
      * better way to resolve Phase::Emergency via governance
      
      * Update frame/election-provider-multi-phase/src/lib.rs
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      
      * review grumbles
      
      * Update frame/election-provider-support/src/onchain.rs
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      
      * revert usize -> u32
      
      Co-authored-by: default avatarZeke Mostov <[email protected]>
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      498c3a5e
  12. Jan 26, 2022
  13. Jan 25, 2022
  14. Jan 24, 2022
    • Alexander Theißen's avatar
      Pre-Charge max size when contracts access storage (#10691) · dc45201a
      Alexander Theißen authored
      
      
      * Fix seal_get_storage
      
      * Fix seal_take_storage
      
      * Add more benchmarks
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * Fix seal_set_storage
      
      * Fix seal_contains_storage and seal_clear_storage
      
      * Fix benchmarks
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * Get rid of mem::size_of in benchmarks
      
      * Fix up code loading
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarHernando Castano <[email protected]>
      
      * Fix test to call same function twice
      
      * Replaced u32::MAX by SENTINEL const
      
      * Fix seal_contains_storage benchmark
      
      * cargo run --quiet --profile=production  --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      Co-authored-by: default avatarParity Bot <[email protected]>
      Co-authored-by: default avatarHernando Castano <[email protected]>
      dc45201a
    • Qinxuan Chen's avatar
      use clap3 instead of structopt (#10632) · e327b734
      Qinxuan Chen authored
      
      
      * use clap3 instead of structopt
      
      Signed-off-by: default avatarkoushiro <[email protected]>
      
      * format
      
      Signed-off-by: default avatarkoushiro <[email protected]>
      
      * update ss58-registry and revert some nits
      
      Signed-off-by: default avatarkoushiro <[email protected]>
      
      * Fix clippy and doc
      
      Signed-off-by: default avatarkoushiro <[email protected]>
      
      * update clap to 3.0.7
      
      Signed-off-by: default avatarkoushiro <[email protected]>
      
      * Apply review suggestions
      
      Signed-off-by: default avatarkoushiro <[email protected]>
      
      * remove useless option long name
      
      Signed-off-by: default avatarkoushiro <[email protected]>
      
      * cargo fmt
      
      Signed-off-by: default avatarkoushiro <[email protected]>
      e327b734
    • Kian Paimani's avatar
      Proposal: Defensive trait for infallible frame operations (#10626) · d1ff02d3
      Kian Paimani authored
      
      
      * add a blueprint of how defensive traits could look like
      
      * add something for arithmetic as well
      
      * add some use cases in different pallets
      
      * some build fixing
      
      * Some new stuff and examples
      
      * Fix deadly bug
      
      * add more doc.
      
      * undo faulty change to assets pallet
      
      * Update frame/support/src/traits/misc.rs
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      
      * some review comments
      
      * remove draft comment
      
      * Fix ident test
      
      * Fix proxy tests as well
      
      * a few new ideas
      
      * Fix build
      
      * Fix doc
      
      Co-authored-by: default avatarOliver Tale-Yazdi <[email protected]>
      d1ff02d3