Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
parity
Mirrored projects
polkadot-sdk
Commits
37fec553
Commit
37fec553
authored
5 years ago
by
Gavin Wood
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Bump Substrate (#636)
* Merge * Bump Substrate
parent
a0edfd57
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
polkadot/Cargo.lock
+103
-98
103 additions, 98 deletions
polkadot/Cargo.lock
polkadot/runtime/src/lib.rs
+9
-5
9 additions, 5 deletions
polkadot/runtime/src/lib.rs
with
112 additions
and
103 deletions
polkadot/Cargo.lock
+
103
−
98
View file @
37fec553
This diff is collapsed.
Click to expand it.
polkadot/runtime/src/lib.rs
+
9
−
5
View file @
37fec553
...
...
@@ -97,7 +97,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name
:
create_runtime_str!
(
"kusama"
),
impl_name
:
create_runtime_str!
(
"parity-kusama"
),
authoring_version
:
2
,
spec_version
:
102
1
,
spec_version
:
102
2
,
impl_version
:
0
,
apis
:
RUNTIME_API_VERSIONS
,
};
...
...
@@ -334,6 +334,8 @@ parameter_types! {
pub
const
MinimumDeposit
:
Balance
=
100
*
DOLLARS
;
pub
const
EnactmentPeriod
:
BlockNumber
=
8
*
DAYS
;
pub
const
CooloffPeriod
:
BlockNumber
=
7
*
DAYS
;
// One cent: $10,000 / MB
pub
const
PreimageByteDeposit
:
Balance
=
1
*
CENTS
;
}
impl
democracy
::
Trait
for
Runtime
{
...
...
@@ -362,6 +364,8 @@ impl democracy::Trait for Runtime {
// only do it once and it lasts only for the cooloff period.
type
VetoOrigin
=
collective
::
EnsureMember
<
AccountId
,
TechnicalCollective
>
;
type
CooloffPeriod
=
CooloffPeriod
;
type
PreimageByteDeposit
=
PreimageByteDeposit
;
type
Slash
=
Treasury
;
}
type
CouncilCollective
=
collective
::
Instance1
;
...
...
@@ -505,7 +509,7 @@ impl registrar::Trait for Runtime {
type
MaxRetries
=
MaxRetries
;
}
parameter_types!
{
parameter_types!
{
pub
const
LeasePeriod
:
BlockNumber
=
100_000
;
pub
const
EndingPeriod
:
BlockNumber
=
1000
;
}
...
...
@@ -519,7 +523,7 @@ impl slots::Trait for Runtime {
type
Randomness
=
RandomnessCollectiveFlip
;
}
parameter_types!
{
parameter_types!
{
// KUSAMA: for mainnet this should be removed.
pub
const
Prefix
:
&
'static
[
u8
]
=
b"Pay KSMs to the Kusama account:"
;
// KUSAMA: for mainnet this should be uncommented.
...
...
@@ -553,7 +557,7 @@ impl nicks::Trait for Runtime {
type
MaxLength
=
MaxLength
;
}
construct_runtime!
(
construct_runtime!
{
pub
enum
Runtime
where
Block
=
Block
,
NodeBlock
=
primitives
::
Block
,
...
...
@@ -606,7 +610,7 @@ construct_runtime!(
// Simple nicknames module.
Nicks
:
nicks
::{
Module
,
Call
,
Storage
,
Event
<
T
>
},
}
);
}
/// The address format for describing accounts.
pub
type
Address
=
<
Indices
as
StaticLookup
>
::
Source
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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