Skip to content

Commit

Permalink
Resolve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dastanbeksamatov committed Feb 26, 2021
1 parent 090ddc6 commit 1c93d5f
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Compile runtime
run: bash .github/workflows/scripts/compile.sh
- name: Run the node and insert Aura keys
run: make run-node spec=./spec-files/raw-chain-spec.json detached=1 && bash .github/workflows/scripts/insert-aura.sh
run: make run-node spec=./raw-chain-spec.json detached=1 && bash .github/workflows/scripts/insert-aura.sh
- name: Sleep for 10 seconds
uses: jakejarvis/wait-action@master
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scripts/compile.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
npm install -g yarn
yarn install
npm run build
node ./cli/dist/src/index.js spec --to=./spec-files/chain-spec.json
node ./cli/dist/src/index.js spec --src=./spec-files/chain-spec.json
node ./cli/dist/src/index.js spec --to=./chain-spec.json
node ./cli/dist/src/index.js spec --src=./chain-spec.json
npm uninstall -g yarn
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ subsembly
cli/ <--- Contains source code of the Subsembly CLI
spec-files/ <--- Raw chain-spec files
```

Main types and API entries are defined in `runtime` folder. `runtime.ts` file in `runtime` folder defines types and constants for the frame modules and pallets.
Expand Down Expand Up @@ -238,12 +237,17 @@ each one of them having `1 000 000` units.
1. `yarn install`
2. `yarn run build`

The above command generates `wasm-code` file in the root folder. You need to copy the content of the file and paste it as the value of the `0x3a636f6465` property in the `customSpecRaw.json` file.
Follow instructions above to create raw chain specification for your runtime. For example,

1. subsembly spec --to=./chain-spec.json
2. subsembly spec --src=./chain-spec.json

This will create a raw chain specification file in the current directory.

In order to run `Substrate` node with generated runtime, use Docker image of node `as-substrate`, which is a pre-built substrate template node running Aura consensus.

1. `docker pull limechain/as-substrate:stable`
2. `docker run -p 9933:9933 -p 9944:9944 -p 30333:30333 -v "$(pwd)/spec-files/customSpecRaw.json":/customSpecRaw.json -d limechain/as-substrate`
2. `docker run -p 9933:9933 -p 9944:9944 -p 30333:30333 -v "$(pwd)/raw-chain-spec.json":/customSpecRaw.json -d limechain/as-substrate`

In order for you to start block production, you will have to instert your Aura keys as described above.

Expand Down
2 changes: 1 addition & 1 deletion cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@polkadot/keyring": "5.6.2",
"@polkadot/metadata": "^2.10.1",
"@polkadot/types": "3.8.1",
"@polkadot/util": "^4.2.1",
"@polkadot/util": "5.6.2",
"adm-zip": "^0.5.1",
"axios": "^0.21.1",
"fs-extra": "^9.1.0",
Expand Down
1 change: 0 additions & 1 deletion cli/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export class Constants {
/cli/,
/insert-aura/,
/test-node/,
/Makefile/,
/README.md/,
/images/,
/build.js/,
Expand Down
1 change: 0 additions & 1 deletion cli/test/utils/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ class Constants {
/cli/,
/insert-aura/,
/test-node/,
/Makefile/,
/README.md/,
/images/,
/build.js/,
Expand Down
5 changes: 0 additions & 5 deletions spec-files/.gitignore

This file was deleted.

0 comments on commit 1c93d5f

Please sign in to comment.