Skip to content

Commit

Permalink
Revert governance2 testnet (#7)
Browse files Browse the repository at this point in the history
* Initial commit

* Initial node-template

* Move node-template up a folder

* Add execute permission to rename script (#1)

* Update Node Template: 7d7e74fb7

* Delete substrate-node-rename.sh

* Revert "Update Node Template: 7d7e74fb7"

This reverts commit cd271e0.

* Revert "Delete substrate-node-rename.sh"

This reverts commit 5cd3d42.

* Delete substrate-node-rename.sh

* Update to `3dedd246c62255ba6f9b777ecba318dfc2078d85`

* Delete substrate-node-template.tar.gz

In order to allow people to clone this template, GitHub requires all files be less than 10 mb.

* Update to `d1cd01c74`

* Update README.md

* Update to `d1cd01c7`

* Update to 3e65111 (#18)

* readme update on generating your own node-template (#16)

Added readme for generating your own substrate node template

* Update README.md

* Update node template to alpha.3

* Bump deps to alpha.3

* Increase total block weight.

* Update node template to alpha 5 (#27)

* Run release script

* Change dependencies to crates.io

* Delete no-longer-used build.rs

* Update to alpha.6

* alpha.6 to github (#37)

* alpha.6 to github

* fix format

* Update to 2.0.0-alpha.7 (#38)

Closes #35

Thanks to @brenzi for the work he did on #36 I copied a lot of it 🙏

* Use docker to setup a local dev chain  (#41)

* use docker to setup a local dev chain.

* install docker link

* update command

* Update README.md

Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>

* more commands to start or check a node.

* purge chain in docker

Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>

* fix: README update on docker usage (#43)

* use docker to setup a local dev chain.

* install docker link

* update command

* Update README.md

Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>

* more commands to start or check a node.

* purge chain in docker

* update README

Co-authored-by: Kaichao Sun <kaichaosuna@gmail.com>
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>

* Upgrade to Substrate v2.0.0-alpha.8 (#44)

Co-authored-by: Dan Forbes <dan@danforbes.dev>

* Update to v2.0.0-rc1 (#45)

* Upgrade to Substrate v2.0.0-rc2 (#46)

* change (ci): new CI image

* Upgrade to v2.0.0-rc3

* Fix manual upgrade errors and update Cargo lockfile

* Add some playground love (#57)

* 🔖 update image

* Playground updates (#58)

* Fixed typo

* Updated image organization

* 🔖 update image

* Get rid of that guy. Use tag (#59)

* 🔖 update image

* Updated base template image (#61)

* 🔖 update image

* Upgrade to v2.0.0-rc4 (#62)

* Upgrade to v2.0.0-rc4

* Better updates to README

Co-authored-by: Joshy Orndorff <JoshOrndorff@users.noreply.github.com>

Co-authored-by: Joshy Orndorff <JoshOrndorff@users.noreply.github.com>

* 🔖 update image

* Upgrade to v2.0.0-rc5 (#65)

* 🔖 update image

* Remove unused dependencies (#66)

* 🔖 update image

* Update serde dependency per @thiolliere (#68) & fix OpaqueBlock 

paritytech/substrate#6557 (comment)

* 🔖 update image

* 🔖 update image

* Updated base image

* 🔖 update image

* Create Issue templates (#73)

* Create Issue templates

- Report a Bug
- Suggest a Feature
- Ask a Question

* 🔖 update image

* Only run build action in main repo

* 🔖 update image

* Upgrade to v2.0.0-rc6 (#75)

* 🔖 update image

* Simplify docker image creation workflow

* Backport paritytech/substrate#7014 (#81)

* Update to v2.0.0 🎉 (#88)

* Update Dockerfile

* Update Dockerfile

* Add toolchain file (#92)

* Add toolchain file

* Remove reference to script that uses latest nightly

* Remove link to nonexistent subheading

* Update devcontainer.json

* Delete Dockerfile

* Added nicer commands

* Rely on latest image

* Added new menu option

* Update toolchain file to be compatible with paritytech/ci-linux Docker (#98)

Closes #95

* Remove rust-toolchain file (#99)

Architecture specific toolchains are not allowed in this file.
We can assume that stable is the default toolchain and should not
dictate with which toolchain the user builds the client. Also this
breaks under macOS.

We are only interested with which toolchain the runtime is build.
For this we should set the WASM_BUILD_TOOLCHAIN variable.

* Bump wasm-builder-runner

1.0 wasm-builder-runner is not compatible with 2.0 wasm-builder paritytech/substrate#7283 (comment)

* Nix shell sync with Substrate (#100)

* nix shell config

* fix darwin

* update nightly for nix shell

* include all (potential) pallets in Cargo workspace (#107)

* Update Cargo.lock

* Update init.sh

The instruction on readme explicitly depends on nightly-2020-10-05

* Update Local Development docs to use Makefile (#105)

* Update Local Development docs to use Makefile

* Update Makefile per @athei

Co-authored-by: Alexander Theißen <alex.theissen@me.com>

Co-authored-by: Alexander Theißen <alex.theissen@me.com>

* Add workflow to check set-up & build

* Workflow nitpicks

* Fix Docker Compose

* Add .editorconfig and format code style (#115)

* Add .editorconfig and format code style

* Enforce line length to be smaller than 100

* Update to v2.0.1 (#126)

* Add Rust setup steps

* Update to v2.0.1

* Cannot skip Wasm build

* Update docs

* Update build.rs

* new wasm builder, cargo update, and script tweaks

* minor update

Co-authored-by: Dan Shields <35669742+NukeManDan@users.noreply.github.com>
Co-authored-by: Dan Shields <nukemandan@protonmail.com>
Co-authored-by: Jimmy Chu <jimmychu0807@gmail.com>

* Patch Multiaddress Into Substrate Node Template (#130)

* Patch Multiaddress Into Substrate Node Template

* Updated all version to 100

* Update runtime/src/lib.rs

* Update runtime/src/lib.rs

Co-authored-by: Jimmy Chu <jimmychu0807@gmail.com>

* Add Fedora/RHEL/CentOS (#140)

Add Fedora/RHEL/CentOS Installation details

* Rely on debug compilation

* Upgrade to v3.0.0 (#141)

* Revisit once playground template are finalised

* Rely on latest syntax

* The latest Substrate Node Template v3 compiled from Substrate (#160)

* Fix broken benchmarking (#167)

* Add nix build

* Add README documentation

* Add direnv cache to gitignore

* Include Playground link in Node Template README

Added button and text to point reader to it Playground.

* Simplify nix setup

* Fix broken link

* Added instructions for custom-types (#183)

* Node template generated from Substrate repo `monthly-2021-05` tag (#186)

* Remove AccountIndex from runtime (#204)

This commit removes the `AccountIndex` from the runtime/src/lib.rs as the `AccountIndex` type is typically used to configure the Indices pallet (https://substrate.dev/rustdocs/v3.0.0/pallet_indices/trait.Config.html) which is not used by the node template, so there is no point to include it.

* Use latest node-template from Substrate master (#205)

Co-authored-by: Jimmy Chu <jimmychu0807@gmail.com>

* fix missing docker-compose volume source (./.local) (#189)

* Minor Nix environent tweaks (#209)

* envrc: made lorri optional

* shell.nix: added RUST_SRC_PATH, so rust-analyzer works out of the box

* `monthly-2021-07` release (#210)

* Add rustfmt.toml, run `cargo +nightly fmt` (#217)

* add rustfmt to match upstream

* correct rustfmt, run cargo +nightly fmt

* Add a matrix chat badge to the README (#223)

paritytech/substrate#9476

* Update to substrate `monthly-2021-08` (#222)

* update to substrate `monthly-2021-08`

* clean and update cargo files, use correct monthly version

* rev -> tag in cargo

* Initialize submodule for front-end template

* Revert "Initialize submodule for front-end template"

This reverts commit 0d70ffc.

* V3.0.0+monthly 2021 09+1 (#234)

* update to monthly-2021-09+1

* name docs -> doc, correct versions

* use monthly-2021-09+1 tag

* nix instruction

* fmt

* Remove now irrelevant workflow (#235)

* Update nightly toolchain to 2021-06-17 (#240)

* Update nightly toolchain to 2021-06-17

* Update shell.nix

Co-authored-by: Dan Shields <35669742+NukeManDan@users.noreply.github.com>

* Cleanup (#243)

* Update to `monthly-2021-10` (#246)

* Update shell.nix (#247)

* Correct link to basic Rust setup instructions (#251)

* new docs site + Do not provide benchmarking host functions by default (#255)

* hompage = substrate.io (#256)

* Update to `monthly-2021-11` (#259)

* file changes from upstream

* fix cargo for monthly-2021-11

* update rust 2021 (#261)

* Move to use `devhub/latest` tag upstream (#271)

* Update devcontainer.json

* Update to monthly-2021-12 upstream (#277)

* Persistent state fix (#285)

* cargo update -p sc-cli (#290)

* Changes from Substrate upstream `polkadot-v0.9.15-1` (#300)

Use 1 line deps
use `devhub/latest` tag for deps
Use ONLY 4.0.0-dev deps for sp-core and sp-std and sp-runtime (upstream master is ahead)

* add zero check (#301)

* revert zero (#302)

* 2021 edition update (#303)

* `--dev` implies `--tmp`

* update to polkadot-v.0.9.17 (#313)

* update use all features = ["wasmtime"] that can (#314)

* update `polkadot-v0.9.17` deps (#317)

* update workflow (#318)

* cargo update (#321)

* Fix typo in README.md (#322)

* Update to polkadot-v0.9.18 (#328)

* TryRuntime added ot CLI

* No issues here, only upsteam & StackExchange (#340)

* update issue templates
* all issues upstream only

* Update to Polkadot v0.9.19 upstream (#341)

- command helper for benchmarks
- try runtime updates
- clap bump

* Update to `polkdadot-v0.9.20` from upstream (#343)

- update to polkdadot-v0.9.20 from upstream
- new CLI commands for convinience

* rename node-template to governance2

* Add pallet scheduler

* add treasury, bounties

* add democracy, council, technical committee

* add tips, elections-phragmen

* add pallet referenda

* remove pallet template

* fix readme and license

* refactor source code

Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
Co-authored-by: Ricardo Rius <9488369+riusricardo@users.noreply.github.com>
Co-authored-by: Joshy Orndorff <admin@joshyorndorff.com>
Co-authored-by: Joshy Orndorff <JoshOrndorff@users.noreply.github.com>
Co-authored-by: Jimmy Chu <jimmy@parity.io>
Co-authored-by: Ricardo Rius <ricardo@parity.io>
Co-authored-by: Dan Forbes <dan@parity.io>
Co-authored-by: kaichao <kaichaosuna@gmail.com>
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com>
Co-authored-by: Dan Forbes <dan@danforbes.dev>
Co-authored-by: Denis P <denis.pisarev@parity.io>
Co-authored-by: Julien Eluard <jeluard@users.noreply.github.com>
Co-authored-by: Caio <c410.f3r@gmail.com>
Co-authored-by: Alexander Theißen <alex.theissen@me.com>
Co-authored-by: Xiliang Chen <xlchen1291@gmail.com>
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com>
Co-authored-by: Alexander Popiak <alexander.popiak@gmail.com>
Co-authored-by: Addie Wagenknecht <addie@nortd.com>
Co-authored-by: Dan Shields <35669742+NukeManDan@users.noreply.github.com>
Co-authored-by: Dan Shields <nukemandan@protonmail.com>
Co-authored-by: Jimmy Chu <jimmychu0807@gmail.com>
Co-authored-by: Muhammad-Jibril <jbashir52@gmail.com>
Co-authored-by: Alexander Koz <a@koz.email>
Co-authored-by: Anders Christiansen Sørby <anders@sorby.xyz>
Co-authored-by: Sacha <alexander.lansky@gmail.com>
Co-authored-by: Erasmus Hagen <rashagen+github@gmail.com>
Co-authored-by: Disconnect3d <dominik.b.czarnota@gmail.com>
Co-authored-by: hamidra <hamid.alipour@gmail.com>
Co-authored-by: Vladimir Serov <me@cab404.ru>
Co-authored-by: Vasiliy Yorkin <vasiliy.yorkin@gmail.com>
Co-authored-by: Amir Abrams <AmirAbrams@users.noreply.github.com>
Co-authored-by: Alejandro Martinez Andres <alejandro@parity.io>
Co-authored-by: Daniel Chmielewski <contact@dcsoftware.xyz>
  • Loading branch information
1 parent 4aeb735 commit 66649f3
Show file tree
Hide file tree
Showing 28 changed files with 11,313 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "Substrate Node template",
"context": "..",
"settings": {
"terminal.integrated.shell.linux": "/bin/bash",
"lldb.executable": "/usr/bin/lldb"
},
"extensions": [
"rust-lang.rust",
"bungcip.better-toml",
"vadimcn.vscode-lldb"
],
"forwardPorts": [3000, 9944],
"onCreateCommand": ["cargo build", "cargo check"],
"postStartCommand": "./target/debug/governance2 --dev --ws-external",
"menuActions": [
{
"id": "polkadotjs",
"label": "Open PolkadotJS Apps",
"type": "external-preview",
"args": ["https://polkadot.js.org/apps/?rpc=wss%3A%2F%2F/$HOST/wss"]
}
]
}
16 changes: 16 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
root = true

[*]
indent_style=space
indent_size=2
tab_width=2
end_of_line=lf
charset=utf-8
trim_trailing_whitespace=true
insert_final_newline = true

[*.{rs,toml}]
indent_style=tab
indent_size=tab
tab_width=4
max_line_length=100
7 changes: 7 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# If lorri exists, better try it first.
if has lorri; then
eval "$(lorri direnv)"
else
# Otherwise fall back to pure nix
use nix
fi
12 changes: 12 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
blank_issues_enabled: false
contact_links:
- name: Support & Troubleshooting with the Substrate Stack Exchange Community
url: https://substrate.stackexchange.com
about: |
For general problems with Substrate or related technologies, please search here first
for solutions, by keyword and tags. If you discover no solution, please then ask and questions in our community! We highly encourage everyone also share their understanding by answering questions for others.
- name: Feature Requests and PRs to be submitted upstream
url: https://github.com/paritytech/substrate/tree/master/bin/node-template
about: |
This template is generated on tagged releases upstream, it is not independently updated and maintained.
Please direct all suggestions for improvements and PRs upstream.
44 changes: 44 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Check Set-Up & Build

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ main ]
pull_request:
branches: [ main ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
check:
# The type of runner that the job will run on
runs-on: ubuntu-20.04

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Set-Up
run: sudo apt install -y git clang curl libssl-dev llvm libudev-dev

- name: Install Rustup
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source ~/.cargo/env
rustup default stable
rustup update nightly
rustup update stable
rustup target add wasm32-unknown-unknown --toolchain nightly
- name: Check Build
run: |
SKIP_WASM_BUILD=1 cargo check --release
- name: Check Build for Benchmarking
run: >
pushd node &&
cargo check --features=runtime-benchmarks --release
16 changes: 16 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Generated by Cargo
# will have compiled files and executables
**/target/
# These are backup files generated by rustfmt
**/*.rs.bk

.DS_Store

# The cache for docker container dependency
.cargo

# The cache for chain data in container
.local

# direnv cache
.direnv
37 changes: 37 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Run ",
"type": "shell",
"command": "cargo",
"args": ["run", "--release", "--", "--dev"],
"group": {
"kind": "build",
"isDefault": true
},
"presentation": {
"reveal": "always",
"panel": "new"
},
"problemMatcher": [
{
"owner": "rust",
"fileLocation": ["relative", "${workspaceRoot}"],
"pattern": {
"regexp": "^(.*):(\\d+):(\\d+):\\s+(\\d+):(\\d+)\\s+(warning|error):\\s+(.*)$",
"file": 1,
"line": 2,
"column": 3,
"endLine": 4,
"endColumn": 5,
"severity": 6,
"message": 7
}
}
]
}
]
}
Loading

0 comments on commit 66649f3

Please sign in to comment.