An open API service indexing awesome lists of open source software.

https://github.com/rnbguy/polkadot-sdk-minimal


https://github.com/rnbguy/polkadot-sdk-minimal

Last synced: 18 days ago
JSON representation

Awesome Lists containing this project

README

          

# Polkadot SDK's Minimal Template

Polkadot SDK Logo
Polkadot SDK Logo

> This is a minimal template for creating a blockchain based on Polkadot SDK.
>
> This template is automatically updated after releases in the main [Polkadot SDK monorepo](https://github.com/paritytech/polkadot-sdk).

* ๐Ÿค This template is a minimal (in terms of complexity and the number of components)
template for building a blockchain node.

* ๐Ÿ”ง Its runtime is configured with a single custom pallet as a starting point, and a handful of ready-made pallets
such as a [Balances pallet](https://paritytech.github.io/polkadot-sdk/master/pallet_balances/index.html).

* ๐Ÿ‘ค The template has no consensus configured - it is best for experimenting with a single node network.

## Template Structure

A Polkadot SDK based project such as this one consists of:

* ๐Ÿ’ฟ a [Node](./node/README.md) - the binary application.
* ๐Ÿงฎ the [Runtime](./runtime/README.md) - the core logic of the blockchain.
* ๐ŸŽจ the [Pallets](./pallets/README.md) - from which the runtime is constructed.

## Getting Started

* ๐Ÿฆ€ The template is using the Rust language.

* ๐Ÿ‘‰ Check the
[Rust installation instructions](https://www.rust-lang.org/tools/install) for your system.

* ๐Ÿ› ๏ธ Depending on your operating system and Rust version, there might be additional
packages required to compile this template - please take note of the Rust compiler output.

### Build

๐Ÿ”จ Use the following command to build the node without launching it:

```sh
cargo build --release
```

๐Ÿณ Alternatively, build the docker image:

```sh
docker build . -t polkadot-sdk-minimal-template
```

### Single-Node Development Chain

๐Ÿ‘ค The following command starts a single-node development chain:

```sh
./target/release/minimal-template-node --dev

# docker version:
docker run --rm polkadot-sdk-minimal-template --dev
```

Development chains:

* ๐Ÿงน Do not persist the state.
* ๐Ÿ’ฐ Are pre-configured with a genesis state that includes several pre-funded development accounts.
* ๐Ÿง‘โ€โš–๏ธ One development account (`ALICE`) is used as `sudo` accounts.

### Connect with the Polkadot-JS Apps Front-End

* ๐ŸŒ You can interact with your local node using the
hosted version of the [Polkadot/Substrate
Portal](https://polkadot.js.org/apps/#/explorer?rpc=ws://localhost:9944).

* ๐Ÿช A hosted version is also
available on [IPFS](https://dotapps.io/).

* ๐Ÿง‘โ€๐Ÿ”ง You can also find the source code and instructions for hosting your own instance in the
[`polkadot-js/apps`](https://github.com/polkadot-js/apps) repository.

## Contributing

* ๐Ÿ”„ This template is automatically updated after releases in the main [Polkadot SDK monorepo](https://github.com/paritytech/polkadot-sdk).

* โžก๏ธ Any pull requests should be directed to this [source](https://github.com/paritytech/polkadot-sdk/tree/master/templates/minimal).

* ๐Ÿ˜‡ Please refer to the monorepo's
[contribution guidelines](https://github.com/paritytech/polkadot-sdk/blob/master/docs/contributor/CONTRIBUTING.md) and
[Code of Conduct](https://github.com/paritytech/polkadot-sdk/blob/master/docs/contributor/CODE_OF_CONDUCT.md).

## Getting Help

* ๐Ÿง‘โ€๐Ÿซ To learn about Polkadot in general, [Polkadot.network](https://polkadot.network/) website is a good starting point.

* ๐Ÿง‘โ€๐Ÿ”ง For technical introduction, [here](https://github.com/paritytech/polkadot-sdk#-documentation) are
the Polkadot SDK documentation resources.

* ๐Ÿ‘ฅ Additionally, there are [GitHub issues](https://github.com/paritytech/polkadot-sdk/issues) and
[Substrate StackExchange](https://substrate.stackexchange.com/).