Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shawntabrizi/substrate-one-million-remarks
One million pixel image, controlled by remarks on a Substrate blockchain.
https://github.com/shawntabrizi/substrate-one-million-remarks
Last synced: 4 days ago
JSON representation
One million pixel image, controlled by remarks on a Substrate blockchain.
- Host: GitHub
- URL: https://github.com/shawntabrizi/substrate-one-million-remarks
- Owner: shawntabrizi
- License: mit
- Created: 2019-08-14T17:42:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-11T02:08:56.000Z (almost 2 years ago)
- Last Synced: 2024-05-01T14:17:56.890Z (7 months ago)
- Language: JavaScript
- Size: 490 KB
- Stars: 6
- Watchers: 3
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# substrate-one-million-remarks
One million pixel image, controlled by remarks on a Substrate blockchain.## How To
You can test this app by [running a local Substrate node](https://substrate.dev/docs/en/getting-started/installing-substrate).
1. Start the Substrate node (connects on `ws://127.0.0.1:9944` or `wss://dev-node.substrate.dev:9944`)
2. Start the app with `yarn && yarn start`
3. Open the [Polkadot UI](https://polkadot.js.org/apps/#/extrinsics) to submit an extrinsic.
4. Call `system > remark` with the following `_remark: Bytes` as a hex string:```
0x1337xxxyyycccccc
```> Note this hex string is read litterally (lol)
* `1337` is the magic identifier to that the app uses to make sure the message is for this app
* `xxx` is a number from 000-999 describing the x coordinates of the pixel
* `yyy` is a number from 000-999 describing the y coordinates of the pixel
* `cccccc` is a hex encoded RGB color of the pixel. So `000000` is black, `ffffff` is white, `ff0000` is red, etc...5. Submit the extrinsic, and look at the updated `image.bmp`.