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
a12438b7
Commit
a12438b7
authored
1 year ago
by
Cédric Moreau
Browse files
Options
Downloads
Patches
Plain Diff
feat(smith-members): refact: constants
parent
2f79db4c
No related branches found
No related tags found
No related merge requests found
Pipeline
#34920
failed
1 year ago
Stage: labels
Stage: quality
Stage: build
Stage: tests
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pallets/smith-members/src/lib.rs
+4
-7
4 additions, 7 deletions
pallets/smith-members/src/lib.rs
with
4 additions
and
7 deletions
pallets/smith-members/src/lib.rs
+
4
−
7
View file @
a12438b7
...
...
@@ -102,22 +102,19 @@ pub mod pallet {
+
MaxEncodedLen
;
/// Identifier for an authority-member
type
MemberId
:
Copy
+
Ord
+
MaybeSerializeDeserialize
+
Parameter
;
/// Something that gives the IdtyId of an AccountId
type
IdtyIdOf
:
Convert
<
Self
::
AccountId
,
Option
<
Self
::
IdtyIndex
>>
;
/// Something that gives the IdtyId of an AccountId
type
IdtyIdOfAuthorityId
:
Convert
<
Self
::
MemberId
,
Option
<
Self
::
IdtyIndex
>>
;
/// Maximum number of active certifications by issuer
#[pallet::constant]
type
MaxByIssuer
:
Get
<
u32
>
;
/// Minimum number of certifications to be able to create a smith
#[pallet::constant]
type
MinCertForCreateIdtyRight
:
Get
<
u32
>
;
/// Minimum number of certifications to become a Smith
#[pallet::constant]
type
MinCertForMembership
:
Get
<
u32
>
;
/// Maximum duration of inactivity before a smith is removed
#[pallet::constant]
type
InactivityMaxDuration
:
Get
<
u32
>
;
/// Something that gives the IdtyId of an AccountId
type
IdtyIdOf
:
Convert
<
Self
::
AccountId
,
Option
<
Self
::
IdtyIndex
>>
;
/// Something that gives the IdtyId of an AccountId
type
IdtyIdOfAuthorityId
:
Convert
<
Self
::
MemberId
,
Option
<
Self
::
IdtyIndex
>>
;
}
/// Events type.
...
...
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