Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Galactic-Hub/cosmos-sdk-rs
https://github.com/Galactic-Hub/cosmos-sdk-rs
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/Galactic-Hub/cosmos-sdk-rs
- Owner: Galactic-Hub
- License: apache-2.0
- Created: 2023-06-28T14:12:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-09T12:51:17.000Z (over 1 year ago)
- Last Synced: 2024-09-24T16:09:16.377Z (5 months ago)
- Language: Rust
- Size: 721 KB
- Stars: 1
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-rust-list - Galactic-Hub/cosmos-sdk-rs - Hub/cosmos-sdk-rs?style=social"/> : Cosmos SDK implement by Rust. (Web3 and ZKP Framework)
- awesome-rust-list - Galactic-Hub/cosmos-sdk-rs - Hub/cosmos-sdk-rs?style=social"/> : Cosmos SDK implement by Rust. (Web3 and ZKP Framework)
README
# Cosmos SDK implement by Rust
[Cosmos SDK docs](https://docs.cosmos.network/v0.47)
A rudimentary Tendermint ABCI application that implements the following functionality in the form of modules -
* `bank` - keeps track of different accounts' balances and facilitates transactions between those accounts.
* `ibc` - enables support for IBC (clients, connections & channels)## Requirements
So far this app has been tested with:
* Rust >v1.52.1
* CometBFT v0.37## Usage
### Step 1: Reset your local CometBFT node
```shell
$ cometbft init
$ cometbft unsafe-reset-all
```### Step 2: Modify CometBFT config
Edit the CometBFT `config.toml` file (default location `~/.cometbft/config/config.toml`) to update the `proxy_app` and P2P `laddr` as follows.
```toml
proxy_app = "tcp://127.0.0.1:26358"
# ...
[p2p]
laddr = "tcp://0.0.0.0:26356"
```### Step 3: Module specific setup
See the module documentation for more details -
* [Bank module](docs/modules/bank.md)
* [Ibc module](docs/modules/ibc.md)### Step 4: Run the basecoin app and CometBFT
```shell
# See all supported CLI options
$ cargo run -- --help
basecoin 0.1.0USAGE:
basecoin [FLAGS] [OPTIONS]FLAGS:
--help Prints help information
-q, --quiet Suppress all output logging (overrides --verbose)
-V, --version Prints version information
-v, --verbose Increase output logging verbosity to DEBUG levelOPTIONS:
-g, --grpc-port Bind the gRPC server to this port [default: 9093]
-h, --host Bind the TCP server to this host [default: 127.0.0.1]
-p, --port Bind the TCP server to this port [default: 26658]
-r, --read-buf-size The default server read buffer size, in bytes, for each incoming client
connection [default: 1048576]# Run the ABCI application (from this repo)
# The -v is to enable trace-level logging
$ cargo run -- -v# In another terminal
$ cometbft node
```## UML diagrams

---

---
