Trait pallet_schemas::weights::WeightInfo
source · pub trait WeightInfo {
// Required methods
fn create_schema(m: u32) -> Weight;
fn create_schema_via_governance(m: u32) -> Weight;
fn propose_to_create_schema(m: u32) -> Weight;
fn create_schema_v2(m: u32) -> Weight;
fn create_schema_v3(m: u32) -> Weight;
fn set_max_schema_model_bytes() -> Weight;
fn create_schema_via_governance_v2(m: u32) -> Weight;
fn propose_to_create_schema_v2(m: u32) -> Weight;
fn propose_to_create_schema_name() -> Weight;
fn create_schema_name_via_governance() -> Weight;
}
Expand description
Weight functions needed for pallet_schemas
.
Required Methods§
fn create_schema(m: u32) -> Weight
fn create_schema_via_governance(m: u32) -> Weight
fn propose_to_create_schema(m: u32) -> Weight
fn create_schema_v2(m: u32) -> Weight
fn create_schema_v3(m: u32) -> Weight
fn set_max_schema_model_bytes() -> Weight
fn create_schema_via_governance_v2(m: u32) -> Weight
fn propose_to_create_schema_v2(m: u32) -> Weight
fn propose_to_create_schema_name() -> Weight
fn create_schema_name_via_governance() -> Weight
Object Safety§
Implementations on Foreign Types§
source§impl WeightInfo for ()
impl WeightInfo for ()
source§fn create_schema(m: u32) -> Weight
fn create_schema(m: u32) -> Weight
Storage: Schemas::GovernanceSchemaModelMaxBytes
(r:1 w:0)
Proof: Schemas::GovernanceSchemaModelMaxBytes
(max_values
: Some(1), max_size
: Some(4), added: 499, mode: MaxEncodedLen
)
Storage: Schemas::CurrentSchemaIdentifierMaximum
(r:1 w:1)
Proof: Schemas::CurrentSchemaIdentifierMaximum
(max_values
: Some(1), max_size
: Some(2), added: 497, mode: MaxEncodedLen
)
Storage: Schemas::SchemaInfos
(r:0 w:1)
Proof: Schemas::SchemaInfos
(max_values
: None, max_size
: Some(15), added: 2490, mode: MaxEncodedLen
)
Storage: Schemas::SchemaPayloads
(r:0 w:1)
Proof: Schemas::SchemaPayloads
(max_values
: None, max_size
: Some(65514), added: 67989, mode: MaxEncodedLen
)
The range of component m
is [16, 65499]
.
source§fn create_schema_via_governance(m: u32) -> Weight
fn create_schema_via_governance(m: u32) -> Weight
Storage: Schemas::GovernanceSchemaModelMaxBytes
(r:1 w:0)
Proof: Schemas::GovernanceSchemaModelMaxBytes
(max_values
: Some(1), max_size
: Some(4), added: 499, mode: MaxEncodedLen
)
Storage: Schemas::CurrentSchemaIdentifierMaximum
(r:1 w:1)
Proof: Schemas::CurrentSchemaIdentifierMaximum
(max_values
: Some(1), max_size
: Some(2), added: 497, mode: MaxEncodedLen
)
Storage: Schemas::SchemaInfos
(r:0 w:1)
Proof: Schemas::SchemaInfos
(max_values
: None, max_size
: Some(15), added: 2490, mode: MaxEncodedLen
)
Storage: Schemas::SchemaPayloads
(r:0 w:1)
Proof: Schemas::SchemaPayloads
(max_values
: None, max_size
: Some(65514), added: 67989, mode: MaxEncodedLen
)
The range of component m
is [16, 65499]
.
source§fn propose_to_create_schema(m: u32) -> Weight
fn propose_to_create_schema(m: u32) -> Weight
Storage: Council::Members
(r:1 w:0)
Proof: Council::Members
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Council::ProposalOf
(r:1 w:1)
Proof: Council::ProposalOf
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Council::Proposals
(r:1 w:1)
Proof: Council::Proposals
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Council::ProposalCount
(r:1 w:1)
Proof: Council::ProposalCount
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Council::Voting
(r:0 w:1)
Proof: Council::Voting
(max_values
: None, max_size
: None, mode: Measured
)
The range of component m
is [16, 65499]
.
source§fn create_schema_v2(m: u32) -> Weight
fn create_schema_v2(m: u32) -> Weight
Storage: Schemas::GovernanceSchemaModelMaxBytes
(r:1 w:0)
Proof: Schemas::GovernanceSchemaModelMaxBytes
(max_values
: Some(1), max_size
: Some(4), added: 499, mode: MaxEncodedLen
)
Storage: Schemas::CurrentSchemaIdentifierMaximum
(r:1 w:1)
Proof: Schemas::CurrentSchemaIdentifierMaximum
(max_values
: Some(1), max_size
: Some(2), added: 497, mode: MaxEncodedLen
)
Storage: Schemas::SchemaInfos
(r:0 w:1)
Proof: Schemas::SchemaInfos
(max_values
: None, max_size
: Some(15), added: 2490, mode: MaxEncodedLen
)
Storage: Schemas::SchemaPayloads
(r:0 w:1)
Proof: Schemas::SchemaPayloads
(max_values
: None, max_size
: Some(65514), added: 67989, mode: MaxEncodedLen
)
The range of component m
is [16, 65499]
.
source§fn create_schema_v3(m: u32) -> Weight
fn create_schema_v3(m: u32) -> Weight
Storage: Schemas::GovernanceSchemaModelMaxBytes
(r:1 w:0)
Proof: Schemas::GovernanceSchemaModelMaxBytes
(max_values
: Some(1), max_size
: Some(4), added: 499, mode: MaxEncodedLen
)
Storage: Schemas::CurrentSchemaIdentifierMaximum
(r:1 w:1)
Proof: Schemas::CurrentSchemaIdentifierMaximum
(max_values
: Some(1), max_size
: Some(2), added: 497, mode: MaxEncodedLen
)
Storage: Schemas::SchemaNameToIds
(r:1 w:1)
Proof: Schemas::SchemaNameToIds
(max_values
: None, max_size
: Some(602), added: 3077, mode: MaxEncodedLen
)
Storage: Schemas::SchemaInfos
(r:0 w:1)
Proof: Schemas::SchemaInfos
(max_values
: None, max_size
: Some(15), added: 2490, mode: MaxEncodedLen
)
Storage: Schemas::SchemaPayloads
(r:0 w:1)
Proof: Schemas::SchemaPayloads
(max_values
: None, max_size
: Some(65514), added: 67989, mode: MaxEncodedLen
)
The range of component m
is [16, 65499]
.
source§fn set_max_schema_model_bytes() -> Weight
fn set_max_schema_model_bytes() -> Weight
Storage: Schemas::GovernanceSchemaModelMaxBytes
(r:0 w:1)
Proof: Schemas::GovernanceSchemaModelMaxBytes
(max_values
: Some(1), max_size
: Some(4), added: 499, mode: MaxEncodedLen
)
source§fn create_schema_via_governance_v2(m: u32) -> Weight
fn create_schema_via_governance_v2(m: u32) -> Weight
Storage: Schemas::GovernanceSchemaModelMaxBytes
(r:1 w:0)
Proof: Schemas::GovernanceSchemaModelMaxBytes
(max_values
: Some(1), max_size
: Some(4), added: 499, mode: MaxEncodedLen
)
Storage: Schemas::CurrentSchemaIdentifierMaximum
(r:1 w:1)
Proof: Schemas::CurrentSchemaIdentifierMaximum
(max_values
: Some(1), max_size
: Some(2), added: 497, mode: MaxEncodedLen
)
Storage: Schemas::SchemaNameToIds
(r:1 w:1)
Proof: Schemas::SchemaNameToIds
(max_values
: None, max_size
: Some(602), added: 3077, mode: MaxEncodedLen
)
Storage: Schemas::SchemaInfos
(r:0 w:1)
Proof: Schemas::SchemaInfos
(max_values
: None, max_size
: Some(15), added: 2490, mode: MaxEncodedLen
)
Storage: Schemas::SchemaPayloads
(r:0 w:1)
Proof: Schemas::SchemaPayloads
(max_values
: None, max_size
: Some(65514), added: 67989, mode: MaxEncodedLen
)
The range of component m
is [16, 65499]
.
source§fn propose_to_create_schema_v2(m: u32) -> Weight
fn propose_to_create_schema_v2(m: u32) -> Weight
Storage: Council::Members
(r:1 w:0)
Proof: Council::Members
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Council::ProposalOf
(r:1 w:1)
Proof: Council::ProposalOf
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Council::Proposals
(r:1 w:1)
Proof: Council::Proposals
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Council::ProposalCount
(r:1 w:1)
Proof: Council::ProposalCount
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Council::Voting
(r:0 w:1)
Proof: Council::Voting
(max_values
: None, max_size
: None, mode: Measured
)
The range of component m
is [16, 65499]
.
source§fn propose_to_create_schema_name() -> Weight
fn propose_to_create_schema_name() -> Weight
Storage: Schemas::SchemaInfos
(r:1 w:0)
Proof: Schemas::SchemaInfos
(max_values
: None, max_size
: Some(15), added: 2490, mode: MaxEncodedLen
)
Storage: Council::Members
(r:1 w:0)
Proof: Council::Members
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Council::ProposalOf
(r:1 w:1)
Proof: Council::ProposalOf
(max_values
: None, max_size
: None, mode: Measured
)
Storage: Council::Proposals
(r:1 w:1)
Proof: Council::Proposals
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Council::ProposalCount
(r:1 w:1)
Proof: Council::ProposalCount
(max_values
: Some(1), max_size
: None, mode: Measured
)
Storage: Council::Voting
(r:0 w:1)
Proof: Council::Voting
(max_values
: None, max_size
: None, mode: Measured
)
source§fn create_schema_name_via_governance() -> Weight
fn create_schema_name_via_governance() -> Weight
Storage: Schemas::SchemaInfos
(r:1 w:0)
Proof: Schemas::SchemaInfos
(max_values
: None, max_size
: Some(15), added: 2490, mode: MaxEncodedLen
)
Storage: Schemas::SchemaNameToIds
(r:1 w:1)
Proof: Schemas::SchemaNameToIds
(max_values
: None, max_size
: Some(602), added: 3077, mode: MaxEncodedLen
)