Skip to content
This repository has been archived by the owner on Sep 22, 2022. It is now read-only.

Add session keys pallet #49

Merged
merged 29 commits into from
Aug 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
cb2679b
WIP: Update subsocial to Substrate v2.0.0-rc4
F3Joule Jun 30, 2020
3f79eb2
Add explicit DispatchResult return to dispatches
F3Joule Jul 1, 2020
ee1ab07
Set meaningful storage hashers in pallets
F3Joule Jul 1, 2020
d8489e4
Fix decl_storage code formatting
F3Joule Jul 1, 2020
7762239
Finish roles tests' split onto mock\tests files
F3Joule Jul 1, 2020
31eef1e
Add reads, writes DbWeights to dispatch weights
F3Joule Jul 2, 2020
2547a84
Fix permissions parameter_types in runtime
F3Joule Jul 6, 2020
b5f7bb2
Update global types.json file
F3Joule Jul 6, 2020
5ba6a88
Simplify storage access when mutating Post field
F3Joule Jun 24, 2020
cfc8dec
Add owner field to Post
F3Joule Jul 2, 2020
e60d485
Add hidden_posts_count to Space
F3Joule Jul 2, 2020
e05daf0
Add hidden replies counters to Post
F3Joule Jul 2, 2020
93620f1
Split complex create_post by separate functions
F3Joule Jul 6, 2020
b20a713
Change fields_updated -> is_update_applied
F3Joule Jul 7, 2020
4efc8a4
Comment out Post's `space_id` update
F3Joule Jul 31, 2020
ea5644b
Fix integration tests
F3Joule Jul 31, 2020
73bbc6d
Remove direct counters on post
F3Joule Aug 3, 2020
dd48314
Change username -> handle (pallet-profiles)
F3Joule Jul 6, 2020
c2f3b05
Update global types.json
F3Joule Jul 9, 2020
a2d7b7c
Fix clippy errors
F3Joule Jul 31, 2020
cb3046c
Add permission override for Spaces
F3Joule Jul 17, 2020
c26bb48
Configure balances and transaction fee
F3Joule Jul 24, 2020
ef9622f
Reconfigure currency and transaction fee
F3Joule Jul 27, 2020
ae87aff
Add session keys pallet
F3Joule Jul 23, 2020
ca12a27
Add custom treasury in session keys pallet
F3Joule Jul 24, 2020
91db36f
Rename getter `detais` -> `key_details`
F3Joule Jul 24, 2020
d0fa55c
Add scheduler to remove expired session keys
F3Joule Jul 24, 2020
b908d11
Add proxy filter to session keys pallet
F3Joule Jul 27, 2020
1de1fa9
Add docs in session keys' metadata: target build
F3Joule Jul 27, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4,175 changes: 2,716 additions & 1,459 deletions Cargo.lock

Large diffs are not rendered by default.

149 changes: 4 additions & 145 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,150 +1,9 @@
[profile.release]
panic = "unwind"

[package]
name = "subsocial-node"
version = "2.0.0"
build = "build.rs"
authors = ["DappForce <dappforce@pm.me>"]
edition = "2018"
license = "GPL-3.0-only"
homepage = "https://subsocial.network"
repository = "https://github.com/dappforce/dappforce-subsocial-node"
description = "Reference implementation of Subsocial node"
keywords = ["blockchain", "cryptocurrency", "social-network", "news-feed", "marketplace"]
categories = ["cryptography::cryptocurrencies"]

[build-dependencies]
vergen = "3.0.4"

[build-dependencies.build-script-utils]
git = "https://github.com/paritytech/substrate.git"
package = "substrate-build-script-utils"
rev = "3e651110aa06aa835790df63410a29676243fc54"
version = "2.0.0"

[dependencies]
futures = "0.3.1"
log = "0.4.8"
parking_lot = "0.9.0"
tokio = "0.1.22"
trie-root = "0.15.2"
hex-literal = "0.2.1"

[dependencies.codec]
package = "parity-scale-codec"
version = "1.0.0"

[dependencies.ctrlc]
features = ["termination"]
version = "3.1.3"

[dependencies.futures01]
package = "futures"
version = "0.1.29"

