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
b59eacda
Commit
b59eacda
authored
3 years ago
by
Pascal Engélibert
Browse files
Options
Downloads
Patches
Plain Diff
feat: add multisig pallet
parent
2feb399b
No related branches found
No related tags found
1 merge request
!4
feat: add multisig pallet
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Cargo.lock
+15
-0
15 additions, 0 deletions
Cargo.lock
runtime/gdev/Cargo.toml
+6
-0
6 additions, 0 deletions
runtime/gdev/Cargo.toml
runtime/gdev/src/lib.rs
+11
-0
11 additions, 0 deletions
runtime/gdev/src/lib.rs
runtime/gdev/src/parameters.rs
+7
-0
7 additions, 0 deletions
runtime/gdev/src/parameters.rs
with
39 additions
and
0 deletions
Cargo.lock
+
15
−
0
View file @
b59eacda
...
@@ -2008,6 +2008,7 @@ dependencies = [
...
@@ -2008,6 +2008,7 @@ dependencies = [
"pallet-certification",
"pallet-certification",
"pallet-grandpa",
"pallet-grandpa",
"pallet-identity",
"pallet-identity",
"pallet-multisig",
"pallet-randomness-collective-flip",
"pallet-randomness-collective-flip",
"pallet-sudo",
"pallet-sudo",
"pallet-transaction-payment",
"pallet-transaction-payment",
...
@@ -4079,6 +4080,20 @@ dependencies = [
...
@@ -4079,6 +4080,20 @@ dependencies = [
"sp-std",
"sp-std",
]
]
[[package]]
name = "pallet-multisig"
version = "4.0.0-dev"
source = "git+https://github.com/paritytech/substrate.git?tag=monthly-2021-08#4d28ebeb8b027ca0227fe7779c5beb70a7b56467"
dependencies = [
"frame-support",
"frame-system",
"parity-scale-codec",
"sp-core",
"sp-io",
"sp-runtime",
"sp-std",
]
[[package]]
[[package]]
name = "pallet-randomness-collective-flip"
name = "pallet-randomness-collective-flip"
version = "4.0.0-dev"
version = "4.0.0-dev"
...
...
This diff is collapsed.
Click to expand it.
runtime/gdev/Cargo.toml
+
6
−
0
View file @
b59eacda
...
@@ -38,6 +38,7 @@ std = [
...
@@ -38,6 +38,7 @@ std = [
'pallet-certification/std'
,
'pallet-certification/std'
,
'pallet-identity/std'
,
'pallet-identity/std'
,
'pallet-grandpa/std'
,
'pallet-grandpa/std'
,
'pallet-multisig/std'
,
'pallet-randomness-collective-flip/std'
,
'pallet-randomness-collective-flip/std'
,
'pallet-sudo/std'
,
'pallet-sudo/std'
,
'pallet-universal-dividend/std'
,
'pallet-universal-dividend/std'
,
...
@@ -123,6 +124,11 @@ default-features = false
...
@@ -123,6 +124,11 @@ default-features = false
git
=
'https://github.com/paritytech/substrate.git'
git
=
'https://github.com/paritytech/substrate.git'
tag
=
'monthly-2021-08'
tag
=
'monthly-2021-08'
[dependencies.pallet-multisig]
default-features
=
false
git
=
'https://github.com/paritytech/substrate.git'
tag
=
'monthly-2021-08'
[dependencies.pallet-randomness-collective-flip]
[dependencies.pallet-randomness-collective-flip]
default-features
=
false
default-features
=
false
git
=
'https://github.com/paritytech/substrate.git'
git
=
'https://github.com/paritytech/substrate.git'
...
...
This diff is collapsed.
Click to expand it.
runtime/gdev/src/lib.rs
+
11
−
0
View file @
b59eacda
...
@@ -132,6 +132,16 @@ common_runtime::pallets_config! {
...
@@ -132,6 +132,16 @@ common_runtime::pallets_config! {
type
Event
=
Event
;
type
Event
=
Event
;
type
Call
=
Call
;
type
Call
=
Call
;
}
}
impl
pallet_multisig
::
Config
for
Runtime
{
type
Event
=
Event
;
type
Call
=
Call
;
type
Currency
=
Balances
;
type
DepositBase
=
DepositBase
;
type
DepositFactor
=
DepositFactor
;
type
MaxSignatories
=
MaxSignatories
;
type
WeightInfo
=
pallet_multisig
::
weights
::
SubstrateWeight
<
Self
>
;
}
}
}
// Create the runtime by composing the FRAME pallets that were previously configured.
// Create the runtime by composing the FRAME pallets that were previously configured.
...
@@ -145,6 +155,7 @@ construct_runtime!(
...
@@ -145,6 +155,7 @@ construct_runtime!(
RandomnessCollectiveFlip
:
pallet_randomness_collective_flip
::{
Pallet
,
Storage
},
RandomnessCollectiveFlip
:
pallet_randomness_collective_flip
::{
Pallet
,
Storage
},
Grandpa
:
pallet_grandpa
::{
Pallet
,
Call
,
Storage
,
Config
,
Event
},
Grandpa
:
pallet_grandpa
::{
Pallet
,
Call
,
Storage
,
Config
,
Event
},
Balances
:
pallet_balances
::{
Pallet
,
Call
,
Storage
,
Config
<
T
>
,
Event
<
T
>
},
Balances
:
pallet_balances
::{
Pallet
,
Call
,
Storage
,
Config
<
T
>
,
Event
<
T
>
},
Multisig
:
pallet_multisig
::{
Pallet
,
Call
,
Storage
,
Event
<
T
>
},
TransactionPayment
:
pallet_transaction_payment
::{
Pallet
,
Storage
},
TransactionPayment
:
pallet_transaction_payment
::{
Pallet
,
Storage
},
Sudo
:
pallet_sudo
::{
Pallet
,
Call
,
Config
<
T
>
,
Storage
,
Event
<
T
>
},
Sudo
:
pallet_sudo
::{
Pallet
,
Call
,
Config
<
T
>
,
Storage
,
Event
<
T
>
},
UdAccountsStorage
:
pallet_ud_accounts_storage
::{
Pallet
,
Config
<
T
>
,
Storage
},
UdAccountsStorage
:
pallet_ud_accounts_storage
::{
Pallet
,
Config
<
T
>
,
Storage
},
...
...
This diff is collapsed.
Click to expand it.
runtime/gdev/src/parameters.rs
+
7
−
0
View file @
b59eacda
...
@@ -30,6 +30,13 @@ frame_support::parameter_types! {
...
@@ -30,6 +30,13 @@ frame_support::parameter_types! {
pub
const
TransactionByteFee
:
Balance
=
0
;
pub
const
TransactionByteFee
:
Balance
=
0
;
}
}
// Multisig
parameter_types!
{
pub
const
DepositBase
:
Balance
=
1000
;
pub
const
DepositFactor
:
Balance
=
10
;
pub
const
MaxSignatories
:
u16
=
5
;
}
// Identity
// Identity
pub
const
IDTY_CREATE_PERIOD
:
BlockNumber
=
100
;
pub
const
IDTY_CREATE_PERIOD
:
BlockNumber
=
100
;
frame_support
::
parameter_types!
{
frame_support
::
parameter_types!
{
...
...
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