https://github.com/pmespresso/ParkingSpaceSubstrate
Basic demo for parking spaces registry using substrate node template
https://github.com/pmespresso/ParkingSpaceSubstrate
rust substrate
Last synced: 2 months ago
JSON representation
Basic demo for parking spaces registry using substrate node template
- Host: GitHub
- URL: https://github.com/pmespresso/ParkingSpaceSubstrate
- Owner: pmespresso
- License: unlicense
- Created: 2019-01-14T16:32:35.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-15T06:29:58.000Z (almost 7 years ago)
- Last Synced: 2025-09-21T09:04:37.197Z (3 months ago)
- Topics: rust, substrate
- Language: Rust
- Size: 301 KB
- Stars: 7
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-substrate - ParkingSpaceSubstrate, Basic demo for parking spaces registry using substrate node template
README
# parking-space-substrate
Parking Space Registry, silly example of using Substrate Node Template to launch a chain.
You rent a space by adding a balance to it, you can't rent spaces with a balance remaining on it.
## Build and Start parking-space chain
```
$ curl https://getsubstrate.io -sSf | bash
$ git clone https://github.com/yjkimjunior/ParkingSpaceSubstrate
$ ./init.sh
$ ./build.sh
$ cargo build --release
$ ./target/release/parking-space-substrate --dev
```
## Actually do stuff with the parking-space-chain runtime
The Polkadot/Substrate GUI makes it easier to interact with the runtime:
Because we use a custom Struct to represent a Parking Space, we need to let the UI know about it so it can decode it appropriately. That's done with the `runtime/parking_space_struct.json` file, uploaded under the `Settings` tab in the UI.

Here you rent a space by paying some of your token balance onto it.

Here you query the chain to confirm it actually happened.
