This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Reorganising the repository - external renames and moves #4074
Merged
Merged
Changes from 5 commits
Commits
Show all changes
75 commits
Select commit
Hold shift + click to select a range
fa071ff
Adding first rough ouline of the repository structure
gnunicorn b2b48ed
Remove old CI stuff
gnunicorn c0556ea
add title
gnunicorn 425814d
formatting fixes
gnunicorn 4f7d22e
move node-exits job's script to scripts dir
TriplEight b3c4d8b
Move docs into subdir
gnunicorn 7887f7b
move to bin
gnunicorn 09000f3
move maintainence scripts, configs and helpers into its own dir
gnunicorn eea9398
add .local to ignore
gnunicorn a4e451c
move core->client
gnunicorn bd9cee1
start up 'test' area
gnunicorn b18dac0
move test client
gnunicorn a925eea
move test runtime
gnunicorn 8c10e12
make test move compile
gnunicorn 95d9981
Add dependencies rule enforcement.
tomusdrw 0c1814e
Merge branch 'the-big-reorg' of github.com:paritytech/substrate into …
tomusdrw c1eb318
Fix indexing.
tomusdrw 26004a7
Update docs to reflect latest changes
gnunicorn 72e690e
Merge remote-tracking branch 'origin/master' into the-big-reorg
gnunicorn d9ffec8
Moving /srml->/paint
gnunicorn 3266289
update docs
gnunicorn e04b4fc
move client/sr-* -> primitives/
gnunicorn ddd0ffb
clean old readme
gnunicorn 83de634
remove old broken code in rhd
gnunicorn 1fd17a8
update lock
gnunicorn 733c0f6
Step 1.
tomusdrw 6adf9af
Merge branch 'the-big-reorg' of github.com:paritytech/substrate into …
tomusdrw 5080d91
Merge branch 'master' into the-big-reorg
tomusdrw 367819e
starting to untangle client
gnunicorn 1b28184
Fix after merge.
tomusdrw 1a64595
start splitting out client interfaces
gnunicorn c82823c
Fix the fix.
tomusdrw 8964125
Merge branch 'the-big-reorg' of github.com:paritytech/substrate into …
gnunicorn c103b78
move children and blockchain interfaces
gnunicorn a60c537
Move trie and state-machine to primitives.
tomusdrw a1984de
Fix WASM builds.
tomusdrw 1ab7ac7
fixing broken imports
gnunicorn 5cbd18d
Merge branch 'the-big-reorg' of github.com:paritytech/substrate into …
gnunicorn bc02c35
more interface moves
gnunicorn f75cfba
move backend and light to interfaces
gnunicorn f10ee92
move CallExecutor
gnunicorn 224f318
move cli off client
gnunicorn 9c3752d
moving around more interfaces
gnunicorn 4738b9d
re-add consensus crates into the mix
gnunicorn 2cd3316
fix subkey path
gnunicorn cab5727
relieve client from executor
gnunicorn ee8bed2
starting to pull out client from grandpa
gnunicorn 2285766
move is_decendent_of out of client
gnunicorn 7376b51
grandpa still depends on client directly
gnunicorn d288ec0
lemme tests pass
gnunicorn f0d7d20
Merge branch 'master' into the-big-reorg
tomusdrw 5e60373
rename srml->paint
gnunicorn 9fe4663
Make it compile.
tomusdrw 87c8a75
rename interfaces->client-api
gnunicorn 9b27c66
Merge branch 'the-big-reorg' of github.com:paritytech/substrate into …
gnunicorn 1feec16
Move keyring to primitives.
tomusdrw 9fab2ba
fixup libp2p dep
gnunicorn 946b624
Merge branch 'the-big-reorg' of github.com:paritytech/substrate into …
tomusdrw 0c7a49d
fix broken use
gnunicorn 97d78bb
Merge branch 'the-big-reorg' of github.com:paritytech/substrate into …
tomusdrw 58a3fe1
allow dependency enforcement to fail
gnunicorn c32b70d
Merge branch 'the-big-reorg' of github.com:paritytech/substrate into …
tomusdrw 48dba8f
Merge branch 'master' into the-big-reorg
tomusdrw 62edb89
move fork-tree
gnunicorn 44effe4
Moving wasm-builder
gnunicorn 191fa20
make env
gnunicorn b3a7e1f
move build-script-utils
gnunicorn fb5fc06
Merge branch 'master' into the-big-reorg
tomusdrw 8fb157e
fixup broken crate depdencies and names
gnunicorn 444d41e
fix imports for authority discovery
gnunicorn be9be03
fix typo
gnunicorn 7b68eda
update cargo.lock
gnunicorn cc85b0b
fixing imports
gnunicorn 9e849bc
Fix paths and add missing crates
bkchr a94ed57
re-add missing crates
gnunicorn File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
= Structure | ||
:Author: Substrate developers | ||
:Revision: 0.3.0 | ||
:toc: | ||
:sectnums: | ||
|
||
|
||
== Overview | ||
|
||
Substrate is split into multiple levels with increasing opinion and decreasing flexibility: | ||
|
||
* runtime | ||
* client | ||
* PAINT (formerly `srml`) | ||
* node | ||
|
||
=== Runtime | ||
|
||
* _found in_: `/runtime` | ||
* _crates prefix_: `sr-` | ||
* _constrains_: | ||
** must be `[no_std]` | ||
** crates may not (dev-)depend on crates in other subfolders of this repo | ||
** excluding `test`-crates, which **must not** to be published to crates.io | ||
|
||
|
||
In the lowest level, substrate defines primitives, interfaces and traits to implement any on-chain substrate transition system and its interactions with the outside world. This is the lowest level of abstraction and opinion everything else builds upon. | ||
|
||
=== Client | ||
|
||
* _found in_: `/client` | ||
* _crates prefix_: `substrate-` | ||
* _constrains_: | ||
** crates may not (dev-)depend on any `paint-`-crates | ||
** excluding `test`-crates, which **must not** to be published to crates.io | ||
|
||
In the client you can find a set of crates to construct the outer substrate-node, implementing outer runtime interfaces, thus it depends on `runtime`. It provides the outer building blocks like transaction queue, networking layer, database backend, full* and light-client support. | ||
|
||
=== PAINT (formerly `srml`) | ||
|
||
* _found in_: `/paint` | ||
* _crates prefix_: `paint-` | ||
* _constrains_: | ||
** must be `[no_std]` | ||
|
||
PAINT, the Parity Application Interface for Networked Transitions, is a set of modules implementing specific transition functions and features one (might) want to have in their runtime. | ||
|
||
=== the final Node | ||
|
||
* _found in_: `/examples` | ||
|
||
The node pulls it all together, constructs the (upgradable) runtime and wires up the client around it. You can find an example client, which includes a full wasm-contracts chain in `node`. This is also what is being build and run if you do `cargo run`. | ||
|
||
|
||
== Internal Dependency Tree | ||
|
||
[ditaa] | ||
.... | ||
+---------------+ +----------------+ | ||
| | | | | ||
| runtime +<------+ paint | | ||
| | | | | ||
+------+-----+--+ +-------------+--+ | ||
^ ^ ^ | ||
| +----------------+ | | ||
| | | | ||
+------+--------+ | | | ||
| | | | | ||
| client | +--+-------+--------+ | ||
| +<---------+ | | ||
+---------------+ | | | ||
| Node | | ||
| | | ||
| | | ||
+-------------------+ | ||
|
||
.... | ||
|
File renamed without changes.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why? This is a
ci
script and nothing that should be run anywhere.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in an attempt to clean up in general, I'd like to remove both folders from root.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where should they go?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
moving into
.maintain
. together with other similar files.semantic naming rather than functional - especially since more than a third are not scripts but configuration files in the first place.