Set Up

Instructions to set up your computer

Prerequisites

Your set up needs to meet the following requirements :

  • Node >= 14.0.0

  • make and curl packages

Getting Started

To initialise and compile the runtime, follow the steps in the Runtime Development section. The following steps should be completed before the next step of the guide:

Initialise a new Subsembly project:

subsembly init --to=./subsembly-starter

Compile your runtime:

cd subsembly-starter
subsembly compile

Generate new chain specification file:

subsembly spec --to=./chain-spec.json

Here, you will need to replace or add a new Aura or GRANDPA authority in the chain spec file. For generating your own keys, refer to Substrate tutorial. By default chain spec comes with generic address. If you want a different authority, just add the public address of authority inside the array of authorities:

"aura": {
  "authorities": [
    "5FfBQ3kwXrbdyoqLPvcXRp7ikWydXawpNs2Ceu3WwFdhZ8W4"
  ]
}
....
....
"grandpa": {
  "authorities": [
    [
      "5G9NWJ5P9uk7am24yCKeLZJqXWW6hjuMyRJDmw4ofqxG8Js2",
      1
    ]
  ]
}

The last step is very important, since you will have to insert your Aura and GRANDPA keys in the next chapter.

Convert it to raw:

subsembly spec --src=./chain-spec.json --raw=./raw-chain-spec.json --wasm=./build/subsembly-wasm

To learn more about the above commands, please refer to Development section. After you have successfully completed above steps, go to the next step to see how you can interact with your runtime.

Last updated