[dependencies.grandpa]
git = "https://github.com/paritytech/substrate.git"
package = "sc-finality-grandpa"
rev = "3e651110aa06aa835790df63410a29676243fc54"
version = "2.0.0"

[dependencies.grandpa-primitives]
git = "https://github.com/paritytech/substrate.git"
package = "sp-finality-grandpa"
rev = "3e651110aa06aa835790df63410a29676243fc54"
version = "2.0.0"

[dependencies.subsocial-runtime]
path = "runtime"
version = "2.0.0"

[dependencies.sc-basic-authority]
git = "https://github.com/paritytech/substrate.git"
rev = "3e651110aa06aa835790df63410a29676243fc54"

[dependencies.sc-cli]
git = "https://github.com/paritytech/substrate.git"
rev = "3e651110aa06aa835790df63410a29676243fc54"
version = "2.0.0"

[dependencies.sc-client]
git = "https://github.com/paritytech/substrate.git"
rev = "3e651110aa06aa835790df63410a29676243fc54"
version = "2.0.0"

[dependencies.sc-consensus-aura]
git = "https://github.com/paritytech/substrate.git"
rev = "3e651110aa06aa835790df63410a29676243fc54"
version = "0.8"

[dependencies.sc-executor]
git = "https://github.com/paritytech/substrate.git"
rev = "3e651110aa06aa835790df63410a29676243fc54"
version = "2.0.0"

[dependencies.sc-network]
git = "https://github.com/paritytech/substrate.git"
rev = "3e651110aa06aa835790df63410a29676243fc54"
version = "0.8"

[dependencies.sc-service]
git = "https://github.com/paritytech/substrate.git"
rev = "3e651110aa06aa835790df63410a29676243fc54"
version = "2.0.0"

[dependencies.sc-transaction-pool]
git = "https://github.com/paritytech/substrate.git"
rev = "3e651110aa06aa835790df63410a29676243fc54"
version = "2.0.0"

[dependencies.telemetry]
package = "sc-telemetry"
git = "https://github.com/paritytech/substrate.git"
rev = "3e651110aa06aa835790df63410a29676243fc54"
version = "2.0.0"

[dependencies.sp-consensus]
git = "https://github.com/paritytech/substrate.git"
rev = "3e651110aa06aa835790df63410a29676243fc54"
version = "0.8"

[dependencies.sp-consensus-aura]
git = "https://github.com/paritytech/substrate.git"
rev = "3e651110aa06aa835790df63410a29676243fc54"
version = "0.8"

[dependencies.sp-core]
git = "https://github.com/paritytech/substrate.git"
rev = "3e651110aa06aa835790df63410a29676243fc54"
version = "2.0.0"

[dependencies.sp-inherents]
git = "https://github.com/paritytech/substrate.git"
rev = "3e651110aa06aa835790df63410a29676243fc54"
version = "2.0.0"

[dependencies.sp-io]
git = "https://github.com/paritytech/substrate.git"
rev = "3e651110aa06aa835790df63410a29676243fc54"
version = "2.0.0"

[dependencies.sp-runtime]
git = "https://github.com/paritytech/substrate.git"
rev = "3e651110aa06aa835790df63410a29676243fc54"
version = "2.0.0"

[dependencies.sp-transaction-pool]
git = "https://github.com/paritytech/substrate.git"
rev = "3e651110aa06aa835790df63410a29676243fc54"
version = "2.0.0"
panic = 'unwind'

[workspace]
members = [
"runtime",
"pallets/df-integration-tests"
'node',
'runtime',
'pallets/df-integration-tests',
]

[[bin]]
name = "subsocial-node"
path = "src/main.rs"
9 changes: 0 additions & 9 deletions build.rs

This file was deleted.

125 changes: 125 additions & 0 deletions node/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
[package]
name = 'subsocial-node'
version = '2.0.0-rc4'
build = 'build.rs'
authors = ['DappForce <dappforce@pm.me>']
edition = '2018'
license = 'GPL-3.0-only'
homepage = 'https://subsocial.network'
repository = 'https://github.com/dappforce/dappforce-subsocial-node'
description = 'Reference implementation of Subsocial node'
keywords = ['blockchain', 'cryptocurrency', 'social-network', 'news-feed', 'marketplace']
categories = ['cryptography::cryptocurrencies']
[package.metadata.docs.rs]
targets = ['x86_64-unknown-linux-gnu']

[[bin]]
name = 'subsocial-node'

[dependencies]
futures = '0.3.4'
log = '0.4.8'
parking_lot = '0.10.0'
structopt = '0.3.8'
hex-literal = '0.2.1'

[dependencies.subsocial-runtime]
path = '../runtime'
version = '2.0.0-rc4'

[dependencies.sc-basic-authorship]
git = 'https://github.com/paritytech/substrate.git'
tag = 'v2.0.0-rc4'
version = '0.8.0-rc4'

[dependencies.sc-cli]
features = ['wasmtime']
git = 'https://github.com/paritytech/substrate.git'
tag = 'v2.0.0-rc4'
version = '0.8.0-rc4'

[dependencies.sc-client-api]
git = 'https://github.com/paritytech/substrate.git'
tag = 'v2.0.0-rc4'
version = '2.0.0-rc4'

[dependencies.sc-consensus]
git = 'https://github.com/paritytech/substrate.git'
tag = 'v2.0.0-rc4'
version = '0.8.0-rc4'

[dependencies.sc-consensus-aura]
git = 'https://github.com/paritytech/substrate.git'
tag = 'v2.0.0-rc4'
version = '0.8.0-rc4'

[dependencies.sc-executor]
features = ['wasmtime']
git = 'https://github.com/paritytech/substrate.git'
tag = 'v2.0.0-rc4'
version = '0.8.0-rc4'

[dependencies.sc-finality-grandpa]
git = 'https://github.com/paritytech/substrate.git'
tag = 'v2.0.0-rc4'
version = '0.8.0-rc4'

[dependencies.sc-network]
git = 'https://github.com/paritytech/substrate.git'
tag = 'v2.0.0-rc4'
version = '0.8.0-rc4'

[dependencies.sc-service]
features = ['wasmtime']
git = 'https://github.com/paritytech/substrate.git'
tag = 'v2.0.0-rc4'
version = '0.8.0-rc4'

[dependencies.sc-transaction-pool]
git = 'https://github.com/paritytech/substrate.git'
tag = 'v2.0.0-rc4'
version = '2.0.0-rc4'

[dependencies.sc-telemetry]
git = 'https://github.com/paritytech/substrate.git'
tag = 'v2.0.0-rc4'
version = '2.0.0-rc4'

[dependencies.sp-consensus]
git = 'https://github.com/paritytech/substrate.git'
tag = 'v2.0.0-rc4'
version = '0.8.0-rc4'

[dependencies.sp-consensus-aura]
git = 'https://github.com/paritytech/substrate.git'
tag = 'v2.0.0-rc4'
version = '0.8.0-rc4'

[dependencies.sp-core]
git = 'https://github.com/paritytech/substrate.git'
tag = 'v2.0.0-rc4'
version = '2.0.0-rc4'

[dependencies.sp-finality-grandpa]
git = 'https://github.com/paritytech/substrate.git'
tag = 'v2.0.0-rc4'
version = '2.0.0-rc4'

[dependencies.sp-inherents]
git = 'https://github.com/paritytech/substrate.git'
tag = 'v2.0.0-rc4'
version = '2.0.0-rc4'

[dependencies.sp-runtime]
git = 'https://github.com/paritytech/substrate.git'
tag = 'v2.0.0-rc4'
version = '2.0.0-rc4'

[dependencies.sp-transaction-pool]
git = 'https://github.com/paritytech/substrate.git'
tag = 'v2.0.0-rc4'
version = '2.0.0-rc4'
[build-dependencies.substrate-build-script-utils]
git = 'https://github.com/paritytech/substrate.git'
tag = 'v2.0.0-rc4'
version = '2.0.0-rc4'
7 changes: 7 additions & 0 deletions node/build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
use substrate_build_script_utils::{generate_cargo_keys, rerun_if_git_head_changed};

fn main() {
generate_cargo_keys();

rerun_if_git_head_changed();
}
Loading