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
e079cab2
Commit
e079cab2
authored
2 years ago
by
Éloïs
Browse files
Options
Downloads
Patches
Plain Diff
fix(runtime): add missing #[pallet::constant] attributes
parent
4249248e
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
pallets/duniter-account/src/lib.rs
+2
-0
2 additions, 0 deletions
pallets/duniter-account/src/lib.rs
pallets/duniter-wot/src/lib.rs
+4
-0
4 additions, 0 deletions
pallets/duniter-wot/src/lib.rs
pallets/identity/src/lib.rs
+1
-0
1 addition, 0 deletions
pallets/identity/src/lib.rs
with
7 additions
and
0 deletions
pallets/duniter-account/src/lib.rs
+
2
−
0
View file @
e079cab2
...
...
@@ -54,7 +54,9 @@ pub mod pallet {
type
AccountIdToSalt
:
Convert
<
Self
::
AccountId
,
[
u8
;
32
]
>
;
/// The overarching event type.
type
Event
:
From
<
Event
<
Self
>>
+
IsType
<<
Self
as
frame_system
::
Config
>
::
Event
>
;
#[pallet::constant]
type
MaxNewAccountsPerBlock
:
Get
<
u32
>
;
#[pallet::constant]
type
NewAccountPrice
:
Get
<
Self
::
Balance
>
;
}
...
...
This diff is collapsed.
Click to expand it.
pallets/duniter-wot/src/lib.rs
+
4
−
0
View file @
e079cab2
...
...
@@ -65,9 +65,13 @@ pub mod pallet {
+
pallet_identity
::
Config
<
IdtyIndex
=
IdtyIndex
>
+
pallet_membership
::
Config
<
I
,
IdtyId
=
IdtyIndex
>
{
#[pallet::constant]
type
FirstIssuableOn
:
Get
<
Self
::
BlockNumber
>
;
#[pallet::constant]
type
IsSubWot
:
Get
<
bool
>
;
#[pallet::constant]
type
MinCertForMembership
:
Get
<
u32
>
;
#[pallet::constant]
type
MinCertForCreateIdtyRight
:
Get
<
u32
>
;
}
...
...
This diff is collapsed.
Click to expand it.
pallets/identity/src/lib.rs
+
1
−
0
View file @
e079cab2
...
...
@@ -72,6 +72,7 @@ pub mod pallet {
type
Event
:
From
<
Event
<
Self
>>
+
IsType
<<
Self
as
frame_system
::
Config
>
::
Event
>
;
/// Management of the authorizations of the different calls. (The default implementation only allows root)
type
EnsureIdtyCallAllowed
:
EnsureIdtyCallAllowed
<
Self
>
;
#[pallet::constant]
/// Minimum duration between the creation of 2 identities by the same creator
type
IdtyCreationPeriod
:
Get
<
Self
::
BlockNumber
>
;
/// Custom data to store in each identity
...
...
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