Skip to content

Commit

Permalink
Staking Early Optimizations and Sudo Dispatchable Tests (#489)
Browse files Browse the repository at this point in the history
* impl changes

* root dispatchable tests and NoWritingSameValue error type

* add some log tracing for common error paths and order dependencies in alphabetical order

* min balance is 0 on moonbeam so rm unnecessary min balance gets

* fix docs and rename Underflow error to CannotBondLessGEQTotalBond

* bump versions
  • Loading branch information
4meta5 authored Jun 9, 2021
1 parent c1f7ace commit c1536fe
Show file tree
Hide file tree
Showing 5 changed files with 501 additions and 367 deletions.
3 changes: 2 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions pallets/parachain-staking/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,37 +1,38 @@
[package]
name = "parachain-staking"
version = "1.0.0"
version = "1.0.1"
authors = ["PureStake"]
edition = "2018"
description = "parachain staking pallet for collator selection and reward distribution"

[dependencies]
nimbus-primitives = { git = "https://github.com/purestake/cumulus", branch = "nimbus-polkadot-v9.3", default-features = false }
frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.3", default-features = false, optional = true }
frame-support = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.3", default-features = false }
frame-system = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.3", default-features = false }
log = "0.4"
nimbus-primitives = { git = "https://github.com/purestake/cumulus", branch = "nimbus-polkadot-v9.3", default-features = false }
pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.3", default-features = false }
parity-scale-codec = { version = "2.0.0", default-features = false, features = ["derive"] }
serde = { version = "1.0.101", optional = true }
sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.3", default-features = false }
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.3", default-features = false }
substrate-fixed = { default-features = false, git = "https://github.com/encointer/substrate-fixed" }
frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.3", default-features = false, optional = true }

[dev-dependencies]
sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.3", default-features = false }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.3", default-features = false }
sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.3", default-features = false }

[features]
default = ["std"]
std = [
"nimbus-primitives/std",
"frame-support/std",
"frame-system/std",
"frame-benchmarking/std",
"nimbus-primitives/std",
"pallet-balances/std",
"parity-scale-codec/std",
"serde",
"sp-std/std",
"sp-runtime/std",
"sp-std/std",
]
runtime-benchmarks = ["frame-benchmarking"]
Loading

0 comments on commit c1536fe

Please sign in to comment.