Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
ef451369
Commit
ef451369
authored
Dec 24, 2019
by
Gavin Wood
Committed by
Bastian Köcher
Dec 24, 2019
Browse files
Bump to latest Substrate (#706)
* Updates, but won't build. * Bump version. * Fix * Fix test
parent
5f5b8eac
Pipeline
#72711
passed with stages
in 15 minutes and 44 seconds
Changes
20
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Cargo.lock
View file @
ef451369
This diff is collapsed.
Click to expand it.
Cargo.toml
View file @
ef451369
...
...
@@ -4,7 +4,7 @@ path = "src/main.rs"
[package]
name
=
"polkadot"
version
=
"0.7.1
0
"
version
=
"0.7.1
1
"
authors
=
[
"Parity Technologies <admin@parity.io>"
]
build
=
"build.rs"
edition
=
"2018"
...
...
availability-store/Cargo.toml
View file @
ef451369
[package]
name
=
"polkadot-availability-store"
description
=
"Persistent database for parachain data"
version
=
"0.7.1
0
"
version
=
"0.7.1
1
"
authors
=
[
"Parity Technologies <admin@parity.io>"
]
edition
=
"2018"
...
...
cli/Cargo.toml
View file @
ef451369
[package]
name
=
"polkadot-cli"
version
=
"0.7.1
0
"
version
=
"0.7.1
1
"
authors
=
[
"Parity Technologies <admin@parity.io>"
]
description
=
"Polkadot node implementation in Rust."
edition
=
"2018"
...
...
cli/src/lib.rs
View file @
ef451369
...
...
@@ -79,8 +79,8 @@ enum PolkadotSubCommands {
ValidationWorker
(
ValidationWorkerCommand
),
}
impl
cli
::
Get
LogFilter
for
PolkadotSubCommands
{
fn
get_log_filter
(
&
self
)
->
Option
<
String
>
{
None
}
impl
cli
::
Get
SharedParams
for
PolkadotSubCommands
{
fn
shared_params
(
&
self
)
->
Option
<
&
cli
::
SharedParams
>
{
None
}
}
#[derive(Debug,
StructOpt,
Clone)]
...
...
collator/Cargo.toml
View file @
ef451369
[package]
name
=
"polkadot-collator"
version
=
"0.7.1
0
"
version
=
"0.7.1
1
"
authors
=
[
"Parity Technologies <admin@parity.io>"
]
description
=
"Collator node implementation"
edition
=
"2018"
...
...
erasure-coding/Cargo.toml
View file @
ef451369
[package]
name
=
"polkadot-erasure-coding"
version
=
"0.7.1
0
"
version
=
"0.7.1
1
"
authors
=
[
"Parity Technologies <admin@parity.io>"
]
edition
=
"2018"
...
...
executor/Cargo.toml
View file @
ef451369
[package]
name
=
"polkadot-executor"
version
=
"0.7.1
0
"
version
=
"0.7.1
1
"
authors
=
[
"Parity Technologies <admin@parity.io>"
]
description
=
"Polkadot node implementation in Rust."
edition
=
"2018"
...
...
network/Cargo.toml
View file @
ef451369
[package]
name
=
"polkadot-network"
version
=
"0.7.1
0
"
version
=
"0.7.1
1
"
authors
=
[
"Parity Technologies <admin@parity.io>"
]
description
=
"Polkadot-specific networking protocol"
edition
=
"2018"
...
...
parachain/Cargo.toml
View file @
ef451369
[package]
name
=
"polkadot-parachain"
version
=
"0.7.1
0
"
version
=
"0.7.1
1
"
authors
=
[
"Parity Technologies <admin@parity.io>"
]
description
=
"Types and utilities for creating and working with parachains"
edition
=
"2018"
...
...
primitives/Cargo.toml
View file @
ef451369
[package]
name
=
"polkadot-primitives"
version
=
"0.7.1
0
"
version
=
"0.7.1
1
"
authors
=
[
"Parity Technologies <admin@parity.io>"
]
edition
=
"2018"
...
...
rpc/Cargo.toml
View file @
ef451369
[package]
name
=
"polkadot-rpc"
version
=
"0.7.1
0
"
version
=
"0.7.1
1
"
authors
=
[
"Parity Technologies <admin@parity.io>"
]
edition
=
"2018"
...
...
runtime/Cargo.toml
View file @
ef451369
[package]
name
=
"polkadot-runtime"
version
=
"0.7.1
0
"
version
=
"0.7.1
1
"
authors
=
[
"Parity Technologies <admin@parity.io>"
]
edition
=
"2018"
build
=
"build.rs"
...
...
@@ -57,6 +57,7 @@ system = { package = "frame-system", git = "https://github.com/paritytech/substr
system_rpc_runtime_api
=
{
package
=
"frame-system-rpc-runtime-api"
,
git
=
"https://github.com/paritytech/substrate"
,
default-features
=
false
,
branch
=
"polkadot-master"
}
timestamp
=
{
package
=
"pallet-timestamp"
,
git
=
"https://github.com/paritytech/substrate"
,
default-features
=
false
,
branch
=
"polkadot-master"
}
treasury
=
{
package
=
"pallet-treasury"
,
git
=
"https://github.com/paritytech/substrate"
,
default-features
=
false
,
branch
=
"polkadot-master"
}
utility
=
{
package
=
"pallet-utility"
,
git
=
"https://github.com/paritytech/substrate"
,
default-features
=
false
,
branch
=
"polkadot-master"
}
primitives
=
{
package
=
"polkadot-primitives"
,
path
=
"../primitives"
,
default-features
=
false
}
polkadot-parachain
=
{
path
=
"../parachain"
,
default-features
=
false
}
...
...
@@ -119,6 +120,7 @@ std = [
"timestamp/std"
,
"treasury/std"
,
"version/std"
,
"utility/std"
,
"serde_derive"
,
"serde/std"
,
"log"
,
...
...
runtime/src/crowdfund.rs
View file @
ef451369
...
...
@@ -653,6 +653,7 @@ mod tests {
type
Treasury
=
treasury
::
Module
<
Test
>
;
type
Crowdfund
=
Module
<
Test
>
;
type
RandomnessCollectiveFlip
=
randomness_collective_flip
::
Module
<
Test
>
;
use
balances
::
Error
as
BalancesError
;
// This function basically just builds a genesis storage key/value store according to
// our desired mockup.
...
...
@@ -733,7 +734,7 @@ mod tests {
assert_noop!
(
Crowdfund
::
create
(
Origin
::
signed
(
1
),
1000
,
1
,
5
,
9
),
"last slot cannot be more then 3 more than first slot"
);
// Cannot create a crowdfund without some deposit funds
assert_noop!
(
Crowdfund
::
create
(
Origin
::
signed
(
1337
),
1000
,
1
,
3
,
9
),
"too few free funds in account"
);
assert_noop!
(
Crowdfund
::
create
(
Origin
::
signed
(
1337
),
1000
,
1
,
3
,
9
),
BalancesError
::
<
Test
,
_
>
::
InsufficientBalance
);
});
}
...
...
runtime/src/lib.rs
View file @
ef451369
...
...
@@ -575,6 +575,23 @@ impl identity::Trait for Runtime {
type
ForceOrigin
=
collective
::
EnsureProportionMoreThan
<
_1
,
_2
,
AccountId
,
CouncilCollective
>
;
}
parameter_types!
{
// One storage item; value is size 4+4+16+32 bytes = 56 bytes.
pub
const
MultisigDepositBase
:
Balance
=
30
*
DOLLARS
;
// Additional storage item size of 32 bytes.
pub
const
MultisigDepositFactor
:
Balance
=
5
*
DOLLARS
;
pub
const
MaxSignatories
:
u16
=
100
;
}
impl
utility
::
Trait
for
Runtime
{
type
Event
=
Event
;
type
Call
=
Call
;
type
Currency
=
Balances
;
type
MultisigDepositBase
=
MultisigDepositBase
;
type
MultisigDepositFactor
=
MultisigDepositFactor
;
type
MaxSignatories
=
MaxSignatories
;
}
construct_runtime!
{
pub
enum
Runtime
where
Block
=
Block
,
...
...
@@ -627,6 +644,7 @@ construct_runtime! {
// Less simple identity module.
Identity
:
identity
::{
Module
,
Call
,
Storage
,
Event
<
T
>
},
Utility
:
utility
::{
Module
,
Call
,
Storage
,
Event
<
T
>
,
Error
},
}
}
...
...
service/Cargo.toml
View file @
ef451369
[package]
name
=
"polkadot-service"
version
=
"0.7.1
0
"
version
=
"0.7.1
1
"
authors
=
[
"Parity Technologies <admin@parity.io>"
]
edition
=
"2018"
...
...
statement-table/Cargo.toml
View file @
ef451369
[package]
name
=
"polkadot-statement-table"
version
=
"0.7.1
0
"
version
=
"0.7.1
1
"
authors
=
[
"Parity Technologies <admin@parity.io>"
]
edition
=
"2018"
...
...
test-parachains/adder/Cargo.toml
View file @
ef451369
[package]
name
=
"adder"
version
=
"0.7.1
0
"
version
=
"0.7.1
1
"
authors
=
[
"Parity Technologies <admin@parity.io>"
]
description
=
"Test parachain which adds to a number as its state transition"
edition
=
"2018"
...
...
test-parachains/halt/Cargo.toml
View file @
ef451369
[package]
name
=
"halt"
version
=
"0.7.1
0
"
version
=
"0.7.1
1
"
authors
=
[
"Parity Technologies <admin@parity.io>"
]
description
=
"Test parachain which executes forever"
edition
=
"2018"
...
...
validation/Cargo.toml
View file @
ef451369
[package]
name
=
"polkadot-validation"
version
=
"0.7.1
0
"
version
=
"0.7.1
1
"
authors
=
[
"Parity Technologies <admin@parity.io>"
]
edition
=
"2018"
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment