Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Duniter v2S
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nodes
rust
Duniter v2S
Commits
850f550b
Commit
850f550b
authored
2 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
weights: ParametersStorage is whitelisted
parent
f207f238
No related branches found
No related tags found
1 merge request
!83
feat(runtime): create UDs manually with new call universalDividend.claim_uds
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
runtime/common/src/weights/pallet_universal_dividend.rs
+3
-7
3 additions, 7 deletions
runtime/common/src/weights/pallet_universal_dividend.rs
with
3 additions
and
7 deletions
runtime/common/src/weights/pallet_universal_dividend.rs
+
3
−
7
View file @
850f550b
...
...
@@ -45,12 +45,9 @@ use sp_std::marker::PhantomData;
/// Weight functions for `pallet_universal_dividend`.
pub
struct
WeightInfo
<
T
>
(
PhantomData
<
T
>
);
impl
<
T
:
frame_system
::
Config
>
pallet_universal_dividend
::
WeightInfo
for
WeightInfo
<
T
>
{
// Storage: Parameters ParametersStorage (r:1 w:0)
fn
on_initialize
()
->
Weight
{
(
104_055_000
as
Weight
)
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
1
as
Weight
))
104_055_000
as
Weight
}
// Storage: Parameters ParametersStorage (r:1 w:0)
// Storage: Membership CounterForMembership (r:1 w:0)
// Storage: UniversalDividend NextReeval (r:1 w:0)
// Storage: UniversalDividend CurrentUd (r:1 w:0)
...
...
@@ -58,10 +55,9 @@ impl<T: frame_system::Config> pallet_universal_dividend::WeightInfo for WeightIn
// Storage: UniversalDividend CurrentUdIndex (r:1 w:1)
fn
on_initialize_ud_created
()
->
Weight
{
(
1_000_000_000
as
Weight
)
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
6
as
Weight
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
5
as
Weight
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
2
as
Weight
))
}
// Storage: Parameters ParametersStorage (r:1 w:0)
// Storage: Membership CounterForMembership (r:1 w:0)
// Storage: UniversalDividend NextReeval (r:1 w:1)
// Storage: UniversalDividend CurrentUd (r:1 w:1)
...
...
@@ -70,7 +66,7 @@ impl<T: frame_system::Config> pallet_universal_dividend::WeightInfo for WeightIn
// Storage: UniversalDividend CurrentUdIndex (r:1 w:1)
fn
on_initialize_ud_reevalued
()
->
Weight
{
(
1_500_000_000
as
Weight
)
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
7
as
Weight
))
.saturating_add
(
T
::
DbWeight
::
get
()
.reads
(
6
as
Weight
))
.saturating_add
(
T
::
DbWeight
::
get
()
.writes
(
5
as
Weight
))
}
// Storage: UniversalDividend CurrentUd (r:1 w:0)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment