1. Dec 07, 2021
    • Alexander Theißen's avatar
      Clean up `pallet-contracts` documentation (#10438) · 35b82f91
      Alexander Theißen authored
      * Update CHANGELOG.md
      
      * Remove COMPLEXITY.md
      35b82f91
    • Alexander Theißen's avatar
      contracts: Add storage deposits (#10082) · 68634766
      Alexander Theißen authored
      
      
      * Frame no longer needs to be mutable (refactoring artifact)
      
      * Remove Contract/Tombstone deposit
      
      * Add StorageMeter
      
      * cargo fmt
      
      * Fix weight annotation
      
      * 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
      
      * Simplify keep check for contract accounts
      
      - Make sure that the "base deposit" for each contract >= ed
      - Remove now obsolete checks when sneding away free balance
      
      * Remove unused imports and functions
      
      * Rename storage_limit to storage_deposit_limit
      
      * cargo fmt
      
      * Fix typo
      
      Co-authored-by: default avatarMichael Müller <[email protected]>
      
      * Finish up rename of storage_limit
      
      * Fix rpc tests
      
      * Make use of `StorageDepositLimitTooHigh`
      
      * Add tests and fix bugs discovered by tests
      
      * Add storage migration
      
      * Don't use u128 in RPC
      
      * Fix weight of migration
      
      * Rename `endowment` to `value`
      
      * Fix bug where contract couldn't get funded by a storage deposit
      
      - Make sure that contract gets funded from deposits before value is transferred
      - Don't reserve value at origin because otherwise funding isn't possible
      	- Just transfer free balance and reserve it after the transfer
      - When refunding make sure that this refund can't dust the contract
      	- Can only happen after a runtime upgrade where costs where upped
      - Add more tests
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarAndrew Jones <[email protected]>
      
      * Remove unused `fn storage_meter`
      
      * Fix copy pasta doc error
      
      * Import `MaxEncodeLen` from codec
      
      * Beautify RPC trait bounds
      
      * Add re-instrument behaviour to dispatchable doc
      
      * Make sure a account won't be destroyed a refund after a slash
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarAndrew Jones <[email protected]>
      
      * Update `Storage::write` docs
      
      * Improve doc
      
      * Remove superflous conditional
      
      * Typos
      
      * Remove superflous clone (refactoring artifact)
      
      * Apply suggestions from code review
      
      Co-authored-by: default avatarAndrew Jones <[email protected]>
      
      Co-authored-by: default avatarParity Bot <[email protected]>
      Co-authored-by: default avatarMichael Müller <[email protected]>
      Co-authored-by: default avatarAndrew Jones <[email protected]>
      68634766
    • Ayevbeosa Iyamu's avatar
      Used CountedStorageMap in pallet-staking (#10233) · 56fb1cfb
      Ayevbeosa Iyamu authored
      
      
      * Removed counters and used CountedStorageMap instead.
      
      * Little refactoring
      
      * Update frame/staking/src/migrations.rs
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      
      * Removed redundant code to update counter for validator & nominator.
      
      * Removed redundant code to update counter for validator & nominator.
      
      * Removed unreachable code to inject the hashed prefix for nominator & validator.
      
      * Removed redundant check for nominator & validator count.
      
      * Generated `fn prefix_hash` for `CountedStorageMap`.
      
      * Applied changes from `cargo fmt`
      
      * Possible correct implementation of migration code
      
      * Implemented fn module_prefix, storage_prefix and prefix_hash.
      
      * Removed counted_map.rs
      
      * Renamed `fn storage_prefix` to `storage_counter_prefix`.
      
      * Update frame/support/src/storage/types/counted_map.rs
      
      * Update frame/bags-list/remote-tests/src/snapshot.rs
      
      * Update frame/support/src/storage/types/counted_map.rs
      
      * Fixed errors.
      
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      Co-authored-by: default avatarGuillaume Thiolliere <[email protected]>
      56fb1cfb
  2. Dec 06, 2021
  3. Dec 05, 2021
    • wigy's avatar
      Authentication of PeerIds in authority discovery records (#10317) · 5fd7fdcf
      wigy authored
      
      
      * Consolidating test and production code
      
      * Signing/verifying authority discovery records with PeerId
      
      Unsigned records cannot be rejected yet, they just produce
      a warning in the log.
      
      * Upgrading to libp2p 0.40
      
      * libp2p::identity and sp_core::crypto Ed25519 are compatible
      
      * Rejecting authority records unsigned by peer id can be configured
      
      * Fixes based on review comments
      
      * No command-line argument needed
      
      * info was still too much spam in the logs
      
      * Added tests for both strict and loose validation
      
      * Fixing based on review comments
      
      * Pierre preferred a signing method
      
      * Ooops, I need to slow down
      
      * Update bin/node/cli/src/service.rs
      
      * Reexport libp2p crypto used in sc-network
      
      * Added proto3 compatibility tests. And import noise.
      
      Co-authored-by: default avatarBastian Köcher <[email protected]>
      5fd7fdcf
  4. Dec 04, 2021
  5. Dec 03, 2021
  6. Dec 02, 2021
    • Nazar Mokrynskyi's avatar
      Account for transaction priority when enforcing limits (#10388) · 798e01bf
      Nazar Mokrynskyi authored
      * Account for transaction priority when enforcing limits
      
      * Improve `enforce_limits` comment
      
      * Explanation comment on why comparison impl is not used for limit enforcement
      798e01bf
    • Kian Paimani's avatar
      Minimum commission for validators (#10347) · e9a7dc3c
      Kian Paimani authored
      
      
      * Minimum commission for validators
      
      * rename
      
      * Fix benchmakrs
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      * Update frame/staking/src/pallet/mod.rs
      
      * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_staking --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/staking/src/weights.rs --template=./.maintain/frame-weight-template.hbs
      
      Co-authored-by: default avatarParity Bot <[email protected]>
      Co-authored-by: default avatarShawn Tabrizi <[email protected]>
      e9a7dc3c
  7. Dec 01, 2021
  8. Nov 30, 2021
    • Enoch Chejieh's avatar
      Add pallet names to Events (#10296) · d58aeb04
      Enoch Chejieh authored
      * chore: add pallet names to events
      
      * chore: add pallet names to events
      
      * chore: add pallet names to events
      
      * chore: add pallet names to events
      
      * chore: add pallet names to events
      
      * chore: add pallet names to events
      
      * chore: add pallet names to events
      
      * chore: add pallet names to events
      
      * chore: add pallet names to events
      
      * chore: add pallet names to events
      
      * chore: add pallet names to events
      
      * chore: add pallet names to events
      
      * chore: add pallet names to events
      
      * chore: add pallet names to events
      
      * chore: formatted pallet name changes in events
      
      * chore: formatted pallet name changes in events
      
      * chore: formatted pallet name changes in events
      
      * chore: formatted pallet name changes in events
      
      * chore: formatted pallet name changes in events
      
      * chore: formatted pallet name changes in events
      
      * chore: formatted pallet name changes in events
      
      * chore: formatted pallet name changes in events
      
      * chore: formatted pallet name changes in events
      
      * fix: add fix to tests for event variants
      
      * chore: modified comments for event variants
      
      * chore: modified comments for event variants
      
      * chore: modified comments for event variants
      
      * chore: modified comments for event variants
      
      * chore: modified system pallet event variants
      
      * chore: modified system pallet event variants
      
      * chore: modified system pallet event variants
      
      * chore: modified system pallet event variants
      
      * chore: modified system pallet event variants
      
      * chore: modified system pallet event variants
      
      * chore: modified system pallet event variants
      
      * chore: modified system pallet event variants
      
      * chore: modified system pallet event variants
      
      * chore: updated transaction-storage pallet event variants
      
      * chore: updated transaction-storage pallet event variants
      
      * chore: formatted contracts pallet
      
      * chore: update treasury event variants
      d58aeb04
    • zjb0807's avatar
      Add runtime-benchmarks for frame-benchmarking (#10324) · b5ed6468
      zjb0807 authored
      * update frame/benchmarking/src/baseline.rs
      
      * add runtime-benchmarks feature
      
      * add runtime-benchmarks for frame-benchmarking
      
      * update frame-benchmarking/runtime-benchmarks
      
      * trigger GitHub actions
      b5ed6468
    • Joshy Orndorff's avatar
      Add `vote` and `seconded` events to Democracy pallet. (#10352) · a01004e1
      Joshy Orndorff authored
      
      
      * add the events
      
      * spec_version
      
      * Update bin/node/runtime/src/lib.rs
      
      Co-authored-by: default avatarKian Paimani <[email protected]>
      
      Co-authored-by: default avatarAlan Sapede <[email protected]>
      Co-authored-by: default avatarKian Paimani <[email protected]>
      a01004e1
  9. Nov 29, 2021
  10. Nov 28, 2021
  11. Nov 26, 2021
  12. Nov 25, 2021
    • Andreas Doerr's avatar
      `BEEFY` add tests for rounds (#10328) · f12e22a6
      Andreas Doerr authored
      * new_rounds()
      
      * WIP
      
      * test add_vote()
      
      * test drop()
      
      * learn  to spell
      
      * go get some coffee
      
      * cargo fmt
      
      * lump everythings together again
      f12e22a6
    • Shawn Tabrizi's avatar
      REAL fix for `min-square` for `--steps=1 --repeats=1` (#10323) (#10369) · a33b7c2e
      Shawn Tabrizi authored
      * Revert "frame-benchmarking: Fix `min-square` for `--steps=1` (#10323)"
      
      This reverts commit 2d0e858b.
      
      * actual fix
      a33b7c2e
    • Roman's avatar
      Bump libp2p to 0.40.0 (#10035) · c5ae5190
      Roman authored
      * Bump libp2p to 0.40.0-rc.1
      
      * Fix PingFailure import
      
      * Reduce the number of compilation errors (this is a FIXME commit)
      
      * Bump libp2p to 0.40.0-rc.2
      
      * Fix sc-network::Behaviour to inject events into fields
      
      * Fix some NetworkBehaviourAction types
      
      * More fixes
      
      * More fixes
      
      * More fixes
      
      * Fix DiscoveryBehaviour
      
      * Fix PeerInfoBehaviour
      
      * Fix RequestResponsesBehaviour
      
      * Fix RequestResponsesBehaviour
      
      * Fix Notifications
      
      * Fix NetworkWorker
      
      * Fix Behaviour
      
      * Please borrowchk
      
      * Please borrowchk
      
      * Please borrowchk
      
      * Fix fmt
      
      * Cover all cases in matches
      
      * Fix some clippy warnings
      
      * Fix into_peer_id -> to_peer_id
      
      * Fix some warnings
      
      * Fix some inject_dial_failure FIXMEs
      
      * Fix DiscoveryBehaviour::inject_dial_failure
      
      * Fix RequestResponsesBehaviour::inject_dial_failure
      
      * Fix the order of inject_connection_closed PeerInfoBehaviour events
      
      * Make KademliaEvent with filtering unreachable
      
      * Fix Notifications::inject_dial_failure
      
      * Use concurrent_dial_errors in NetworkWorker
      
      * Remove commented-out RequestResponsesBehaviour::inject_addr_reach_failure
      
      * Fix tests
      
      * Dont report new PendingConnectionError and DialError variants to metrics
      
      * Bump libp2p to 0.40.0
      
      * Add fn inject_listen_failure and inject_address_change
      
      * Review fixes
      c5ae5190
    • Pierre Krieger's avatar
  13. Nov 24, 2021
  14. Nov 23, 2021
    • Alexander Samusev's avatar
      [ci] Add ssh token for publishing gh-pages (#10338) · 67cd32f7
      Alexander Samusev authored
      * [ci] Added ssh token for publishing gh-pages
      
      * changed ssh commands for gh-pages
      
      * return github_token back to vault secrets
      
      * check simnet-tests-quick without vault secrets
      
      * remove vault secrets from simnet jobs
      67cd32f7
    • Xavier Lau's avatar
      Support MMR Pruning (#9700) · f9122a87
      Xavier Lau authored
      
      
      * Use `0.3.2`
      
      * Replace `u64` with `NodeIndex`
      
      * Fix Typo
      
      * Add Pruning Logic
      
      * Fix Some Tests
      
      * Remove Comment
      
      * Log Only Under STD
      
      * Return while No Element to Append
      
      * Optimize Pruning Algorithm
      
      * Update Doc
      
      * Update Doc
      
      * Zero Copy Algorithm
      
      * Import Missing Type
      
      * Fix Merge Mistake
      
      * Import Missing Item
      
      * Make `verify` Off-Chain
      
      * `cargo fmt`
      
      * Avoid using NodeIndex in incorrect places.
      
      * Simplify pruning.
      
      * Format
      
      Co-authored-by: default avatarTomasz Drwięga <[email protected]>
      f9122a87
    • thiolliere's avatar
      remove unused file (#10343) · 76737891
      thiolliere authored
      76737891