Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • nodes/rust/duniter-v2s
  • llaq/lc-core-substrate
  • pini-gh/duniter-v2s
  • vincentux/duniter-v2s
  • mildred/duniter-v2s
  • d0p1/duniter-v2s
  • bgallois/duniter-v2s
  • Nicolas80/duniter-v2s
8 results
Show changes
This diff is collapsed.
......@@ -7,54 +7,55 @@ first_ud: null
# null = block#0 + ud_reeval_period waiting (ms)
first_ud_reeval: null
# Parameters used in pallet `duniter-test-parameters`
parameters:
# Epoch (session) duration, in number of blocks. 1h.
babe_epoch_duration: 600
# Time between 2 UDs, in milliseconds. 4 hours.
ud_creation_period: 14400000
# Time between 2 UD reevaluations, in milliseconds
# Time between 2 UD reevaluations, in milliseconds. 24 hours.
ud_reeval_period: 86400000
# ----- MAIN WOT -----
# Duration to wait between two emitted certifications, in blocks. 1 day.
# Duration to wait between two emitted certifications 14400 blocks = 24h = 1 day.
cert_period: 14400
# Maximum quantity of currently valid certifications emitted by a same issuer. 100 certs.
cert_max_by_issuer: 100
# Minimum quantity of received certifications to be able to certify someone else. 3 certs.
cert_min_received_cert_to_issue_cert: 3
# Validity duration of a certification, in blocks. 146 days.
# Validity duration of a certification, 2102400 blocks = 146 days.
cert_validity_period: 2102400
# Validity duration of a membership. 73 days.
# Validity duration of a membership. 1051200 blocks = 73 days.
membership_period: 1051200
# Validity duration of a pending membership. 12 days.
# Validity duration of a pending membership. 172800 blocks = 12 days.
pending_membership_period: 172800
# Delay (in blocks) a member must observe before being able to emit a certification
# Delay a new member must observe before being able to emit a certification
wot_first_cert_issuable_on: 0
# Number of required received certs to become a member
wot_min_cert_for_membership: 3
# Time to wait between two creation of an identity by a same issue, in blocks. 1 day.
# Duration to wait between two identity creations. 14400 blocks = 24h = 1 day. (equal to cert_period)
idty_creation_period: 14400
# Window to confirm an identity, in blocks. 1 day.
# Window to confirm an identity, in blocks. 14400 blocks = 24h = 1 day.
idty_confirm_period: 14400
# Number of required received certs to be able to create identities
wot_min_cert_for_create_idty_right: 3
# ----- SMITH WOT -----
# Duration to wait between two emitted certifications, in blocks. 1 day.
# Duration to wait between two emitted certifications, in blocks. 14400 blocks = 24h = 1 day.
smith_cert_period: 14400
# Maximum quantity of currently valid certifications emitted by a same issuer. 15 certs.
smith_cert_max_by_issuer: 15
# Minimum quantity of received certifications to be able to certify someone else.
# Minimum quantity of smith certifications received to be able to smith certify someone else.
smith_cert_min_received_cert_to_issue_cert: 3
# Validity duration of a certification, in blocks. 146 days.
# Validity duration of a certification, in blocks. 2102400 blocks = 146 days.
smith_cert_validity_period: 2102400
# Validity duration of a membership. 73 days.
# Validity duration of a membership. 1051200 blocks = 73 days.
smith_membership_period: 1051200
# Validity duration of a pending membership. 12 days.
# Validity duration of a pending membership. 172800 blocks = 12 days.
smith_pending_membership_period: 172800
# Delay (in blocks) a member must observe before being able to emit a certification
# Delay a new smith member must observe before being able to emit a smith certification. 14400 blocks = 24h = 1 day.
smith_wot_first_cert_issuable_on: 14400
# Number of required received certs to become a member
# Number of required received smith certs to become a smith member
smith_wot_min_cert_for_membership: 3
# Clique Smith WoT: each smith will certify by each other smith automatically on Genesis
......
No preview for this file type
// Copyright 2021-2022 Axiom-Team
//
// This file is part of Duniter-v2S.
//
// Duniter-v2S is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, version 3 of the License.
//
// Duniter-v2S is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>.
//! Autogenerated weights for `pallet_quota`
//!
//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev
//! DATE: 2023-10-26, STEPS: `5`, REPEAT: `2`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! DATE: 2023-11-24, STEPS: `50`, REPEAT: `20`, LOW RANGE: `[]`, HIGH RANGE: `[]`
//! WORST CASE MAP SIZE: `1000000`
//! HOSTNAME: `Albatros`, CPU: `Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz`
//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("gdev-benchmark"), DB CACHE: 1024
//! HOSTNAME: `bgallois-ms7d43`, CPU: `12th Gen Intel(R) Core(TM) i3-12100F`
//! EXECUTION: None, WASM-EXECUTION: Compiled, CHAIN: Some("dev"), DB CACHE: 1024
// Executed Command:
// ./target/debug/duniter
// ./target/release/duniter
// benchmark
// pallet
// --chain=gdev-benchmark
// --steps=5
// --repeat=2
// --pallet=pallet_quota
// --extrinsic=*
// --execution=wasm
// --chain
// dev
// --wasm-execution=compiled
// --heap-pages=4096
// --output=./
// --header=./file_header.txt
// --pallet
// pallet-quota
// --extrinsic
// *
// --steps
// 50
// --repeat
// 20
// --output=runtime/common/src/weights/
#![cfg_attr(rustfmt, rustfmt_skip)]
#![allow(unused_parens)]
......@@ -52,10 +39,10 @@ impl<T: frame_system::Config> pallet_quota::WeightInfo for WeightInfo<T> {
/// Proof: Quota RefundQueue (max_values: Some(1), max_size: Some(11266), added: 11761, mode: MaxEncodedLen)
fn queue_refund() -> Weight {
// Proof Size summary in bytes:
// Measured: `42`
// Measured: `11288`
// Estimated: `12751`
// Minimum execution time: 73_265_000 picoseconds.
Weight::from_parts(77_698_000, 0)
// Minimum execution time: 7_021_000 picoseconds.
Weight::from_parts(7_228_000, 0)
.saturating_add(Weight::from_parts(0, 12751))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
......@@ -64,32 +51,72 @@ impl<T: frame_system::Config> pallet_quota::WeightInfo for WeightInfo<T> {
/// Proof: Quota IdtyQuota (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen)
fn spend_quota() -> Weight {
// Proof Size summary in bytes:
// Measured: `137`
// Measured: `139`
// Estimated: `3489`
// Minimum execution time: 147_746_000 picoseconds.
Weight::from_parts(165_850_000, 0)
// Minimum execution time: 3_635_000 picoseconds.
Weight::from_parts(3_768_000, 0)
.saturating_add(Weight::from_parts(0, 3489))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: Quota IdtyQuota (r:1 w:1)
/// Proof: Quota IdtyQuota (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:0)
/// Proof: System Account (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen)
fn try_refund() -> Weight {
// Proof Size summary in bytes:
// Measured: `137`
// Estimated: `3489`
// Minimum execution time: 367_239_000 picoseconds.
Weight::from_parts(392_186_000, 0)
.saturating_add(Weight::from_parts(0, 3489))
.saturating_add(T::DbWeight::get().reads(1))
// Measured: `139`
// Estimated: `3591`
// Minimum execution time: 11_415_000 picoseconds.
Weight::from_parts(11_717_000, 0)
.saturating_add(Weight::from_parts(0, 3591))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: Quota IdtyQuota (r:1 w:1)
/// Proof: Quota IdtyQuota (max_values: None, max_size: Some(24), added: 2499, mode: MaxEncodedLen)
/// Storage: System Account (r:1 w:0)
/// Proof: System Account (max_values: None, max_size: Some(126), added: 2601, mode: MaxEncodedLen)
fn do_refund() -> Weight {
// Proof Size summary in bytes:
// Measured: `0`
// Estimated: `0`
// Minimum execution time: 356_707_000 picoseconds.
Weight::from_parts(471_930_000, 0)
.saturating_add(Weight::from_parts(0, 0))
// Measured: `139`
// Estimated: `3591`
// Minimum execution time: 10_849_000 picoseconds.
Weight::from_parts(11_263_000, 0)
.saturating_add(Weight::from_parts(0, 3591))
.saturating_add(T::DbWeight::get().reads(2))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: Quota RefundQueue (r:1 w:1)
/// Proof: Quota RefundQueue (max_values: Some(1), max_size: Some(11266), added: 11761, mode: MaxEncodedLen)
fn on_process_refund_queue() -> Weight {
// Proof Size summary in bytes:
// Measured: `43`
// Estimated: `12751`
// Minimum execution time: 1_530_000 picoseconds.
Weight::from_parts(1_646_000, 0)
.saturating_add(Weight::from_parts(0, 12751))
.saturating_add(T::DbWeight::get().reads(1))
.saturating_add(T::DbWeight::get().writes(1))
}
/// Storage: Quota RefundQueue (r:1 w:1)
/// Proof: Quota RefundQueue (max_values: Some(1), max_size: Some(11266), added: 11761, mode: Measured)
/// Storage: Quota IdtyQuota (r:1 w:1)
/// Proof: Quota IdtyQuota (max_values: None, max_size: Some(24), added: 2499, mode: Measured)
/// Storage: System Account (r:1 w:0)
/// Proof: System Account (max_values: None, max_size: Some(126), added: 2601, mode: Measured)
/// The range of component `i` is `[1, 256]`.
fn on_process_refund_queue_elements(i: u32, ) -> Weight {
// Proof Size summary in bytes:
// Measured: `164 + i * (44 ±0)`
// Estimated: `3628 + i * (44 ±0)`
// Minimum execution time: 13_465_000 picoseconds.
Weight::from_parts(19_579_671, 0)
.saturating_add(Weight::from_parts(0, 3628))
// Standard Error: 1_313
.saturating_add(Weight::from_parts(465_028, 0).saturating_mul(i.into()))
.saturating_add(T::DbWeight::get().reads(3))
.saturating_add(T::DbWeight::get().writes(2))
.saturating_add(Weight::from_parts(0, 44).saturating_mul(i.into()))
}
}
# Runtime errors
There are **{{error_counter}}** errors from **{{ pallets | length }}** pallets.
<ul>
{% for pallet in pallets -%}
<li>{{ pallet.name }} - {{ pallet.index }}
<ul>
{% for error in pallet.errors -%}
<li>
<details>
<summary>
<code>{{ error.name }}</code> - {{ error.index }}</summary>
{{ error.documentation }}
</details>
</li>
{% endfor -%}
</ul>
</li>
{% endfor -%}
</ul>
\ No newline at end of file
# Runtime events
There are **{{event_counter}}** events from **{{ pallets | length }}** pallets.
<ul>
{% for pallet in pallets -%}
<li>{{ pallet.name }} - {{ pallet.index }}
<ul>
{% for event in pallet.events -%}
<li>
<details>
<summary>
<code>{{ event.name }}(
{%- for param in event.params -%}
{{ param.name }}{% if loop.last != true %}, {% endif %}
{%- endfor -%}
)</code> - {{ event.index }}</summary>
{{ event.documentation }}
```rust
{% for param in event.params -%}
{{ param.name }}: {{ param.type_name }}
{%- else -%}no args
{% endfor -%}
```
</details>
</li>
{% endfor -%}
</ul>
</li>
{% endfor -%}
</ul>
\ No newline at end of file
......@@ -14,7 +14,7 @@
// You should have received a copy of the GNU Affero General Public License
// along with Duniter-v2S. If not, see <https://www.gnu.org/licenses/>.
mod gen_calls_doc;
mod gen_doc;
mod release_runtime;
use anyhow::{Context, Result};
......@@ -38,8 +38,8 @@ enum DuniterXTaskCommand {
#[clap(long)]
production: bool,
},
/// Generate calls documentation
GenCallsDoc,
/// Generate documentation (calls and events)
GenDoc,
/// Inject runtime code in raw specs
InjectRuntimeCode {
#[clap(short, long)]
......@@ -82,7 +82,7 @@ async fn main() -> Result<()> {
match args.command {
DuniterXTaskCommand::Build { production } => build(production),
DuniterXTaskCommand::GenCallsDoc => gen_calls_doc::gen_calls_doc(),
DuniterXTaskCommand::GenDoc => gen_doc::gen_doc(),
DuniterXTaskCommand::InjectRuntimeCode { runtime, raw_spec } => {
inject_runtime_code(&raw_spec, &runtime)
}
......