https://github.com/gcp-development/dev-node-substrate
Substrate Smart Contracts Node
https://github.com/gcp-development/dev-node-substrate
blockchain polkadot rust smart-contracts substrate wasm webassembly
Last synced: about 2 months ago
JSON representation
Substrate Smart Contracts Node
- Host: GitHub
- URL: https://github.com/gcp-development/dev-node-substrate
- Owner: gcp-development
- Created: 2022-11-01T12:01:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-13T16:28:47.000Z (about 3 years ago)
- Last Synced: 2025-03-26T11:32:15.338Z (about 1 year ago)
- Topics: blockchain, polkadot, rust, smart-contracts, substrate, wasm, webassembly
- Language: Rust
- Homepage:
- Size: 161 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dev-node-substrate
It's assumed that these software are installed and running:
This project was developed using the [Intellij Community](https://www.jetbrains.com/idea/download/#section=linux) with the [Rust plugin](https://www.jetbrains.com/rust/).
This repository is tracking Substrate's
[`polkadot-v0.9.37`](https://github.com/paritytech/substrate/tree/polkadot-v0.9.37) branch.
The dev-node-substrate is a simple Substrate blockchain which is configured to include the Substrate module for [smart contract](https://use.ink/how-it-works) development using [ink! v4.0](https://github.com/paritytech/ink/releases/tag/v4.0.0).
Note: the consensus from [aura](https://docs.substrate.io/reference/glossary/#authority-round-aura) & grandpa[(GHOST-based Recursive ANcestor Deriving Prefix Agreement)](https://wiki.polkadot.network/docs/learn-consensus#finality-gadget-grandpa) was changed to manual-seal([sp_consensus](https://docs.rs/sp-consensus/latest/sp_consensus/)/[sc_consensus](https://docs.rs/sc-consensus/latest/sc_consensus/)) where blocks are authored at every transaction.
[ink! CLI version](https://use.ink/getting-started/setup#ink-cli).
```bash
cargo contract --version
```

The directory will be assigned with a Rust toolchain with [rustup override](https://rust-lang.github.io/rustup/overrides.html#directory-overrides).
```bash
rustup show
```

Note:The nightly-2023-02-09 is set by the [rust-toolchain.toml](https://github.com/gcp-development/dev-node-substrate/blob/main/rust-toolchain.toml) file.
Test the outer node.
```bash
cargo check -p node --release
```
Test the runtime node.
```bash
cargo check -p node-runtime --release
```
Build the Substrate Smart Contracts Node.
```bash
cargo build --release
```
Run the Substrate Smart Contracts Node.
```bash
./target/release/dev-node-substrate --dev
```

Interact with our Substrate Smart Contracts Node using the Contracts UI:
[Contracts-UI](https://contracts-ui.substrate.io/?rpc=ws://127.0.0.1:9944)

[Polkadot/Substrate Portal](https://polkadot.js.org/apps/#/explorer)

References:
[ink!](https://use.ink/)
[Smart Contracts](https://wiki.polkadot.network/docs/build-smart-contracts)