mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 04:41:03 +00:00
edd81bf6a5
* TODOs * Add auctions.rs, comment on changes needed. * Remove cruft from slots * Remove more from auctions.rs * More logic drafting in slots. * More logic in slots.rs * patch some errors * more fixes * last nit * Cleanups in slots.rs * Cleanups in slots.rs * patches * make build * crowdloan to new api * auction compile * Use ParaId instead of FundIndex in Crowdloan (#2303) * use paraid instead of fundindex * Update crowdloan.rs * check caller is manager * Auction tests and fix build warnings. * Configurable origin for initiating auctions * Remove on_finalize * #2303 (manual merge) * Tests for Slots * some registrar tests * Apply suggestions from code review Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com> * Update runtime/common/src/slots.rs Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com> * Slots uses Registrar for CurrentChains * swap works test * on swap impl * traitify parachain cleanup * explicit lifecycle tracking for paras * initial implementation of lifecycles and upgrades * clean up a bit * Update runtime/common/src/slots.rs Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com> * fix doc comment * more rigid lifecycle checks * include paras which are transitioning, and lifecycle query * format guide * update api * update guide * explicit outgoing state, fix genesis * handle outgoing with transitioning paras * Revert "explicit lifecycle tracking for paras" This reverts commit 4177af7ba473bbd9c26bccd861793f25265b6657. * remove lifecycle tracking from registrar * do not include transitioning paras in identifier * Update paras_registrar.rs * final patches to registrar * Fix test * use noop in test * clean up pending swap on deregistration * finish registrar tests * Update roadmap/implementers-guide/src/runtime/paras.md * Update roadmap/implementers-guide/src/runtime/paras.md * Update roadmap/implementers-guide/src/runtime/paras.md * Apply suggestions from code review * Use matches macro * Correct terms * Apply suggestions from code review * Remove direct need for Slots and Registrar from Crowdloan * Rejig things slightly * actions queue * Revert "actions queue" This reverts commit b2e9011ec8937d6c73e99292416c9692aeb30f73. * Traitify Auction interface. * Mockups and initial code for Crowdloan testing * One test... * collapse onboarding state * fix some crowdloan tests * one more * start benchmarks for auctions * benchmark bid * fix more crowdloan tests * onboard and begin retirement no longer exist * Revert "onboard and begin retirement no longer exist" This reverts commit 2e100fd94e3540bff5f172328b5d917896f1c6fc. * Simplify crowdloan and make it work. * Fixes * fix some * finish merge fixes * fix refund bug in auctions * Add traits to Registrar for tests and benchmarks * fix more auction benchmarks * Fix TestAuctioneer * finish crowdloan benchmarks * start setting up full integration tests * expand integration tests * finish basic integration test * add more integration tests * begin slots benchmarks * start paras registrar benchmarks * fix merge * fix tests * clean up paras registrar * remove println * remove outdated cleanup config * update benchmarks * Add WeightInfo * enable runtime-benchmarks feature flag * complete swap benchmark * add parachains and onboarding into westend * add benchmarks and genesis * cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=auctions --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/ * cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=slots --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/ * fix benchmark execution * cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=crowdloan --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/ * cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=paras_registrar --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/ * Use `new_raise_len` in crowdloan on_initialize * Update paras_registrar.rs * fix westend merge * impl on_swap for crowdloan * Check fund exists before create * update for crowdloan sig * cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=crowdloan --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/ * slots on_initialize * use integration tests environment for benchmarks * fix hrmp event * auction on_initialize * cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=auctions --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/ * fix storage name in auctions * add auction_index to winning data * winning data takes into account current auction index * remove println * cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=auctions --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/ * cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=slots --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/ * Revert "add auction_index to winning data" * PastRandomness. * Fixes * Use new randomness * fix use of randomness in auctions and runtime config * expose consts * fix auction test * add deposit per byte for para registration * basic swap integration test * make swap test more comprehensive * Add WinningVec for easier retrieval in the front-end. * clean up `WinningVec` at the end * Add event for when a new best bid comes in * Fix propagation of winners in ending period * fix benchmarks, refund weight in dissolve * fix unused * remove some TODOs * setup opaque keys for paras in westend * cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=crowdloan --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/ * remove unused * cargo run --release --features=runtime-benchmarks -- benchmark --chain=westend-dev --steps=50 --repeat=20 --pallet=auctions --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/westend/src/weights/ * back to regular runtime config * use saturating math where user input can be * better first slot check * Update runtime/common/src/claims.rs * update westend onswap impl Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com> Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com> Co-authored-by: Parity Benchmarking Bot <admin@parity.io>
195 lines
11 KiB
TOML
195 lines
11 KiB
TOML
[package]
|
|
name = "westend-runtime"
|
|
version = "0.8.29"
|
|
authors = ["Parity Technologies <admin@parity.io>"]
|
|
edition = "2018"
|
|
build = "build.rs"
|
|
|
|
[dependencies]
|
|
bitvec = { version = "0.20.1", default-features = false, features = ["alloc"] }
|
|
parity-scale-codec = { version = "2.0.0", default-features = false, features = ["derive"] }
|
|
log = { version = "0.4.14", default-features = false }
|
|
rustc-hex = { version = "2.1.0", default-features = false }
|
|
serde = { version = "1.0.123", default-features = false }
|
|
serde_derive = { version = "1.0.117", optional = true }
|
|
smallvec = "1.6.1"
|
|
static_assertions = "1.1.0"
|
|
|
|
authority-discovery-primitives = { package = "sp-authority-discovery", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
babe-primitives = { package = "sp-consensus-babe", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
inherents = { package = "sp-inherents", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
offchain-primitives = { package = "sp-offchain", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
sp-api = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
sp-std = { package = "sp-std", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
sp-io = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
sp-staking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
sp-session = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
sp-version = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
tx-pool-api = { package = "sp-transaction-pool", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
block-builder-api = { package = "sp-block-builder", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
|
|
pallet-authority-discovery = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-authorship = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-babe = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-transaction-payment = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-transaction-payment-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-collective = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-democracy = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-elections-phragmen = { package = "pallet-elections-phragmen", git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-election-provider-multi-phase = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
frame-executive = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-grandpa = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-identity = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-im-online = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-indices = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-membership = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-multisig = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-nicks = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-offences = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-proxy = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-randomness-collective-flip = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-recovery = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-scheduler = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-session = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-society = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
frame-support = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-staking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-staking-reward-curve = { package = "pallet-staking-reward-curve", git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
pallet-sudo = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
frame-system = {git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
frame-system-rpc-runtime-api = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-timestamp = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-treasury = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-utility = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
pallet-vesting = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
|
|
|
|
frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }
|
|
frame-try-runtime = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }
|
|
frame-system-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }
|
|
pallet-offences-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }
|
|
pallet-session-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false, optional = true }
|
|
hex-literal = { version = "0.3.1", optional = true }
|
|
|
|
runtime-common = { package = "polkadot-runtime-common", path = "../common", default-features = false }
|
|
primitives = { package = "polkadot-primitives", path = "../../primitives", default-features = false }
|
|
polkadot-parachain = { path = "../../parachain", default-features = false }
|
|
runtime-parachains = { package = "polkadot-runtime-parachains", path = "../parachains", default-features = false }
|
|
|
|
[dev-dependencies]
|
|
hex-literal = "0.3.1"
|
|
libsecp256k1 = "0.3.5"
|
|
tiny-keccak = "2.0.2"
|
|
keyring = { package = "sp-keyring", git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
sp-trie = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
|
serde_json = "1.0.61"
|
|
|
|
[build-dependencies]
|
|
substrate-wasm-builder = "3.0.0"
|
|
|
|
[features]
|
|
default = ["std"]
|
|
no_std = []
|
|
only-staking = []
|
|
std = [
|
|
"authority-discovery-primitives/std",
|
|
"pallet-authority-discovery/std",
|
|
"bitvec/std",
|
|
"primitives/std",
|
|
"rustc-hex/std",
|
|
"parity-scale-codec/std",
|
|
"inherents/std",
|
|
"sp-core/std",
|
|
"polkadot-parachain/std",
|
|
"sp-api/std",
|
|
"tx-pool-api/std",
|
|
"block-builder-api/std",
|
|
"offchain-primitives/std",
|
|
"sp-std/std",
|
|
"sp-io/std",
|
|
"frame-support/std",
|
|
"pallet-authorship/std",
|
|
"pallet-balances/std",
|
|
"pallet-transaction-payment/std",
|
|
"pallet-transaction-payment-rpc-runtime-api/std",
|
|
"pallet-collective/std",
|
|
"pallet-elections-phragmen/std",
|
|
"pallet-election-provider-multi-phase/std",
|
|
"pallet-democracy/std",
|
|
"frame-executive/std",
|
|
"pallet-grandpa/std",
|
|
"pallet-identity/std",
|
|
"pallet-im-online/std",
|
|
"pallet-indices/std",
|
|
"pallet-membership/std",
|
|
"pallet-multisig/std",
|
|
"pallet-nicks/std",
|
|
"pallet-offences/std",
|
|
"pallet-proxy/std",
|
|
"pallet-recovery/std",
|
|
"sp-runtime/std",
|
|
"sp-staking/std",
|
|
"pallet-scheduler/std",
|
|
"pallet-session/std",
|
|
"pallet-society/std",
|
|
"pallet-staking/std",
|
|
"pallet-sudo/std",
|
|
"frame-system/std",
|
|
"frame-system-rpc-runtime-api/std",
|
|
"pallet-timestamp/std",
|
|
"pallet-treasury/std",
|
|
"sp-version/std",
|
|
"pallet-utility/std",
|
|
"pallet-vesting/std",
|
|
"serde_derive",
|
|
"serde/std",
|
|
"log/std",
|
|
"pallet-babe/std",
|
|
"babe-primitives/std",
|
|
"sp-session/std",
|
|
"pallet-randomness-collective-flip/std",
|
|
"runtime-common/std",
|
|
]
|
|
runtime-benchmarks = [
|
|
"runtime-common/runtime-benchmarks",
|
|
"frame-benchmarking",
|
|
"frame-support/runtime-benchmarks",
|
|
"frame-system/runtime-benchmarks",
|
|
"sp-runtime/runtime-benchmarks",
|
|
"pallet-babe/runtime-benchmarks",
|
|
"pallet-balances/runtime-benchmarks",
|
|
"pallet-collective/runtime-benchmarks",
|
|
"pallet-democracy/runtime-benchmarks",
|
|
"pallet-elections-phragmen/runtime-benchmarks",
|
|
"pallet-election-provider-multi-phase/runtime-benchmarks",
|
|
"pallet-grandpa/runtime-benchmarks",
|
|
"pallet-identity/runtime-benchmarks",
|
|
"pallet-im-online/runtime-benchmarks",
|
|
"pallet-indices/runtime-benchmarks",
|
|
"pallet-multisig/runtime-benchmarks",
|
|
"pallet-proxy/runtime-benchmarks",
|
|
"pallet-scheduler/runtime-benchmarks",
|
|
"pallet-society/runtime-benchmarks",
|
|
"pallet-staking/runtime-benchmarks",
|
|
"pallet-timestamp/runtime-benchmarks",
|
|
"pallet-treasury/runtime-benchmarks",
|
|
"pallet-utility/runtime-benchmarks",
|
|
"pallet-vesting/runtime-benchmarks",
|
|
"pallet-offences-benchmarking",
|
|
"pallet-session-benchmarking",
|
|
"frame-system-benchmarking",
|
|
"hex-literal",
|
|
]
|
|
try-runtime = [
|
|
"frame-executive/try-runtime",
|
|
"frame-try-runtime",
|
|
]
|
|
# When enabled, the runtime api will not be build.
|
|
#
|
|
# This is required by Cumulus to access certain types of the
|
|
# runtime without clashing with the runtime api exported functions
|
|
# in WASM.
|
|
disable-runtime-api = []
|