https://github.com/code-monad/spore-encode
A cli tool for encoding spore/cluster binary
https://github.com/code-monad/spore-encode
Last synced: 7 months ago
JSON representation
A cli tool for encoding spore/cluster binary
- Host: GitHub
- URL: https://github.com/code-monad/spore-encode
- Owner: code-monad
- Created: 2023-07-25T16:45:40.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-07-25T16:53:21.000Z (over 2 years ago)
- Last Synced: 2025-05-18T15:11:58.409Z (9 months ago)
- Language: Rust
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# spore-encode
This is a cli tool for encoding files into molecule binary follows the Spore Protocol.
## Usage
This tool has 3 modes: `spore`, `cluster` and `type-id`
### `spore`
This is for encoding files into spore binary.
Run `cargo run -- spore`, input your `content-type` (For example, "image/png"), and file path, define your cluster id if you want it be inside a specified cluster.
Finally, input the output path.
### `cluster`
This is for encoding files into cluster binary.
Run `cargo run -- cluster`, input your cluster name, description, and then select the output path
### `type-id`
This is for calculate type-id for spore/cluster.
Run `cargo run -- type-id`.
First input the first input cell's hash(for example, `0x22b5cad9a6eed5745bcbfd68435f3a0514f2da94e5c53462c813c92386cd2320`), then input the output index of the input cell in the original tx,
finally input the output index of your spore/cluster.
You will get a 0x started type-id, you can use this as the Type Script Args while handful minting spore/cluster