diff --git a/Cargo.lock b/Cargo.lock index fd2a730a2..ff27769df 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1266,8 +1266,8 @@ checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce" [[package]] name = "clients-info" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "frame-support", "frame-system", @@ -2141,8 +2141,8 @@ dependencies = [ [[package]] name = "currency" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "frame-support", "frame-system", @@ -2977,8 +2977,8 @@ dependencies = [ [[package]] name = "fee" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "currency", "frame-benchmarking", @@ -4426,8 +4426,8 @@ checksum = "f8478577c03552c21db0e2724ffb8986a5ce7af88107e6be5d2ee6e158c12800" [[package]] name = "issue" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "base64 0.13.1", "currency", @@ -5770,8 +5770,8 @@ dependencies = [ [[package]] name = "module-issue-rpc" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "jsonrpsee", "module-issue-rpc-runtime-api", @@ -5783,8 +5783,8 @@ dependencies = [ [[package]] name = "module-issue-rpc-runtime-api" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "frame-support", "parity-scale-codec", @@ -5794,8 +5794,8 @@ dependencies = [ [[package]] name = "module-oracle-rpc" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "jsonrpsee", "module-oracle-rpc-runtime-api", @@ -5808,8 +5808,8 @@ dependencies = [ [[package]] name = "module-oracle-rpc-runtime-api" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "frame-support", "parity-scale-codec", @@ -5848,8 +5848,8 @@ dependencies = [ [[package]] name = "module-redeem-rpc" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "jsonrpsee", "module-redeem-rpc-runtime-api", @@ -5861,8 +5861,8 @@ dependencies = [ [[package]] name = "module-redeem-rpc-runtime-api" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "frame-support", "parity-scale-codec", @@ -5872,8 +5872,8 @@ dependencies = [ [[package]] name = "module-replace-rpc" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "jsonrpsee", "module-replace-rpc-runtime-api", @@ -5885,8 +5885,8 @@ dependencies = [ [[package]] name = "module-replace-rpc-runtime-api" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "frame-support", "parity-scale-codec", @@ -5896,8 +5896,8 @@ dependencies = [ [[package]] name = "module-vault-registry-rpc" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "jsonrpsee", "module-oracle-rpc-runtime-api", @@ -5910,8 +5910,8 @@ dependencies = [ [[package]] name = "module-vault-registry-rpc-runtime-api" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "frame-support", "module-oracle-rpc-runtime-api", @@ -6185,8 +6185,8 @@ dependencies = [ [[package]] name = "nomination" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "currency", "fee", @@ -6366,8 +6366,8 @@ checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf" [[package]] name = "oracle" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "currency", "dia-oracle", @@ -8115,6 +8115,7 @@ version = "0.1.0" dependencies = [ "bifrost-farming", "bifrost-farming-rpc-runtime-api", + "cfg-if", "clients-info", "cumulus-pallet-aura-ext", "cumulus-pallet-dmp-queue", @@ -9578,8 +9579,8 @@ dependencies = [ [[package]] name = "pooled-rewards" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "frame-benchmarking", "frame-support", @@ -10082,8 +10083,8 @@ dependencies = [ [[package]] name = "redeem" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "currency", "fee", @@ -10253,8 +10254,8 @@ dependencies = [ [[package]] name = "replace" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "currency", "fee", @@ -10297,8 +10298,8 @@ dependencies = [ [[package]] name = "reward" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "frame-benchmarking", "frame-support", @@ -10316,8 +10317,8 @@ dependencies = [ [[package]] name = "reward-distribution" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "currency", "frame-benchmarking", @@ -12186,8 +12187,8 @@ dependencies = [ [[package]] name = "security" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "frame-support", "frame-system", @@ -13251,8 +13252,8 @@ dependencies = [ [[package]] name = "spacewalk-primitives" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "base58", "bstringify", @@ -13336,8 +13337,8 @@ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3" [[package]] name = "staking" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "frame-benchmarking", "frame-support", @@ -13519,8 +13520,8 @@ dependencies = [ [[package]] name = "stellar-relay" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "base64 0.13.1", "currency", @@ -14584,8 +14585,8 @@ checksum = "830b7e5d4d90034032940e4ace0d9a9a057e7a45cd94e6c007832e39edb82f6d" [[package]] name = "vault-registry" -version = "1.0.7" -source = "git+https://github.com/pendulum-chain/spacewalk?rev=e7a672ba1e21c98a70df30a6ee458317951dd597#e7a672ba1e21c98a70df30a6ee458317951dd597" +version = "1.0.9" +source = "git+https://github.com/pendulum-chain/spacewalk?rev=8b41e633321e472288e8fb635a4fc3cde9236d54#8b41e633321e472288e8fb635a4fc3cde9236d54" dependencies = [ "currency", "fee", diff --git a/README.md b/README.md index 461dc7348..2bf57bd27 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ Pendulum chain by SatoshiPay. More information about Pendulum can be found [here](https://docs.pendulumchain.org/). ### How to Run Tests + [`mocktopus`](https://docs.rs/mocktopus/latest/mocktopus/) is nightly-only lib, and is used in testing. So to run the tests, override the toolchain with nightly; minimum version is `nightly-2024-04-18`. @@ -162,7 +163,8 @@ runtimes `lib.rs` file. --extrinsic "*" \ --steps 50 \ --repeat 20 \ - --output runtime/pendulum/src/weights/ + --output runtime/pendulum/src/weights/ \ + --template .maintain/frame-weight-template.hbs ``` #### Amplitude @@ -176,7 +178,8 @@ runtimes `lib.rs` file. --extrinsic "*" \ --steps 50 \ --repeat 20 \ - --output runtime/amplitude/src/weights/ + --output runtime/amplitude/src/weights/ \ + --template .maintain/frame-weight-template.hbs ``` #### Foucoco @@ -190,7 +193,8 @@ runtimes `lib.rs` file. --extrinsic "*" \ --steps 50 \ --repeat 20 \ - --output runtime/foucoco/src/weights/ + --output runtime/foucoco/src/weights/ \ + --template .maintain/frame-weight-template.hbs ``` ### How to run in standalone mode diff --git a/chain-extensions/price/Cargo.toml b/chain-extensions/price/Cargo.toml index 396d56688..d86b11e3e 100644 --- a/chain-extensions/price/Cargo.toml +++ b/chain-extensions/price/Cargo.toml @@ -9,7 +9,7 @@ version = "0.1.0" targets = ["x86_64-unknown-linux-gnu"] [dependencies] -chain-extension-common = { path = "../common", default-features = false } +chain-extension-common = { path = "../common", default-features = false } codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] } log = { version = "0.4.17", default-features = false } @@ -21,7 +21,7 @@ frame-system = { git = "https://github.com/paritytech/substrate", default-featur sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42" } sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42" } pallet-contracts = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42" } -spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} +spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } # Open Runtime Module Library orml-currencies = { git = "https://github.com/open-web3-stack/open-runtime-module-library.git", default-features = false, branch = "polkadot-v0.9.42" } diff --git a/chain-extensions/token/Cargo.toml b/chain-extensions/token/Cargo.toml index 7f971fdae..6f583a3fd 100644 --- a/chain-extensions/token/Cargo.toml +++ b/chain-extensions/token/Cargo.toml @@ -11,14 +11,14 @@ targets = ["x86_64-unknown-linux-gnu"] [dependencies] codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] } log = { version = "0.4.17", default-features = false } -chain-extension-common = { path = "../common", default-features = false} +chain-extension-common = { path = "../common", default-features = false } # Substrate frame-system = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42" } frame-support = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42" } sp-core = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42" } sp-runtime = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42" } -sp-std = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false} +sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false } pallet-contracts = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42" } # Open Runtime Module Library @@ -27,7 +27,7 @@ orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-li orml-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library.git", default-features = false, branch = "polkadot-v0.9.42" } # Custom libraries for Spacewalk -spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} +spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } # Pendulum Pallets orml-currencies-allowance-extension = { path = "../../pallets/orml-currencies-allowance-extension", default-features = false } diff --git a/node/Cargo.toml b/node/Cargo.toml index 99f02285c..09f12c5c2 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -15,13 +15,13 @@ codec = { package = "parity-scale-codec", version = "3.0.0" } serde = { version = "1.0.145", features = ["derive"] } jsonrpsee = { version = "0.16.2", features = ["server"] } -module-issue-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -module-oracle-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -module-redeem-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -module-replace-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -module-vault-registry-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} +module-issue-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +module-oracle-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +module-redeem-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +module-replace-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +module-vault-registry-rpc = { git = "https://github.com/pendulum-chain/spacewalk", rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } module-pallet-staking-rpc = { path = "../pallets/parachain-staking/rpc" } -spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} +spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } # Local amplitude-runtime = { path = "../runtime/amplitude" } @@ -32,8 +32,8 @@ runtime-common = { path = "../runtime/common" } # Substrate frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" } frame-benchmarking-cli = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" } -pallet-multisig = {git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42"} -pallet-treasury = {git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42"} +pallet-multisig = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } +pallet-treasury = { git = "https://github.com/paritytech/substrate.git", branch = "polkadot-v0.9.42" } pallet-transaction-payment-rpc = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" } sc-basic-authorship = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" } sc-chain-spec = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" } @@ -45,7 +45,7 @@ sc-executor = { git = "https://github.com/paritytech/substrate", branch = "polk sc-network = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" } sc-network-sync = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" } sc-rpc = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" } -sc-service = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" } +sc-service = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" } sc-sysinfo = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" } sc-telemetry = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" } sc-tracing = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" } @@ -88,7 +88,7 @@ cumulus-relay-chain-rpc-interface = { git = "https://github.com/paritytech/cumul cumulus-relay-chain-minimal-node = { git = "https://github.com/paritytech/cumulus.git", branch = "polkadot-v0.9.42" } #bifrost -bifrost-farming-rpc-api = { git = "https://github.com/pendulum-chain/bifrost", branch = "upgrade-v0.9.42" } +bifrost-farming-rpc-api = { git = "https://github.com/pendulum-chain/bifrost", branch = "upgrade-v0.9.42" } bifrost-farming-rpc-runtime-api = { git = "https://github.com/pendulum-chain/bifrost", branch = "upgrade-v0.9.42" } zenlink-protocol = { git = "https://github.com/zenlinkpro/Zenlink-DEX-Module", branch = "polkadot-v0.9.42" } diff --git a/node/src/chain_spec.rs b/node/src/chain_spec.rs index 354734850..72ee6970d 100644 --- a/node/src/chain_spec.rs +++ b/node/src/chain_spec.rs @@ -13,10 +13,10 @@ use sp_runtime::{ }; use spacewalk_primitives::{oracle::Key, Asset, CurrencyId, CurrencyId::XCM, VaultCurrencyPair}; -use crate::constants::{ - amplitude, foucoco, pendulum, MAINNET_BRL_CURRENCY_ID, MAINNET_TZS_CURRENCY_ID, - MAINNET_USDC_CURRENCY_ID, -}; +use crate::constants::{amplitude, foucoco, pendulum}; + +const MAINNET_USDC_CURRENCY_ID: CurrencyId = pendulum_runtime::GetWrappedCurrencyId::get(); +const TESTNET_USDC_CURRENCY_ID: CurrencyId = amplitude_runtime::GetWrappedCurrencyId::get(); /// Specialized `ChainSpec` for the normal parachain runtime. pub type AmplitudeChainSpec = @@ -409,6 +409,7 @@ pub fn pendulum_config() -> PendulumChainSpec { collators.clone(), balances.clone(), vesting_schedules.clone(), + vec![], multisig_genesis.clone(), pendulum::PARACHAIN_ID.into(), false, @@ -432,8 +433,10 @@ pub fn pendulum_config() -> PendulumChainSpec { ) } -fn default_pair(currency_id: CurrencyId) -> VaultCurrencyPair { - VaultCurrencyPair { collateral: currency_id, wrapped: MAINNET_USDC_CURRENCY_ID } +fn default_pair(currency_id: CurrencyId, is_public_network: bool) -> VaultCurrencyPair { + let wrapped = + if is_public_network { MAINNET_USDC_CURRENCY_ID } else { TESTNET_USDC_CURRENCY_ID }; + VaultCurrencyPair { collateral: currency_id, wrapped } } fn amplitude_genesis( @@ -535,7 +538,7 @@ fn amplitude_genesis( }, issue: amplitude_runtime::IssueConfig { issue_period: amplitude_runtime::DAYS, - issue_minimum_transfer_amount: 1000, + issue_minimum_transfer_amount: 1_000_000_000, limit_volume_amount: None, limit_volume_currency_id: XCM(0), current_volume_amount: 0u32.into(), @@ -543,8 +546,8 @@ fn amplitude_genesis( last_interval_index: 0u32, }, redeem: amplitude_runtime::RedeemConfig { - redeem_period: foucoco_runtime::DAYS, - redeem_minimum_transfer_amount: 1000, + redeem_period: amplitude_runtime::DAYS, + redeem_minimum_transfer_amount: 1_000_000_000, limit_volume_amount: None, limit_volume_currency_id: XCM(0), current_volume_amount: 0u32.into(), @@ -552,8 +555,8 @@ fn amplitude_genesis( last_interval_index: 0u32, }, replace: amplitude_runtime::ReplaceConfig { - replace_period: foucoco_runtime::DAYS, - replace_minimum_transfer_amount: 1000, + replace_period: amplitude_runtime::DAYS, + replace_minimum_transfer_amount: 1_000_000_000, }, security: amplitude_runtime::SecurityConfig { initial_status: if start_shutdown { @@ -565,30 +568,31 @@ fn amplitude_genesis( oracle: amplitude_runtime::OracleConfig { max_delay: u32::MAX, oracle_keys: vec![ + Key::ExchangeRate(CurrencyId::Native), Key::ExchangeRate(CurrencyId::XCM(0)), Key::ExchangeRate(MAINNET_USDC_CURRENCY_ID), ], }, vault_registry: amplitude_runtime::VaultRegistryConfig { minimum_collateral_vault: vec![(XCM(0), 0)], - punishment_delay: foucoco_runtime::DAYS, + punishment_delay: amplitude_runtime::DAYS, secure_collateral_threshold: vec![( - default_pair(XCM(0)), - FixedU128::checked_from_rational(150, 100).unwrap(), + default_pair(XCM(0), true), + FixedU128::checked_from_rational(160, 100).unwrap(), )], /* 150% */ premium_redeem_threshold: vec![( - default_pair(XCM(0)), - FixedU128::checked_from_rational(130, 100).unwrap(), + default_pair(XCM(0), true), + FixedU128::checked_from_rational(140, 100).unwrap(), )], /* 130% */ liquidation_collateral_threshold: vec![( - default_pair(XCM(0)), + default_pair(XCM(0), true), FixedU128::checked_from_rational(120, 100).unwrap(), )], /* 120% */ system_collateral_ceiling: vec![( - default_pair(XCM(0)), + default_pair(XCM(0), true), 60_000 * 10u128.pow(amplitude::TOKEN_DECIMALS), )], }, @@ -604,11 +608,13 @@ fn amplitude_genesis( nomination: amplitude_runtime::NominationConfig { is_nomination_enabled: false }, dia_oracle_module: amplitude_runtime::DiaOracleModuleConfig { authorized_accounts: authorized_oracles, - supported_currencies: vec![foucoco_runtime::AssetId::new( - b"Polkadot".to_vec(), - b"DOT".to_vec(), - )], - batching_api: b"http://dia-00.pendulumchain.tech:8070/currencies".to_vec(), + supported_currencies: vec![ + amplitude_runtime::AssetId::new(b"Amplitude".to_vec(), b"AMPE".to_vec()), + amplitude_runtime::AssetId::new(b"Kusama".to_vec(), b"KSM".to_vec()), + amplitude_runtime::AssetId::new(b"Stellar".to_vec(), b"XLM".to_vec()), + amplitude_runtime::AssetId::new(b"FIAT".to_vec(), b"USD-USD".to_vec()), + ], + batching_api: b"https://dia-00.pendulumchain.tech/currencies".to_vec(), coin_infos_map: vec![], }, } @@ -758,27 +764,14 @@ fn foucoco_genesis( Key::ExchangeRate(CurrencyId::XCM(0)), Key::ExchangeRate(CurrencyId::Native), Key::ExchangeRate(CurrencyId::Stellar(Asset::StellarNative)), - Key::ExchangeRate(MAINNET_USDC_CURRENCY_ID), - Key::ExchangeRate(MAINNET_BRL_CURRENCY_ID), - Key::ExchangeRate(MAINNET_TZS_CURRENCY_ID), + Key::ExchangeRate(TESTNET_USDC_CURRENCY_ID), ], }, vault_registry: foucoco_runtime::VaultRegistryConfig { - minimum_collateral_vault: vec![(XCM(0), 3_000_000_000_000)], + minimum_collateral_vault: vec![(XCM(0), 0)], punishment_delay: foucoco_runtime::DAYS * 2, secure_collateral_threshold: vec![ - ( - get_vault_currency_pair(XCM(0), MAINNET_USDC_CURRENCY_ID), - FixedU128::checked_from_rational(160, 100).unwrap(), - ), - ( - get_vault_currency_pair(XCM(0), MAINNET_BRL_CURRENCY_ID), - FixedU128::checked_from_rational(160, 100).unwrap(), - ), - ( - get_vault_currency_pair(XCM(0), MAINNET_TZS_CURRENCY_ID), - FixedU128::checked_from_rational(160, 100).unwrap(), - ), + (default_pair(XCM(0), false), FixedU128::checked_from_rational(160, 100).unwrap()), ( get_vault_currency_pair(XCM(0), CurrencyId::Stellar(Asset::StellarNative)), FixedU128::checked_from_rational(160, 100).unwrap(), @@ -786,18 +779,7 @@ fn foucoco_genesis( ], /* 140% */ premium_redeem_threshold: vec![ - ( - get_vault_currency_pair(XCM(0), MAINNET_USDC_CURRENCY_ID), - FixedU128::checked_from_rational(140, 100).unwrap(), - ), - ( - get_vault_currency_pair(XCM(0), MAINNET_BRL_CURRENCY_ID), - FixedU128::checked_from_rational(140, 100).unwrap(), - ), - ( - get_vault_currency_pair(XCM(0), MAINNET_TZS_CURRENCY_ID), - FixedU128::checked_from_rational(140, 100).unwrap(), - ), + (default_pair(XCM(0), false), FixedU128::checked_from_rational(140, 100).unwrap()), ( get_vault_currency_pair(XCM(0), CurrencyId::Stellar(Asset::StellarNative)), FixedU128::checked_from_rational(140, 100).unwrap(), @@ -805,36 +787,14 @@ fn foucoco_genesis( ], /* 125% */ liquidation_collateral_threshold: vec![ - ( - get_vault_currency_pair(XCM(0), MAINNET_USDC_CURRENCY_ID), - FixedU128::checked_from_rational(125, 100).unwrap(), - ), - ( - get_vault_currency_pair(XCM(0), MAINNET_BRL_CURRENCY_ID), - FixedU128::checked_from_rational(125, 100).unwrap(), - ), - ( - get_vault_currency_pair(XCM(0), MAINNET_TZS_CURRENCY_ID), - FixedU128::checked_from_rational(125, 100).unwrap(), - ), + (default_pair(XCM(0), false), FixedU128::checked_from_rational(125, 100).unwrap()), ( get_vault_currency_pair(XCM(0), CurrencyId::Stellar(Asset::StellarNative)), FixedU128::checked_from_rational(125, 100).unwrap(), ), ], system_collateral_ceiling: vec![ - ( - get_vault_currency_pair(XCM(0), MAINNET_USDC_CURRENCY_ID), - 50 * 10u128.pow(foucoco::TOKEN_DECIMALS), - ), - ( - get_vault_currency_pair(XCM(0), MAINNET_BRL_CURRENCY_ID), - 25 * 10u128.pow(foucoco::TOKEN_DECIMALS), - ), - ( - get_vault_currency_pair(XCM(0), MAINNET_TZS_CURRENCY_ID), - 25 * 10u128.pow(foucoco::TOKEN_DECIMALS), - ), + (default_pair(XCM(0), false), 50 * 10u128.pow(foucoco::TOKEN_DECIMALS)), ( get_vault_currency_pair(XCM(0), CurrencyId::Stellar(Asset::StellarNative)), 50 * 10u128.pow(foucoco::TOKEN_DECIMALS), @@ -854,12 +814,10 @@ fn foucoco_genesis( dia_oracle_module: foucoco_runtime::DiaOracleModuleConfig { authorized_accounts: authorized_oracles, supported_currencies: vec![ + foucoco_runtime::AssetId::new(b"Amplitude".to_vec(), b"AMPE".to_vec()), foucoco_runtime::AssetId::new(b"Kusama".to_vec(), b"KSM".to_vec()), foucoco_runtime::AssetId::new(b"Stellar".to_vec(), b"XLM".to_vec()), - foucoco_runtime::AssetId::new(b"FIAT".to_vec(), b"BRL-USD".to_vec()), foucoco_runtime::AssetId::new(b"FIAT".to_vec(), b"USD-USD".to_vec()), - foucoco_runtime::AssetId::new(b"FIAT".to_vec(), b"TZS-USD".to_vec()), - foucoco_runtime::AssetId::new(b"FIAT".to_vec(), b"MXN-USD".to_vec()), ], batching_api: b"https://dia-00.pendulumchain.tech/currencies".to_vec(), coin_infos_map: vec![], @@ -872,6 +830,7 @@ fn pendulum_genesis( collators: Vec, mut balances: Vec<(AccountId, Balance)>, vesting_schedules: Vec<(AccountId, BlockNumber, BlockNumber, Balance)>, + authorized_oracles: Vec, sudo_account: AccountId, id: ParaId, start_shutdown: bool, @@ -945,8 +904,8 @@ fn pendulum_genesis( }, vesting: pendulum_runtime::VestingConfig { vesting: vesting_schedules }, issue: pendulum_runtime::IssueConfig { - issue_period: amplitude_runtime::DAYS, - issue_minimum_transfer_amount: 1000, + issue_period: pendulum_runtime::DAYS, + issue_minimum_transfer_amount: 1_000_000_000, limit_volume_amount: None, limit_volume_currency_id: XCM(0), current_volume_amount: 0u32.into(), @@ -955,7 +914,7 @@ fn pendulum_genesis( }, redeem: pendulum_runtime::RedeemConfig { redeem_period: pendulum_runtime::DAYS, - redeem_minimum_transfer_amount: 1000, + redeem_minimum_transfer_amount: 1_000_000_000, limit_volume_amount: None, limit_volume_currency_id: XCM(0), current_volume_amount: 0u32.into(), @@ -964,7 +923,7 @@ fn pendulum_genesis( }, replace: pendulum_runtime::ReplaceConfig { replace_period: pendulum_runtime::DAYS, - replace_minimum_transfer_amount: 1000, + replace_minimum_transfer_amount: 1_000_000_000, }, security: pendulum_runtime::SecurityConfig { initial_status: if start_shutdown { @@ -976,6 +935,7 @@ fn pendulum_genesis( oracle: pendulum_runtime::OracleConfig { max_delay: u32::MAX, oracle_keys: vec![ + Key::ExchangeRate(CurrencyId::Native), Key::ExchangeRate(CurrencyId::XCM(0)), Key::ExchangeRate(MAINNET_USDC_CURRENCY_ID), ], @@ -984,22 +944,22 @@ fn pendulum_genesis( minimum_collateral_vault: vec![(XCM(0), 0)], punishment_delay: pendulum_runtime::DAYS, secure_collateral_threshold: vec![( - default_pair(XCM(0)), + default_pair(XCM(0), true), FixedU128::checked_from_rational(150, 100).unwrap(), )], /* 150% */ premium_redeem_threshold: vec![( - default_pair(XCM(0)), + default_pair(XCM(0), true), FixedU128::checked_from_rational(130, 100).unwrap(), )], /* 130% */ liquidation_collateral_threshold: vec![( - default_pair(XCM(0)), + default_pair(XCM(0), true), FixedU128::checked_from_rational(120, 100).unwrap(), )], /* 120% */ system_collateral_ceiling: vec![( - default_pair(XCM(0)), + default_pair(XCM(0), true), 60_000 * 10u128.pow(pendulum::TOKEN_DECIMALS), )], }, @@ -1013,5 +973,16 @@ fn pendulum_genesis( replace_griefing_collateral: FixedU128::checked_from_rational(1, 10).unwrap(), // 10% }, nomination: pendulum_runtime::NominationConfig { is_nomination_enabled: false }, + dia_oracle_module: pendulum_runtime::DiaOracleModuleConfig { + authorized_accounts: authorized_oracles, + supported_currencies: vec![ + pendulum_runtime::AssetId::new(b"Pendulum".to_vec(), b"PEN".to_vec()), + pendulum_runtime::AssetId::new(b"Polkadot".to_vec(), b"DOT".to_vec()), + pendulum_runtime::AssetId::new(b"Stellar".to_vec(), b"XLM".to_vec()), + pendulum_runtime::AssetId::new(b"FIAT".to_vec(), b"USD-USD".to_vec()), + ], + batching_api: b"https://dia-00.pendulumchain.tech/currencies".to_vec(), + coin_infos_map: vec![], + }, } } diff --git a/node/src/constants/mod.rs b/node/src/constants/mod.rs index 50069d29e..f9337747b 100644 --- a/node/src/constants/mod.rs +++ b/node/src/constants/mod.rs @@ -1,32 +1,3 @@ -use spacewalk_primitives::{Asset, CurrencyId}; - pub mod amplitude; pub mod foucoco; pub mod pendulum; - -// For Mainnet USDC issued by the testnet issuer -pub const MAINNET_USDC_CURRENCY_ID: CurrencyId = CurrencyId::Stellar(Asset::AlphaNum4 { - code: *b"USDC", - issuer: [ - 59, 153, 17, 56, 14, 254, 152, 139, 160, 168, 144, 14, 177, 207, 228, 79, 54, 111, 125, - 190, 148, 107, 237, 7, 114, 64, 247, 246, 36, 223, 21, 197, - ], -}); - -// For Mainnet BRL issued by the testnet issuer -pub const MAINNET_BRL_CURRENCY_ID: CurrencyId = CurrencyId::Stellar(Asset::AlphaNum4 { - code: *b"BRL\0", - issuer: [ - 234, 172, 104, 212, 208, 227, 123, 76, 36, 194, 83, 105, 22, 232, 48, 115, 95, 3, 45, 13, - 107, 42, 28, 143, 202, 59, 197, 162, 94, 8, 62, 58, - ], -}); - -// For Mainnet TZS issued by the testnet issuer -pub const MAINNET_TZS_CURRENCY_ID: CurrencyId = CurrencyId::Stellar(Asset::AlphaNum4 { - code: *b"TZS\0", - issuer: [ - 52, 201, 75, 42, 75, 169, 232, 181, 123, 34, 84, 125, 203, 179, 15, 68, 60, 76, 176, 45, - 163, 130, 154, 137, 170, 27, 212, 120, 14, 68, 102, 186, - ], -}); diff --git a/pallets/orml-tokens-management-extension/Cargo.toml b/pallets/orml-tokens-management-extension/Cargo.toml index 5f1f1c07c..d592ad636 100644 --- a/pallets/orml-tokens-management-extension/Cargo.toml +++ b/pallets/orml-tokens-management-extension/Cargo.toml @@ -11,11 +11,11 @@ serde = { version = "1.0.130", default-features = false, features = ["derive"], sha2 = { version = "0.8.2", default-features = false } # Substrate dependencies -frame-support = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false} -frame-system = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false} -sp-core = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false} -sp-runtime = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false} -sp-std = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false} +frame-support = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false } +frame-system = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false } +sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false } +sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false } +sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false } frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false, optional = true } @@ -28,12 +28,12 @@ orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-li [dev-dependencies] mocktopus = "0.8.0" frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" } -sp-io = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false} +sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false } -pallet-balances = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42"} +pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" } # Spacewalk libraries -spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} +spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } [features] diff --git a/pallets/parachain-staking/rpc/Cargo.toml b/pallets/parachain-staking/rpc/Cargo.toml index 41a12620a..2e5fd11ea 100644 --- a/pallets/parachain-staking/rpc/Cargo.toml +++ b/pallets/parachain-staking/rpc/Cargo.toml @@ -5,10 +5,10 @@ name = "module-pallet-staking-rpc" version = "1.0.0" [dependencies] -codec = {package = "parity-scale-codec", version = "3.0.0"} -jsonrpsee = {version = "0.16.0", features = ["server", "macros"]} -module-oracle-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -module-pallet-staking-rpc-runtime-api = {path = "runtime-api"} -sp-api = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42"} -sp-blockchain = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42"} -sp-runtime = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42"} +codec = { package = "parity-scale-codec", version = "3.0.0" } +jsonrpsee = { version = "0.16.0", features = ["server", "macros"] } +module-oracle-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +module-pallet-staking-rpc-runtime-api = { path = "runtime-api" } +sp-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" } +sp-blockchain = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" } +sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" } diff --git a/pallets/parachain-staking/rpc/runtime-api/Cargo.toml b/pallets/parachain-staking/rpc/runtime-api/Cargo.toml index a30cbf338..8d838e82a 100644 --- a/pallets/parachain-staking/rpc/runtime-api/Cargo.toml +++ b/pallets/parachain-staking/rpc/runtime-api/Cargo.toml @@ -5,13 +5,13 @@ name = "module-pallet-staking-rpc-runtime-api" version = "1.0.0" [dependencies] -frame-support = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false} -sp-api = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false} -sp-std = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false} -parity-scale-codec = {version = "3.1.5", default-features = false, features = ["derive"]} -scale-info = {version = "2.1.1", default-features = false, features = ["derive"]} -module-oracle-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -serde = {version = "1.0.142", default-features = false, optional = true, features = ["derive"]} +frame-support = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false } +sp-api = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false } +sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false } +parity-scale-codec = { version = "3.1.5", default-features = false, features = ["derive"] } +scale-info = { version = "2.1.1", default-features = false, features = ["derive"] } +module-oracle-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +serde = { version = "1.0.142", default-features = false, optional = true, features = ["derive"] } [features] default = ["std"] diff --git a/pallets/parachain-staking/src/benchmarking.rs b/pallets/parachain-staking/src/benchmarking.rs index d1a748172..9f536fc47 100644 --- a/pallets/parachain-staking/src/benchmarking.rs +++ b/pallets/parachain-staking/src/benchmarking.rs @@ -100,11 +100,11 @@ fn fill_unstaking( delegator: Option<&T::AccountId>, unstaked: u64, ) where - u64: Into<::BlockNumber>, + u32: Into<::BlockNumber>, { let who = delegator.unwrap_or(collator); assert_eq!(>::get(who).len(), 0); - while System::::block_number() < unstaked.into() { + while (System::::block_number().saturated_into::()) < unstaked { if let Some(delegator) = delegator { assert_ok!(>::delegator_stake_less( RawOrigin::Signed(delegator.clone()).into(), @@ -124,7 +124,7 @@ fn fill_unstaking( } benchmarks! { - where_clause { where u64: Into<::BlockNumber> } + where_clause { where u32: Into<::BlockNumber> } on_initialize_no_action { assert_eq!(>::get().current, 0u32); @@ -145,13 +145,15 @@ benchmarks! { on_initialize_network_rewards { let issuance = T::Currency::total_issuance(); // if we only add by one, we also initialize a new year - let block = T::NetworkRewardStart::get() + T::BlockNumber::one() * 2_u64.into(); + let block = T::NetworkRewardStart::get() + T::BlockNumber::one() * 2_u32.into(); }: { Pallet::::on_initialize(block) } verify { let new_issuance = T::Currency::total_issuance(); - let max_col_reward = InflationConfig::::get().collator.reward_rate.per_block * MaxCollatorCandidateStake::::get() * MaxSelectedCandidates::::get().into(); + let max_col_reward = InflationConfig::::get().collator.reward_rate.per_block * MaxCollatorCandidateStake::::get() * (MaxSelectedCandidates::::get() as u64).into(); let network_block_reward = T::NetworkRewardRate::get() * max_col_reward; - assert!(new_issuance > issuance); + if network_block_reward > 0_u64.into() { + assert!(new_issuance > issuance) + } assert_eq!(new_issuance - issuance, network_block_reward) } diff --git a/pallets/treasury-buyout-extension/Cargo.toml b/pallets/treasury-buyout-extension/Cargo.toml index e189747d6..dc7d129cb 100644 --- a/pallets/treasury-buyout-extension/Cargo.toml +++ b/pallets/treasury-buyout-extension/Cargo.toml @@ -5,19 +5,19 @@ name = "treasury-buyout-extension" version = "1.0.0" [dependencies] -codec = {package = "parity-scale-codec", version = "3.1.5", default-features = false, features = ["derive", "max-encoded-len"]} -scale-info = {version = "2.2.0", default-features = false, features = ["derive"]} -serde = {version = "1.0.130", default-features = false, features = ["derive"], optional = true} -sha2 = {version = "0.8.2", default-features = false} +codec = { package = "parity-scale-codec", version = "3.1.5", default-features = false, features = ["derive", "max-encoded-len"] } +scale-info = { version = "2.2.0", default-features = false, features = ["derive"] } +serde = { version = "1.0.130", default-features = false, features = ["derive"], optional = true } +sha2 = { version = "0.8.2", default-features = false } # Substrate dependencies -frame-support = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false} -frame-system = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false} -sp-core = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false} -sp-runtime = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false} -sp-std = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false} -sp-arithmetic = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false} -pallet-treasury = {git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42"} +frame-support = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false } +frame-system = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false } +sp-core = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false } +sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false } +sp-std = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false } +sp-arithmetic = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false } +pallet-treasury = { git = "https://github.com/paritytech/substrate", default-features = false, branch = "polkadot-v0.9.42" } frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false, optional = true } @@ -25,39 +25,39 @@ orml-currencies = { git = "https://github.com/open-web3-stack/open-runtime-modul orml-tokens = { git = "https://github.com/open-web3-stack/open-runtime-module-library", branch = "polkadot-v0.9.42", default-features = false } orml-traits = { git = "https://github.com/open-web3-stack/open-runtime-module-library", branch = "polkadot-v0.9.42", default-features = false } -spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} +spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } [dev-dependencies] mocktopus = "0.8.0" frame-benchmarking = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" } -sp-io = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false} +sp-io = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42", default-features = false } xcm = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.42" } -pallet-balances = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42"} +pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" } -spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} +spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } runtime-common = { path = "../../runtime/common", default-features = false } [features] default = ["std"] std = [ - "serde", - "codec/std", - "sha2/std", - "sp-core/std", - "sp-std/std", - "sp-arithmetic/std", - "sp-runtime/std", - "frame-support/std", - "frame-system/std", - "orml-currencies/std", - "orml-tokens/std", - "orml-traits/std", - "frame-benchmarking/std", - "pallet-balances/std", - "spacewalk-primitives/std", - "xcm/std", - "runtime-common/std" + "serde", + "codec/std", + "sha2/std", + "sp-core/std", + "sp-std/std", + "sp-arithmetic/std", + "sp-runtime/std", + "frame-support/std", + "frame-system/std", + "orml-currencies/std", + "orml-tokens/std", + "orml-traits/std", + "frame-benchmarking/std", + "pallet-balances/std", + "spacewalk-primitives/std", + "xcm/std", + "runtime-common/std" ] runtime-benchmarks = [ diff --git a/runtime/amplitude/Cargo.toml b/runtime/amplitude/Cargo.toml index 1fd5223ae..b9652bb3a 100644 --- a/runtime/amplitude/Cargo.toml +++ b/runtime/amplitude/Cargo.toml @@ -26,31 +26,31 @@ smallvec = "1.9.0" # Local runtime-common = { path = "../common", default-features = false } -token-chain-extension = {path = "../../chain-extensions/token", default-features = false } -price-chain-extension = {path = "../../chain-extensions/price", default-features = false } +token-chain-extension = { path = "../../chain-extensions/token", default-features = false } +price-chain-extension = { path = "../../chain-extensions/price", default-features = false } # Custom libraries for Spacewalk -clients-info = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -currency = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -security = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -staking = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -oracle = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -stellar-relay = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -fee = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -vault-registry = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -redeem = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -issue = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -nomination = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -replace = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -module-issue-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -module-oracle-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -module-redeem-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -module-replace-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -module-vault-registry-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} +clients-info = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +currency = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +security = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +staking = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +oracle = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +stellar-relay = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +fee = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +vault-registry = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +redeem = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +issue = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +nomination = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +replace = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +module-issue-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +module-oracle-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +module-redeem-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +module-replace-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +module-vault-registry-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } module-pallet-staking-rpc-runtime-api = { path = "../../pallets/parachain-staking/rpc/runtime-api", default-features = false } -pooled-rewards = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -reward-distribution = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} +pooled-rewards = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +reward-distribution = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } # Substrate @@ -108,8 +108,8 @@ orml-xcm-support = { git = "https://github.com/open-web3-stack/open-runtime-modu # KILT parachain-staking = { path = "../../pallets/parachain-staking", default-features = false } -orml-currencies-allowance-extension = {path = "../../pallets/orml-currencies-allowance-extension", default-features = false} -treasury-buyout-extension = {path = "../../pallets/treasury-buyout-extension", default-features = false} +orml-currencies-allowance-extension = { path = "../../pallets/orml-currencies-allowance-extension", default-features = false } +treasury-buyout-extension = { path = "../../pallets/treasury-buyout-extension", default-features = false } # Pendulum Pallets vesting-manager = { path = "../../pallets/vesting-manager", default-features = false } @@ -241,14 +241,13 @@ std = [ "module-pallet-staking-rpc-runtime-api/std", "module-vault-registry-rpc-runtime-api/std", "spacewalk-primitives/std", - # custom libraries from pendulum - "orml-currencies-allowance-extension/std", - "treasury-buyout-extension/std", - "parachain-staking/std", - "vesting-manager/std", + # custom libraries from pendulum + "orml-currencies-allowance-extension/std", + "treasury-buyout-extension/std", + "parachain-staking/std", + "vesting-manager/std", "price-chain-extension/std", "token-chain-extension/std", - ] runtime-benchmarks = [ @@ -259,6 +258,7 @@ runtime-benchmarks = [ "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", + "currency/runtime-benchmarks", "fee/runtime-benchmarks", "issue/runtime-benchmarks", "nomination/runtime-benchmarks", @@ -274,8 +274,9 @@ runtime-benchmarks = [ "cumulus-pallet-xcmp-queue/runtime-benchmarks", "pallet-collective/runtime-benchmarks", "runtime-common/runtime-benchmarks", + "parachain-staking/runtime-benchmarks", "orml-currencies-allowance-extension/runtime-benchmarks", - "treasury-buyout-extension/runtime-benchmarks", + "treasury-buyout-extension/runtime-benchmarks" ] try-runtime = [ @@ -330,7 +331,7 @@ try-runtime = [ "reward-distribution/try-runtime", "dia-oracle/try-runtime", "orml-currencies-allowance-extension/try-runtime", - "treasury-buyout-extension/try-runtime", + "treasury-buyout-extension/try-runtime", "vesting-manager/try-runtime", "bifrost-farming/try-runtime", "zenlink-protocol/try-runtime", diff --git a/runtime/amplitude/src/lib.rs b/runtime/amplitude/src/lib.rs index fdc9867b7..d034434e6 100644 --- a/runtime/amplitude/src/lib.rs +++ b/runtime/amplitude/src/lib.rs @@ -94,8 +94,8 @@ pub use stellar_relay::traits::{FieldLength, Organization, Validator}; use polkadot_runtime_common::{BlockHashCount, SlowAdjustingFeeUpdate}; use spacewalk_primitives::{ - self as primitives, CurrencyId::XCM, Moment, SignedFixedPoint, SignedInner, UnsignedFixedPoint, - UnsignedInner, + self as primitives, Asset, CurrencyId::XCM, Moment, SignedFixedPoint, SignedInner, + UnsignedFixedPoint, UnsignedInner, }; #[cfg(any(feature = "runtime-benchmarks", feature = "testing-utils"))] @@ -219,31 +219,6 @@ pub type Executive = frame_executive::Executive< ), >; -cfg_if::cfg_if! { - if #[cfg(feature = "runtime-benchmarks")] { - use oracle::testing_utils::{ - MockConvertMoment, MockConvertPrice, MockDiaOracle, MockOracleKeyConvertor, - }; - type DataProviderImpl = DiaOracleAdapter< - MockDiaOracle, - UnsignedFixedPoint, - Moment, - MockOracleKeyConvertor, - MockConvertPrice, - MockConvertMoment, - >; - } else { - type DataProviderImpl = DiaOracleAdapter< - DiaOracleModule, - UnsignedFixedPoint, - Moment, - asset_registry::AssetRegistryToDiaOracleKeyConvertor, - ConvertPrice, - ConvertMoment, - >; - } -} - pub struct ConvertPrice; impl Convert> for ConvertPrice { @@ -973,7 +948,7 @@ impl parachain_staking::Config for Runtime { type NetworkRewardStart = NetworkRewardStart; type NetworkRewardBeneficiary = Treasury; type CollatorRewardRateDecay = CollatorRewardRateDecay; - type WeightInfo = parachain_staking::default_weights::SubstrateWeight; + type WeightInfo = weights::parachain_staking::SubstrateWeight; const BLOCKS_PER_YEAR: BlockNumber = BLOCKS_PER_YEAR; } @@ -1154,6 +1129,14 @@ impl currency::CurrencyConversion, CurrencyId> for Cur } parameter_types! { pub const RelayChainCurrencyId: CurrencyId = XCM(0); // 0 is the index of the relay chain in our XCM mapping + // This specific asset is used for benchmarking Spacewalk pallets as it's already used as the wrapped currency in the genesis config + pub const GetWrappedCurrencyId: CurrencyId = CurrencyId::Stellar(Asset::AlphaNum4 { + code: *b"USDC", + issuer: [ + 59, 153, 17, 56, 14, 254, 152, 139, 160, 168, 144, 14, 177, 207, 228, 79, 54, 111, 125, + 190, 148, 107, 237, 7, 114, 64, 247, 246, 36, 223, 21, 197, + ], + }); } impl currency::Config for Runtime { type UnsignedFixedPoint = UnsignedFixedPoint; @@ -1161,6 +1144,8 @@ impl currency::Config for Runtime { type SignedFixedPoint = SignedFixedPoint; type Balance = Balance; type GetRelayChainCurrencyId = RelayChainCurrencyId; + #[cfg(feature = "runtime-benchmarks")] + type GetWrappedCurrencyId = GetWrappedCurrencyId; type AssetConversion = primitives::AssetConversion; type BalanceConversion = primitives::BalanceConversion; type CurrencyConversion = CurrencyConvert; @@ -1202,9 +1187,34 @@ impl orml_traits::DataProvider for DataFeederBenchmark { } } +cfg_if::cfg_if! { + if #[cfg(feature = "runtime-benchmarks")] { + use oracle::testing_utils::{ + MockConvertMoment, MockConvertPrice, MockDiaOracle, MockOracleKeyConvertor, + }; + type DataProviderImpl = DiaOracleAdapter< + MockDiaOracle, + UnsignedFixedPoint, + Moment, + MockOracleKeyConvertor, + MockConvertPrice, + MockConvertMoment, + >; + } else { + type DataProviderImpl = DiaOracleAdapter< + DiaOracleModule, + UnsignedFixedPoint, + Moment, + asset_registry::AssetRegistryToDiaOracleKeyConvertor, + ConvertPrice, + ConvertMoment, + >; + } +} + impl oracle::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = oracle::SubstrateWeight; + type WeightInfo = weights::oracle::SubstrateWeight; type DecimalsLookup = DecimalsLookupImpl; type DataProvider = DataProviderImpl; #[cfg(feature = "runtime-benchmarks")] @@ -1223,7 +1233,7 @@ impl stellar_relay::Config for Runtime { type OrganizationLimit = OrganizationLimit; type ValidatorLimit = ValidatorLimit; type IsPublicNetwork = IsPublicNetwork; - type WeightInfo = stellar_relay::SubstrateWeight; + type WeightInfo = weights::stellar_relay::SubstrateWeight; } parameter_types! { @@ -1234,7 +1244,7 @@ parameter_types! { } impl fee::Config for Runtime { type FeePalletId = FeePalletId; - type WeightInfo = fee::SubstrateWeight; + type WeightInfo = weights::fee::SubstrateWeight; type SignedFixedPoint = SignedFixedPoint; type SignedInner = SignedInner; type UnsignedFixedPoint = UnsignedFixedPoint; @@ -1250,13 +1260,13 @@ impl vault_registry::Config for Runtime { type PalletId = VaultRegistryPalletId; type RuntimeEvent = RuntimeEvent; type Balance = Balance; - type WeightInfo = vault_registry::SubstrateWeight; + type WeightInfo = weights::vault_registry::SubstrateWeight; type GetGriefingCollateralCurrencyId = NativeCurrencyId; } impl redeem::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = redeem::SubstrateWeight; + type WeightInfo = weights::redeem::SubstrateWeight; } pub struct BlockNumberToBalance; @@ -1270,17 +1280,17 @@ impl sp_runtime::traits::Convert for BlockNumberToBalance impl issue::Config for Runtime { type RuntimeEvent = RuntimeEvent; type BlockNumberToBalance = BlockNumberToBalance; - type WeightInfo = issue::SubstrateWeight; + type WeightInfo = weights::issue::SubstrateWeight; } impl nomination::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = nomination::SubstrateWeight; + type WeightInfo = weights::nomination::SubstrateWeight; } impl replace::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = replace::SubstrateWeight; + type WeightInfo = weights::replace::SubstrateWeight; } impl clients_info::Config for Runtime { @@ -1392,8 +1402,7 @@ impl pallet_proxy::Config for Runtime { impl orml_currencies_allowance_extension::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = - orml_currencies_allowance_extension::default_weights::SubstrateWeight; + type WeightInfo = weights::orml_currencies_allowance_extension::SubstrateWeight; type MaxAllowedCurrencies = ConstU32<256>; } @@ -1429,7 +1438,7 @@ impl treasury_buyout_extension::Config for Runtime { type DecimalsLookup = DecimalsLookupImpl; type MinAmountToBuyout = MinAmountToBuyout; type MaxAllowedBuyoutCurrencies = MaxAllowedBuyoutCurrencies; - type WeightInfo = treasury_buyout_extension::default_weights::SubstrateWeight; + type WeightInfo = weights::treasury_buyout_extension::SubstrateWeight; #[cfg(feature = "runtime-benchmarks")] type RelayChainCurrencyId = RelayChainCurrencyId; } @@ -1534,6 +1543,7 @@ mod benches { [pallet_session, SessionBench::] [pallet_timestamp, Timestamp] [cumulus_pallet_xcmp_queue, XcmpQueue] + [parachain_staking, ParachainStaking] [fee, Fee] [issue, Issue] diff --git a/runtime/amplitude/src/weights/fee.rs b/runtime/amplitude/src/weights/fee.rs new file mode 100644 index 000000000..1112cc6b2 --- /dev/null +++ b/runtime/amplitude/src/weights/fee.rs @@ -0,0 +1,102 @@ + +//! Autogenerated weights for fee +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// amplitude +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// fee +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/amplitude/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for fee using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl fee::WeightInfo for SubstrateWeight { + /// Storage: Fee IssueFee (r:0 w:1) + /// Proof Skipped: Fee IssueFee (max_values: Some(1), max_size: None, mode: Measured) + fn set_issue_fee() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(5_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Fee IssueGriefingCollateral (r:0 w:1) + /// Proof Skipped: Fee IssueGriefingCollateral (max_values: Some(1), max_size: None, mode: Measured) + fn set_issue_griefing_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(5_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Fee RedeemFee (r:0 w:1) + /// Proof Skipped: Fee RedeemFee (max_values: Some(1), max_size: None, mode: Measured) + fn set_redeem_fee() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(5_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Fee PremiumRedeemFee (r:0 w:1) + /// Proof Skipped: Fee PremiumRedeemFee (max_values: Some(1), max_size: None, mode: Measured) + fn set_premium_redeem_fee() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(5_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Fee PunishmentFee (r:0 w:1) + /// Proof Skipped: Fee PunishmentFee (max_values: Some(1), max_size: None, mode: Measured) + fn set_punishment_fee() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(5_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Fee ReplaceGriefingCollateral (r:0 w:1) + /// Proof Skipped: Fee ReplaceGriefingCollateral (max_values: Some(1), max_size: None, mode: Measured) + fn set_replace_griefing_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(5_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } +} \ No newline at end of file diff --git a/runtime/amplitude/src/weights/issue.rs b/runtime/amplitude/src/weights/issue.rs new file mode 100644 index 000000000..21cac350b --- /dev/null +++ b/runtime/amplitude/src/weights/issue.rs @@ -0,0 +1,165 @@ + +//! Autogenerated weights for issue +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-06-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Marcels-MBP`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/pendulum-node +// benchmark +// pallet +// --chain +// amplitude +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// issue +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/amplitude/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for issue using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl issue::WeightInfo for SubstrateWeight { + /// Storage: Issue LimitVolumeAmount (r:1 w:0) + /// Proof: Issue LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: AssetRegistry Metadata (r:3 w:0) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: Fee IssueGriefingCollateral (r:1 w:0) + /// Proof Skipped: Fee IssueGriefingCollateral (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: Issue IssueMinimumTransferAmount (r:1 w:0) + /// Proof: Issue IssueMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: Fee IssueFee (r:1 w:0) + /// Proof Skipped: Fee IssueFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Security Nonce (r:1 w:1) + /// Proof Skipped: Security Nonce (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: System ParentHash (r:1 w:0) + /// Proof: System ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: VaultRegistry VaultStellarPublicKey (r:1 w:0) + /// Proof Skipped: VaultRegistry VaultStellarPublicKey (max_values: None, max_size: None, mode: Measured) + /// Storage: Security ActiveBlockCount (r:1 w:0) + /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Issue IssuePeriod (r:1 w:0) + /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Issue IssueRequests (r:0 w:1) + /// Proof: Issue IssueRequests (max_values: None, max_size: Some(339), added: 2814, mode: MaxEncodedLen) + fn request_issue() -> Weight { + // Proof Size summary in bytes: + // Measured: `1923` + // Estimated: `10338` + // Minimum execution time: 102_000_000 picoseconds. + Weight::from_parts(105_000_000, 10338) + .saturating_add(T::DbWeight::get().reads(18_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) + } + /// Storage: Issue IssueRequests (r:1 w:1) + /// Proof: Issue IssueRequests (max_values: None, max_size: Some(339), added: 2814, mode: MaxEncodedLen) + /// Storage: StellarRelay NewValidatorsEnactmentBlockHeight (r:1 w:0) + /// Proof: StellarRelay NewValidatorsEnactmentBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: StellarRelay Validators (r:1 w:0) + /// Proof: StellarRelay Validators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) + /// Storage: StellarRelay Organizations (r:1 w:0) + /// Proof: StellarRelay Organizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Fee IssueFee (r:1 w:0) + /// Proof Skipped: Fee IssueFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Issue LimitVolumeAmount (r:1 w:0) + /// Proof: Issue LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalStake (r:2 w:0) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: AssetRegistry Metadata (r:1 w:0) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + fn execute_issue() -> Weight { + // Proof Size summary in bytes: + // Measured: `2498` + // Estimated: `71867` + // Minimum execution time: 8_831_000_000 picoseconds. + Weight::from_parts(8_902_000_000, 71867) + .saturating_add(T::DbWeight::get().reads(11_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: Issue IssueRequests (r:1 w:1) + /// Proof: Issue IssueRequests (max_values: None, max_size: Some(339), added: 2814, mode: MaxEncodedLen) + /// Storage: Issue IssuePeriod (r:1 w:0) + /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Security ActiveBlockCount (r:1 w:0) + /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + fn cancel_issue() -> Weight { + // Proof Size summary in bytes: + // Measured: `1303` + // Estimated: `4768` + // Minimum execution time: 38_000_000 picoseconds. + Weight::from_parts(39_000_000, 4768) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: Issue IssuePeriod (r:0 w:1) + /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + fn set_issue_period() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(8_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Issue LimitVolumeAmount (r:0 w:1) + /// Proof: Issue LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) + /// Storage: Issue LimitVolumeCurrencyId (r:0 w:1) + /// Proof: Issue LimitVolumeCurrencyId (max_values: Some(1), max_size: Some(46), added: 541, mode: MaxEncodedLen) + /// Storage: Issue IntervalLength (r:0 w:1) + /// Proof: Issue IntervalLength (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + fn rate_limit_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 10_000_000 picoseconds. + Weight::from_parts(10_000_000, 0) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: Issue IssueMinimumTransferAmount (r:0 w:1) + /// Proof: Issue IssueMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + fn minimum_transfer_amount_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(8_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } +} \ No newline at end of file diff --git a/runtime/amplitude/src/weights/mod.rs b/runtime/amplitude/src/weights/mod.rs index 3037a35a7..8f02474aa 100644 --- a/runtime/amplitude/src/weights/mod.rs +++ b/runtime/amplitude/src/weights/mod.rs @@ -19,11 +19,22 @@ pub mod block_weights; pub mod extrinsic_weights; -pub mod orml_asset_registry; pub mod pallet_xcm; pub mod paritydb_weights; pub mod rocksdb_weights; +pub mod parachain_staking; +pub mod orml_asset_registry; +pub mod orml_currencies_allowance_extension; +pub mod treasury_buyout_extension; +pub mod fee; +pub mod issue; +pub mod nomination; +pub mod oracle; +pub mod redeem; +pub mod replace; +pub mod stellar_relay; +pub mod vault_registry; pub use block_weights::constants::BlockExecutionWeight; pub use extrinsic_weights::constants::ExtrinsicBaseWeight; -pub use rocksdb_weights::constants::RocksDbWeight; +pub use rocksdb_weights::constants::RocksDbWeight; \ No newline at end of file diff --git a/runtime/amplitude/src/weights/nomination.rs b/runtime/amplitude/src/weights/nomination.rs new file mode 100644 index 000000000..01f15c087 --- /dev/null +++ b/runtime/amplitude/src/weights/nomination.rs @@ -0,0 +1,228 @@ + +//! Autogenerated weights for nomination +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// amplitude +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// nomination +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/amplitude/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for nomination using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl nomination::WeightInfo for SubstrateWeight { + /// Storage: Nomination NominationEnabled (r:0 w:1) + /// Proof: Nomination NominationEnabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) + fn set_nomination_enabled() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(5_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Nomination NominationEnabled (r:1 w:0) + /// Proof: Nomination NominationEnabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) + /// Storage: VaultRegistry Vaults (r:1 w:0) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Nomination Vaults (r:1 w:1) + /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) + fn opt_in_to_nomination() -> Weight { + // Proof Size summary in bytes: + // Measured: `780` + // Estimated: `4245` + // Minimum execution time: 27_000_000 picoseconds. + Weight::from_parts(28_000_000, 4245) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Nomination Vaults (r:1 w:1) + /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) + /// Storage: VaultStaking Nonce (r:1 w:1) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:2 w:2) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:2 w:2) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:2 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:2 w:2) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:0) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:0) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:2 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:2 w:2) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardTally (r:2 w:2) + /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + fn opt_out_of_nomination() -> Weight { + // Proof Size summary in bytes: + // Measured: `2427` + // Estimated: `8367` + // Minimum execution time: 214_000_000 picoseconds. + Weight::from_parts(226_000_000, 8367) + .saturating_add(T::DbWeight::get().reads(25_u64)) + .saturating_add(T::DbWeight::get().writes(16_u64)) + } + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Nomination NominationEnabled (r:1 w:0) + /// Proof: Nomination NominationEnabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) + /// Storage: Nomination Vaults (r:1 w:0) + /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:2 w:1) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:2 w:1) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:1) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardTally (r:1 w:1) + /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:0) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: PooledVaultRewards TotalStake (r:1 w:1) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) + /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) + /// Storage: Tokens Accounts (r:2 w:2) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:0) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) + /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) + fn deposit_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `3100` + // Estimated: `9040` + // Minimum execution time: 208_000_000 picoseconds. + Weight::from_parts(216_000_000, 9040) + .saturating_add(T::DbWeight::get().reads(28_u64)) + .saturating_add(T::DbWeight::get().writes(13_u64)) + } + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:0) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: Nomination NominationEnabled (r:1 w:0) + /// Proof: Nomination NominationEnabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) + /// Storage: Nomination Vaults (r:1 w:0) + /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:1) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:1 w:1) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:1 w:1) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardTally (r:1 w:1) + /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) + /// Storage: PooledVaultRewards TotalStake (r:1 w:1) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) + /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) + /// Storage: Tokens Accounts (r:2 w:2) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:0) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + fn withdraw_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `3292` + // Estimated: `6757` + // Minimum execution time: 195_000_000 picoseconds. + Weight::from_parts(200_000_000, 6757) + .saturating_add(T::DbWeight::get().reads(24_u64)) + .saturating_add(T::DbWeight::get().writes(13_u64)) + } +} \ No newline at end of file diff --git a/runtime/amplitude/src/weights/oracle.rs b/runtime/amplitude/src/weights/oracle.rs new file mode 100644 index 000000000..6f60749fc --- /dev/null +++ b/runtime/amplitude/src/weights/oracle.rs @@ -0,0 +1,74 @@ + +//! Autogenerated weights for oracle +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// amplitude +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// oracle +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/amplitude/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for oracle using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl oracle::WeightInfo for SubstrateWeight { + /// Storage: Timestamp Now (r:0 w:1) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: Timestamp DidUpdate (r:0 w:1) + /// Proof: Timestamp DidUpdate (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) + fn on_initialize() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 1_000_000 picoseconds. + Weight::from_parts(2_000_000, 0) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: Oracle OracleKeys (r:0 w:1) + /// Proof Skipped: Oracle OracleKeys (max_values: Some(1), max_size: None, mode: Measured) + fn update_oracle_keys() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 10_000_000 picoseconds. + Weight::from_parts(10_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Oracle MaxDelay (r:0 w:1) + /// Proof Skipped: Oracle MaxDelay (max_values: Some(1), max_size: None, mode: Measured) + fn set_max_delay() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 9_000_000 picoseconds. + Weight::from_parts(10_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } +} \ No newline at end of file diff --git a/runtime/amplitude/src/weights/orml_currencies_allowance_extension.rs b/runtime/amplitude/src/weights/orml_currencies_allowance_extension.rs new file mode 100644 index 000000000..4eae616b7 --- /dev/null +++ b/runtime/amplitude/src/weights/orml_currencies_allowance_extension.rs @@ -0,0 +1,97 @@ + +//! Autogenerated weights for orml_currencies_allowance_extension +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// amplitude +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// orml_currencies_allowance_extension +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/amplitude/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for orml_currencies_allowance_extension using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl orml_currencies_allowance_extension::default_weights::WeightInfo for SubstrateWeight { + /// Storage: TokenAllowance AllowedCurrencies (r:2 w:1) + /// Proof Skipped: TokenAllowance AllowedCurrencies (max_values: None, max_size: None, mode: Measured) + /// The range of component `n` is `[1, 256]`. + fn add_allowed_currencies(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `142` + // Estimated: `6082` + // Minimum execution time: 17_000_000 picoseconds. + Weight::from_parts(20_059_699, 6082) + // Standard Error: 2_380 + .saturating_add(Weight::from_parts(1_332_341, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: TokenAllowance AllowedCurrencies (r:0 w:1) + /// Proof Skipped: TokenAllowance AllowedCurrencies (max_values: None, max_size: None, mode: Measured) + /// The range of component `n` is `[1, 256]`. + fn remove_allowed_currencies(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 11_000_000 picoseconds. + Weight::from_parts(10_779_821, 0) + // Standard Error: 4_298 + .saturating_add(Weight::from_parts(1_334_011, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: TokenAllowance AllowedCurrencies (r:1 w:0) + /// Proof Skipped: TokenAllowance AllowedCurrencies (max_values: None, max_size: None, mode: Measured) + /// Storage: TokenAllowance Approvals (r:0 w:1) + /// Proof Skipped: TokenAllowance Approvals (max_values: None, max_size: None, mode: Measured) + fn approve() -> Weight { + // Proof Size summary in bytes: + // Measured: `184` + // Estimated: `3649` + // Minimum execution time: 18_000_000 picoseconds. + Weight::from_parts(18_000_000, 3649) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: TokenAllowance AllowedCurrencies (r:1 w:0) + /// Proof Skipped: TokenAllowance AllowedCurrencies (max_values: None, max_size: None, mode: Measured) + /// Storage: TokenAllowance Approvals (r:1 w:1) + /// Proof Skipped: TokenAllowance Approvals (max_values: None, max_size: None, mode: Measured) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + fn transfer_from() -> Weight { + // Proof Size summary in bytes: + // Measured: `561` + // Estimated: `6196` + // Minimum execution time: 73_000_000 picoseconds. + Weight::from_parts(74_000_000, 6196) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } +} \ No newline at end of file diff --git a/runtime/amplitude/src/weights/parachain_staking.rs b/runtime/amplitude/src/weights/parachain_staking.rs new file mode 100644 index 000000000..49d64f53d --- /dev/null +++ b/runtime/amplitude/src/weights/parachain_staking.rs @@ -0,0 +1,654 @@ + +//! Autogenerated weights for parachain_staking +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-06-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// amplitude +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// parachain-staking +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/amplitude/src/weights/parachain-staking.rs +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for parachain_staking using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl parachain_staking::WeightInfo for SubstrateWeight { + /// Storage: ParachainStaking Round (r:1 w:0) + /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) + fn on_initialize_no_action() -> Weight { + // Proof Size summary in bytes: + // Measured: `427` + // Estimated: `1497` + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(5_000_000, 1497) + .saturating_add(T::DbWeight::get().reads(1_u64)) + } + /// Storage: ParachainStaking Round (r:1 w:1) + /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) + fn on_initialize_round_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `427` + // Estimated: `1497` + // Minimum execution time: 10_000_000 picoseconds. + Weight::from_parts(10_000_000, 1497) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: ParachainStaking Round (r:1 w:0) + /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) + fn on_initialize_network_rewards() -> Weight { + // Proof Size summary in bytes: + // Measured: `427` + // Estimated: `1497` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(5_000_000, 1497) + .saturating_add(T::DbWeight::get().reads(1_u64)) + } + /// Storage: ParachainStaking ForceNewRound (r:0 w:1) + /// Proof: ParachainStaking ForceNewRound (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) + fn force_new_round() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: ParachainStaking CandidatePool (r:41 w:0) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:1640 w:1640) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Rewards (r:40 w:40) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:0) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking InflationConfig (r:1 w:1) + /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + /// Storage: ParachainStaking CounterForCandidatePool (r:1 w:0) + /// Proof: ParachainStaking CounterForCandidatePool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// The range of component `n` is `[0, 40]`. + /// The range of component `m` is `[0, 40]`. + fn set_inflation(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (3891 ±0) + n * (4052 ±0)` + // Estimated: `101750 + m * (37911 ±1_054) + n * (33703 ±1_054)` + // Minimum execution time: 595_000_000 picoseconds. + Weight::from_parts(613_000_000, 101750) + // Standard Error: 3_104_233 + .saturating_add(Weight::from_parts(90_791_222, 0).saturating_mul(n.into())) + // Standard Error: 3_104_233 + .saturating_add(Weight::from_parts(93_574_370, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(124_u64)) + .saturating_add(T::DbWeight::get().reads((14_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().reads((14_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().writes(81_u64)) + .saturating_add(T::DbWeight::get().writes((14_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().writes((14_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 37911).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 33703).saturating_mul(n.into())) + } + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:1) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:0) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// The range of component `n` is `[8, 40]`. + /// The range of component `m` is `[0, 40]`. + fn set_max_selected_candidates(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `434 + n * (48 ±0)` + // Estimated: `3406` + // Minimum execution time: 19_000_000 picoseconds. + Weight::from_parts(7_372_613, 3406) + // Standard Error: 11_493 + .saturating_add(Weight::from_parts(285_897, 0).saturating_mul(n.into())) + // Standard Error: 9_233 + .saturating_add(Weight::from_parts(309_585, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: ParachainStaking Round (r:1 w:1) + /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) + fn set_blocks_per_round() -> Weight { + // Proof Size summary in bytes: + // Measured: `427` + // Estimated: `1497` + // Minimum execution time: 12_000_000 picoseconds. + Weight::from_parts(13_000_000, 1497) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: ParachainStaking CandidatePool (r:40 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:41 w:41) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: ParachainStaking DelegatorState (r:40 w:40) + /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:41 w:41) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Rewards (r:1 w:1) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking InflationConfig (r:1 w:0) + /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + /// Storage: Session Validators (r:1 w:0) + /// Proof Skipped: Session Validators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Session DisabledValidators (r:1 w:1) + /// Proof Skipped: Session DisabledValidators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: System Digest (r:1 w:1) + /// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: ParachainStaking CounterForCandidatePool (r:1 w:1) + /// Proof: ParachainStaking CounterForCandidatePool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// The range of component `n` is `[9, 40]`. + /// The range of component `m` is `[0, 40]`. + fn force_remove_candidate(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (3143 ±0) + n * (2723 ±0)` + // Estimated: `9446 + m * (2716 ±28) + n * (4505 ±27)` + // Minimum execution time: 175_000_000 picoseconds. + Weight::from_parts(178_000_000, 9446) + // Standard Error: 76_352 + .saturating_add(Weight::from_parts(1_839_740, 0).saturating_mul(n.into())) + // Standard Error: 78_833 + .saturating_add(Weight::from_parts(17_270_939, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(11_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().writes(9_u64)) + .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 2716).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 4505).saturating_mul(n.into())) + } + /// Storage: ParachainStaking CandidatePool (r:1 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking DelegatorState (r:1 w:0) + /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxCollatorCandidateStake (r:1 w:0) + /// Proof: ParachainStaking MaxCollatorCandidateStake (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:1 w:1) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: Balances Locks (r:1 w:1) + /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: Balances Freezes (r:1 w:0) + /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking CounterForCandidatePool (r:1 w:1) + /// Proof: ParachainStaking CounterForCandidatePool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// The range of component `n` is `[1, 39]`. + /// The range of component `m` is `[0, 40]`. + fn join_candidates(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `2158 + m * (45 ±0) + n * (86 ±0)` + // Estimated: `5495` + // Minimum execution time: 70_000_000 picoseconds. + Weight::from_parts(55_257_753, 5495) + // Standard Error: 15_095 + .saturating_add(Weight::from_parts(568_354, 0).saturating_mul(n.into())) + // Standard Error: 14_352 + .saturating_add(Weight::from_parts(598_729, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(11_u64)) + .saturating_add(T::DbWeight::get().writes(7_u64)) + } + /// Storage: ParachainStaking CandidatePool (r:39 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) + /// Storage: ParachainStaking Round (r:1 w:0) + /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// The range of component `n` is `[9, 39]`. + /// The range of component `m` is `[0, 40]`. + fn init_leave_candidates(n: u32, _m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (1872 ±0) + n * (2082 ±0)` + // Estimated: `3406 + n * (4505 ±0)` + // Minimum execution time: 66_000_000 picoseconds. + Weight::from_parts(67_000_000, 3406) + // Standard Error: 24_947 + .saturating_add(Weight::from_parts(2_817_902, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().writes(3_u64)) + .saturating_add(Weight::from_parts(0, 4505).saturating_mul(n.into())) + } + /// Storage: ParachainStaking CandidatePool (r:2 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// The range of component `n` is `[9, 39]`. + /// The range of component `m` is `[0, 40]`. + fn cancel_leave_candidates(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `758 + m * (96 ±0) + n * (59 ±0)` + // Estimated: `10000` + // Minimum execution time: 35_000_000 picoseconds. + Weight::from_parts(17_763_044, 10000) + // Standard Error: 12_598 + .saturating_add(Weight::from_parts(460_161, 0).saturating_mul(n.into())) + // Standard Error: 9_483 + .saturating_add(Weight::from_parts(419_062, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(5_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: ParachainStaking CandidatePool (r:1 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking Round (r:1 w:0) + /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:41 w:41) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: ParachainStaking DelegatorState (r:40 w:40) + /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:41 w:41) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Rewards (r:1 w:1) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:0) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking InflationConfig (r:1 w:0) + /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + /// Storage: Session Validators (r:1 w:0) + /// Proof Skipped: Session Validators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Session DisabledValidators (r:1 w:1) + /// Proof Skipped: Session DisabledValidators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: System Digest (r:1 w:1) + /// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: ParachainStaking CounterForCandidatePool (r:1 w:1) + /// Proof: ParachainStaking CounterForCandidatePool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// The range of component `n` is `[9, 39]`. + /// The range of component `m` is `[0, 40]`. + fn execute_leave_candidates(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (1257 ±0) + n * (655 ±0)` + // Estimated: `5495 + m * (2716 ±6) + n * (213 ±6)` + // Minimum execution time: 55_000_000 picoseconds. + Weight::from_parts(56_000_000, 5495) + // Standard Error: 42_885 + .saturating_add(Weight::from_parts(912_996, 0).saturating_mul(n.into())) + // Standard Error: 43_205 + .saturating_add(Weight::from_parts(18_615_890, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(11_u64)) + .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().writes(7_u64)) + .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 2716).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 213).saturating_mul(n.into())) + } + /// Storage: ParachainStaking CandidatePool (r:1 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxCollatorCandidateStake (r:1 w:0) + /// Proof: ParachainStaking MaxCollatorCandidateStake (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:1 w:1) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: Balances Locks (r:1 w:1) + /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: Balances Freezes (r:1 w:0) + /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:41 w:41) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Rewards (r:1 w:1) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: ParachainStaking InflationConfig (r:1 w:0) + /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + /// The range of component `n` is `[1, 39]`. + /// The range of component `m` is `[0, 40]`. + /// The range of component `u` is `[0, 9]`. + fn candidate_stake_more(n: u32, m: u32, _u: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (455 ±0) + n * (292 ±0) + u * (20 ±0)` + // Estimated: `5495 + m * (2519 ±0)` + // Minimum execution time: 78_000_000 picoseconds. + Weight::from_parts(79_000_000, 5495) + // Standard Error: 22_379 + .saturating_add(Weight::from_parts(1_080_738, 0).saturating_mul(n.into())) + // Standard Error: 21_608 + .saturating_add(Weight::from_parts(7_477_868, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(12_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().writes(8_u64)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 2519).saturating_mul(m.into())) + } + /// Storage: ParachainStaking CandidatePool (r:1 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:1 w:1) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:41 w:41) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Rewards (r:1 w:1) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: ParachainStaking InflationConfig (r:1 w:0) + /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + /// The range of component `n` is `[1, 39]`. + /// The range of component `m` is `[0, 40]`. + fn candidate_stake_less(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (442 ±0) + n * (276 ±0)` + // Estimated: `5495 + m * (2519 ±0)` + // Minimum execution time: 49_000_000 picoseconds. + Weight::from_parts(51_000_000, 5495) + // Standard Error: 21_036 + .saturating_add(Weight::from_parts(521_323, 0).saturating_mul(n.into())) + // Standard Error: 20_572 + .saturating_add(Weight::from_parts(6_885_083, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(8_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().writes(6_u64)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 2519).saturating_mul(m.into())) + } + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: ParachainStaking DelegatorState (r:1 w:1) + /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) + /// Storage: ParachainStaking CandidatePool (r:2 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:1 w:1) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: ParachainStaking LastDelegation (r:1 w:1) + /// Proof: ParachainStaking LastDelegation (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) + /// Storage: ParachainStaking Round (r:1 w:0) + /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) + /// Storage: Balances Locks (r:1 w:1) + /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: Balances Freezes (r:1 w:0) + /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:1 w:1) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// The range of component `n` is `[1, 40]`. + /// The range of component `m` is `[1, 39]`. + fn join_delegators(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `3555 + m * (113 ±0) + n * (94 ±0)` + // Estimated: `10000` + // Minimum execution time: 88_000_000 picoseconds. + Weight::from_parts(61_230_042, 10000) + // Standard Error: 15_096 + .saturating_add(Weight::from_parts(734_668, 0).saturating_mul(n.into())) + // Standard Error: 15_502 + .saturating_add(Weight::from_parts(720_729, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(13_u64)) + .saturating_add(T::DbWeight::get().writes(9_u64)) + } + /// Storage: ParachainStaking DelegatorState (r:1 w:1) + /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) + /// Storage: ParachainStaking CandidatePool (r:1 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:1 w:1) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: Balances Locks (r:1 w:1) + /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: Balances Freezes (r:1 w:0) + /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:2 w:0) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// The range of component `n` is `[1, 40]`. + /// The range of component `m` is `[1, 39]`. + /// The range of component `u` is `[1, 9]`. + fn delegator_stake_more(n: u32, m: u32, _u: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `3904 + m * (93 ±0) + n * (90 ±0) + u * (20 ±0)` + // Estimated: `6028` + // Minimum execution time: 76_000_000 picoseconds. + Weight::from_parts(60_272_765, 6028) + // Standard Error: 16_056 + .saturating_add(Weight::from_parts(661_873, 0).saturating_mul(n.into())) + // Standard Error: 16_487 + .saturating_add(Weight::from_parts(741_269, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(11_u64)) + .saturating_add(T::DbWeight::get().writes(7_u64)) + } + /// Storage: ParachainStaking DelegatorState (r:1 w:1) + /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) + /// Storage: ParachainStaking CandidatePool (r:1 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:1 w:1) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:2 w:0) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// The range of component `n` is `[1, 40]`. + /// The range of component `m` is `[1, 39]`. + fn delegator_stake_less(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `3155 + m * (74 ±0) + n * (74 ±0)` + // Estimated: `6028` + // Minimum execution time: 51_000_000 picoseconds. + Weight::from_parts(24_450_456, 6028) + // Standard Error: 13_176 + .saturating_add(Weight::from_parts(649_197, 0).saturating_mul(n.into())) + // Standard Error: 13_530 + .saturating_add(Weight::from_parts(772_252, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(8_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) + } + /// Storage: ParachainStaking DelegatorState (r:1 w:1) + /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) + /// Storage: ParachainStaking CandidatePool (r:1 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:2 w:0) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:1 w:1) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// The range of component `n` is `[1, 40]`. + /// The range of component `m` is `[1, 39]`. + fn leave_delegators(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `3155 + m * (74 ±0) + n * (74 ±0)` + // Estimated: `6028` + // Minimum execution time: 56_000_000 picoseconds. + Weight::from_parts(30_920_715, 6028) + // Standard Error: 15_455 + .saturating_add(Weight::from_parts(670_189, 0).saturating_mul(n.into())) + // Standard Error: 15_870 + .saturating_add(Weight::from_parts(634_001, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(8_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) + } + /// Storage: ParachainStaking Unstaking (r:1 w:1) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: Balances Locks (r:1 w:1) + /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: Balances Freezes (r:1 w:0) + /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// The range of component `u` is `[1, 9]`. + fn unlock_unstaked(u: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `1076 + u * (20 ±0)` + // Estimated: `4764` + // Minimum execution time: 36_000_000 picoseconds. + Weight::from_parts(38_811_600, 4764) + // Standard Error: 17_278 + .saturating_add(Weight::from_parts(132_831, 0).saturating_mul(u.into())) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: ParachainStaking MaxCollatorCandidateStake (r:0 w:1) + /// Proof: ParachainStaking MaxCollatorCandidateStake (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + fn set_max_candidate_stake() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(14_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: ParachainStaking DelegatorState (r:1 w:0) + /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:2 w:1) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Rewards (r:1 w:1) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:0) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking InflationConfig (r:1 w:0) + /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + fn increment_delegator_rewards() -> Weight { + // Proof Size summary in bytes: + // Measured: `754` + // Estimated: `6028` + // Minimum execution time: 28_000_000 picoseconds. + Weight::from_parts(32_000_000, 6028) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: ParachainStaking CandidatePool (r:1 w:0) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:41 w:41) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Rewards (r:41 w:41) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:0) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking InflationConfig (r:1 w:0) + /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + /// The range of component `m` is `[1, 40]`. + fn increment_collator_rewards(m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `855 + m * (98 ±0)` + // Estimated: `5495 + m * (2531 ±0)` + // Minimum execution time: 37_000_000 picoseconds. + Weight::from_parts(28_721_195, 5495) + // Standard Error: 18_671 + .saturating_add(Weight::from_parts(11_788_351, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(5_u64)) + .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().writes(2_u64)) + .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 2531).saturating_mul(m.into())) + } + /// Storage: ParachainStaking Rewards (r:1 w:1) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + fn claim_rewards() -> Weight { + // Proof Size summary in bytes: + // Measured: `575` + // Estimated: `3593` + // Minimum execution time: 30_000_000 picoseconds. + Weight::from_parts(31_000_000, 3593) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: ParachainStaking LastRewardReduction (r:1 w:1) + /// Proof: ParachainStaking LastRewardReduction (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking InflationConfig (r:1 w:1) + /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + /// Storage: ParachainStaking CandidatePool (r:41 w:0) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:1640 w:1640) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Rewards (r:40 w:40) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:0) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking CounterForCandidatePool (r:1 w:0) + /// Proof: ParachainStaking CounterForCandidatePool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// The range of component `n` is `[0, 40]`. + /// The range of component `m` is `[0, 40]`. + fn execute_scheduled_reward_change(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (3891 ±0) + n * (3991 ±0)` + // Estimated: `101750 + m * (37911 ±1_054) + n * (33703 ±16)` + // Minimum execution time: 525_000_000 picoseconds. + Weight::from_parts(530_000_000, 101750) + // Standard Error: 2_947_301 + .saturating_add(Weight::from_parts(89_026_856, 0).saturating_mul(n.into())) + // Standard Error: 2_947_301 + .saturating_add(Weight::from_parts(90_345_662, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(125_u64)) + .saturating_add(T::DbWeight::get().reads((14_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().reads((14_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().writes(82_u64)) + .saturating_add(T::DbWeight::get().writes((14_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().writes((14_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 37911).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 33703).saturating_mul(n.into())) + } +} \ No newline at end of file diff --git a/runtime/amplitude/src/weights/redeem.rs b/runtime/amplitude/src/weights/redeem.rs new file mode 100644 index 000000000..72f447f6d --- /dev/null +++ b/runtime/amplitude/src/weights/redeem.rs @@ -0,0 +1,295 @@ + +//! Autogenerated weights for redeem +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// amplitude +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// redeem +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/amplitude/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for redeem using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl redeem::WeightInfo for SubstrateWeight { + /// Storage: Redeem LimitVolumeAmount (r:1 w:0) + /// Proof: Redeem LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Tokens Accounts (r:1 w:1) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: Fee RedeemFee (r:1 w:0) + /// Proof Skipped: Fee RedeemFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Redeem RedeemMinimumTransferAmount (r:1 w:0) + /// Proof: Redeem RedeemMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: Security Nonce (r:1 w:1) + /// Proof Skipped: Security Nonce (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: System ParentHash (r:1 w:0) + /// Proof: System ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: Fee PremiumRedeemFee (r:1 w:0) + /// Proof Skipped: Fee PremiumRedeemFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Security ActiveBlockCount (r:1 w:0) + /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Redeem RedeemPeriod (r:1 w:0) + /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Redeem RedeemRequests (r:0 w:1) + /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) + fn request_redeem() -> Weight { + // Proof Size summary in bytes: + // Measured: `1527` + // Estimated: `4992` + // Minimum execution time: 97_000_000 picoseconds. + Weight::from_parts(102_000_000, 4992) + .saturating_add(T::DbWeight::get().reads(14_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) + } + /// Storage: Tokens Accounts (r:3 w:3) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: Tokens TotalIssuance (r:1 w:1) + /// Proof: Tokens TotalIssuance (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) + /// Storage: VaultRegistry LiquidationVault (r:1 w:1) + /// Proof Skipped: VaultRegistry LiquidationVault (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + fn liquidation_redeem() -> Weight { + // Proof Size summary in bytes: + // Measured: `1346` + // Estimated: `8865` + // Minimum execution time: 125_000_000 picoseconds. + Weight::from_parts(129_000_000, 8865) + .saturating_add(T::DbWeight::get().reads(8_u64)) + .saturating_add(T::DbWeight::get().writes(8_u64)) + } + /// Storage: Redeem RedeemRequests (r:1 w:1) + /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) + /// Storage: StellarRelay NewValidatorsEnactmentBlockHeight (r:1 w:0) + /// Proof: StellarRelay NewValidatorsEnactmentBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: StellarRelay Validators (r:1 w:0) + /// Proof: StellarRelay Validators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) + /// Storage: StellarRelay Organizations (r:1 w:0) + /// Proof: StellarRelay Organizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) + /// Storage: Redeem LimitVolumeAmount (r:1 w:0) + /// Proof: Redeem LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalStake (r:1 w:0) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + fn execute_redeem() -> Weight { + // Proof Size summary in bytes: + // Measured: `1731` + // Estimated: `71867` + // Minimum execution time: 8_279_000_000 picoseconds. + Weight::from_parts(8_432_000_000, 71867) + .saturating_add(T::DbWeight::get().reads(7_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Redeem RedeemRequests (r:1 w:1) + /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) + /// Storage: Redeem RedeemPeriod (r:1 w:0) + /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Security ActiveBlockCount (r:1 w:0) + /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Fee PunishmentFee (r:1 w:0) + /// Proof Skipped: Fee PunishmentFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:0) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry PunishmentDelay (r:1 w:0) + /// Proof Skipped: VaultRegistry PunishmentDelay (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards TotalStake (r:2 w:0) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: Redeem CancelledRedeemAmount (r:0 w:1) + /// Proof: Redeem CancelledRedeemAmount (max_values: None, max_size: Some(110), added: 2585, mode: MaxEncodedLen) + fn cancel_redeem_reimburse() -> Weight { + // Proof Size summary in bytes: + // Measured: `2658` + // Estimated: `6123` + // Minimum execution time: 156_000_000 picoseconds. + Weight::from_parts(160_000_000, 6123) + .saturating_add(T::DbWeight::get().reads(20_u64)) + .saturating_add(T::DbWeight::get().writes(7_u64)) + } + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Redeem RedeemRequests (r:1 w:1) + /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) + /// Storage: Redeem RedeemPeriod (r:1 w:0) + /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Security ActiveBlockCount (r:1 w:0) + /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Fee PunishmentFee (r:1 w:0) + /// Proof Skipped: Fee PunishmentFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:0) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry PunishmentDelay (r:1 w:0) + /// Proof Skipped: VaultRegistry PunishmentDelay (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Redeem CancelledRedeemAmount (r:0 w:1) + /// Proof: Redeem CancelledRedeemAmount (max_values: None, max_size: Some(110), added: 2585, mode: MaxEncodedLen) + fn cancel_redeem_retry() -> Weight { + // Proof Size summary in bytes: + // Measured: `2551` + // Estimated: `6016` + // Minimum execution time: 133_000_000 picoseconds. + Weight::from_parts(145_000_000, 6016) + .saturating_add(T::DbWeight::get().reads(17_u64)) + .saturating_add(T::DbWeight::get().writes(7_u64)) + } + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Tokens Accounts (r:1 w:1) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: Tokens TotalIssuance (r:1 w:1) + /// Proof: Tokens TotalIssuance (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalStake (r:2 w:0) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + fn self_redeem() -> Weight { + // Proof Size summary in bytes: + // Measured: `1620` + // Estimated: `6096` + // Minimum execution time: 98_000_000 picoseconds. + Weight::from_parts(105_000_000, 6096) + .saturating_add(T::DbWeight::get().reads(7_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) + } + /// Storage: Redeem RedeemPeriod (r:0 w:1) + /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + fn set_redeem_period() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 9_000_000 picoseconds. + Weight::from_parts(10_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Redeem RedeemRequests (r:1 w:1) + /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) + /// Storage: Redeem CancelledRedeemAmount (r:1 w:1) + /// Proof: Redeem CancelledRedeemAmount (max_values: None, max_size: Some(110), added: 2585, mode: MaxEncodedLen) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + fn mint_tokens_for_reimbursed_redeem() -> Weight { + // Proof Size summary in bytes: + // Measured: `1839` + // Estimated: `5304` + // Minimum execution time: 76_000_000 picoseconds. + Weight::from_parts(80_000_000, 5304) + .saturating_add(T::DbWeight::get().reads(7_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: Redeem LimitVolumeAmount (r:0 w:1) + /// Proof: Redeem LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) + /// Storage: Redeem LimitVolumeCurrencyId (r:0 w:1) + /// Proof: Redeem LimitVolumeCurrencyId (max_values: Some(1), max_size: Some(46), added: 541, mode: MaxEncodedLen) + /// Storage: Redeem IntervalLength (r:0 w:1) + /// Proof: Redeem IntervalLength (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + fn rate_limit_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 13_000_000 picoseconds. + Weight::from_parts(13_000_000, 0) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: Redeem RedeemMinimumTransferAmount (r:0 w:1) + /// Proof: Redeem RedeemMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + fn minimum_transfer_amount_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 10_000_000 picoseconds. + Weight::from_parts(11_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } +} \ No newline at end of file diff --git a/runtime/amplitude/src/weights/replace.rs b/runtime/amplitude/src/weights/replace.rs new file mode 100644 index 000000000..6539d108b --- /dev/null +++ b/runtime/amplitude/src/weights/replace.rs @@ -0,0 +1,223 @@ + +//! Autogenerated weights for replace +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// amplitude +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// replace +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/amplitude/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for replace using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl replace::WeightInfo for SubstrateWeight { + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Nomination Vaults (r:1 w:0) + /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) + /// Storage: Replace ReplaceMinimumTransferAmount (r:1 w:0) + /// Proof: Replace ReplaceMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Fee ReplaceGriefingCollateral (r:1 w:0) + /// Proof Skipped: Fee ReplaceGriefingCollateral (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + fn request_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `1498` + // Estimated: `4963` + // Minimum execution time: 73_000_000 picoseconds. + Weight::from_parts(76_000_000, 4963) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + fn withdraw_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `650` + // Estimated: `4115` + // Minimum execution time: 29_000_000 picoseconds. + Weight::from_parts(31_000_000, 4115) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: VaultRegistry Vaults (r:2 w:2) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Replace ReplaceMinimumTransferAmount (r:1 w:0) + /// Proof: Replace ReplaceMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) + /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) + /// Storage: Tokens Accounts (r:1 w:1) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:1) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:1 w:1) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:1 w:1) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardTally (r:1 w:1) + /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) + /// Storage: PooledVaultRewards TotalStake (r:1 w:1) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) + /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Security Nonce (r:1 w:1) + /// Proof Skipped: Security Nonce (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: System ParentHash (r:1 w:0) + /// Proof: System ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: Security ActiveBlockCount (r:1 w:0) + /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Replace ReplacePeriod (r:1 w:0) + /// Proof: Replace ReplacePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Replace ReplaceRequests (r:0 w:1) + /// Proof: Replace ReplaceRequests (max_values: None, max_size: Some(431), added: 2906, mode: MaxEncodedLen) + fn accept_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `3277` + // Estimated: `9217` + // Minimum execution time: 233_000_000 picoseconds. + Weight::from_parts(248_000_000, 9217) + .saturating_add(T::DbWeight::get().reads(27_u64)) + .saturating_add(T::DbWeight::get().writes(16_u64)) + } + /// Storage: Replace ReplaceRequests (r:1 w:1) + /// Proof: Replace ReplaceRequests (max_values: None, max_size: Some(431), added: 2906, mode: MaxEncodedLen) + /// Storage: StellarRelay NewValidatorsEnactmentBlockHeight (r:1 w:0) + /// Proof: StellarRelay NewValidatorsEnactmentBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: StellarRelay Validators (r:1 w:0) + /// Proof: StellarRelay Validators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) + /// Storage: StellarRelay Organizations (r:1 w:0) + /// Proof: StellarRelay Organizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) + /// Storage: VaultRegistry Vaults (r:2 w:2) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + fn execute_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `1968` + // Estimated: `71867` + // Minimum execution time: 8_218_000_000 picoseconds. + Weight::from_parts(8_353_000_000, 71867) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: Replace ReplaceRequests (r:1 w:1) + /// Proof: Replace ReplaceRequests (max_values: None, max_size: Some(431), added: 2906, mode: MaxEncodedLen) + /// Storage: Replace ReplacePeriod (r:1 w:0) + /// Proof: Replace ReplacePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Security ActiveBlockCount (r:1 w:0) + /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:2 w:2) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:0) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:1 w:1) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:1 w:1) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + fn cancel_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `3080` + // Estimated: `9020` + // Minimum execution time: 144_000_000 picoseconds. + Weight::from_parts(164_000_000, 9020) + .saturating_add(T::DbWeight::get().reads(20_u64)) + .saturating_add(T::DbWeight::get().writes(10_u64)) + } + /// Storage: Replace ReplacePeriod (r:0 w:1) + /// Proof: Replace ReplacePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + fn set_replace_period() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 10_000_000 picoseconds. + Weight::from_parts(10_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Replace ReplaceMinimumTransferAmount (r:0 w:1) + /// Proof: Replace ReplaceMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + fn minimum_transfer_amount_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 10_000_000 picoseconds. + Weight::from_parts(10_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } +} \ No newline at end of file diff --git a/runtime/amplitude/src/weights/stellar_relay.rs b/runtime/amplitude/src/weights/stellar_relay.rs new file mode 100644 index 000000000..cb81cc0d2 --- /dev/null +++ b/runtime/amplitude/src/weights/stellar_relay.rs @@ -0,0 +1,61 @@ + +//! Autogenerated weights for stellar_relay +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// amplitude +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// stellar_relay +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/amplitude/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for stellar_relay using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl stellar_relay::WeightInfo for SubstrateWeight { + /// Storage: StellarRelay Validators (r:1 w:1) + /// Proof: StellarRelay Validators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) + /// Storage: StellarRelay Organizations (r:1 w:1) + /// Proof: StellarRelay Organizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) + /// Storage: StellarRelay OldValidators (r:0 w:1) + /// Proof: StellarRelay OldValidators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) + /// Storage: StellarRelay NewValidatorsEnactmentBlockHeight (r:0 w:1) + /// Proof: StellarRelay NewValidatorsEnactmentBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: StellarRelay OldOrganizations (r:0 w:1) + /// Proof: StellarRelay OldOrganizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) + fn update_tier_1_validator_set() -> Weight { + // Proof Size summary in bytes: + // Measured: `2446` + // Estimated: `71867` + // Minimum execution time: 150_000_000 picoseconds. + Weight::from_parts(152_000_000, 71867) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) + } +} \ No newline at end of file diff --git a/runtime/amplitude/src/weights/treasury_buyout_extension.rs b/runtime/amplitude/src/weights/treasury_buyout_extension.rs new file mode 100644 index 000000000..3e32e3129 --- /dev/null +++ b/runtime/amplitude/src/weights/treasury_buyout_extension.rs @@ -0,0 +1,89 @@ + +//! Autogenerated weights for treasury_buyout_extension +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-05-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// amplitude +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// treasury-buyout-extension +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/amplitude/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for treasury_buyout_extension using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl treasury_buyout_extension::default_weights::WeightInfo for SubstrateWeight { + /// Storage: TreasuryBuyoutExtension AllowedCurrencies (r:1 w:0) + /// Proof: TreasuryBuyoutExtension AllowedCurrencies (max_values: None, max_size: Some(62), added: 2537, mode: MaxEncodedLen) + /// Storage: AssetRegistry Metadata (r:2 w:0) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: DiaOracleModule CoinInfosMap (r:1 w:0) + /// Proof Skipped: DiaOracleModule CoinInfosMap (max_values: None, max_size: None, mode: Measured) + /// Storage: TreasuryBuyoutExtension BuyoutLimit (r:1 w:0) + /// Proof: TreasuryBuyoutExtension BuyoutLimit (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: TreasuryBuyoutExtension Buyouts (r:1 w:1) + /// Proof: TreasuryBuyoutExtension Buyouts (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen) + /// Storage: Tokens Accounts (r:2 w:2) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + fn buyout() -> Weight { + // Proof Size summary in bytes: + // Measured: `944` + // Estimated: `6884` + // Minimum execution time: 118_000_000 picoseconds. + Weight::from_parts(121_000_000, 6884) + .saturating_add(T::DbWeight::get().reads(10_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) + } + /// Storage: TreasuryBuyoutExtension BuyoutLimit (r:0 w:1) + /// Proof: TreasuryBuyoutExtension BuyoutLimit (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + fn update_buyout_limit() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(8_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: TreasuryBuyoutExtension AllowedCurrencies (r:1 w:1) + /// Proof: TreasuryBuyoutExtension AllowedCurrencies (max_values: None, max_size: Some(62), added: 2537, mode: MaxEncodedLen) + /// The range of component `n` is `[1, 20]`. + fn update_allowed_assets(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `4` + // Estimated: `3527` + // Minimum execution time: 16_000_000 picoseconds. + Weight::from_parts(15_762_722, 3527) + // Standard Error: 4_500 + .saturating_add(Weight::from_parts(1_228_071, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } +} \ No newline at end of file diff --git a/runtime/amplitude/src/weights/vault_registry.rs b/runtime/amplitude/src/weights/vault_registry.rs new file mode 100644 index 000000000..ea938346d --- /dev/null +++ b/runtime/amplitude/src/weights/vault_registry.rs @@ -0,0 +1,381 @@ + +//! Autogenerated weights for vault_registry +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("amplitude"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// amplitude +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// vault-registry +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/amplitude/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for vault_registry using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl vault_registry::WeightInfo for SubstrateWeight { + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry LiquidationCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry LiquidationCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry MinimumCollateralVault (r:1 w:0) + /// Proof Skipped: VaultRegistry MinimumCollateralVault (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) + /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry VaultStellarPublicKey (r:1 w:0) + /// Proof Skipped: VaultRegistry VaultStellarPublicKey (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: Tokens Accounts (r:1 w:1) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:1) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:1 w:1) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:1 w:1) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardTally (r:1 w:1) + /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: PooledVaultRewards TotalStake (r:1 w:1) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) + /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) + fn register_vault() -> Weight { + // Proof Size summary in bytes: + // Measured: `1079` + // Estimated: `4544` + // Minimum execution time: 154_000_000 picoseconds. + Weight::from_parts(159_000_000, 4544) + .saturating_add(T::DbWeight::get().reads(24_u64)) + .saturating_add(T::DbWeight::get().writes(12_u64)) + } + /// Storage: VaultRegistry Vaults (r:1 w:0) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) + /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) + /// Storage: Tokens Accounts (r:1 w:1) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:1) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:1 w:1) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:1 w:1) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardTally (r:1 w:1) + /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) + /// Storage: PooledVaultRewards TotalStake (r:1 w:1) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) + /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + fn deposit_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `2501` + // Estimated: `5966` + // Minimum execution time: 180_000_000 picoseconds. + Weight::from_parts(186_000_000, 5966) + .saturating_add(T::DbWeight::get().reads(21_u64)) + .saturating_add(T::DbWeight::get().writes(12_u64)) + } + /// Storage: VaultRegistry Vaults (r:1 w:0) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:1 w:1) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:1 w:1) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: Tokens Accounts (r:1 w:1) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:1) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardTally (r:1 w:1) + /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) + /// Storage: PooledVaultRewards TotalStake (r:1 w:1) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) + /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) + fn withdraw_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `2475` + // Estimated: `5940` + // Minimum execution time: 182_000_000 picoseconds. + Weight::from_parts(188_000_000, 5940) + .saturating_add(T::DbWeight::get().reads(21_u64)) + .saturating_add(T::DbWeight::get().writes(12_u64)) + } + /// Storage: VaultRegistry VaultStellarPublicKey (r:1 w:1) + /// Proof Skipped: VaultRegistry VaultStellarPublicKey (max_values: None, max_size: None, mode: Measured) + fn register_public_key() -> Weight { + // Proof Size summary in bytes: + // Measured: `334` + // Estimated: `3799` + // Minimum execution time: 15_000_000 picoseconds. + Weight::from_parts(16_000_000, 3799) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:0) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + fn accept_new_issues() -> Weight { + // Proof Size summary in bytes: + // Measured: `1484` + // Estimated: `4949` + // Minimum execution time: 59_000_000 picoseconds. + Weight::from_parts(61_000_000, 4949) + .saturating_add(T::DbWeight::get().reads(9_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) + } + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + fn set_custom_secure_threshold() -> Weight { + // Proof Size summary in bytes: + // Measured: `711` + // Estimated: `4176` + // Minimum execution time: 17_000_000 picoseconds. + Weight::from_parts(17_000_000, 4176) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: VaultRegistry MinimumCollateralVault (r:0 w:1) + /// Proof Skipped: VaultRegistry MinimumCollateralVault (max_values: None, max_size: None, mode: Measured) + fn set_minimum_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(6_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: VaultRegistry SystemCollateralCeiling (r:0 w:1) + /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) + fn set_system_collateral_ceiling() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(6_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: VaultStaking RewardCurrencies (r:1 w:1) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultRegistry SecureCollateralThreshold (r:0 w:1) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + fn set_secure_collateral_threshold() -> Weight { + // Proof Size summary in bytes: + // Measured: `80` + // Estimated: `1565` + // Minimum execution time: 10_000_000 picoseconds. + Weight::from_parts(11_000_000, 1565) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: VaultRegistry PremiumRedeemThreshold (r:0 w:1) + /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) + fn set_premium_redeem_threshold() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(6_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: VaultRegistry LiquidationCollateralThreshold (r:0 w:1) + /// Proof Skipped: VaultRegistry LiquidationCollateralThreshold (max_values: None, max_size: None, mode: Measured) + fn set_liquidation_collateral_threshold() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(6_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry LiquidationCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry LiquidationCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:1 w:1) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:1 w:1) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:1) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardTally (r:1 w:1) + /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) + /// Storage: PooledVaultRewards TotalStake (r:1 w:1) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) + /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: Tokens Accounts (r:2 w:2) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: System Account (r:2 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) + /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry LiquidationVault (r:1 w:1) + /// Proof Skipped: VaultRegistry LiquidationVault (max_values: None, max_size: None, mode: Measured) + fn report_undercollateralized_vault() -> Weight { + // Proof Size summary in bytes: + // Measured: `2675` + // Estimated: `6240` + // Minimum execution time: 330_000_000 picoseconds. + Weight::from_parts(336_000_000, 6240) + .saturating_add(T::DbWeight::get().reads(25_u64)) + .saturating_add(T::DbWeight::get().writes(16_u64)) + } + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + fn recover_vault_id() -> Weight { + // Proof Size summary in bytes: + // Measured: `649` + // Estimated: `4114` + // Minimum execution time: 16_000_000 picoseconds. + Weight::from_parts(16_000_000, 4114) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: VaultRegistry PunishmentDelay (r:0 w:1) + /// Proof Skipped: VaultRegistry PunishmentDelay (max_values: Some(1), max_size: None, mode: Measured) + fn set_punishment_delay() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(5_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } +} \ No newline at end of file diff --git a/runtime/common/Cargo.toml b/runtime/common/Cargo.toml index cb18e612d..28350211f 100644 --- a/runtime/common/Cargo.toml +++ b/runtime/common/Cargo.toml @@ -34,7 +34,7 @@ orml-xcm-support = { git = "https://github.com/open-web3-stack/open-runtime-modu dia-oracle = { git = "https://github.com/pendulum-chain/oracle-pallet", default-features = false, branch = "polkadot-v0.9.42" } zenlink-protocol = { git = "https://github.com/zenlinkpro/Zenlink-DEX-Module", default-features = false, branch = "polkadot-v0.9.42" } -spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} +spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } treasury-buyout-extension = { path = "../../pallets/treasury-buyout-extension", default-features = false } [features] @@ -62,7 +62,6 @@ std = [ "spacewalk-primitives/std", "cumulus-primitives-core/std", "treasury-buyout-extension/std", - ] runtime-benchmarks = [ @@ -71,5 +70,4 @@ runtime-benchmarks = [ "frame-support/runtime-benchmarks", "frame-system/runtime-benchmarks", "treasury-buyout-extension/runtime-benchmarks", - ] diff --git a/runtime/foucoco/Cargo.toml b/runtime/foucoco/Cargo.toml index 10244f392..816f8d5fb 100644 --- a/runtime/foucoco/Cargo.toml +++ b/runtime/foucoco/Cargo.toml @@ -26,31 +26,31 @@ cfg-if = "1.0.0" # Local runtime-common = { path = "../common", default-features = false } -token-chain-extension = {path = "../../chain-extensions/token", default-features = false } -price-chain-extension = {path = "../../chain-extensions/price", default-features = false } +token-chain-extension = { path = "../../chain-extensions/token", default-features = false } +price-chain-extension = { path = "../../chain-extensions/price", default-features = false } # custom libraries from spacewalk -clients-info = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -currency = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -security = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -staking = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -oracle = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -stellar-relay = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -fee = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -vault-registry = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -redeem = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -issue = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -nomination = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -replace = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -pooled-rewards = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -reward-distribution = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} +clients-info = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +currency = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +security = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +staking = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +oracle = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +stellar-relay = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +fee = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +vault-registry = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +redeem = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +issue = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +nomination = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +replace = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +pooled-rewards = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +reward-distribution = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } -module-issue-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -module-oracle-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -module-redeem-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -module-replace-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -module-vault-registry-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} +module-issue-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +module-oracle-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +module-redeem-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +module-replace-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +module-vault-registry-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } module-pallet-staking-rpc-runtime-api = { path = "../../pallets/parachain-staking/rpc/runtime-api", default-features = false } # Substrate @@ -247,7 +247,6 @@ std = [ "bifrost-farming-rpc-runtime-api/std", "price-chain-extension/std", "token-chain-extension/std", - ] runtime-benchmarks = [ @@ -264,6 +263,7 @@ runtime-benchmarks = [ "cumulus-pallet-session-benchmarking/runtime-benchmarks", "cumulus-pallet-xcmp-queue/runtime-benchmarks", "pallet-collective/runtime-benchmarks", + "currency/runtime-benchmarks", "fee/runtime-benchmarks", "issue/runtime-benchmarks", "nomination/runtime-benchmarks", @@ -275,6 +275,7 @@ runtime-benchmarks = [ "oracle/testing-utils", "runtime-common/runtime-benchmarks", "orml-currencies-allowance-extension/runtime-benchmarks", + "parachain-staking/runtime-benchmarks", "orml-tokens-management-extension/runtime-benchmarks", "treasury-buyout-extension/runtime-benchmarks", ] diff --git a/runtime/foucoco/src/lib.rs b/runtime/foucoco/src/lib.rs index d637d88b3..898c74687 100644 --- a/runtime/foucoco/src/lib.rs +++ b/runtime/foucoco/src/lib.rs @@ -98,7 +98,7 @@ use oracle::dia::DiaOracleAdapter; use polkadot_runtime_common::{BlockHashCount, SlowAdjustingFeeUpdate}; use spacewalk_primitives::{ - self as primitives, CurrencyId, CurrencyId::XCM, Moment, SignedFixedPoint, SignedInner, + self as primitives, Asset, CurrencyId, CurrencyId::XCM, Moment, SignedFixedPoint, SignedInner, UnsignedFixedPoint, UnsignedInner, }; @@ -193,31 +193,6 @@ pub type Executive = frame_executive::Executive< ), >; -cfg_if::cfg_if! { - if #[cfg(feature = "runtime-benchmarks")] { - use oracle::testing_utils::{ - MockConvertMoment, MockConvertPrice, MockDiaOracle, MockOracleKeyConvertor, - }; - type DataProviderImpl = DiaOracleAdapter< - MockDiaOracle, - UnsignedFixedPoint, - Moment, - MockOracleKeyConvertor, - MockConvertPrice, - MockConvertMoment, - >; - } else { - type DataProviderImpl = DiaOracleAdapter< - DiaOracleModule, - UnsignedFixedPoint, - Moment, - asset_registry::AssetRegistryToDiaOracleKeyConvertor, - ConvertPrice, - ConvertMoment, - >; - } -} - pub struct ConvertPrice; impl Convert> for ConvertPrice { @@ -927,7 +902,7 @@ impl parachain_staking::Config for Runtime { type NetworkRewardStart = NetworkRewardStart; type NetworkRewardBeneficiary = Treasury; type CollatorRewardRateDecay = CollatorRewardRateDecay; - type WeightInfo = parachain_staking::default_weights::SubstrateWeight; + type WeightInfo = weights::parachain_staking::SubstrateWeight; const BLOCKS_PER_YEAR: BlockNumber = BLOCKS_PER_YEAR; } @@ -1000,7 +975,7 @@ parameter_types! { impl orml_tokens_management_extension::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = orml_tokens_management_extension::default_weights::SubstrateWeight; + type WeightInfo = weights::orml_tokens_management_extension::SubstrateWeight; type CurrencyIdChecker = CurrencyIdCheckerImpl; type DepositCurrency = DepositCurrency; type AssetDeposit = AssetDeposit; @@ -1038,7 +1013,7 @@ impl treasury_buyout_extension::Config for Runtime { type DecimalsLookup = DecimalsLookupImpl; type MinAmountToBuyout = MinAmountToBuyout; type MaxAllowedBuyoutCurrencies = MaxAllowedBuyoutCurrencies; - type WeightInfo = treasury_buyout_extension::default_weights::SubstrateWeight; + type WeightInfo = weights::treasury_buyout_extension::SubstrateWeight; #[cfg(feature = "runtime-benchmarks")] type RelayChainCurrencyId = RelayChainCurrencyId; } @@ -1087,8 +1062,7 @@ impl pallet_insecure_randomness_collective_flip::Config for Runtime {} impl orml_currencies_allowance_extension::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = - orml_currencies_allowance_extension::default_weights::SubstrateWeight; + type WeightInfo = weights::orml_currencies_allowance_extension::SubstrateWeight; type MaxAllowedCurrencies = ConstU32<256>; } @@ -1182,6 +1156,14 @@ impl currency::CurrencyConversion, CurrencyId> for Cur parameter_types! { pub const RelayChainCurrencyId: CurrencyId = XCM(0); + // This specific asset is used for benchmarking Spacewalk pallets as it's already used as the wrapped currency in the genesis config + pub const GetWrappedCurrencyId: CurrencyId = CurrencyId::Stellar(Asset::AlphaNum4 { + code: *b"USDC", + issuer: [ + 59, 153, 17, 56, 14, 254, 152, 139, 160, 168, 144, 14, 177, 207, 228, 79, 54, 111, 125, + 190, 148, 107, 237, 7, 114, 64, 247, 246, 36, 223, 21, 197, + ], + }); } impl currency::Config for Runtime { type UnsignedFixedPoint = UnsignedFixedPoint; @@ -1189,6 +1171,8 @@ impl currency::Config for Runtime { type SignedFixedPoint = SignedFixedPoint; type Balance = Balance; type GetRelayChainCurrencyId = RelayChainCurrencyId; + #[cfg(feature = "runtime-benchmarks")] + type GetWrappedCurrencyId = GetWrappedCurrencyId; type AssetConversion = primitives::AssetConversion; type BalanceConversion = primitives::BalanceConversion; type CurrencyConversion = CurrencyConvert; @@ -1236,9 +1220,34 @@ impl staking::Config for Runtime { type MaxRewardCurrencies = MaxRewardCurrencies; } +cfg_if::cfg_if! { + if #[cfg(feature = "runtime-benchmarks")] { + use oracle::testing_utils::{ + MockConvertMoment, MockConvertPrice, MockDiaOracle, MockOracleKeyConvertor, + }; + type DataProviderImpl = DiaOracleAdapter< + MockDiaOracle, + UnsignedFixedPoint, + Moment, + MockOracleKeyConvertor, + MockConvertPrice, + MockConvertMoment, + >; + } else { + type DataProviderImpl = DiaOracleAdapter< + DiaOracleModule, + UnsignedFixedPoint, + Moment, + asset_registry::AssetRegistryToDiaOracleKeyConvertor, + ConvertPrice, + ConvertMoment, + >; + } +} + impl oracle::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = oracle::SubstrateWeight; + type WeightInfo = weights::oracle::SubstrateWeight; type DecimalsLookup = DecimalsLookupImpl; type DataProvider = DataProviderImpl; #[cfg(feature = "runtime-benchmarks")] @@ -1257,7 +1266,7 @@ impl stellar_relay::Config for Runtime { type OrganizationLimit = OrganizationLimit; type ValidatorLimit = ValidatorLimit; type IsPublicNetwork = IsPublicNetwork; - type WeightInfo = stellar_relay::SubstrateWeight; + type WeightInfo = weights::stellar_relay::SubstrateWeight; } parameter_types! { @@ -1270,7 +1279,7 @@ parameter_types! { impl fee::Config for Runtime { type FeePalletId = FeePalletId; - type WeightInfo = fee::SubstrateWeight; + type WeightInfo = weights::fee::SubstrateWeight; type SignedFixedPoint = SignedFixedPoint; type SignedInner = SignedInner; type UnsignedFixedPoint = UnsignedFixedPoint; @@ -1286,13 +1295,13 @@ impl vault_registry::Config for Runtime { type PalletId = VaultRegistryPalletId; type RuntimeEvent = RuntimeEvent; type Balance = Balance; - type WeightInfo = vault_registry::SubstrateWeight; + type WeightInfo = weights::vault_registry::SubstrateWeight; type GetGriefingCollateralCurrencyId = NativeCurrencyId; } impl redeem::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = redeem::SubstrateWeight; + type WeightInfo = weights::redeem::SubstrateWeight; } pub struct BlockNumberToBalance; @@ -1306,17 +1315,17 @@ impl sp_runtime::traits::Convert for BlockNumberToBalance impl issue::Config for Runtime { type RuntimeEvent = RuntimeEvent; type BlockNumberToBalance = BlockNumberToBalance; - type WeightInfo = issue::SubstrateWeight; + type WeightInfo = weights::issue::SubstrateWeight; } impl nomination::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = nomination::SubstrateWeight; + type WeightInfo = weights::nomination::SubstrateWeight; } impl replace::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = replace::SubstrateWeight; + type WeightInfo = weights::replace::SubstrateWeight; } impl clients_info::Config for Runtime { @@ -1514,6 +1523,7 @@ mod benches { [pallet_session, SessionBench::] [pallet_timestamp, Timestamp] [cumulus_pallet_xcmp_queue, XcmpQueue] + [parachain_staking, ParachainStaking] [fee, Fee] [issue, Issue] diff --git a/runtime/foucoco/src/weights/fee.rs b/runtime/foucoco/src/weights/fee.rs new file mode 100644 index 000000000..8d83068e2 --- /dev/null +++ b/runtime/foucoco/src/weights/fee.rs @@ -0,0 +1,102 @@ + +//! Autogenerated weights for fee +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// foucoco +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// fee +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/foucoco/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for fee using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl fee::WeightInfo for SubstrateWeight { + /// Storage: Fee IssueFee (r:0 w:1) + /// Proof Skipped: Fee IssueFee (max_values: Some(1), max_size: None, mode: Measured) + fn set_issue_fee() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(5_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Fee IssueGriefingCollateral (r:0 w:1) + /// Proof Skipped: Fee IssueGriefingCollateral (max_values: Some(1), max_size: None, mode: Measured) + fn set_issue_griefing_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(5_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Fee RedeemFee (r:0 w:1) + /// Proof Skipped: Fee RedeemFee (max_values: Some(1), max_size: None, mode: Measured) + fn set_redeem_fee() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(5_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Fee PremiumRedeemFee (r:0 w:1) + /// Proof Skipped: Fee PremiumRedeemFee (max_values: Some(1), max_size: None, mode: Measured) + fn set_premium_redeem_fee() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(5_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Fee PunishmentFee (r:0 w:1) + /// Proof Skipped: Fee PunishmentFee (max_values: Some(1), max_size: None, mode: Measured) + fn set_punishment_fee() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(5_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Fee ReplaceGriefingCollateral (r:0 w:1) + /// Proof Skipped: Fee ReplaceGriefingCollateral (max_values: Some(1), max_size: None, mode: Measured) + fn set_replace_griefing_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(5_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } +} \ No newline at end of file diff --git a/runtime/foucoco/src/weights/issue.rs b/runtime/foucoco/src/weights/issue.rs new file mode 100644 index 000000000..cc465d375 --- /dev/null +++ b/runtime/foucoco/src/weights/issue.rs @@ -0,0 +1,165 @@ + +//! Autogenerated weights for issue +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-06-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Marcels-MBP`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/pendulum-node +// benchmark +// pallet +// --chain +// foucoco +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// issue +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/foucoco/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for issue using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl issue::WeightInfo for SubstrateWeight { + /// Storage: Issue LimitVolumeAmount (r:1 w:0) + /// Proof: Issue LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: AssetRegistry Metadata (r:3 w:0) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: Fee IssueGriefingCollateral (r:1 w:0) + /// Proof Skipped: Fee IssueGriefingCollateral (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: Issue IssueMinimumTransferAmount (r:1 w:0) + /// Proof: Issue IssueMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: Fee IssueFee (r:1 w:0) + /// Proof Skipped: Fee IssueFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Security Nonce (r:1 w:1) + /// Proof Skipped: Security Nonce (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: System ParentHash (r:1 w:0) + /// Proof: System ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: VaultRegistry VaultStellarPublicKey (r:1 w:0) + /// Proof Skipped: VaultRegistry VaultStellarPublicKey (max_values: None, max_size: None, mode: Measured) + /// Storage: Security ActiveBlockCount (r:1 w:0) + /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Issue IssuePeriod (r:1 w:0) + /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Issue IssueRequests (r:0 w:1) + /// Proof: Issue IssueRequests (max_values: None, max_size: Some(339), added: 2814, mode: MaxEncodedLen) + fn request_issue() -> Weight { + // Proof Size summary in bytes: + // Measured: `1962` + // Estimated: `10377` + // Minimum execution time: 102_000_000 picoseconds. + Weight::from_parts(104_000_000, 10377) + .saturating_add(T::DbWeight::get().reads(18_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) + } + /// Storage: Issue IssueRequests (r:1 w:1) + /// Proof: Issue IssueRequests (max_values: None, max_size: Some(339), added: 2814, mode: MaxEncodedLen) + /// Storage: StellarRelay NewValidatorsEnactmentBlockHeight (r:1 w:0) + /// Proof: StellarRelay NewValidatorsEnactmentBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: StellarRelay Validators (r:1 w:0) + /// Proof: StellarRelay Validators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) + /// Storage: StellarRelay Organizations (r:1 w:0) + /// Proof: StellarRelay Organizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Fee IssueFee (r:1 w:0) + /// Proof Skipped: Fee IssueFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Issue LimitVolumeAmount (r:1 w:0) + /// Proof: Issue LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalStake (r:2 w:0) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: AssetRegistry Metadata (r:1 w:0) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + fn execute_issue() -> Weight { + // Proof Size summary in bytes: + // Measured: `2499` + // Estimated: `71867` + // Minimum execution time: 8_834_000_000 picoseconds. + Weight::from_parts(8_916_000_000, 71867) + .saturating_add(T::DbWeight::get().reads(11_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: Issue IssueRequests (r:1 w:1) + /// Proof: Issue IssueRequests (max_values: None, max_size: Some(339), added: 2814, mode: MaxEncodedLen) + /// Storage: Issue IssuePeriod (r:1 w:0) + /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Security ActiveBlockCount (r:1 w:0) + /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + fn cancel_issue() -> Weight { + // Proof Size summary in bytes: + // Measured: `1270` + // Estimated: `4735` + // Minimum execution time: 38_000_000 picoseconds. + Weight::from_parts(39_000_000, 4735) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: Issue IssuePeriod (r:0 w:1) + /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + fn set_issue_period() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(8_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Issue LimitVolumeAmount (r:0 w:1) + /// Proof: Issue LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) + /// Storage: Issue LimitVolumeCurrencyId (r:0 w:1) + /// Proof: Issue LimitVolumeCurrencyId (max_values: Some(1), max_size: Some(46), added: 541, mode: MaxEncodedLen) + /// Storage: Issue IntervalLength (r:0 w:1) + /// Proof: Issue IntervalLength (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + fn rate_limit_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 9_000_000 picoseconds. + Weight::from_parts(10_000_000, 0) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: Issue IssueMinimumTransferAmount (r:0 w:1) + /// Proof: Issue IssueMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + fn minimum_transfer_amount_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(8_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } +} \ No newline at end of file diff --git a/runtime/foucoco/src/weights/mod.rs b/runtime/foucoco/src/weights/mod.rs index 3037a35a7..266270306 100644 --- a/runtime/foucoco/src/weights/mod.rs +++ b/runtime/foucoco/src/weights/mod.rs @@ -19,10 +19,22 @@ pub mod block_weights; pub mod extrinsic_weights; -pub mod orml_asset_registry; pub mod pallet_xcm; pub mod paritydb_weights; pub mod rocksdb_weights; +pub mod parachain_staking; +pub mod orml_asset_registry; +pub mod orml_currencies_allowance_extension; +pub mod orml_tokens_management_extension; +pub mod treasury_buyout_extension; +pub mod fee; +pub mod issue; +pub mod nomination; +pub mod oracle; +pub mod redeem; +pub mod replace; +pub mod stellar_relay; +pub mod vault_registry; pub use block_weights::constants::BlockExecutionWeight; pub use extrinsic_weights::constants::ExtrinsicBaseWeight; diff --git a/runtime/foucoco/src/weights/nomination.rs b/runtime/foucoco/src/weights/nomination.rs new file mode 100644 index 000000000..57118aba4 --- /dev/null +++ b/runtime/foucoco/src/weights/nomination.rs @@ -0,0 +1,228 @@ + +//! Autogenerated weights for nomination +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// foucoco +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// nomination +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/foucoco/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for nomination using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl nomination::WeightInfo for SubstrateWeight { + /// Storage: Nomination NominationEnabled (r:0 w:1) + /// Proof: Nomination NominationEnabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) + fn set_nomination_enabled() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(5_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Nomination NominationEnabled (r:1 w:0) + /// Proof: Nomination NominationEnabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) + /// Storage: VaultRegistry Vaults (r:1 w:0) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Nomination Vaults (r:1 w:1) + /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) + fn opt_in_to_nomination() -> Weight { + // Proof Size summary in bytes: + // Measured: `747` + // Estimated: `4212` + // Minimum execution time: 27_000_000 picoseconds. + Weight::from_parts(28_000_000, 4212) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Nomination Vaults (r:1 w:1) + /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) + /// Storage: VaultStaking Nonce (r:1 w:1) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:2 w:2) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:2 w:2) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:2 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:2 w:2) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:0) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:0) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:2 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:2 w:2) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardTally (r:2 w:2) + /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + fn opt_out_of_nomination() -> Weight { + // Proof Size summary in bytes: + // Measured: `2499` + // Estimated: `8439` + // Minimum execution time: 218_000_000 picoseconds. + Weight::from_parts(227_000_000, 8439) + .saturating_add(T::DbWeight::get().reads(25_u64)) + .saturating_add(T::DbWeight::get().writes(16_u64)) + } + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Nomination NominationEnabled (r:1 w:0) + /// Proof: Nomination NominationEnabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) + /// Storage: Nomination Vaults (r:1 w:0) + /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:2 w:1) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:2 w:1) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:1) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardTally (r:1 w:1) + /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:0) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: PooledVaultRewards TotalStake (r:1 w:1) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) + /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) + /// Storage: Tokens Accounts (r:2 w:2) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:0) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) + /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) + fn deposit_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `3564` + // Estimated: `9504` + // Minimum execution time: 210_000_000 picoseconds. + Weight::from_parts(215_000_000, 9504) + .saturating_add(T::DbWeight::get().reads(28_u64)) + .saturating_add(T::DbWeight::get().writes(13_u64)) + } + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:0) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: Nomination NominationEnabled (r:1 w:0) + /// Proof: Nomination NominationEnabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) + /// Storage: Nomination Vaults (r:1 w:0) + /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:1) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:1 w:1) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:1 w:1) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardTally (r:1 w:1) + /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) + /// Storage: PooledVaultRewards TotalStake (r:1 w:1) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) + /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) + /// Storage: Tokens Accounts (r:2 w:2) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:0) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + fn withdraw_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `3576` + // Estimated: `7041` + // Minimum execution time: 193_000_000 picoseconds. + Weight::from_parts(197_000_000, 7041) + .saturating_add(T::DbWeight::get().reads(24_u64)) + .saturating_add(T::DbWeight::get().writes(13_u64)) + } +} \ No newline at end of file diff --git a/runtime/foucoco/src/weights/oracle.rs b/runtime/foucoco/src/weights/oracle.rs new file mode 100644 index 000000000..551fefef0 --- /dev/null +++ b/runtime/foucoco/src/weights/oracle.rs @@ -0,0 +1,74 @@ + +//! Autogenerated weights for oracle +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// foucoco +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// oracle +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/foucoco/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for oracle using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl oracle::WeightInfo for SubstrateWeight { + /// Storage: Timestamp Now (r:0 w:1) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: Timestamp DidUpdate (r:0 w:1) + /// Proof: Timestamp DidUpdate (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) + fn on_initialize() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 1_000_000 picoseconds. + Weight::from_parts(2_000_000, 0) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: Oracle OracleKeys (r:0 w:1) + /// Proof Skipped: Oracle OracleKeys (max_values: Some(1), max_size: None, mode: Measured) + fn update_oracle_keys() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 10_000_000 picoseconds. + Weight::from_parts(11_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Oracle MaxDelay (r:0 w:1) + /// Proof Skipped: Oracle MaxDelay (max_values: Some(1), max_size: None, mode: Measured) + fn set_max_delay() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 9_000_000 picoseconds. + Weight::from_parts(10_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } +} \ No newline at end of file diff --git a/runtime/foucoco/src/weights/orml_currencies_allowance_extension.rs b/runtime/foucoco/src/weights/orml_currencies_allowance_extension.rs new file mode 100644 index 000000000..a081fbd3f --- /dev/null +++ b/runtime/foucoco/src/weights/orml_currencies_allowance_extension.rs @@ -0,0 +1,97 @@ + +//! Autogenerated weights for orml_currencies_allowance_extension +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-03-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// foucoco +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// orml-currencies-allowance-extension +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/foucoco/src/weights/orml-currencies-allowance-extension.rs +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for orml_currencies_allowance_extension using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl orml_currencies_allowance_extension::default_weights::WeightInfo for SubstrateWeight { + /// Storage: TokenAllowance AllowedCurrencies (r:2 w:1) + /// Proof Skipped: TokenAllowance AllowedCurrencies (max_values: None, max_size: None, mode: Measured) + /// The range of component `n` is `[1, 256]`. + fn add_allowed_currencies(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `142` + // Estimated: `6082` + // Minimum execution time: 17_000_000 picoseconds. + Weight::from_parts(16_786_577, 6082) + // Standard Error: 2_416 + .saturating_add(Weight::from_parts(1_273_968, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: TokenAllowance AllowedCurrencies (r:0 w:1) + /// Proof Skipped: TokenAllowance AllowedCurrencies (max_values: None, max_size: None, mode: Measured) + /// The range of component `n` is `[1, 256]`. + fn remove_allowed_currencies(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 11_000_000 picoseconds. + Weight::from_parts(11_332_861, 0) + // Standard Error: 1_861 + .saturating_add(Weight::from_parts(1_244_517, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: TokenAllowance AllowedCurrencies (r:1 w:0) + /// Proof Skipped: TokenAllowance AllowedCurrencies (max_values: None, max_size: None, mode: Measured) + /// Storage: TokenAllowance Approvals (r:0 w:1) + /// Proof Skipped: TokenAllowance Approvals (max_values: None, max_size: None, mode: Measured) + fn approve() -> Weight { + // Proof Size summary in bytes: + // Measured: `184` + // Estimated: `3833` + // Minimum execution time: 17_000_000 picoseconds. + Weight::from_parts(18_000_000, 3833) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: TokenAllowance AllowedCurrencies (r:1 w:0) + /// Proof Skipped: TokenAllowance AllowedCurrencies (max_values: None, max_size: None, mode: Measured) + /// Storage: TokenAllowance Approvals (r:1 w:1) + /// Proof Skipped: TokenAllowance Approvals (max_values: None, max_size: None, mode: Measured) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + fn transfer_from() -> Weight { + // Proof Size summary in bytes: + // Measured: `490` + // Estimated: `14106` + // Minimum execution time: 49_000_000 picoseconds. + Weight::from_parts(50_000_000, 14106) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } +} \ No newline at end of file diff --git a/runtime/foucoco/src/weights/orml_tokens_management_extension.rs b/runtime/foucoco/src/weights/orml_tokens_management_extension.rs new file mode 100644 index 000000000..e8e3db70b --- /dev/null +++ b/runtime/foucoco/src/weights/orml_tokens_management_extension.rs @@ -0,0 +1,105 @@ + +//! Autogenerated weights for orml_tokens_management_extension +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-03-13, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// foucoco +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// orml-tokens-management-extension +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/foucoco/src/weights/orml_tokens_management_extension.rs +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for orml_tokens_management_extension using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl orml_tokens_management_extension::default_weights::WeightInfo for SubstrateWeight { + /// Storage: OrmlExtension CurrencyData (r:1 w:1) + /// Proof: OrmlExtension CurrencyData (max_values: None, max_size: Some(174), added: 2649, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + fn create() -> Weight { + // Proof Size summary in bytes: + // Measured: `179` + // Estimated: `7232` + // Minimum execution time: 27_000_000 picoseconds. + Weight::from_parts(28_000_000, 7232) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: OrmlExtension CurrencyData (r:1 w:0) + /// Proof: OrmlExtension CurrencyData (max_values: None, max_size: Some(174), added: 2649, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + fn mint() -> Weight { + // Proof Size summary in bytes: + // Measured: `233` + // Estimated: `7232` + // Minimum execution time: 38_000_000 picoseconds. + Weight::from_parts(39_000_000, 7232) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: OrmlExtension CurrencyData (r:1 w:0) + /// Proof: OrmlExtension CurrencyData (max_values: None, max_size: Some(174), added: 2649, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + fn burn() -> Weight { + // Proof Size summary in bytes: + // Measured: `336` + // Estimated: `7232` + // Minimum execution time: 31_000_000 picoseconds. + Weight::from_parts(32_000_000, 7232) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: OrmlExtension CurrencyData (r:1 w:1) + /// Proof: OrmlExtension CurrencyData (max_values: None, max_size: Some(174), added: 2649, mode: MaxEncodedLen) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + fn transfer_ownership() -> Weight { + // Proof Size summary in bytes: + // Measured: `439` + // Estimated: `9835` + // Minimum execution time: 38_000_000 picoseconds. + Weight::from_parts(40_000_000, 9835) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: OrmlExtension CurrencyData (r:1 w:1) + /// Proof: OrmlExtension CurrencyData (max_values: None, max_size: Some(174), added: 2649, mode: MaxEncodedLen) + fn set_managers() -> Weight { + // Proof Size summary in bytes: + // Measured: `233` + // Estimated: `3639` + // Minimum execution time: 16_000_000 picoseconds. + Weight::from_parts(17_000_000, 3639) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } +} \ No newline at end of file diff --git a/runtime/foucoco/src/weights/parachain_staking.rs b/runtime/foucoco/src/weights/parachain_staking.rs new file mode 100644 index 000000000..36e588b47 --- /dev/null +++ b/runtime/foucoco/src/weights/parachain_staking.rs @@ -0,0 +1,656 @@ + +//! Autogenerated weights for parachain_staking +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-06-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// foucoco +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// parachain-staking +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/foucoco/src/weights/parachain-staking.rs +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for parachain_staking using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl parachain_staking::WeightInfo for SubstrateWeight { + /// Storage: ParachainStaking Round (r:1 w:0) + /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) + fn on_initialize_no_action() -> Weight { + // Proof Size summary in bytes: + // Measured: `427` + // Estimated: `1497` + // Minimum execution time: 4_000_000 picoseconds. + Weight::from_parts(5_000_000, 1497) + .saturating_add(T::DbWeight::get().reads(1_u64)) + } + /// Storage: ParachainStaking Round (r:1 w:1) + /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) + fn on_initialize_round_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `427` + // Estimated: `1497` + // Minimum execution time: 9_000_000 picoseconds. + Weight::from_parts(10_000_000, 1497) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: ParachainStaking Round (r:1 w:0) + /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) + fn on_initialize_network_rewards() -> Weight { + // Proof Size summary in bytes: + // Measured: `427` + // Estimated: `1497` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(5_000_000, 1497) + .saturating_add(T::DbWeight::get().reads(1_u64)) + } + /// Storage: ParachainStaking ForceNewRound (r:0 w:1) + /// Proof: ParachainStaking ForceNewRound (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) + fn force_new_round() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: ParachainStaking CandidatePool (r:41 w:0) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:1640 w:1640) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Rewards (r:40 w:40) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:0) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking InflationConfig (r:1 w:1) + /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + /// Storage: ParachainStaking CounterForCandidatePool (r:1 w:0) + /// Proof: ParachainStaking CounterForCandidatePool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// The range of component `n` is `[0, 40]`. + /// The range of component `m` is `[0, 40]`. + fn set_inflation(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (3891 ±0) + n * (4058 ±0)` + // Estimated: `101750 + m * (35157 ±1_122) + n * (35643 ±4)` + // Minimum execution time: 579_000_000 picoseconds. + Weight::from_parts(586_000_000, 101750) + // Standard Error: 3_081_998 + .saturating_add(Weight::from_parts(93_692_550, 0).saturating_mul(n.into())) + // Standard Error: 3_081_998 + .saturating_add(Weight::from_parts(82_165_120, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(124_u64)) + .saturating_add(T::DbWeight::get().reads((15_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().reads((13_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().writes(81_u64)) + .saturating_add(T::DbWeight::get().writes((14_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().writes((13_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 35157).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 35643).saturating_mul(n.into())) + } + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:1) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:0) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// The range of component `n` is `[8, 40]`. + /// The range of component `m` is `[0, 40]`. + fn set_max_selected_candidates(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `434 + n * (48 ±0)` + // Estimated: `3406` + // Minimum execution time: 19_000_000 picoseconds. + Weight::from_parts(6_484_141, 3406) + // Standard Error: 9_212 + .saturating_add(Weight::from_parts(284_294, 0).saturating_mul(n.into())) + // Standard Error: 7_400 + .saturating_add(Weight::from_parts(328_650, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(3_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: ParachainStaking Round (r:1 w:1) + /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) + fn set_blocks_per_round() -> Weight { + // Proof Size summary in bytes: + // Measured: `427` + // Estimated: `1497` + // Minimum execution time: 12_000_000 picoseconds. + Weight::from_parts(13_000_000, 1497) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: ParachainStaking CandidatePool (r:40 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:41 w:41) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: ParachainStaking DelegatorState (r:40 w:40) + /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:41 w:41) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Rewards (r:1 w:1) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking InflationConfig (r:1 w:0) + /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + /// Storage: Session Validators (r:1 w:0) + /// Proof Skipped: Session Validators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Session DisabledValidators (r:1 w:1) + /// Proof Skipped: Session DisabledValidators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: System Digest (r:1 w:1) + /// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: ParachainStaking CounterForCandidatePool (r:1 w:1) + /// Proof: ParachainStaking CounterForCandidatePool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// The range of component `n` is `[9, 40]`. + /// The range of component `m` is `[0, 40]`. + fn force_remove_candidate(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (3152 ±0) + n * (2727 ±0)` + // Estimated: `9227 + m * (2716 ±28) + n * (4505 ±0)` + // Minimum execution time: 177_000_000 picoseconds. + Weight::from_parts(180_000_000, 9227) + // Standard Error: 75_054 + .saturating_add(Weight::from_parts(1_927_253, 0).saturating_mul(n.into())) + // Standard Error: 77_492 + .saturating_add(Weight::from_parts(17_288_956, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(11_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().writes(9_u64)) + .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 2716).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 4505).saturating_mul(n.into())) + } + /// Storage: ParachainStaking CandidatePool (r:1 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking DelegatorState (r:1 w:0) + /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxCollatorCandidateStake (r:1 w:0) + /// Proof: ParachainStaking MaxCollatorCandidateStake (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:1 w:1) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: Balances Locks (r:1 w:1) + /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: Balances Freezes (r:1 w:0) + /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking CounterForCandidatePool (r:1 w:1) + /// Proof: ParachainStaking CounterForCandidatePool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// The range of component `n` is `[1, 39]`. + /// The range of component `m` is `[0, 40]`. + fn join_candidates(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `1790 + m * (47 ±0) + n * (98 ±0)` + // Estimated: `5495` + // Minimum execution time: 73_000_000 picoseconds. + Weight::from_parts(50_301_360, 5495) + // Standard Error: 15_805 + .saturating_add(Weight::from_parts(701_839, 0).saturating_mul(n.into())) + // Standard Error: 15_026 + .saturating_add(Weight::from_parts(673_582, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(11_u64)) + .saturating_add(T::DbWeight::get().writes(7_u64)) + } + /// Storage: ParachainStaking CandidatePool (r:39 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) + /// Storage: ParachainStaking Round (r:1 w:0) + /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// The range of component `n` is `[9, 39]`. + /// The range of component `m` is `[0, 40]`. + fn init_leave_candidates(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (1872 ±0) + n * (2083 ±0)` + // Estimated: `3406 + n * (4505 ±0)` + // Minimum execution time: 65_000_000 picoseconds. + Weight::from_parts(67_000_000, 3406) + // Standard Error: 22_029 + .saturating_add(Weight::from_parts(2_798_050, 0).saturating_mul(n.into())) + // Standard Error: 22_193 + .saturating_add(Weight::from_parts(15_555, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().writes(3_u64)) + .saturating_add(Weight::from_parts(0, 4505).saturating_mul(n.into())) + } + /// Storage: ParachainStaking CandidatePool (r:2 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// The range of component `n` is `[9, 39]`. + /// The range of component `m` is `[0, 40]`. + fn cancel_leave_candidates(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `807 + m * (96 ±0) + n * (55 ±0)` + // Estimated: `10000` + // Minimum execution time: 34_000_000 picoseconds. + Weight::from_parts(19_575_652, 10000) + // Standard Error: 15_537 + .saturating_add(Weight::from_parts(422_489, 0).saturating_mul(n.into())) + // Standard Error: 11_696 + .saturating_add(Weight::from_parts(420_474, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(5_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: ParachainStaking CandidatePool (r:1 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking Round (r:1 w:0) + /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:41 w:41) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: ParachainStaking DelegatorState (r:40 w:40) + /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:41 w:41) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Rewards (r:1 w:1) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:0) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking InflationConfig (r:1 w:0) + /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + /// Storage: Session Validators (r:1 w:0) + /// Proof Skipped: Session Validators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Session DisabledValidators (r:1 w:1) + /// Proof Skipped: Session DisabledValidators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: System Digest (r:1 w:1) + /// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: ParachainStaking CounterForCandidatePool (r:1 w:1) + /// Proof: ParachainStaking CounterForCandidatePool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// The range of component `n` is `[9, 39]`. + /// The range of component `m` is `[0, 40]`. + fn execute_leave_candidates(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (1265 ±0) + n * (651 ±0)` + // Estimated: `5495 + m * (2716 ±0) + n * (206 ±6)` + // Minimum execution time: 55_000_000 picoseconds. + Weight::from_parts(56_000_000, 5495) + // Standard Error: 41_237 + .saturating_add(Weight::from_parts(595_966, 0).saturating_mul(n.into())) + // Standard Error: 41_545 + .saturating_add(Weight::from_parts(19_068_638, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(11_u64)) + .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().writes(7_u64)) + .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 2716).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 206).saturating_mul(n.into())) + } + /// Storage: ParachainStaking CandidatePool (r:1 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxCollatorCandidateStake (r:1 w:0) + /// Proof: ParachainStaking MaxCollatorCandidateStake (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:1 w:1) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: Balances Locks (r:1 w:1) + /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: Balances Freezes (r:1 w:0) + /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:41 w:41) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Rewards (r:1 w:1) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: ParachainStaking InflationConfig (r:1 w:0) + /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + /// The range of component `n` is `[1, 39]`. + /// The range of component `m` is `[0, 40]`. + /// The range of component `u` is `[0, 9]`. + fn candidate_stake_more(n: u32, m: u32, _u: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (481 ±0) + n * (340 ±0) + u * (20 ±0)` + // Estimated: `5495 + m * (2519 ±0)` + // Minimum execution time: 76_000_000 picoseconds. + Weight::from_parts(13_887_644, 5495) + // Standard Error: 25_506 + .saturating_add(Weight::from_parts(1_893_644, 0).saturating_mul(n.into())) + // Standard Error: 24_250 + .saturating_add(Weight::from_parts(8_056_102, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(12_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().writes(8_u64)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 2519).saturating_mul(m.into())) + } + /// Storage: ParachainStaking CandidatePool (r:1 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:1 w:1) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:41 w:41) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Rewards (r:1 w:1) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: ParachainStaking InflationConfig (r:1 w:0) + /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + /// The range of component `n` is `[1, 39]`. + /// The range of component `m` is `[0, 40]`. + fn candidate_stake_less(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (452 ±0) + n * (319 ±0)` + // Estimated: `5495 + m * (2519 ±0)` + // Minimum execution time: 50_000_000 picoseconds. + Weight::from_parts(51_000_000, 5495) + // Standard Error: 25_838 + .saturating_add(Weight::from_parts(536_669, 0).saturating_mul(n.into())) + // Standard Error: 25_268 + .saturating_add(Weight::from_parts(6_880_600, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(8_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().writes(6_u64)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 2519).saturating_mul(m.into())) + } + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: ParachainStaking DelegatorState (r:1 w:1) + /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) + /// Storage: ParachainStaking CandidatePool (r:2 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:1 w:1) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: ParachainStaking LastDelegation (r:1 w:1) + /// Proof: ParachainStaking LastDelegation (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) + /// Storage: ParachainStaking Round (r:1 w:0) + /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) + /// Storage: Balances Locks (r:1 w:1) + /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: Balances Freezes (r:1 w:0) + /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:1 w:1) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// The range of component `n` is `[1, 40]`. + /// The range of component `m` is `[1, 39]`. + fn join_delegators(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `3153 + m * (114 ±0) + n * (105 ±0)` + // Estimated: `10000` + // Minimum execution time: 88_000_000 picoseconds. + Weight::from_parts(64_407_546, 10000) + // Standard Error: 13_648 + .saturating_add(Weight::from_parts(651_140, 0).saturating_mul(n.into())) + // Standard Error: 14_015 + .saturating_add(Weight::from_parts(617_386, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(13_u64)) + .saturating_add(T::DbWeight::get().writes(9_u64)) + } + /// Storage: ParachainStaking DelegatorState (r:1 w:1) + /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) + /// Storage: ParachainStaking CandidatePool (r:1 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:1 w:1) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: Balances Locks (r:1 w:1) + /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: Balances Freezes (r:1 w:0) + /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:2 w:0) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// The range of component `n` is `[1, 40]`. + /// The range of component `m` is `[1, 39]`. + /// The range of component `u` is `[1, 9]`. + fn delegator_stake_more(n: u32, m: u32, _u: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `3310 + m * (95 ±0) + n * (104 ±0) + u * (20 ±0)` + // Estimated: `6028` + // Minimum execution time: 76_000_000 picoseconds. + Weight::from_parts(59_201_682, 6028) + // Standard Error: 15_960 + .saturating_add(Weight::from_parts(613_733, 0).saturating_mul(n.into())) + // Standard Error: 16_388 + .saturating_add(Weight::from_parts(761_790, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(11_u64)) + .saturating_add(T::DbWeight::get().writes(7_u64)) + } + /// Storage: ParachainStaking DelegatorState (r:1 w:1) + /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) + /// Storage: ParachainStaking CandidatePool (r:1 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:1 w:1) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:2 w:0) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// The range of component `n` is `[1, 40]`. + /// The range of component `m` is `[1, 39]`. + fn delegator_stake_less(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `2789 + m * (75 ±0) + n * (82 ±0)` + // Estimated: `6028` + // Minimum execution time: 51_000_000 picoseconds. + Weight::from_parts(25_911_637, 6028) + // Standard Error: 10_875 + .saturating_add(Weight::from_parts(598_108, 0).saturating_mul(n.into())) + // Standard Error: 11_167 + .saturating_add(Weight::from_parts(665_383, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(8_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) + } + /// Storage: ParachainStaking DelegatorState (r:1 w:1) + /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) + /// Storage: ParachainStaking CandidatePool (r:1 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:2 w:0) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:1 w:1) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(1921), added: 2416, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// The range of component `n` is `[1, 40]`. + /// The range of component `m` is `[1, 39]`. + fn leave_delegators(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `2789 + m * (75 ±0) + n * (82 ±0)` + // Estimated: `6028` + // Minimum execution time: 56_000_000 picoseconds. + Weight::from_parts(31_492_740, 6028) + // Standard Error: 12_359 + .saturating_add(Weight::from_parts(588_520, 0).saturating_mul(n.into())) + // Standard Error: 12_691 + .saturating_add(Weight::from_parts(645_275, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(8_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) + } + /// Storage: ParachainStaking Unstaking (r:1 w:1) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: Balances Locks (r:1 w:1) + /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: Balances Freezes (r:1 w:0) + /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// The range of component `u` is `[1, 9]`. + fn unlock_unstaked(u: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `906 + u * (20 ±0)` + // Estimated: `4764` + // Minimum execution time: 36_000_000 picoseconds. + Weight::from_parts(37_984_828, 4764) + // Standard Error: 9_902 + .saturating_add(Weight::from_parts(156_453, 0).saturating_mul(u.into())) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: ParachainStaking MaxCollatorCandidateStake (r:0 w:1) + /// Proof: ParachainStaking MaxCollatorCandidateStake (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + fn set_max_candidate_stake() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(8_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: ParachainStaking DelegatorState (r:1 w:0) + /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:2 w:1) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Rewards (r:1 w:1) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:0) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking InflationConfig (r:1 w:0) + /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + fn increment_delegator_rewards() -> Weight { + // Proof Size summary in bytes: + // Measured: `754` + // Estimated: `6028` + // Minimum execution time: 27_000_000 picoseconds. + Weight::from_parts(27_000_000, 6028) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: ParachainStaking CandidatePool (r:1 w:0) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:41 w:41) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Rewards (r:41 w:41) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:0) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking InflationConfig (r:1 w:0) + /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + /// The range of component `m` is `[1, 40]`. + fn increment_collator_rewards(m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `721 + m * (98 ±0)` + // Estimated: `5495 + m * (2531 ±0)` + // Minimum execution time: 38_000_000 picoseconds. + Weight::from_parts(28_308_895, 5495) + // Standard Error: 26_322 + .saturating_add(Weight::from_parts(11_759_495, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(5_u64)) + .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().writes(2_u64)) + .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 2531).saturating_mul(m.into())) + } + /// Storage: ParachainStaking Rewards (r:1 w:1) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + fn claim_rewards() -> Weight { + // Proof Size summary in bytes: + // Measured: `575` + // Estimated: `3593` + // Minimum execution time: 31_000_000 picoseconds. + Weight::from_parts(32_000_000, 3593) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: ParachainStaking LastRewardReduction (r:1 w:1) + /// Proof: ParachainStaking LastRewardReduction (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking InflationConfig (r:1 w:1) + /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + /// Storage: ParachainStaking CandidatePool (r:41 w:0) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:1640 w:1640) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Rewards (r:40 w:40) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:0) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking CounterForCandidatePool (r:1 w:0) + /// Proof: ParachainStaking CounterForCandidatePool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// The range of component `n` is `[0, 40]`. + /// The range of component `m` is `[0, 40]`. + fn execute_scheduled_reward_change(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (3891 ±0) + n * (3996 ±0)` + // Estimated: `101750 + m * (35157 ±1_122) + n * (35643 ±1_122)` + // Minimum execution time: 523_000_000 picoseconds. + Weight::from_parts(527_000_000, 101750) + // Standard Error: 3_126_789 + .saturating_add(Weight::from_parts(95_066_714, 0).saturating_mul(n.into())) + // Standard Error: 3_126_789 + .saturating_add(Weight::from_parts(84_151_837, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(125_u64)) + .saturating_add(T::DbWeight::get().reads((15_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().reads((13_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().writes(82_u64)) + .saturating_add(T::DbWeight::get().writes((14_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().writes((13_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 35157).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 35643).saturating_mul(n.into())) + } +} \ No newline at end of file diff --git a/runtime/foucoco/src/weights/redeem.rs b/runtime/foucoco/src/weights/redeem.rs new file mode 100644 index 000000000..973a689c8 --- /dev/null +++ b/runtime/foucoco/src/weights/redeem.rs @@ -0,0 +1,586 @@ + +//! Autogenerated weights for redeem +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-06-03, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Marcels-MBP`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/pendulum-node +// benchmark +// pallet +// --chain +// foucoco +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// redeem +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/foucoco/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weight functions needed for redeem. +pub trait WeightInfo { + fn request_redeem() -> Weight; + fn liquidation_redeem() -> Weight; + fn execute_redeem() -> Weight; + fn cancel_redeem_reimburse() -> Weight; + fn cancel_redeem_retry() -> Weight; + fn self_redeem() -> Weight; + fn set_redeem_period() -> Weight; + fn mint_tokens_for_reimbursed_redeem() -> Weight; + fn rate_limit_update() -> Weight; + fn minimum_transfer_amount_update() -> Weight; +} + +/// Weights for redeem using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl redeem::WeightInfo for SubstrateWeight { + /// Storage: Redeem LimitVolumeAmount (r:1 w:0) + /// Proof: Redeem LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Tokens Accounts (r:1 w:1) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: Fee RedeemFee (r:1 w:0) + /// Proof Skipped: Fee RedeemFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Redeem RedeemMinimumTransferAmount (r:1 w:0) + /// Proof: Redeem RedeemMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: Security Nonce (r:1 w:1) + /// Proof Skipped: Security Nonce (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: System ParentHash (r:1 w:0) + /// Proof: System ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry Metadata (r:2 w:0) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: Fee PremiumRedeemFee (r:1 w:0) + /// Proof Skipped: Fee PremiumRedeemFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Security ActiveBlockCount (r:1 w:0) + /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Redeem RedeemPeriod (r:1 w:0) + /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Redeem RedeemRequests (r:0 w:1) + /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) + fn request_redeem() -> Weight { + // Proof Size summary in bytes: + // Measured: `1974` + // Estimated: `7914` + // Minimum execution time: 95_000_000 picoseconds. + Weight::from_parts(97_000_000, 7914) + .saturating_add(T::DbWeight::get().reads(16_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) + } + /// Storage: Tokens Accounts (r:3 w:3) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: Tokens TotalIssuance (r:1 w:1) + /// Proof: Tokens TotalIssuance (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) + /// Storage: VaultRegistry LiquidationVault (r:1 w:1) + /// Proof Skipped: VaultRegistry LiquidationVault (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + fn liquidation_redeem() -> Weight { + // Proof Size summary in bytes: + // Measured: `1495` + // Estimated: `8865` + // Minimum execution time: 110_000_000 picoseconds. + Weight::from_parts(111_000_000, 8865) + .saturating_add(T::DbWeight::get().reads(8_u64)) + .saturating_add(T::DbWeight::get().writes(8_u64)) + } + /// Storage: Redeem RedeemRequests (r:1 w:1) + /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) + /// Storage: StellarRelay NewValidatorsEnactmentBlockHeight (r:1 w:0) + /// Proof: StellarRelay NewValidatorsEnactmentBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: StellarRelay Validators (r:1 w:0) + /// Proof: StellarRelay Validators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) + /// Storage: StellarRelay Organizations (r:1 w:0) + /// Proof: StellarRelay Organizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) + /// Storage: Redeem LimitVolumeAmount (r:1 w:0) + /// Proof: Redeem LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalStake (r:1 w:0) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + fn execute_redeem() -> Weight { + // Proof Size summary in bytes: + // Measured: `1698` + // Estimated: `71867` + // Minimum execution time: 8_763_000_000 picoseconds. + Weight::from_parts(8_800_000_000, 71867) + .saturating_add(T::DbWeight::get().reads(7_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Redeem RedeemRequests (r:1 w:1) + /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) + /// Storage: Redeem RedeemPeriod (r:1 w:0) + /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Security ActiveBlockCount (r:1 w:0) + /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry Metadata (r:2 w:0) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: Fee PunishmentFee (r:1 w:0) + /// Proof Skipped: Fee PunishmentFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:0) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry PunishmentDelay (r:1 w:0) + /// Proof Skipped: VaultRegistry PunishmentDelay (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards TotalStake (r:2 w:0) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: Redeem CancelledRedeemAmount (r:0 w:1) + /// Proof: Redeem CancelledRedeemAmount (max_values: None, max_size: Some(110), added: 2585, mode: MaxEncodedLen) + fn cancel_redeem_reimburse() -> Weight { + // Proof Size summary in bytes: + // Measured: `2868` + // Estimated: `8808` + // Minimum execution time: 153_000_000 picoseconds. + Weight::from_parts(156_000_000, 8808) + .saturating_add(T::DbWeight::get().reads(22_u64)) + .saturating_add(T::DbWeight::get().writes(7_u64)) + } + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Redeem RedeemRequests (r:1 w:1) + /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) + /// Storage: Redeem RedeemPeriod (r:1 w:0) + /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Security ActiveBlockCount (r:1 w:0) + /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry Metadata (r:2 w:0) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: Fee PunishmentFee (r:1 w:0) + /// Proof Skipped: Fee PunishmentFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:0) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry PunishmentDelay (r:1 w:0) + /// Proof Skipped: VaultRegistry PunishmentDelay (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Redeem CancelledRedeemAmount (r:0 w:1) + /// Proof: Redeem CancelledRedeemAmount (max_values: None, max_size: Some(110), added: 2585, mode: MaxEncodedLen) + fn cancel_redeem_retry() -> Weight { + // Proof Size summary in bytes: + // Measured: `2656` + // Estimated: `8596` + // Minimum execution time: 126_000_000 picoseconds. + Weight::from_parts(135_000_000, 8596) + .saturating_add(T::DbWeight::get().reads(19_u64)) + .saturating_add(T::DbWeight::get().writes(7_u64)) + } + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Tokens Accounts (r:1 w:1) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: Tokens TotalIssuance (r:1 w:1) + /// Proof: Tokens TotalIssuance (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalStake (r:2 w:0) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: AssetRegistry Metadata (r:1 w:0) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + fn self_redeem() -> Weight { + // Proof Size summary in bytes: + // Measured: `1891` + // Estimated: `6096` + // Minimum execution time: 90_000_000 picoseconds. + Weight::from_parts(91_000_000, 6096) + .saturating_add(T::DbWeight::get().reads(8_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) + } + /// Storage: Redeem RedeemPeriod (r:0 w:1) + /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + fn set_redeem_period() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(8_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Redeem RedeemRequests (r:1 w:1) + /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) + /// Storage: Redeem CancelledRedeemAmount (r:1 w:1) + /// Proof: Redeem CancelledRedeemAmount (max_values: None, max_size: Some(110), added: 2585, mode: MaxEncodedLen) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry Metadata (r:2 w:0) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + fn mint_tokens_for_reimbursed_redeem() -> Weight { + // Proof Size summary in bytes: + // Measured: `2049` + // Estimated: `7989` + // Minimum execution time: 76_000_000 picoseconds. + Weight::from_parts(78_000_000, 7989) + .saturating_add(T::DbWeight::get().reads(9_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: Redeem LimitVolumeAmount (r:0 w:1) + /// Proof: Redeem LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) + /// Storage: Redeem LimitVolumeCurrencyId (r:0 w:1) + /// Proof: Redeem LimitVolumeCurrencyId (max_values: Some(1), max_size: Some(46), added: 541, mode: MaxEncodedLen) + /// Storage: Redeem IntervalLength (r:0 w:1) + /// Proof: Redeem IntervalLength (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + fn rate_limit_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 9_000_000 picoseconds. + Weight::from_parts(10_000_000, 0) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: Redeem RedeemMinimumTransferAmount (r:0 w:1) + /// Proof: Redeem RedeemMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + fn minimum_transfer_amount_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(22_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } +} + +// For backwards compatibility and tests +impl WeightInfo for () { + /// Storage: Redeem LimitVolumeAmount (r:1 w:0) + /// Proof: Redeem LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Tokens Accounts (r:1 w:1) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: Fee RedeemFee (r:1 w:0) + /// Proof Skipped: Fee RedeemFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Redeem RedeemMinimumTransferAmount (r:1 w:0) + /// Proof: Redeem RedeemMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: Security Nonce (r:1 w:1) + /// Proof Skipped: Security Nonce (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: System ParentHash (r:1 w:0) + /// Proof: System ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry Metadata (r:2 w:0) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: Fee PremiumRedeemFee (r:1 w:0) + /// Proof Skipped: Fee PremiumRedeemFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Security ActiveBlockCount (r:1 w:0) + /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Redeem RedeemPeriod (r:1 w:0) + /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Redeem RedeemRequests (r:0 w:1) + /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) + fn request_redeem() -> Weight { + // Proof Size summary in bytes: + // Measured: `1974` + // Estimated: `7914` + // Minimum execution time: 95_000_000 picoseconds. + Weight::from_parts(97_000_000, 7914) + .saturating_add(RocksDbWeight::get().reads(16_u64)) + .saturating_add(RocksDbWeight::get().writes(4_u64)) + } + /// Storage: Tokens Accounts (r:3 w:3) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: Tokens TotalIssuance (r:1 w:1) + /// Proof: Tokens TotalIssuance (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) + /// Storage: VaultRegistry LiquidationVault (r:1 w:1) + /// Proof Skipped: VaultRegistry LiquidationVault (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + fn liquidation_redeem() -> Weight { + // Proof Size summary in bytes: + // Measured: `1495` + // Estimated: `8865` + // Minimum execution time: 110_000_000 picoseconds. + Weight::from_parts(111_000_000, 8865) + .saturating_add(RocksDbWeight::get().reads(8_u64)) + .saturating_add(RocksDbWeight::get().writes(8_u64)) + } + /// Storage: Redeem RedeemRequests (r:1 w:1) + /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) + /// Storage: StellarRelay NewValidatorsEnactmentBlockHeight (r:1 w:0) + /// Proof: StellarRelay NewValidatorsEnactmentBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: StellarRelay Validators (r:1 w:0) + /// Proof: StellarRelay Validators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) + /// Storage: StellarRelay Organizations (r:1 w:0) + /// Proof: StellarRelay Organizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) + /// Storage: Redeem LimitVolumeAmount (r:1 w:0) + /// Proof: Redeem LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalStake (r:1 w:0) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + fn execute_redeem() -> Weight { + // Proof Size summary in bytes: + // Measured: `1698` + // Estimated: `71867` + // Minimum execution time: 8_763_000_000 picoseconds. + Weight::from_parts(8_800_000_000, 71867) + .saturating_add(RocksDbWeight::get().reads(7_u64)) + .saturating_add(RocksDbWeight::get().writes(2_u64)) + } + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Redeem RedeemRequests (r:1 w:1) + /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) + /// Storage: Redeem RedeemPeriod (r:1 w:0) + /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Security ActiveBlockCount (r:1 w:0) + /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry Metadata (r:2 w:0) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: Fee PunishmentFee (r:1 w:0) + /// Proof Skipped: Fee PunishmentFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:0) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry PunishmentDelay (r:1 w:0) + /// Proof Skipped: VaultRegistry PunishmentDelay (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards TotalStake (r:2 w:0) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: Redeem CancelledRedeemAmount (r:0 w:1) + /// Proof: Redeem CancelledRedeemAmount (max_values: None, max_size: Some(110), added: 2585, mode: MaxEncodedLen) + fn cancel_redeem_reimburse() -> Weight { + // Proof Size summary in bytes: + // Measured: `2868` + // Estimated: `8808` + // Minimum execution time: 153_000_000 picoseconds. + Weight::from_parts(156_000_000, 8808) + .saturating_add(RocksDbWeight::get().reads(22_u64)) + .saturating_add(RocksDbWeight::get().writes(7_u64)) + } + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Redeem RedeemRequests (r:1 w:1) + /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) + /// Storage: Redeem RedeemPeriod (r:1 w:0) + /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Security ActiveBlockCount (r:1 w:0) + /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry Metadata (r:2 w:0) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: Fee PunishmentFee (r:1 w:0) + /// Proof Skipped: Fee PunishmentFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:0) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry PunishmentDelay (r:1 w:0) + /// Proof Skipped: VaultRegistry PunishmentDelay (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Redeem CancelledRedeemAmount (r:0 w:1) + /// Proof: Redeem CancelledRedeemAmount (max_values: None, max_size: Some(110), added: 2585, mode: MaxEncodedLen) + fn cancel_redeem_retry() -> Weight { + // Proof Size summary in bytes: + // Measured: `2656` + // Estimated: `8596` + // Minimum execution time: 126_000_000 picoseconds. + Weight::from_parts(135_000_000, 8596) + .saturating_add(RocksDbWeight::get().reads(19_u64)) + .saturating_add(RocksDbWeight::get().writes(7_u64)) + } + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Tokens Accounts (r:1 w:1) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: Tokens TotalIssuance (r:1 w:1) + /// Proof: Tokens TotalIssuance (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalStake (r:2 w:0) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: AssetRegistry Metadata (r:1 w:0) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + fn self_redeem() -> Weight { + // Proof Size summary in bytes: + // Measured: `1891` + // Estimated: `6096` + // Minimum execution time: 90_000_000 picoseconds. + Weight::from_parts(91_000_000, 6096) + .saturating_add(RocksDbWeight::get().reads(8_u64)) + .saturating_add(RocksDbWeight::get().writes(4_u64)) + } + /// Storage: Redeem RedeemPeriod (r:0 w:1) + /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + fn set_redeem_period() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(8_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Redeem RedeemRequests (r:1 w:1) + /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) + /// Storage: Redeem CancelledRedeemAmount (r:1 w:1) + /// Proof: Redeem CancelledRedeemAmount (max_values: None, max_size: Some(110), added: 2585, mode: MaxEncodedLen) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: AssetRegistry Metadata (r:2 w:0) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + fn mint_tokens_for_reimbursed_redeem() -> Weight { + // Proof Size summary in bytes: + // Measured: `2049` + // Estimated: `7989` + // Minimum execution time: 76_000_000 picoseconds. + Weight::from_parts(78_000_000, 7989) + .saturating_add(RocksDbWeight::get().reads(9_u64)) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + } + /// Storage: Redeem LimitVolumeAmount (r:0 w:1) + /// Proof: Redeem LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) + /// Storage: Redeem LimitVolumeCurrencyId (r:0 w:1) + /// Proof: Redeem LimitVolumeCurrencyId (max_values: Some(1), max_size: Some(46), added: 541, mode: MaxEncodedLen) + /// Storage: Redeem IntervalLength (r:0 w:1) + /// Proof: Redeem IntervalLength (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + fn rate_limit_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 9_000_000 picoseconds. + Weight::from_parts(10_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(3_u64)) + } + /// Storage: Redeem RedeemMinimumTransferAmount (r:0 w:1) + /// Proof: Redeem RedeemMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + fn minimum_transfer_amount_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(22_000_000, 0) + .saturating_add(RocksDbWeight::get().writes(1_u64)) + } +} \ No newline at end of file diff --git a/runtime/foucoco/src/weights/replace.rs b/runtime/foucoco/src/weights/replace.rs new file mode 100644 index 000000000..55522da5c --- /dev/null +++ b/runtime/foucoco/src/weights/replace.rs @@ -0,0 +1,223 @@ + +//! Autogenerated weights for replace +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// foucoco +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// replace +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/foucoco/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for replace using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl replace::WeightInfo for SubstrateWeight { + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Nomination Vaults (r:1 w:0) + /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) + /// Storage: Replace ReplaceMinimumTransferAmount (r:1 w:0) + /// Proof: Replace ReplaceMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Fee ReplaceGriefingCollateral (r:1 w:0) + /// Proof Skipped: Fee ReplaceGriefingCollateral (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + fn request_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `1394` + // Estimated: `4859` + // Minimum execution time: 71_000_000 picoseconds. + Weight::from_parts(73_000_000, 4859) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + fn withdraw_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `617` + // Estimated: `4082` + // Minimum execution time: 28_000_000 picoseconds. + Weight::from_parts(29_000_000, 4082) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: VaultRegistry Vaults (r:2 w:2) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Replace ReplaceMinimumTransferAmount (r:1 w:0) + /// Proof: Replace ReplaceMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) + /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) + /// Storage: Tokens Accounts (r:1 w:1) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:1) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:1 w:1) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:1 w:1) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardTally (r:1 w:1) + /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) + /// Storage: PooledVaultRewards TotalStake (r:1 w:1) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) + /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Security Nonce (r:1 w:1) + /// Proof Skipped: Security Nonce (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: System ParentHash (r:1 w:0) + /// Proof: System ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: Security ActiveBlockCount (r:1 w:0) + /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Replace ReplacePeriod (r:1 w:0) + /// Proof: Replace ReplacePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Replace ReplaceRequests (r:0 w:1) + /// Proof: Replace ReplaceRequests (max_values: None, max_size: Some(431), added: 2906, mode: MaxEncodedLen) + fn accept_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `3686` + // Estimated: `9626` + // Minimum execution time: 238_000_000 picoseconds. + Weight::from_parts(251_000_000, 9626) + .saturating_add(T::DbWeight::get().reads(27_u64)) + .saturating_add(T::DbWeight::get().writes(16_u64)) + } + /// Storage: Replace ReplaceRequests (r:1 w:1) + /// Proof: Replace ReplaceRequests (max_values: None, max_size: Some(431), added: 2906, mode: MaxEncodedLen) + /// Storage: StellarRelay NewValidatorsEnactmentBlockHeight (r:1 w:0) + /// Proof: StellarRelay NewValidatorsEnactmentBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: StellarRelay Validators (r:1 w:0) + /// Proof: StellarRelay Validators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) + /// Storage: StellarRelay Organizations (r:1 w:0) + /// Proof: StellarRelay Organizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) + /// Storage: VaultRegistry Vaults (r:2 w:2) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + fn execute_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `1935` + // Estimated: `71867` + // Minimum execution time: 8_210_000_000 picoseconds. + Weight::from_parts(8_314_000_000, 71867) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: Replace ReplaceRequests (r:1 w:1) + /// Proof: Replace ReplaceRequests (max_values: None, max_size: Some(431), added: 2906, mode: MaxEncodedLen) + /// Storage: Replace ReplacePeriod (r:1 w:0) + /// Proof: Replace ReplacePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Security ActiveBlockCount (r:1 w:0) + /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:2 w:2) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:0) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:1 w:1) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:1 w:1) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + fn cancel_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `3152` + // Estimated: `9092` + // Minimum execution time: 145_000_000 picoseconds. + Weight::from_parts(155_000_000, 9092) + .saturating_add(T::DbWeight::get().reads(20_u64)) + .saturating_add(T::DbWeight::get().writes(10_u64)) + } + /// Storage: Replace ReplacePeriod (r:0 w:1) + /// Proof: Replace ReplacePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + fn set_replace_period() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 9_000_000 picoseconds. + Weight::from_parts(10_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Replace ReplaceMinimumTransferAmount (r:0 w:1) + /// Proof: Replace ReplaceMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + fn minimum_transfer_amount_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 10_000_000 picoseconds. + Weight::from_parts(10_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } +} \ No newline at end of file diff --git a/runtime/foucoco/src/weights/stellar_relay.rs b/runtime/foucoco/src/weights/stellar_relay.rs new file mode 100644 index 000000000..fc28fb1fe --- /dev/null +++ b/runtime/foucoco/src/weights/stellar_relay.rs @@ -0,0 +1,61 @@ + +//! Autogenerated weights for stellar_relay +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// foucoco +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// stellar-relay +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/foucoco/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for stellar_relay using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl stellar_relay::WeightInfo for SubstrateWeight { + /// Storage: StellarRelay Validators (r:1 w:1) + /// Proof: StellarRelay Validators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) + /// Storage: StellarRelay Organizations (r:1 w:1) + /// Proof: StellarRelay Organizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) + /// Storage: StellarRelay OldValidators (r:0 w:1) + /// Proof: StellarRelay OldValidators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) + /// Storage: StellarRelay NewValidatorsEnactmentBlockHeight (r:0 w:1) + /// Proof: StellarRelay NewValidatorsEnactmentBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: StellarRelay OldOrganizations (r:0 w:1) + /// Proof: StellarRelay OldOrganizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) + fn update_tier_1_validator_set() -> Weight { + // Proof Size summary in bytes: + // Measured: `2446` + // Estimated: `71867` + // Minimum execution time: 152_000_000 picoseconds. + Weight::from_parts(156_000_000, 71867) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) + } +} \ No newline at end of file diff --git a/runtime/foucoco/src/weights/treasury_buyout_extension.rs b/runtime/foucoco/src/weights/treasury_buyout_extension.rs new file mode 100644 index 000000000..7034c7bc3 --- /dev/null +++ b/runtime/foucoco/src/weights/treasury_buyout_extension.rs @@ -0,0 +1,89 @@ + +//! Autogenerated weights for treasury_buyout_extension +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-05-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// foucoco +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// treasury-buyout-extension +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/foucoco/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for treasury_buyout_extension using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl treasury_buyout_extension::default_weights::WeightInfo for SubstrateWeight { + /// Storage: TreasuryBuyoutExtension AllowedCurrencies (r:1 w:0) + /// Proof: TreasuryBuyoutExtension AllowedCurrencies (max_values: None, max_size: Some(62), added: 2537, mode: MaxEncodedLen) + /// Storage: AssetRegistry Metadata (r:2 w:0) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: DiaOracleModule CoinInfosMap (r:1 w:0) + /// Proof Skipped: DiaOracleModule CoinInfosMap (max_values: None, max_size: None, mode: Measured) + /// Storage: TreasuryBuyoutExtension BuyoutLimit (r:1 w:0) + /// Proof: TreasuryBuyoutExtension BuyoutLimit (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: TreasuryBuyoutExtension Buyouts (r:1 w:1) + /// Proof: TreasuryBuyoutExtension Buyouts (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen) + /// Storage: Tokens Accounts (r:2 w:2) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + fn buyout() -> Weight { + // Proof Size summary in bytes: + // Measured: `1214` + // Estimated: `7154` + // Minimum execution time: 115_000_000 picoseconds. + Weight::from_parts(117_000_000, 7154) + .saturating_add(T::DbWeight::get().reads(10_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) + } + /// Storage: TreasuryBuyoutExtension BuyoutLimit (r:0 w:1) + /// Proof: TreasuryBuyoutExtension BuyoutLimit (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + fn update_buyout_limit() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(8_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: TreasuryBuyoutExtension AllowedCurrencies (r:1 w:1) + /// Proof: TreasuryBuyoutExtension AllowedCurrencies (max_values: None, max_size: Some(62), added: 2537, mode: MaxEncodedLen) + /// The range of component `n` is `[1, 20]`. + fn update_allowed_assets(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `4` + // Estimated: `3527` + // Minimum execution time: 15_000_000 picoseconds. + Weight::from_parts(14_644_586, 3527) + // Standard Error: 8_919 + .saturating_add(Weight::from_parts(1_324_292, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } +} \ No newline at end of file diff --git a/runtime/foucoco/src/weights/vault_registry.rs b/runtime/foucoco/src/weights/vault_registry.rs new file mode 100644 index 000000000..761957680 --- /dev/null +++ b/runtime/foucoco/src/weights/vault_registry.rs @@ -0,0 +1,381 @@ + +//! Autogenerated weights for vault_registry +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("foucoco"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// foucoco +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// vault-registry +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/foucoco/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for vault_registry using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl vault_registry::WeightInfo for SubstrateWeight { + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry LiquidationCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry LiquidationCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry MinimumCollateralVault (r:1 w:0) + /// Proof Skipped: VaultRegistry MinimumCollateralVault (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) + /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry VaultStellarPublicKey (r:1 w:0) + /// Proof Skipped: VaultRegistry VaultStellarPublicKey (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: Tokens Accounts (r:1 w:1) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:1) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:1 w:1) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:1 w:1) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardTally (r:1 w:1) + /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: PooledVaultRewards TotalStake (r:1 w:1) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) + /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) + fn register_vault() -> Weight { + // Proof Size summary in bytes: + // Measured: `1703` + // Estimated: `5168` + // Minimum execution time: 151_000_000 picoseconds. + Weight::from_parts(154_000_000, 5168) + .saturating_add(T::DbWeight::get().reads(24_u64)) + .saturating_add(T::DbWeight::get().writes(12_u64)) + } + /// Storage: VaultRegistry Vaults (r:1 w:0) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) + /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) + /// Storage: Tokens Accounts (r:1 w:1) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:1) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:1 w:1) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:1 w:1) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardTally (r:1 w:1) + /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) + /// Storage: PooledVaultRewards TotalStake (r:1 w:1) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) + /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + fn deposit_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `2915` + // Estimated: `6380` + // Minimum execution time: 176_000_000 picoseconds. + Weight::from_parts(179_000_000, 6380) + .saturating_add(T::DbWeight::get().reads(21_u64)) + .saturating_add(T::DbWeight::get().writes(12_u64)) + } + /// Storage: VaultRegistry Vaults (r:1 w:0) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:1 w:1) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:1 w:1) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: Tokens Accounts (r:1 w:1) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:1) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardTally (r:1 w:1) + /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) + /// Storage: PooledVaultRewards TotalStake (r:1 w:1) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) + /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) + fn withdraw_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `2889` + // Estimated: `6354` + // Minimum execution time: 187_000_000 picoseconds. + Weight::from_parts(191_000_000, 6354) + .saturating_add(T::DbWeight::get().reads(21_u64)) + .saturating_add(T::DbWeight::get().writes(12_u64)) + } + /// Storage: VaultRegistry VaultStellarPublicKey (r:1 w:1) + /// Proof Skipped: VaultRegistry VaultStellarPublicKey (max_values: None, max_size: None, mode: Measured) + fn register_public_key() -> Weight { + // Proof Size summary in bytes: + // Measured: `301` + // Estimated: `3766` + // Minimum execution time: 15_000_000 picoseconds. + Weight::from_parts(16_000_000, 3766) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:0) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + fn accept_new_issues() -> Weight { + // Proof Size summary in bytes: + // Measured: `1451` + // Estimated: `4916` + // Minimum execution time: 60_000_000 picoseconds. + Weight::from_parts(61_000_000, 4916) + .saturating_add(T::DbWeight::get().reads(9_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) + } + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + fn set_custom_secure_threshold() -> Weight { + // Proof Size summary in bytes: + // Measured: `783` + // Estimated: `4248` + // Minimum execution time: 17_000_000 picoseconds. + Weight::from_parts(18_000_000, 4248) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: VaultRegistry MinimumCollateralVault (r:0 w:1) + /// Proof Skipped: VaultRegistry MinimumCollateralVault (max_values: None, max_size: None, mode: Measured) + fn set_minimum_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(6_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: VaultRegistry SystemCollateralCeiling (r:0 w:1) + /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) + fn set_system_collateral_ceiling() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(6_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: VaultStaking RewardCurrencies (r:1 w:1) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultRegistry SecureCollateralThreshold (r:0 w:1) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + fn set_secure_collateral_threshold() -> Weight { + // Proof Size summary in bytes: + // Measured: `80` + // Estimated: `1565` + // Minimum execution time: 10_000_000 picoseconds. + Weight::from_parts(10_000_000, 1565) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: VaultRegistry PremiumRedeemThreshold (r:0 w:1) + /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) + fn set_premium_redeem_threshold() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(6_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: VaultRegistry LiquidationCollateralThreshold (r:0 w:1) + /// Proof Skipped: VaultRegistry LiquidationCollateralThreshold (max_values: None, max_size: None, mode: Measured) + fn set_liquidation_collateral_threshold() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(6_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry LiquidationCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry LiquidationCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:1 w:1) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:1 w:1) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:1) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardTally (r:1 w:1) + /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) + /// Storage: PooledVaultRewards TotalStake (r:1 w:1) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) + /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: Tokens Accounts (r:2 w:2) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: System Account (r:2 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) + /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry LiquidationVault (r:1 w:1) + /// Proof Skipped: VaultRegistry LiquidationVault (max_values: None, max_size: None, mode: Measured) + fn report_undercollateralized_vault() -> Weight { + // Proof Size summary in bytes: + // Measured: `3018` + // Estimated: `6483` + // Minimum execution time: 327_000_000 picoseconds. + Weight::from_parts(336_000_000, 6483) + .saturating_add(T::DbWeight::get().reads(25_u64)) + .saturating_add(T::DbWeight::get().writes(16_u64)) + } + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + fn recover_vault_id() -> Weight { + // Proof Size summary in bytes: + // Measured: `616` + // Estimated: `4081` + // Minimum execution time: 15_000_000 picoseconds. + Weight::from_parts(16_000_000, 4081) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: VaultRegistry PunishmentDelay (r:0 w:1) + /// Proof Skipped: VaultRegistry PunishmentDelay (max_values: Some(1), max_size: None, mode: Measured) + fn set_punishment_delay() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(5_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } +} \ No newline at end of file diff --git a/runtime/integration-tests/Cargo.toml b/runtime/integration-tests/Cargo.toml index 3131d97ad..c86aeef00 100644 --- a/runtime/integration-tests/Cargo.toml +++ b/runtime/integration-tests/Cargo.toml @@ -12,7 +12,7 @@ serde = { version = "1.0.144", features = ["derive"] } paste = "1.0.14" # Spacewalk libraries -spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} +spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } frame-system = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" } frame-support = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" } @@ -39,11 +39,11 @@ polkadot-runtime-common = { git = "https://github.com/paritytech/polkadot", bran xcm-emulator = { git = "https://github.com/shaunxw/xcm-simulator", rev = "d011e5ca62b93e8f688c2042c1f92cdbafc5d1d0" } -cumulus-pallet-dmp-queue = {git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.42"} -cumulus-pallet-xcmp-queue = {git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.42"} -cumulus-pallet-xcm = {git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.42"} -cumulus-primitives-core = {git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.42"} -cumulus-primitives-utility = {git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.42"} +cumulus-pallet-dmp-queue = { git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.42" } +cumulus-pallet-xcmp-queue = { git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.42" } +cumulus-pallet-xcm = { git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.42" } +cumulus-primitives-core = { git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.42" } +cumulus-primitives-utility = { git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.42" } parachain-info = { git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.42" } statemint-runtime = { git = "https://github.com/paritytech/cumulus", branch = "polkadot-v0.9.42" } diff --git a/runtime/pendulum/Cargo.toml b/runtime/pendulum/Cargo.toml index f463ce8d3..7ca0e6f95 100644 --- a/runtime/pendulum/Cargo.toml +++ b/runtime/pendulum/Cargo.toml @@ -12,9 +12,10 @@ version = "0.1.0" targets = ["x86_64-unknown-linux-gnu"] [build-dependencies] -substrate-wasm-builder = {git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42"} +substrate-wasm-builder = { git = "https://github.com/paritytech/substrate", branch = "polkadot-v0.9.42" } [dependencies] +cfg-if = "1.0.0" codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] } hex-literal = { version = "0.3.4", optional = true } log = { version = "0.4.17", default-features = false } @@ -25,32 +26,32 @@ smallvec = "1.9.0" # Local runtime-common = { path = "../common", default-features = false } -token-chain-extension = {path = "../../chain-extensions/token", default-features = false } -price-chain-extension = {path = "../../chain-extensions/price", default-features = false } -treasury-buyout-extension = {path = "../../pallets/treasury-buyout-extension", default-features = false} +token-chain-extension = { path = "../../chain-extensions/token", default-features = false } +price-chain-extension = { path = "../../chain-extensions/price", default-features = false } +treasury-buyout-extension = { path = "../../pallets/treasury-buyout-extension", default-features = false } # Custom libraries for Spacewalk -clients-info = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -currency = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -security = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -staking = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -oracle = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -stellar-relay = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -fee = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -vault-registry = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -redeem = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -issue = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -nomination = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -replace = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -module-issue-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -module-oracle-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -module-redeem-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -module-replace-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -module-vault-registry-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} +clients-info = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +currency = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +security = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +staking = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +oracle = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +stellar-relay = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +fee = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +vault-registry = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +redeem = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +issue = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +nomination = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +replace = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +spacewalk-primitives = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +module-issue-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +module-oracle-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +module-redeem-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +module-replace-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +module-vault-registry-rpc-runtime-api = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } module-pallet-staking-rpc-runtime-api = { path = "../../pallets/parachain-staking/rpc/runtime-api", default-features = false } -pooled-rewards = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} -reward-distribution = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev ="e7a672ba1e21c98a70df30a6ee458317951dd597"} +pooled-rewards = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } +reward-distribution = { git = "https://github.com/pendulum-chain/spacewalk", default-features = false, rev = "8b41e633321e472288e8fb635a4fc3cde9236d54" } # Substrate frame-benchmarking = { git = "https://github.com/paritytech/substrate", default-features = false, optional = true, branch = "polkadot-v0.9.42" } @@ -116,24 +117,24 @@ dia-oracle-runtime-api = { git = "https://github.com/pendulum-chain/oracle-palle vesting-manager = { path = "../../pallets/vesting-manager", default-features = false } # Polkadot -pallet-xcm = {git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.42"} -polkadot-parachain = {git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.42"} -polkadot-runtime-common = {git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.42"} -xcm = {git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.42"} -xcm-builder = {git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.42"} -xcm-executor = {git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.42"} +pallet-xcm = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.42" } +polkadot-parachain = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.42" } +polkadot-runtime-common = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.42" } +xcm = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.42" } +xcm-builder = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.42" } +xcm-executor = { git = "https://github.com/paritytech/polkadot", default-features = false, branch = "release-v0.9.42" } # Cumulus -cumulus-pallet-aura-ext = {git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.42"} -cumulus-pallet-dmp-queue = {git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.42"} -cumulus-pallet-parachain-system = {git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.42"} -cumulus-pallet-session-benchmarking = {git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.42"} -cumulus-pallet-xcm = {git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.42"} -cumulus-pallet-xcmp-queue = {git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.42"} -cumulus-primitives-core = {git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.42"} -cumulus-primitives-timestamp = {git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.42"} -cumulus-primitives-utility = {git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.42"} -parachain-info = {git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.42"} +cumulus-pallet-aura-ext = { git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.42" } +cumulus-pallet-dmp-queue = { git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.42" } +cumulus-pallet-parachain-system = { git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.42" } +cumulus-pallet-session-benchmarking = { git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.42" } +cumulus-pallet-xcm = { git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.42" } +cumulus-pallet-xcmp-queue = { git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.42" } +cumulus-primitives-core = { git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.42" } +cumulus-primitives-timestamp = { git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.42" } +cumulus-primitives-utility = { git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.42" } +parachain-info = { git = "https://github.com/paritytech/cumulus", default-features = false, branch = "polkadot-v0.9.42" } # Zenlink zenlink-protocol = { git = "https://github.com/zenlinkpro/Zenlink-DEX-Module", default-features = false, branch = "polkadot-v0.9.42" } @@ -257,6 +258,7 @@ runtime-benchmarks = [ "frame-system/runtime-benchmarks", "pallet-balances/runtime-benchmarks", "pallet-timestamp/runtime-benchmarks", + "currency/runtime-benchmarks", "fee/runtime-benchmarks", "issue/runtime-benchmarks", "nomination/runtime-benchmarks", @@ -272,6 +274,7 @@ runtime-benchmarks = [ "cumulus-pallet-xcmp-queue/runtime-benchmarks", "pallet-collective/runtime-benchmarks", "runtime-common/runtime-benchmarks", + "parachain-staking/runtime-benchmarks", "orml-currencies-allowance-extension/runtime-benchmarks", "treasury-buyout-extension/runtime-benchmarks", ] diff --git a/runtime/pendulum/src/lib.rs b/runtime/pendulum/src/lib.rs index f8338bbbd..ea33c3730 100644 --- a/runtime/pendulum/src/lib.rs +++ b/runtime/pendulum/src/lib.rs @@ -38,8 +38,8 @@ use bifrost_farming_rpc_runtime_api as farming_rpc_runtime_api; pub use spacewalk_primitives::CurrencyId; use spacewalk_primitives::{ - self as primitives, CurrencyId::XCM, Moment, SignedFixedPoint, SignedInner, UnsignedFixedPoint, - UnsignedInner, + self as primitives, Asset, CurrencyId::XCM, Moment, SignedFixedPoint, SignedInner, + UnsignedFixedPoint, UnsignedInner, }; #[cfg(any(feature = "runtime-benchmarks", feature = "testing-utils"))] @@ -78,6 +78,7 @@ use runtime_common::{ use cumulus_pallet_parachain_system::RelayNumberStrictlyIncreases; use dia_oracle::DiaOracle; +pub use dia_oracle::dia::AssetId; pub use issue::{Event as IssueEvent, IssueRequest}; pub use nomination::Event as NominationEvent; use oracle::dia::DiaOracleAdapter; @@ -201,15 +202,6 @@ pub type Executive = frame_executive::Executive< ), >; -type DataProviderImpl = DiaOracleAdapter< - DiaOracleModule, - UnsignedFixedPoint, - Moment, - asset_registry::AssetRegistryToDiaOracleKeyConvertor, - ConvertPrice, - ConvertMoment, ->; - pub struct ConvertPrice; impl Convert> for ConvertPrice { @@ -939,7 +931,7 @@ impl parachain_staking::Config for Runtime { type NetworkRewardStart = NetworkRewardStart; type NetworkRewardBeneficiary = Treasury; type CollatorRewardRateDecay = CollatorRewardRateDecay; - type WeightInfo = parachain_staking::default_weights::SubstrateWeight; + type WeightInfo = weights::parachain_staking::SubstrateWeight; const BLOCKS_PER_YEAR: BlockNumber = BLOCKS_PER_YEAR; } @@ -1144,6 +1136,14 @@ impl currency::CurrencyConversion, CurrencyId> for Cur } parameter_types! { pub const RelayChainCurrencyId: CurrencyId = XCM(0); // 0 is the index of the relay chain in our XCM mapping + // This specific asset is used for benchmarking Spacewalk pallets as it's already used as the wrapped currency in the genesis config + pub const GetWrappedCurrencyId: CurrencyId = CurrencyId::Stellar(Asset::AlphaNum4 { + code: *b"USDC", + issuer: [ + 59, 153, 17, 56, 14, 254, 152, 139, 160, 168, 144, 14, 177, 207, 228, 79, 54, 111, 125, + 190, 148, 107, 237, 7, 114, 64, 247, 246, 36, 223, 21, 197, + ], + }); } impl currency::Config for Runtime { type UnsignedFixedPoint = UnsignedFixedPoint; @@ -1151,6 +1151,8 @@ impl currency::Config for Runtime { type SignedFixedPoint = SignedFixedPoint; type Balance = Balance; type GetRelayChainCurrencyId = RelayChainCurrencyId; + #[cfg(feature = "runtime-benchmarks")] + type GetWrappedCurrencyId = GetWrappedCurrencyId; type AssetConversion = primitives::AssetConversion; type BalanceConversion = primitives::BalanceConversion; type CurrencyConversion = CurrencyConvert; @@ -1192,9 +1194,34 @@ impl orml_traits::DataProvider for DataFeederBenchmark { } } +cfg_if::cfg_if! { + if #[cfg(feature = "runtime-benchmarks")] { + use oracle::testing_utils::{ + MockConvertMoment, MockConvertPrice, MockDiaOracle, MockOracleKeyConvertor, + }; + type DataProviderImpl = DiaOracleAdapter< + MockDiaOracle, + UnsignedFixedPoint, + Moment, + MockOracleKeyConvertor, + MockConvertPrice, + MockConvertMoment, + >; + } else { + type DataProviderImpl = DiaOracleAdapter< + DiaOracleModule, + UnsignedFixedPoint, + Moment, + asset_registry::AssetRegistryToDiaOracleKeyConvertor, + ConvertPrice, + ConvertMoment, + >; + } +} + impl oracle::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = oracle::SubstrateWeight; + type WeightInfo = weights::oracle::SubstrateWeight; type DecimalsLookup = DecimalsLookupImpl; type DataProvider = DataProviderImpl; #[cfg(feature = "runtime-benchmarks")] @@ -1213,7 +1240,7 @@ impl stellar_relay::Config for Runtime { type OrganizationLimit = OrganizationLimit; type ValidatorLimit = ValidatorLimit; type IsPublicNetwork = IsPublicNetwork; - type WeightInfo = stellar_relay::SubstrateWeight; + type WeightInfo = weights::stellar_relay::SubstrateWeight; } parameter_types! { @@ -1224,7 +1251,7 @@ parameter_types! { } impl fee::Config for Runtime { type FeePalletId = FeePalletId; - type WeightInfo = fee::SubstrateWeight; + type WeightInfo = weights::fee::SubstrateWeight; type SignedFixedPoint = SignedFixedPoint; type SignedInner = SignedInner; type UnsignedFixedPoint = UnsignedFixedPoint; @@ -1240,13 +1267,13 @@ impl vault_registry::Config for Runtime { type PalletId = VaultRegistryPalletId; type RuntimeEvent = RuntimeEvent; type Balance = Balance; - type WeightInfo = vault_registry::SubstrateWeight; + type WeightInfo = weights::vault_registry::SubstrateWeight; type GetGriefingCollateralCurrencyId = NativeCurrencyId; } impl redeem::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = redeem::SubstrateWeight; + type WeightInfo = weights::redeem::SubstrateWeight; } pub struct BlockNumberToBalance; @@ -1260,17 +1287,17 @@ impl sp_runtime::traits::Convert for BlockNumberToBalance impl issue::Config for Runtime { type RuntimeEvent = RuntimeEvent; type BlockNumberToBalance = BlockNumberToBalance; - type WeightInfo = issue::SubstrateWeight; + type WeightInfo = weights::issue::SubstrateWeight; } impl nomination::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = nomination::SubstrateWeight; + type WeightInfo = weights::nomination::SubstrateWeight; } impl replace::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = replace::SubstrateWeight; + type WeightInfo = weights::replace::SubstrateWeight; } impl clients_info::Config for Runtime { @@ -1359,8 +1386,7 @@ impl pallet_proxy::Config for Runtime { impl orml_currencies_allowance_extension::Config for Runtime { type RuntimeEvent = RuntimeEvent; - type WeightInfo = - orml_currencies_allowance_extension::default_weights::SubstrateWeight; + type WeightInfo = weights::orml_currencies_allowance_extension::SubstrateWeight; type MaxAllowedCurrencies = ConstU32<256>; } @@ -1396,7 +1422,7 @@ impl treasury_buyout_extension::Config for Runtime { type DecimalsLookup = DecimalsLookupImpl; type MinAmountToBuyout = MinAmountToBuyout; type MaxAllowedBuyoutCurrencies = MaxAllowedBuyoutCurrencies; - type WeightInfo = treasury_buyout_extension::default_weights::SubstrateWeight; + type WeightInfo = weights::treasury_buyout_extension::SubstrateWeight; #[cfg(feature = "runtime-benchmarks")] type RelayChainCurrencyId = RelayChainCurrencyId; } @@ -1456,7 +1482,7 @@ construct_runtime!( Identity: pallet_identity::{Pallet, Storage, Call, Event} = 55, Contracts: pallet_contracts::{Pallet, Storage, Call, Event} = 56, RandomnessCollectiveFlip: pallet_insecure_randomness_collective_flip::{Pallet, Storage} = 57, - DiaOracleModule: dia_oracle::{Pallet, Storage, Call, Event} = 58, + DiaOracleModule: dia_oracle::{Pallet, Config, Storage, Call, Event} = 58, // Zenlink ZenlinkProtocol: zenlink_protocol::{Pallet, Call, Storage, Event} = 59, @@ -1502,11 +1528,23 @@ mod benches { [pallet_session, SessionBench::] [pallet_timestamp, Timestamp] [cumulus_pallet_xcmp_queue, XcmpQueue] + [parachain_staking, ParachainStaking] + + [fee, Fee] + [issue, Issue] + [nomination, Nomination] + [oracle, Oracle] + [redeem, Redeem] + [replace, Replace] + [stellar_relay, StellarRelay] + [vault_registry, VaultRegistry] // Other [orml_asset_registry, runtime_common::benchmarking::orml_asset_registry::Pallet::] [pallet_xcm, PolkadotXcm] + [orml_currencies_allowance_extension, TokenAllowance] + [treasury_buyout_extension, TreasuryBuyoutExtension] ); } diff --git a/runtime/pendulum/src/weights/fee.rs b/runtime/pendulum/src/weights/fee.rs new file mode 100644 index 000000000..87113d6cb --- /dev/null +++ b/runtime/pendulum/src/weights/fee.rs @@ -0,0 +1,102 @@ + +//! Autogenerated weights for fee +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// pendulum +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// fee +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/pendulum/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for fee using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl fee::WeightInfo for SubstrateWeight { + /// Storage: Fee IssueFee (r:0 w:1) + /// Proof Skipped: Fee IssueFee (max_values: Some(1), max_size: None, mode: Measured) + fn set_issue_fee() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(5_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Fee IssueGriefingCollateral (r:0 w:1) + /// Proof Skipped: Fee IssueGriefingCollateral (max_values: Some(1), max_size: None, mode: Measured) + fn set_issue_griefing_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(5_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Fee RedeemFee (r:0 w:1) + /// Proof Skipped: Fee RedeemFee (max_values: Some(1), max_size: None, mode: Measured) + fn set_redeem_fee() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(5_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Fee PremiumRedeemFee (r:0 w:1) + /// Proof Skipped: Fee PremiumRedeemFee (max_values: Some(1), max_size: None, mode: Measured) + fn set_premium_redeem_fee() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(5_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Fee PunishmentFee (r:0 w:1) + /// Proof Skipped: Fee PunishmentFee (max_values: Some(1), max_size: None, mode: Measured) + fn set_punishment_fee() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(5_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Fee ReplaceGriefingCollateral (r:0 w:1) + /// Proof Skipped: Fee ReplaceGriefingCollateral (max_values: Some(1), max_size: None, mode: Measured) + fn set_replace_griefing_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(5_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } +} \ No newline at end of file diff --git a/runtime/pendulum/src/weights/issue.rs b/runtime/pendulum/src/weights/issue.rs new file mode 100644 index 000000000..bcf3d7fbb --- /dev/null +++ b/runtime/pendulum/src/weights/issue.rs @@ -0,0 +1,165 @@ + +//! Autogenerated weights for issue +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-06-04, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Marcels-MBP`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 + +// Executed Command: +// ./target/production/pendulum-node +// benchmark +// pallet +// --chain +// pendulum +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// issue +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/pendulum/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for issue using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl issue::WeightInfo for SubstrateWeight { + /// Storage: Issue LimitVolumeAmount (r:1 w:0) + /// Proof: Issue LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: AssetRegistry Metadata (r:3 w:0) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: Fee IssueGriefingCollateral (r:1 w:0) + /// Proof Skipped: Fee IssueGriefingCollateral (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: Issue IssueMinimumTransferAmount (r:1 w:0) + /// Proof: Issue IssueMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: Fee IssueFee (r:1 w:0) + /// Proof Skipped: Fee IssueFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Security Nonce (r:1 w:1) + /// Proof Skipped: Security Nonce (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: System ParentHash (r:1 w:0) + /// Proof: System ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: VaultRegistry VaultStellarPublicKey (r:1 w:0) + /// Proof Skipped: VaultRegistry VaultStellarPublicKey (max_values: None, max_size: None, mode: Measured) + /// Storage: Security ActiveBlockCount (r:1 w:0) + /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Issue IssuePeriod (r:1 w:0) + /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Issue IssueRequests (r:0 w:1) + /// Proof: Issue IssueRequests (max_values: None, max_size: Some(339), added: 2814, mode: MaxEncodedLen) + fn request_issue() -> Weight { + // Proof Size summary in bytes: + // Measured: `2060` + // Estimated: `10475` + // Minimum execution time: 95_000_000 picoseconds. + Weight::from_parts(96_000_000, 10475) + .saturating_add(T::DbWeight::get().reads(18_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) + } + /// Storage: Issue IssueRequests (r:1 w:1) + /// Proof: Issue IssueRequests (max_values: None, max_size: Some(339), added: 2814, mode: MaxEncodedLen) + /// Storage: StellarRelay NewValidatorsEnactmentBlockHeight (r:1 w:0) + /// Proof: StellarRelay NewValidatorsEnactmentBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: StellarRelay Validators (r:1 w:0) + /// Proof: StellarRelay Validators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) + /// Storage: StellarRelay Organizations (r:1 w:0) + /// Proof: StellarRelay Organizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Fee IssueFee (r:1 w:0) + /// Proof Skipped: Fee IssueFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Issue LimitVolumeAmount (r:1 w:0) + /// Proof: Issue LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalStake (r:2 w:0) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: AssetRegistry Metadata (r:1 w:0) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + fn execute_issue() -> Weight { + // Proof Size summary in bytes: + // Measured: `2498` + // Estimated: `71867` + // Minimum execution time: 8_239_000_000 picoseconds. + Weight::from_parts(8_285_000_000, 71867) + .saturating_add(T::DbWeight::get().reads(11_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: Issue IssueRequests (r:1 w:1) + /// Proof: Issue IssueRequests (max_values: None, max_size: Some(339), added: 2814, mode: MaxEncodedLen) + /// Storage: Issue IssuePeriod (r:1 w:0) + /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Security ActiveBlockCount (r:1 w:0) + /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + fn cancel_issue() -> Weight { + // Proof Size summary in bytes: + // Measured: `1303` + // Estimated: `4768` + // Minimum execution time: 35_000_000 picoseconds. + Weight::from_parts(36_000_000, 4768) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: Issue IssuePeriod (r:0 w:1) + /// Proof: Issue IssuePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + fn set_issue_period() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Issue LimitVolumeAmount (r:0 w:1) + /// Proof: Issue LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) + /// Storage: Issue LimitVolumeCurrencyId (r:0 w:1) + /// Proof: Issue LimitVolumeCurrencyId (max_values: Some(1), max_size: Some(46), added: 541, mode: MaxEncodedLen) + /// Storage: Issue IntervalLength (r:0 w:1) + /// Proof: Issue IntervalLength (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + fn rate_limit_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 9_000_000 picoseconds. + Weight::from_parts(9_000_000, 0) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: Issue IssueMinimumTransferAmount (r:0 w:1) + /// Proof: Issue IssueMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + fn minimum_transfer_amount_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(8_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } +} \ No newline at end of file diff --git a/runtime/pendulum/src/weights/mod.rs b/runtime/pendulum/src/weights/mod.rs index 3037a35a7..8bfc1d9c0 100644 --- a/runtime/pendulum/src/weights/mod.rs +++ b/runtime/pendulum/src/weights/mod.rs @@ -16,13 +16,23 @@ // limitations under the License. //! Expose the auto generated weight files. - pub mod block_weights; pub mod extrinsic_weights; -pub mod orml_asset_registry; pub mod pallet_xcm; pub mod paritydb_weights; pub mod rocksdb_weights; +pub mod parachain_staking; +pub mod orml_asset_registry; +pub mod orml_currencies_allowance_extension; +pub mod treasury_buyout_extension; +pub mod fee; +pub mod issue; +pub mod nomination; +pub mod oracle; +pub mod redeem; +pub mod replace; +pub mod stellar_relay; +pub mod vault_registry; pub use block_weights::constants::BlockExecutionWeight; pub use extrinsic_weights::constants::ExtrinsicBaseWeight; diff --git a/runtime/pendulum/src/weights/nomination.rs b/runtime/pendulum/src/weights/nomination.rs new file mode 100644 index 000000000..80b51f0e9 --- /dev/null +++ b/runtime/pendulum/src/weights/nomination.rs @@ -0,0 +1,228 @@ + +//! Autogenerated weights for nomination +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// pendulum +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// nomination +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/pendulum/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for nomination using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl nomination::WeightInfo for SubstrateWeight { + /// Storage: Nomination NominationEnabled (r:0 w:1) + /// Proof: Nomination NominationEnabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) + fn set_nomination_enabled() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(6_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Nomination NominationEnabled (r:1 w:0) + /// Proof: Nomination NominationEnabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) + /// Storage: VaultRegistry Vaults (r:1 w:0) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Nomination Vaults (r:1 w:1) + /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) + fn opt_in_to_nomination() -> Weight { + // Proof Size summary in bytes: + // Measured: `780` + // Estimated: `4245` + // Minimum execution time: 28_000_000 picoseconds. + Weight::from_parts(30_000_000, 4245) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Nomination Vaults (r:1 w:1) + /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) + /// Storage: VaultStaking Nonce (r:1 w:1) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:2 w:2) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:2 w:2) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:2 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:2 w:2) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:0) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:0) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:2 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:2 w:2) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardTally (r:2 w:2) + /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + fn opt_out_of_nomination() -> Weight { + // Proof Size summary in bytes: + // Measured: `2427` + // Estimated: `8367` + // Minimum execution time: 232_000_000 picoseconds. + Weight::from_parts(242_000_000, 8367) + .saturating_add(T::DbWeight::get().reads(25_u64)) + .saturating_add(T::DbWeight::get().writes(16_u64)) + } + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Nomination NominationEnabled (r:1 w:0) + /// Proof: Nomination NominationEnabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) + /// Storage: Nomination Vaults (r:1 w:0) + /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:2 w:1) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:2 w:1) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:1) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardTally (r:1 w:1) + /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:0) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: PooledVaultRewards TotalStake (r:1 w:1) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) + /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) + /// Storage: Tokens Accounts (r:2 w:2) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:0) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) + /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) + fn deposit_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `3139` + // Estimated: `9079` + // Minimum execution time: 227_000_000 picoseconds. + Weight::from_parts(253_000_000, 9079) + .saturating_add(T::DbWeight::get().reads(28_u64)) + .saturating_add(T::DbWeight::get().writes(13_u64)) + } + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:0) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: Nomination NominationEnabled (r:1 w:0) + /// Proof: Nomination NominationEnabled (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) + /// Storage: Nomination Vaults (r:1 w:0) + /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:1) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:1 w:1) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:1 w:1) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardTally (r:1 w:1) + /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) + /// Storage: PooledVaultRewards TotalStake (r:1 w:1) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) + /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) + /// Storage: Tokens Accounts (r:2 w:2) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:0) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + fn withdraw_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `3325` + // Estimated: `6790` + // Minimum execution time: 209_000_000 picoseconds. + Weight::from_parts(271_000_000, 6790) + .saturating_add(T::DbWeight::get().reads(24_u64)) + .saturating_add(T::DbWeight::get().writes(13_u64)) + } +} \ No newline at end of file diff --git a/runtime/pendulum/src/weights/oracle.rs b/runtime/pendulum/src/weights/oracle.rs new file mode 100644 index 000000000..b9877bd86 --- /dev/null +++ b/runtime/pendulum/src/weights/oracle.rs @@ -0,0 +1,74 @@ + +//! Autogenerated weights for oracle +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// pendulum +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// oracle +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/pendulum/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for oracle using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl oracle::WeightInfo for SubstrateWeight { + /// Storage: Timestamp Now (r:0 w:1) + /// Proof: Timestamp Now (max_values: Some(1), max_size: Some(8), added: 503, mode: MaxEncodedLen) + /// Storage: Timestamp DidUpdate (r:0 w:1) + /// Proof: Timestamp DidUpdate (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) + fn on_initialize() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 1_000_000 picoseconds. + Weight::from_parts(1_000_000, 0) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: Oracle OracleKeys (r:0 w:1) + /// Proof Skipped: Oracle OracleKeys (max_values: Some(1), max_size: None, mode: Measured) + fn update_oracle_keys() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 10_000_000 picoseconds. + Weight::from_parts(10_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Oracle MaxDelay (r:0 w:1) + /// Proof Skipped: Oracle MaxDelay (max_values: Some(1), max_size: None, mode: Measured) + fn set_max_delay() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 9_000_000 picoseconds. + Weight::from_parts(10_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } +} \ No newline at end of file diff --git a/runtime/pendulum/src/weights/orml_currencies_allowance_extension.rs b/runtime/pendulum/src/weights/orml_currencies_allowance_extension.rs new file mode 100644 index 000000000..1c2a11555 --- /dev/null +++ b/runtime/pendulum/src/weights/orml_currencies_allowance_extension.rs @@ -0,0 +1,97 @@ + +//! Autogenerated weights for orml_currencies_allowance_extension +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// pendulum +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// orml_currencies_allowance_extension +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/pendulum/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for orml_currencies_allowance_extension using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl orml_currencies_allowance_extension::default_weights::WeightInfo for SubstrateWeight { + /// Storage: TokenAllowance AllowedCurrencies (r:2 w:1) + /// Proof Skipped: TokenAllowance AllowedCurrencies (max_values: None, max_size: None, mode: Measured) + /// The range of component `n` is `[1, 256]`. + fn add_allowed_currencies(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `142` + // Estimated: `6082` + // Minimum execution time: 17_000_000 picoseconds. + Weight::from_parts(16_105_645, 6082) + // Standard Error: 2_439 + .saturating_add(Weight::from_parts(1_339_480, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: TokenAllowance AllowedCurrencies (r:0 w:1) + /// Proof Skipped: TokenAllowance AllowedCurrencies (max_values: None, max_size: None, mode: Measured) + /// The range of component `n` is `[1, 256]`. + fn remove_allowed_currencies(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 11_000_000 picoseconds. + Weight::from_parts(10_824_769, 0) + // Standard Error: 3_481 + .saturating_add(Weight::from_parts(1_300_759, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: TokenAllowance AllowedCurrencies (r:1 w:0) + /// Proof Skipped: TokenAllowance AllowedCurrencies (max_values: None, max_size: None, mode: Measured) + /// Storage: TokenAllowance Approvals (r:0 w:1) + /// Proof Skipped: TokenAllowance Approvals (max_values: None, max_size: None, mode: Measured) + fn approve() -> Weight { + // Proof Size summary in bytes: + // Measured: `184` + // Estimated: `3649` + // Minimum execution time: 18_000_000 picoseconds. + Weight::from_parts(19_000_000, 3649) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: TokenAllowance AllowedCurrencies (r:1 w:0) + /// Proof Skipped: TokenAllowance AllowedCurrencies (max_values: None, max_size: None, mode: Measured) + /// Storage: TokenAllowance Approvals (r:1 w:1) + /// Proof Skipped: TokenAllowance Approvals (max_values: None, max_size: None, mode: Measured) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + fn transfer_from() -> Weight { + // Proof Size summary in bytes: + // Measured: `581` + // Estimated: `6196` + // Minimum execution time: 72_000_000 picoseconds. + Weight::from_parts(74_000_000, 6196) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } +} \ No newline at end of file diff --git a/runtime/pendulum/src/weights/parachain_staking.rs b/runtime/pendulum/src/weights/parachain_staking.rs new file mode 100644 index 000000000..bc352caa4 --- /dev/null +++ b/runtime/pendulum/src/weights/parachain_staking.rs @@ -0,0 +1,661 @@ + +//! Autogenerated weights for parachain_staking +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-06-08, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// pendulum +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// parachain-staking +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/pendulum/src/weights/parachain-staking.rs +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for parachain_staking using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl parachain_staking::WeightInfo for SubstrateWeight { + /// Storage: ParachainStaking Round (r:1 w:0) + /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) + fn on_initialize_no_action() -> Weight { + // Proof Size summary in bytes: + // Measured: `427` + // Estimated: `1497` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(6_000_000, 1497) + .saturating_add(T::DbWeight::get().reads(1_u64)) + } + /// Storage: ParachainStaking Round (r:1 w:1) + /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) + fn on_initialize_round_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `427` + // Estimated: `1497` + // Minimum execution time: 11_000_000 picoseconds. + Weight::from_parts(11_000_000, 1497) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: ParachainStaking Round (r:1 w:0) + /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) + fn on_initialize_network_rewards() -> Weight { + // Proof Size summary in bytes: + // Measured: `427` + // Estimated: `1497` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(6_000_000, 1497) + .saturating_add(T::DbWeight::get().reads(1_u64)) + } + /// Storage: ParachainStaking ForceNewRound (r:0 w:1) + /// Proof: ParachainStaking ForceNewRound (max_values: Some(1), max_size: Some(1), added: 496, mode: MaxEncodedLen) + fn force_new_round() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 3_000_000 picoseconds. + Weight::from_parts(3_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: ParachainStaking CandidatePool (r:51 w:0) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:2050 w:2050) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Rewards (r:50 w:50) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:0) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking InflationConfig (r:1 w:1) + /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + /// Storage: ParachainStaking CounterForCandidatePool (r:1 w:0) + /// Proof: ParachainStaking CounterForCandidatePool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// The range of component `n` is `[0, 50]`. + /// The range of component `m` is `[0, 40]`. + fn set_inflation(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (4859 ±0) + n * (4052 ±0)` + // Estimated: `126940 + m * (46036 ±1_353) + n * (34326 ±6)` + // Minimum execution time: 722_000_000 picoseconds. + Weight::from_parts(727_000_000, 126940) + // Standard Error: 3_110_660 + .saturating_add(Weight::from_parts(93_218_135, 0).saturating_mul(n.into())) + // Standard Error: 3_886_700 + .saturating_add(Weight::from_parts(111_702_977, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(154_u64)) + .saturating_add(T::DbWeight::get().reads((14_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().reads((17_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().writes(101_u64)) + .saturating_add(T::DbWeight::get().writes((14_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().writes((18_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 46036).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 34326).saturating_mul(n.into())) + } + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:1) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:0) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(2401), added: 2896, mode: MaxEncodedLen) + /// Storage: ParachainStaking CandidatePool (r:10 w:0) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// The range of component `n` is `[8, 50]`. + /// The range of component `m` is `[0, 40]`. + fn set_max_selected_candidates(n: u32, _m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (480 ±0) + n * (48 ±0)` + // Estimated: `5495 + n * (904 ±10)` + // Minimum execution time: 20_000_000 picoseconds. + Weight::from_parts(20_000_000, 5495) + // Standard Error: 14_371 + .saturating_add(Weight::from_parts(1_091_885, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + .saturating_add(Weight::from_parts(0, 904).saturating_mul(n.into())) + } + /// Storage: ParachainStaking Round (r:1 w:1) + /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) + fn set_blocks_per_round() -> Weight { + // Proof Size summary in bytes: + // Measured: `427` + // Estimated: `1497` + // Minimum execution time: 13_000_000 picoseconds. + Weight::from_parts(14_000_000, 1497) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: ParachainStaking CandidatePool (r:41 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(2401), added: 2896, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:41 w:41) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: ParachainStaking DelegatorState (r:40 w:40) + /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:41 w:41) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Rewards (r:1 w:1) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking InflationConfig (r:1 w:0) + /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + /// Storage: Session Validators (r:1 w:0) + /// Proof Skipped: Session Validators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Session DisabledValidators (r:1 w:1) + /// Proof Skipped: Session DisabledValidators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: System Digest (r:1 w:1) + /// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: ParachainStaking CounterForCandidatePool (r:1 w:1) + /// Proof: ParachainStaking CounterForCandidatePool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// The range of component `n` is `[9, 50]`. + /// The range of component `m` is `[0, 40]`. + fn force_remove_candidate(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (3270 ±0) + n * (2656 ±0)` + // Estimated: `10303 + m * (2716 ±24) + n * (3520 ±24)` + // Minimum execution time: 184_000_000 picoseconds. + Weight::from_parts(187_000_000, 10303) + // Standard Error: 74_937 + .saturating_add(Weight::from_parts(1_823_991, 0).saturating_mul(n.into())) + // Standard Error: 96_106 + .saturating_add(Weight::from_parts(17_893_160, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(12_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().writes(9_u64)) + .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 2716).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 3520).saturating_mul(n.into())) + } + /// Storage: ParachainStaking CandidatePool (r:1 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking DelegatorState (r:1 w:0) + /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxCollatorCandidateStake (r:1 w:0) + /// Proof: ParachainStaking MaxCollatorCandidateStake (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:1 w:1) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: Balances Locks (r:1 w:1) + /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: Balances Freezes (r:1 w:0) + /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(2401), added: 2896, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking CounterForCandidatePool (r:1 w:1) + /// Proof: ParachainStaking CounterForCandidatePool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// The range of component `n` is `[1, 49]`. + /// The range of component `m` is `[0, 40]`. + fn join_candidates(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `2556 + m * (39 ±0) + n * (80 ±0)` + // Estimated: `5495 + m * (38 ±0)` + // Minimum execution time: 67_000_000 picoseconds. + Weight::from_parts(46_254_955, 5495) + // Standard Error: 16_268 + .saturating_add(Weight::from_parts(584_207, 0).saturating_mul(n.into())) + // Standard Error: 19_602 + .saturating_add(Weight::from_parts(880_496, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(11_u64)) + .saturating_add(T::DbWeight::get().writes(7_u64)) + .saturating_add(Weight::from_parts(0, 38).saturating_mul(m.into())) + } + /// Storage: ParachainStaking CandidatePool (r:41 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(2401), added: 2896, mode: MaxEncodedLen) + /// Storage: ParachainStaking Round (r:1 w:0) + /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// The range of component `n` is `[9, 49]`. + /// The range of component `m` is `[0, 40]`. + fn init_leave_candidates(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (1968 ±0) + n * (2082 ±0)` + // Estimated: `3886 + m * (426 ±22) + n * (3627 ±22)` + // Minimum execution time: 66_000_000 picoseconds. + Weight::from_parts(72_000_000, 3886) + // Standard Error: 23_335 + .saturating_add(Weight::from_parts(2_485_589, 0).saturating_mul(n.into())) + // Standard Error: 29_347 + .saturating_add(Weight::from_parts(501_385, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().writes(3_u64)) + .saturating_add(Weight::from_parts(0, 426).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 3627).saturating_mul(n.into())) + } + /// Storage: ParachainStaking CandidatePool (r:1 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(2401), added: 2896, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// The range of component `n` is `[9, 49]`. + /// The range of component `m` is `[0, 40]`. + fn cancel_leave_candidates(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `738 + m * (48 ±0) + n * (52 ±0)` + // Estimated: `5495 + m * (38 ±0)` + // Minimum execution time: 29_000_000 picoseconds. + Weight::from_parts(14_072_620, 5495) + // Standard Error: 12_178 + .saturating_add(Weight::from_parts(301_451, 0).saturating_mul(n.into())) + // Standard Error: 12_178 + .saturating_add(Weight::from_parts(636_664, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + .saturating_add(Weight::from_parts(0, 38).saturating_mul(m.into())) + } + /// Storage: ParachainStaking CandidatePool (r:1 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking Round (r:1 w:0) + /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:41 w:41) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: ParachainStaking DelegatorState (r:40 w:40) + /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:41 w:41) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Rewards (r:1 w:1) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:0) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking InflationConfig (r:1 w:0) + /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + /// Storage: Session Validators (r:1 w:0) + /// Proof Skipped: Session Validators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Session DisabledValidators (r:1 w:1) + /// Proof Skipped: Session DisabledValidators (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: System Digest (r:1 w:1) + /// Proof Skipped: System Digest (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: ParachainStaking CounterForCandidatePool (r:1 w:1) + /// Proof: ParachainStaking CounterForCandidatePool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// The range of component `n` is `[9, 49]`. + /// The range of component `m` is `[0, 40]`. + fn execute_leave_candidates(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (1342 ±0) + n * (608 ±0)` + // Estimated: `5495 + m * (2716 ±0) + n * (191 ±6)` + // Minimum execution time: 55_000_000 picoseconds. + Weight::from_parts(56_000_000, 5495) + // Standard Error: 41_765 + .saturating_add(Weight::from_parts(820_817, 0).saturating_mul(n.into())) + // Standard Error: 52_526 + .saturating_add(Weight::from_parts(19_283_115, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(11_u64)) + .saturating_add(T::DbWeight::get().reads((3_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().writes(7_u64)) + .saturating_add(T::DbWeight::get().writes((3_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 2716).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 191).saturating_mul(n.into())) + } + /// Storage: ParachainStaking CandidatePool (r:1 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxCollatorCandidateStake (r:1 w:0) + /// Proof: ParachainStaking MaxCollatorCandidateStake (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:1 w:1) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: Balances Locks (r:1 w:1) + /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: Balances Freezes (r:1 w:0) + /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(2401), added: 2896, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:41 w:41) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Rewards (r:1 w:1) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: ParachainStaking InflationConfig (r:1 w:0) + /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + /// The range of component `n` is `[1, 49]`. + /// The range of component `m` is `[0, 40]`. + /// The range of component `u` is `[0, 9]`. + fn candidate_stake_more(n: u32, m: u32, _u: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (505 ±0) + n * (272 ±0) + u * (20 ±0)` + // Estimated: `5495 + m * (2519 ±0)` + // Minimum execution time: 79_000_000 picoseconds. + Weight::from_parts(80_000_000, 5495) + // Standard Error: 18_398 + .saturating_add(Weight::from_parts(1_123_478, 0).saturating_mul(n.into())) + // Standard Error: 22_380 + .saturating_add(Weight::from_parts(7_753_274, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(12_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().writes(8_u64)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 2519).saturating_mul(m.into())) + } + /// Storage: ParachainStaking CandidatePool (r:1 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:1 w:1) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(2401), added: 2896, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:41 w:41) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Rewards (r:1 w:1) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: ParachainStaking InflationConfig (r:1 w:0) + /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + /// The range of component `n` is `[1, 49]`. + /// The range of component `m` is `[0, 40]`. + fn candidate_stake_less(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (478 ±0) + n * (261 ±0)` + // Estimated: `5495 + m * (2519 ±0)` + // Minimum execution time: 50_000_000 picoseconds. + Weight::from_parts(51_000_000, 5495) + // Standard Error: 21_348 + .saturating_add(Weight::from_parts(597_373, 0).saturating_mul(n.into())) + // Standard Error: 26_264 + .saturating_add(Weight::from_parts(7_171_620, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(8_u64)) + .saturating_add(T::DbWeight::get().reads((1_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().writes(6_u64)) + .saturating_add(T::DbWeight::get().writes((1_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 2519).saturating_mul(m.into())) + } + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: ParachainStaking DelegatorState (r:1 w:1) + /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) + /// Storage: ParachainStaking CandidatePool (r:2 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:1 w:1) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: ParachainStaking LastDelegation (r:1 w:1) + /// Proof: ParachainStaking LastDelegation (max_values: None, max_size: Some(48), added: 2523, mode: MaxEncodedLen) + /// Storage: ParachainStaking Round (r:1 w:0) + /// Proof: ParachainStaking Round (max_values: Some(1), max_size: Some(12), added: 507, mode: MaxEncodedLen) + /// Storage: Balances Locks (r:1 w:1) + /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: Balances Freezes (r:1 w:0) + /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(2401), added: 2896, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:1 w:1) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// The range of component `n` is `[1, 50]`. + /// The range of component `m` is `[1, 39]`. + fn join_delegators(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `3637 + m * (109 ±0) + n * (96 ±0)` + // Estimated: `10000` + // Minimum execution time: 89_000_000 picoseconds. + Weight::from_parts(42_425_136, 10000) + // Standard Error: 17_110 + .saturating_add(Weight::from_parts(987_576, 0).saturating_mul(n.into())) + // Standard Error: 21_715 + .saturating_add(Weight::from_parts(1_143_876, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(13_u64)) + .saturating_add(T::DbWeight::get().writes(9_u64)) + } + /// Storage: ParachainStaking DelegatorState (r:1 w:1) + /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) + /// Storage: ParachainStaking CandidatePool (r:1 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:1 w:1) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: Balances Locks (r:1 w:1) + /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: Balances Freezes (r:1 w:0) + /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(2401), added: 2896, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:2 w:0) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// The range of component `n` is `[1, 50]`. + /// The range of component `m` is `[1, 39]`. + /// The range of component `u` is `[1, 9]`. + fn delegator_stake_more(n: u32, m: u32, _u: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `3978 + m * (93 ±0) + n * (82 ±0) + u * (20 ±0)` + // Estimated: `6028` + // Minimum execution time: 77_000_000 picoseconds. + Weight::from_parts(40_316_626, 6028) + // Standard Error: 12_962 + .saturating_add(Weight::from_parts(851_332, 0).saturating_mul(n.into())) + // Standard Error: 16_442 + .saturating_add(Weight::from_parts(1_123_085, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(11_u64)) + .saturating_add(T::DbWeight::get().writes(7_u64)) + } + /// Storage: ParachainStaking DelegatorState (r:1 w:1) + /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) + /// Storage: ParachainStaking CandidatePool (r:1 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:1 w:1) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(2401), added: 2896, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:2 w:0) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// The range of component `n` is `[1, 50]`. + /// The range of component `m` is `[1, 39]`. + fn delegator_stake_less(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `3107 + m * (72 ±0) + n * (73 ±0)` + // Estimated: `6028` + // Minimum execution time: 52_000_000 picoseconds. + Weight::from_parts(19_584_147, 6028) + // Standard Error: 12_899 + .saturating_add(Weight::from_parts(666_427, 0).saturating_mul(n.into())) + // Standard Error: 16_371 + .saturating_add(Weight::from_parts(940_677, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(8_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) + } + /// Storage: ParachainStaking DelegatorState (r:1 w:1) + /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) + /// Storage: ParachainStaking CandidatePool (r:2 w:1) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:2 w:0) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Unstaking (r:1 w:1) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: ParachainStaking TopCandidates (r:1 w:1) + /// Proof: ParachainStaking TopCandidates (max_values: Some(1), max_size: Some(2401), added: 2896, mode: MaxEncodedLen) + /// Storage: ParachainStaking MaxSelectedCandidates (r:1 w:0) + /// Proof: ParachainStaking MaxSelectedCandidates (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:1) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// The range of component `n` is `[1, 50]`. + /// The range of component `m` is `[1, 39]`. + fn leave_delegators(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `1080 + m * (120 ±0) + n * (82 ±0)` + // Estimated: `6028 + n * (109 ±2)` + // Minimum execution time: 60_000_000 picoseconds. + Weight::from_parts(22_056_904, 6028) + // Standard Error: 15_187 + .saturating_add(Weight::from_parts(834_307, 0).saturating_mul(n.into())) + // Standard Error: 19_274 + .saturating_add(Weight::from_parts(891_113, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(8_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) + .saturating_add(Weight::from_parts(0, 109).saturating_mul(n.into())) + } + /// Storage: ParachainStaking Unstaking (r:1 w:1) + /// Proof: ParachainStaking Unstaking (max_values: None, max_size: Some(241), added: 2716, mode: MaxEncodedLen) + /// Storage: Balances Locks (r:1 w:1) + /// Proof: Balances Locks (max_values: None, max_size: Some(1299), added: 3774, mode: MaxEncodedLen) + /// Storage: Balances Freezes (r:1 w:0) + /// Proof: Balances Freezes (max_values: None, max_size: Some(49), added: 2524, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// The range of component `u` is `[1, 9]`. + fn unlock_unstaked(u: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `1614 + u * (20 ±0)` + // Estimated: `4764` + // Minimum execution time: 37_000_000 picoseconds. + Weight::from_parts(39_931_130, 4764) + // Standard Error: 17_862 + .saturating_add(Weight::from_parts(109_926, 0).saturating_mul(u.into())) + .saturating_add(T::DbWeight::get().reads(4_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: ParachainStaking MaxCollatorCandidateStake (r:0 w:1) + /// Proof: ParachainStaking MaxCollatorCandidateStake (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + fn set_max_candidate_stake() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 8_000_000 picoseconds. + Weight::from_parts(8_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: ParachainStaking DelegatorState (r:1 w:0) + /// Proof: ParachainStaking DelegatorState (max_values: None, max_size: Some(89), added: 2564, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:2 w:1) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Rewards (r:1 w:1) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:0) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking InflationConfig (r:1 w:0) + /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + fn increment_delegator_rewards() -> Weight { + // Proof Size summary in bytes: + // Measured: `754` + // Estimated: `6028` + // Minimum execution time: 27_000_000 picoseconds. + Weight::from_parts(28_000_000, 6028) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: ParachainStaking CandidatePool (r:1 w:0) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:41 w:41) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Rewards (r:41 w:41) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:0) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking InflationConfig (r:1 w:0) + /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + /// The range of component `m` is `[1, 40]`. + fn increment_collator_rewards(m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `853 + m * (98 ±0)` + // Estimated: `5495 + m * (2531 ±0)` + // Minimum execution time: 37_000_000 picoseconds. + Weight::from_parts(28_767_400, 5495) + // Standard Error: 21_438 + .saturating_add(Weight::from_parts(11_999_930, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(5_u64)) + .saturating_add(T::DbWeight::get().reads((2_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().writes(2_u64)) + .saturating_add(T::DbWeight::get().writes((2_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 2531).saturating_mul(m.into())) + } + /// Storage: ParachainStaking Rewards (r:1 w:1) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + fn claim_rewards() -> Weight { + // Proof Size summary in bytes: + // Measured: `712` + // Estimated: `3593` + // Minimum execution time: 32_000_000 picoseconds. + Weight::from_parts(33_000_000, 3593) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: ParachainStaking LastRewardReduction (r:1 w:1) + /// Proof: ParachainStaking LastRewardReduction (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: ParachainStaking InflationConfig (r:1 w:1) + /// Proof: ParachainStaking InflationConfig (max_values: Some(1), max_size: Some(96), added: 591, mode: MaxEncodedLen) + /// Storage: ParachainStaking CandidatePool (r:51 w:0) + /// Proof: ParachainStaking CandidatePool (max_values: None, max_size: Some(2030), added: 4505, mode: MaxEncodedLen) + /// Storage: ParachainStaking RewardCount (r:2050 w:2050) + /// Proof: ParachainStaking RewardCount (max_values: None, max_size: Some(44), added: 2519, mode: MaxEncodedLen) + /// Storage: ParachainStaking Rewards (r:50 w:50) + /// Proof: ParachainStaking Rewards (max_values: None, max_size: Some(56), added: 2531, mode: MaxEncodedLen) + /// Storage: ParachainStaking TotalCollatorStake (r:1 w:0) + /// Proof: ParachainStaking TotalCollatorStake (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: ParachainStaking CounterForCandidatePool (r:1 w:0) + /// Proof: ParachainStaking CounterForCandidatePool (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// The range of component `n` is `[0, 50]`. + /// The range of component `m` is `[0, 40]`. + fn execute_scheduled_reward_change(n: u32, m: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `0 + m * (4859 ±0) + n * (3990 ±0)` + // Estimated: `126940 + m * (46036 ±1_353) + n * (34326 ±12)` + // Minimum execution time: 660_000_000 picoseconds. + Weight::from_parts(664_000_000, 126940) + // Standard Error: 3_134_220 + .saturating_add(Weight::from_parts(93_770_767, 0).saturating_mul(n.into())) + // Standard Error: 3_916_137 + .saturating_add(Weight::from_parts(112_863_154, 0).saturating_mul(m.into())) + .saturating_add(T::DbWeight::get().reads(155_u64)) + .saturating_add(T::DbWeight::get().reads((14_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().reads((17_u64).saturating_mul(m.into()))) + .saturating_add(T::DbWeight::get().writes(102_u64)) + .saturating_add(T::DbWeight::get().writes((14_u64).saturating_mul(n.into()))) + .saturating_add(T::DbWeight::get().writes((18_u64).saturating_mul(m.into()))) + .saturating_add(Weight::from_parts(0, 46036).saturating_mul(m.into())) + .saturating_add(Weight::from_parts(0, 34326).saturating_mul(n.into())) + } +} \ No newline at end of file diff --git a/runtime/pendulum/src/weights/redeem.rs b/runtime/pendulum/src/weights/redeem.rs new file mode 100644 index 000000000..d3917126d --- /dev/null +++ b/runtime/pendulum/src/weights/redeem.rs @@ -0,0 +1,295 @@ + +//! Autogenerated weights for redeem +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// pendulum +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// redeem +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/pendulum/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for redeem using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl redeem::WeightInfo for SubstrateWeight { + /// Storage: Redeem LimitVolumeAmount (r:1 w:0) + /// Proof: Redeem LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Tokens Accounts (r:1 w:1) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: Fee RedeemFee (r:1 w:0) + /// Proof Skipped: Fee RedeemFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Redeem RedeemMinimumTransferAmount (r:1 w:0) + /// Proof: Redeem RedeemMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: Security Nonce (r:1 w:1) + /// Proof Skipped: Security Nonce (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: System ParentHash (r:1 w:0) + /// Proof: System ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: Fee PremiumRedeemFee (r:1 w:0) + /// Proof Skipped: Fee PremiumRedeemFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Security ActiveBlockCount (r:1 w:0) + /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Redeem RedeemPeriod (r:1 w:0) + /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Redeem RedeemRequests (r:0 w:1) + /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) + fn request_redeem() -> Weight { + // Proof Size summary in bytes: + // Measured: `1527` + // Estimated: `4992` + // Minimum execution time: 101_000_000 picoseconds. + Weight::from_parts(107_000_000, 4992) + .saturating_add(T::DbWeight::get().reads(14_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) + } + /// Storage: Tokens Accounts (r:1 w:1) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: Tokens TotalIssuance (r:1 w:1) + /// Proof: Tokens TotalIssuance (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) + /// Storage: VaultRegistry LiquidationVault (r:1 w:1) + /// Proof Skipped: VaultRegistry LiquidationVault (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + fn liquidation_redeem() -> Weight { + // Proof Size summary in bytes: + // Measured: `1269` + // Estimated: `4734` + // Minimum execution time: 92_000_000 picoseconds. + Weight::from_parts(99_000_000, 4734) + .saturating_add(T::DbWeight::get().reads(5_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) + } + /// Storage: Redeem RedeemRequests (r:1 w:1) + /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) + /// Storage: StellarRelay NewValidatorsEnactmentBlockHeight (r:1 w:0) + /// Proof: StellarRelay NewValidatorsEnactmentBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: StellarRelay Validators (r:1 w:0) + /// Proof: StellarRelay Validators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) + /// Storage: StellarRelay Organizations (r:1 w:0) + /// Proof: StellarRelay Organizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) + /// Storage: Redeem LimitVolumeAmount (r:1 w:0) + /// Proof: Redeem LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalStake (r:1 w:0) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + fn execute_redeem() -> Weight { + // Proof Size summary in bytes: + // Measured: `1731` + // Estimated: `71867` + // Minimum execution time: 8_396_000_000 picoseconds. + Weight::from_parts(8_451_000_000, 71867) + .saturating_add(T::DbWeight::get().reads(7_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Redeem RedeemRequests (r:1 w:1) + /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) + /// Storage: Redeem RedeemPeriod (r:1 w:0) + /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Security ActiveBlockCount (r:1 w:0) + /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Fee PunishmentFee (r:1 w:0) + /// Proof Skipped: Fee PunishmentFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:0) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry PunishmentDelay (r:1 w:0) + /// Proof Skipped: VaultRegistry PunishmentDelay (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards TotalStake (r:2 w:0) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: Redeem CancelledRedeemAmount (r:0 w:1) + /// Proof: Redeem CancelledRedeemAmount (max_values: None, max_size: Some(110), added: 2585, mode: MaxEncodedLen) + fn cancel_redeem_reimburse() -> Weight { + // Proof Size summary in bytes: + // Measured: `2658` + // Estimated: `6123` + // Minimum execution time: 163_000_000 picoseconds. + Weight::from_parts(165_000_000, 6123) + .saturating_add(T::DbWeight::get().reads(20_u64)) + .saturating_add(T::DbWeight::get().writes(7_u64)) + } + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Redeem RedeemRequests (r:1 w:1) + /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) + /// Storage: Redeem RedeemPeriod (r:1 w:0) + /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Security ActiveBlockCount (r:1 w:0) + /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Fee PunishmentFee (r:1 w:0) + /// Proof Skipped: Fee PunishmentFee (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:0) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry PunishmentDelay (r:1 w:0) + /// Proof Skipped: VaultRegistry PunishmentDelay (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Redeem CancelledRedeemAmount (r:0 w:1) + /// Proof: Redeem CancelledRedeemAmount (max_values: None, max_size: Some(110), added: 2585, mode: MaxEncodedLen) + fn cancel_redeem_retry() -> Weight { + // Proof Size summary in bytes: + // Measured: `2551` + // Estimated: `6016` + // Minimum execution time: 136_000_000 picoseconds. + Weight::from_parts(141_000_000, 6016) + .saturating_add(T::DbWeight::get().reads(17_u64)) + .saturating_add(T::DbWeight::get().writes(7_u64)) + } + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Tokens Accounts (r:1 w:1) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: Tokens TotalIssuance (r:1 w:1) + /// Proof: Tokens TotalIssuance (max_values: None, max_size: Some(70), added: 2545, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalStake (r:2 w:0) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + fn self_redeem() -> Weight { + // Proof Size summary in bytes: + // Measured: `1653` + // Estimated: `6096` + // Minimum execution time: 98_000_000 picoseconds. + Weight::from_parts(102_000_000, 6096) + .saturating_add(T::DbWeight::get().reads(7_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) + } + /// Storage: Redeem RedeemPeriod (r:0 w:1) + /// Proof: Redeem RedeemPeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + fn set_redeem_period() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 10_000_000 picoseconds. + Weight::from_parts(11_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Redeem RedeemRequests (r:1 w:1) + /// Proof: Redeem RedeemRequests (max_values: None, max_size: Some(356), added: 2831, mode: MaxEncodedLen) + /// Storage: Redeem CancelledRedeemAmount (r:1 w:1) + /// Proof: Redeem CancelledRedeemAmount (max_values: None, max_size: Some(110), added: 2585, mode: MaxEncodedLen) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + fn mint_tokens_for_reimbursed_redeem() -> Weight { + // Proof Size summary in bytes: + // Measured: `1839` + // Estimated: `5304` + // Minimum execution time: 80_000_000 picoseconds. + Weight::from_parts(85_000_000, 5304) + .saturating_add(T::DbWeight::get().reads(7_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: Redeem LimitVolumeAmount (r:0 w:1) + /// Proof: Redeem LimitVolumeAmount (max_values: Some(1), max_size: Some(17), added: 512, mode: MaxEncodedLen) + /// Storage: Redeem LimitVolumeCurrencyId (r:0 w:1) + /// Proof: Redeem LimitVolumeCurrencyId (max_values: Some(1), max_size: Some(46), added: 541, mode: MaxEncodedLen) + /// Storage: Redeem IntervalLength (r:0 w:1) + /// Proof: Redeem IntervalLength (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + fn rate_limit_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 12_000_000 picoseconds. + Weight::from_parts(13_000_000, 0) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: Redeem RedeemMinimumTransferAmount (r:0 w:1) + /// Proof: Redeem RedeemMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + fn minimum_transfer_amount_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 10_000_000 picoseconds. + Weight::from_parts(11_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } +} \ No newline at end of file diff --git a/runtime/pendulum/src/weights/replace.rs b/runtime/pendulum/src/weights/replace.rs new file mode 100644 index 000000000..5c5ebd2e2 --- /dev/null +++ b/runtime/pendulum/src/weights/replace.rs @@ -0,0 +1,223 @@ + +//! Autogenerated weights for replace +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// pendulum +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// replace +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/pendulum/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for replace using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl replace::WeightInfo for SubstrateWeight { + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Nomination Vaults (r:1 w:0) + /// Proof: Nomination Vaults (max_values: None, max_size: Some(141), added: 2616, mode: MaxEncodedLen) + /// Storage: Replace ReplaceMinimumTransferAmount (r:1 w:0) + /// Proof: Replace ReplaceMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Fee ReplaceGriefingCollateral (r:1 w:0) + /// Proof Skipped: Fee ReplaceGriefingCollateral (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: System Account (r:1 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + fn request_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `1531` + // Estimated: `4996` + // Minimum execution time: 73_000_000 picoseconds. + Weight::from_parts(74_000_000, 4996) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + fn withdraw_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `650` + // Estimated: `4115` + // Minimum execution time: 28_000_000 picoseconds. + Weight::from_parts(30_000_000, 4115) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: VaultRegistry Vaults (r:2 w:2) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: Replace ReplaceMinimumTransferAmount (r:1 w:0) + /// Proof: Replace ReplaceMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) + /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) + /// Storage: Tokens Accounts (r:1 w:1) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:1) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:1 w:1) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:1 w:1) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardTally (r:1 w:1) + /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) + /// Storage: PooledVaultRewards TotalStake (r:1 w:1) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) + /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Security Nonce (r:1 w:1) + /// Proof Skipped: Security Nonce (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: System ParentHash (r:1 w:0) + /// Proof: System ParentHash (max_values: Some(1), max_size: Some(32), added: 527, mode: MaxEncodedLen) + /// Storage: Security ActiveBlockCount (r:1 w:0) + /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: Replace ReplacePeriod (r:1 w:0) + /// Proof: Replace ReplacePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Replace ReplaceRequests (r:0 w:1) + /// Proof: Replace ReplaceRequests (max_values: None, max_size: Some(431), added: 2906, mode: MaxEncodedLen) + fn accept_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `3275` + // Estimated: `9215` + // Minimum execution time: 237_000_000 picoseconds. + Weight::from_parts(251_000_000, 9215) + .saturating_add(T::DbWeight::get().reads(27_u64)) + .saturating_add(T::DbWeight::get().writes(16_u64)) + } + /// Storage: Replace ReplaceRequests (r:1 w:1) + /// Proof: Replace ReplaceRequests (max_values: None, max_size: Some(431), added: 2906, mode: MaxEncodedLen) + /// Storage: StellarRelay NewValidatorsEnactmentBlockHeight (r:1 w:0) + /// Proof: StellarRelay NewValidatorsEnactmentBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: StellarRelay Validators (r:1 w:0) + /// Proof: StellarRelay Validators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) + /// Storage: StellarRelay Organizations (r:1 w:0) + /// Proof: StellarRelay Organizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) + /// Storage: VaultRegistry Vaults (r:2 w:2) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + fn execute_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `1968` + // Estimated: `71867` + // Minimum execution time: 8_202_000_000 picoseconds. + Weight::from_parts(8_279_000_000, 71867) + .saturating_add(T::DbWeight::get().reads(6_u64)) + .saturating_add(T::DbWeight::get().writes(3_u64)) + } + /// Storage: Replace ReplaceRequests (r:1 w:1) + /// Proof: Replace ReplaceRequests (max_values: None, max_size: Some(431), added: 2906, mode: MaxEncodedLen) + /// Storage: Replace ReplacePeriod (r:1 w:0) + /// Proof: Replace ReplacePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: Security ActiveBlockCount (r:1 w:0) + /// Proof Skipped: Security ActiveBlockCount (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:2 w:2) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:0) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:1 w:1) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:1 w:1) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + fn cancel_replace() -> Weight { + // Proof Size summary in bytes: + // Measured: `3078` + // Estimated: `9018` + // Minimum execution time: 142_000_000 picoseconds. + Weight::from_parts(145_000_000, 9018) + .saturating_add(T::DbWeight::get().reads(20_u64)) + .saturating_add(T::DbWeight::get().writes(10_u64)) + } + /// Storage: Replace ReplacePeriod (r:0 w:1) + /// Proof: Replace ReplacePeriod (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + fn set_replace_period() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 10_000_000 picoseconds. + Weight::from_parts(10_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: Replace ReplaceMinimumTransferAmount (r:0 w:1) + /// Proof: Replace ReplaceMinimumTransferAmount (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + fn minimum_transfer_amount_update() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 10_000_000 picoseconds. + Weight::from_parts(11_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } +} \ No newline at end of file diff --git a/runtime/pendulum/src/weights/stellar_relay.rs b/runtime/pendulum/src/weights/stellar_relay.rs new file mode 100644 index 000000000..b05371d72 --- /dev/null +++ b/runtime/pendulum/src/weights/stellar_relay.rs @@ -0,0 +1,61 @@ + +//! Autogenerated weights for stellar_relay +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-04-16, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// pendulum +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// stellar-relay +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/pendulum/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for stellar_relay using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl stellar_relay::WeightInfo for SubstrateWeight { + /// Storage: StellarRelay Validators (r:1 w:1) + /// Proof: StellarRelay Validators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) + /// Storage: StellarRelay Organizations (r:1 w:1) + /// Proof: StellarRelay Organizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) + /// Storage: StellarRelay OldValidators (r:0 w:1) + /// Proof: StellarRelay OldValidators (max_values: Some(1), max_size: Some(70382), added: 70877, mode: MaxEncodedLen) + /// Storage: StellarRelay NewValidatorsEnactmentBlockHeight (r:0 w:1) + /// Proof: StellarRelay NewValidatorsEnactmentBlockHeight (max_values: Some(1), max_size: Some(4), added: 499, mode: MaxEncodedLen) + /// Storage: StellarRelay OldOrganizations (r:0 w:1) + /// Proof: StellarRelay OldOrganizations (max_values: Some(1), max_size: Some(37232), added: 37727, mode: MaxEncodedLen) + fn update_tier_1_validator_set() -> Weight { + // Proof Size summary in bytes: + // Measured: `2446` + // Estimated: `71867` + // Minimum execution time: 146_000_000 picoseconds. + Weight::from_parts(156_000_000, 71867) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) + } +} \ No newline at end of file diff --git a/runtime/pendulum/src/weights/treasury_buyout_extension.rs b/runtime/pendulum/src/weights/treasury_buyout_extension.rs new file mode 100644 index 000000000..8e5c28d62 --- /dev/null +++ b/runtime/pendulum/src/weights/treasury_buyout_extension.rs @@ -0,0 +1,89 @@ + +//! Autogenerated weights for treasury_buyout_extension +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-05-20, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// pendulum +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// treasury-buyout-extension +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/pendulum/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for treasury_buyout_extension using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl treasury_buyout_extension::default_weights::WeightInfo for SubstrateWeight { + /// Storage: TreasuryBuyoutExtension AllowedCurrencies (r:1 w:0) + /// Proof: TreasuryBuyoutExtension AllowedCurrencies (max_values: None, max_size: Some(62), added: 2537, mode: MaxEncodedLen) + /// Storage: AssetRegistry Metadata (r:2 w:0) + /// Proof Skipped: AssetRegistry Metadata (max_values: None, max_size: None, mode: Measured) + /// Storage: DiaOracleModule CoinInfosMap (r:1 w:0) + /// Proof Skipped: DiaOracleModule CoinInfosMap (max_values: None, max_size: None, mode: Measured) + /// Storage: TreasuryBuyoutExtension BuyoutLimit (r:1 w:0) + /// Proof: TreasuryBuyoutExtension BuyoutLimit (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + /// Storage: TreasuryBuyoutExtension Buyouts (r:1 w:1) + /// Proof: TreasuryBuyoutExtension Buyouts (max_values: None, max_size: Some(68), added: 2543, mode: MaxEncodedLen) + /// Storage: Tokens Accounts (r:2 w:2) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: System Account (r:2 w:2) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + fn buyout() -> Weight { + // Proof Size summary in bytes: + // Measured: `1223` + // Estimated: `7163` + // Minimum execution time: 121_000_000 picoseconds. + Weight::from_parts(125_000_000, 7163) + .saturating_add(T::DbWeight::get().reads(10_u64)) + .saturating_add(T::DbWeight::get().writes(5_u64)) + } + /// Storage: TreasuryBuyoutExtension BuyoutLimit (r:0 w:1) + /// Proof: TreasuryBuyoutExtension BuyoutLimit (max_values: Some(1), max_size: Some(16), added: 511, mode: MaxEncodedLen) + fn update_buyout_limit() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 7_000_000 picoseconds. + Weight::from_parts(8_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: TreasuryBuyoutExtension AllowedCurrencies (r:1 w:1) + /// Proof: TreasuryBuyoutExtension AllowedCurrencies (max_values: None, max_size: Some(62), added: 2537, mode: MaxEncodedLen) + /// The range of component `n` is `[1, 20]`. + fn update_allowed_assets(n: u32, ) -> Weight { + // Proof Size summary in bytes: + // Measured: `4` + // Estimated: `3527` + // Minimum execution time: 16_000_000 picoseconds. + Weight::from_parts(15_597_893, 3527) + // Standard Error: 5_165 + .saturating_add(Weight::from_parts(1_242_326, 0).saturating_mul(n.into())) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } +} \ No newline at end of file diff --git a/runtime/pendulum/src/weights/vault_registry.rs b/runtime/pendulum/src/weights/vault_registry.rs new file mode 100644 index 000000000..ccd9280f2 --- /dev/null +++ b/runtime/pendulum/src/weights/vault_registry.rs @@ -0,0 +1,381 @@ + +//! Autogenerated weights for vault_registry +//! +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2024-04-29, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! WORST CASE MAP SIZE: `1000000` +//! HOSTNAME: `Bogdans-M2-MacBook-Pro.local`, CPU: `` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("pendulum"), DB CACHE: 1024 + +// Executed Command: +// ./target/release/pendulum-node +// benchmark +// pallet +// --chain +// pendulum +// --execution=wasm +// --wasm-execution=compiled +// --pallet +// vault-registry +// --extrinsic +// * +// --steps +// 50 +// --repeat +// 20 +// --output +// runtime/pendulum/src/weights/ +// --template +// .maintain/frame-weight-template.hbs + +#![cfg_attr(rustfmt, rustfmt_skip)] +#![allow(unused_parens)] +#![allow(unused_imports)] +#![allow(missing_docs)] + +use frame_support::{traits::Get, weights::{Weight, constants::RocksDbWeight}}; +use core::marker::PhantomData; + +/// Weights for vault_registry using the Substrate node and recommended hardware. +pub struct SubstrateWeight(PhantomData); +impl vault_registry::WeightInfo for SubstrateWeight { + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry LiquidationCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry LiquidationCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry MinimumCollateralVault (r:1 w:0) + /// Proof Skipped: VaultRegistry MinimumCollateralVault (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) + /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry VaultStellarPublicKey (r:1 w:0) + /// Proof Skipped: VaultRegistry VaultStellarPublicKey (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: Tokens Accounts (r:1 w:1) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:1) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:1 w:1) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:1 w:1) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardTally (r:1 w:1) + /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: PooledVaultRewards TotalStake (r:1 w:1) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) + /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) + fn register_vault() -> Weight { + // Proof Size summary in bytes: + // Measured: `1079` + // Estimated: `4544` + // Minimum execution time: 153_000_000 picoseconds. + Weight::from_parts(159_000_000, 4544) + .saturating_add(T::DbWeight::get().reads(24_u64)) + .saturating_add(T::DbWeight::get().writes(12_u64)) + } + /// Storage: VaultRegistry Vaults (r:1 w:0) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) + /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) + /// Storage: Tokens Accounts (r:1 w:1) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:1) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:1 w:1) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:1 w:1) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardTally (r:1 w:1) + /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) + /// Storage: PooledVaultRewards TotalStake (r:1 w:1) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) + /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + fn deposit_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `2501` + // Estimated: `5966` + // Minimum execution time: 178_000_000 picoseconds. + Weight::from_parts(183_000_000, 5966) + .saturating_add(T::DbWeight::get().reads(21_u64)) + .saturating_add(T::DbWeight::get().writes(12_u64)) + } + /// Storage: VaultRegistry Vaults (r:1 w:0) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:1 w:1) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:1 w:1) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry PremiumRedeemThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: Tokens Accounts (r:1 w:1) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:1) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardTally (r:1 w:1) + /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) + /// Storage: PooledVaultRewards TotalStake (r:1 w:1) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) + /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) + fn withdraw_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `2475` + // Estimated: `5940` + // Minimum execution time: 187_000_000 picoseconds. + Weight::from_parts(197_000_000, 5940) + .saturating_add(T::DbWeight::get().reads(21_u64)) + .saturating_add(T::DbWeight::get().writes(12_u64)) + } + /// Storage: VaultRegistry VaultStellarPublicKey (r:1 w:1) + /// Proof Skipped: VaultRegistry VaultStellarPublicKey (max_values: None, max_size: None, mode: Measured) + fn register_public_key() -> Weight { + // Proof Size summary in bytes: + // Measured: `334` + // Estimated: `3799` + // Minimum execution time: 16_000_000 picoseconds. + Weight::from_parts(17_000_000, 3799) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:0) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:0) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + fn accept_new_issues() -> Weight { + // Proof Size summary in bytes: + // Measured: `1484` + // Estimated: `4949` + // Minimum execution time: 59_000_000 picoseconds. + Weight::from_parts(61_000_000, 4949) + .saturating_add(T::DbWeight::get().reads(9_u64)) + .saturating_add(T::DbWeight::get().writes(4_u64)) + } + /// Storage: VaultRegistry SecureCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + fn set_custom_secure_threshold() -> Weight { + // Proof Size summary in bytes: + // Measured: `711` + // Estimated: `4176` + // Minimum execution time: 17_000_000 picoseconds. + Weight::from_parts(18_000_000, 4176) + .saturating_add(T::DbWeight::get().reads(2_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: VaultRegistry MinimumCollateralVault (r:0 w:1) + /// Proof Skipped: VaultRegistry MinimumCollateralVault (max_values: None, max_size: None, mode: Measured) + fn set_minimum_collateral() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(6_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: VaultRegistry SystemCollateralCeiling (r:0 w:1) + /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) + fn set_system_collateral_ceiling() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(7_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: VaultStaking RewardCurrencies (r:1 w:1) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultRegistry SecureCollateralThreshold (r:0 w:1) + /// Proof Skipped: VaultRegistry SecureCollateralThreshold (max_values: None, max_size: None, mode: Measured) + fn set_secure_collateral_threshold() -> Weight { + // Proof Size summary in bytes: + // Measured: `80` + // Estimated: `1565` + // Minimum execution time: 11_000_000 picoseconds. + Weight::from_parts(11_000_000, 1565) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(2_u64)) + } + /// Storage: VaultRegistry PremiumRedeemThreshold (r:0 w:1) + /// Proof Skipped: VaultRegistry PremiumRedeemThreshold (max_values: None, max_size: None, mode: Measured) + fn set_premium_redeem_threshold() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(6_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: VaultRegistry LiquidationCollateralThreshold (r:0 w:1) + /// Proof Skipped: VaultRegistry LiquidationCollateralThreshold (max_values: None, max_size: None, mode: Measured) + fn set_liquidation_collateral_threshold() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 6_000_000 picoseconds. + Weight::from_parts(6_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry LiquidationCollateralThreshold (r:1 w:0) + /// Proof Skipped: VaultRegistry LiquidationCollateralThreshold (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking Nonce (r:1 w:0) + /// Proof Skipped: VaultStaking Nonce (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalCurrentStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalCurrentStake (max_values: None, max_size: None, mode: Measured) + /// Storage: Security ParachainStatus (r:1 w:0) + /// Proof Skipped: Security ParachainStatus (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: VaultStaking Stake (r:1 w:1) + /// Proof Skipped: VaultStaking Stake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashPerToken (r:1 w:0) + /// Proof Skipped: VaultStaking SlashPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking SlashTally (r:1 w:1) + /// Proof Skipped: VaultStaking SlashTally (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardCurrencies (r:1 w:0) + /// Proof Skipped: VaultStaking RewardCurrencies (max_values: Some(1), max_size: None, mode: Measured) + /// Storage: PooledVaultRewards Stake (r:1 w:1) + /// Proof: PooledVaultRewards Stake (max_values: None, max_size: Some(202), added: 2677, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardPerToken (r:1 w:0) + /// Proof: PooledVaultRewards RewardPerToken (max_values: None, max_size: Some(140), added: 2615, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardTally (r:1 w:1) + /// Proof: PooledVaultRewards RewardTally (max_values: None, max_size: Some(264), added: 2739, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards TotalRewards (r:1 w:1) + /// Proof: PooledVaultRewards TotalRewards (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: VaultStaking RewardPerToken (r:1 w:1) + /// Proof Skipped: VaultStaking RewardPerToken (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking TotalStake (r:1 w:1) + /// Proof Skipped: VaultStaking TotalStake (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultStaking RewardTally (r:1 w:1) + /// Proof Skipped: VaultStaking RewardTally (max_values: None, max_size: None, mode: Measured) + /// Storage: PooledVaultRewards TotalStake (r:1 w:1) + /// Proof: PooledVaultRewards TotalStake (max_values: None, max_size: Some(78), added: 2553, mode: MaxEncodedLen) + /// Storage: PooledVaultRewards RewardCurrencies (r:1 w:0) + /// Proof: PooledVaultRewards RewardCurrencies (max_values: None, max_size: Some(523), added: 2998, mode: MaxEncodedLen) + /// Storage: VaultRegistry TotalUserVaultCollateral (r:1 w:1) + /// Proof Skipped: VaultRegistry TotalUserVaultCollateral (max_values: None, max_size: None, mode: Measured) + /// Storage: Tokens Accounts (r:2 w:2) + /// Proof: Tokens Accounts (max_values: None, max_size: Some(150), added: 2625, mode: MaxEncodedLen) + /// Storage: System Account (r:2 w:1) + /// Proof: System Account (max_values: None, max_size: Some(128), added: 2603, mode: MaxEncodedLen) + /// Storage: VaultRegistry SystemCollateralCeiling (r:1 w:0) + /// Proof Skipped: VaultRegistry SystemCollateralCeiling (max_values: None, max_size: None, mode: Measured) + /// Storage: VaultRegistry LiquidationVault (r:1 w:1) + /// Proof Skipped: VaultRegistry LiquidationVault (max_values: None, max_size: None, mode: Measured) + fn report_undercollateralized_vault() -> Weight { + // Proof Size summary in bytes: + // Measured: `2708` + // Estimated: `6240` + // Minimum execution time: 323_000_000 picoseconds. + Weight::from_parts(343_000_000, 6240) + .saturating_add(T::DbWeight::get().reads(25_u64)) + .saturating_add(T::DbWeight::get().writes(16_u64)) + } + /// Storage: VaultRegistry Vaults (r:1 w:1) + /// Proof Skipped: VaultRegistry Vaults (max_values: None, max_size: None, mode: Measured) + fn recover_vault_id() -> Weight { + // Proof Size summary in bytes: + // Measured: `649` + // Estimated: `4114` + // Minimum execution time: 15_000_000 picoseconds. + Weight::from_parts(16_000_000, 4114) + .saturating_add(T::DbWeight::get().reads(1_u64)) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } + /// Storage: VaultRegistry PunishmentDelay (r:0 w:1) + /// Proof Skipped: VaultRegistry PunishmentDelay (max_values: Some(1), max_size: None, mode: Measured) + fn set_punishment_delay() -> Weight { + // Proof Size summary in bytes: + // Measured: `0` + // Estimated: `0` + // Minimum execution time: 5_000_000 picoseconds. + Weight::from_parts(5_000_000, 0) + .saturating_add(T::DbWeight::get().writes(1_u64)) + } +} \ No newline at end of file