Crates.io | basecoin-store |
lib.rs | basecoin-store |
version | 0.2.0 |
source | src |
created_at | 2024-05-13 10:33:36.850543 |
updated_at | 2024-08-09 19:50:57.446561 |
description | A simple implementation of an AVL store tailored for the basecoin application. |
homepage | |
repository | https://github.com/informalsystems/basecoin-rs |
max_upload_size | |
id | 1238267 |
size | 68,704 |
At a high level, basecoin implements the application logic that sits between the Tendermint consensus layer and ibc-rs. It is 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)Its main use-cases are serving as a testing ground and mock implementation for verifying the correctness and behaviour of the ibc-rs modules.
So far this app has been tested with:
Since basecoin serves as a suite of integration tests against ibc-rs's functionality, each ibc-rs PR also requires an accompanying basecoin PR. The steps to do this are:
cargo clippy --all-features
and cargo clippy --no-default-features
and fix any issues that clippy raises.$ cometbft init
$ cometbft unsafe-reset-all
Edit the CometBFT config.toml
file (default location ~/.cometbft/config/config.toml
) to update the proxy_app
and P2P laddr
as follows.
proxy_app = "tcp://127.0.0.1:26358"
# ...
[p2p]
laddr = "tcp://0.0.0.0:26356"
See the module documentation for more details -
# See all supported CLI options
$ cargo run -- --help
basecoin 0.1.0
USAGE:
basecoin [FLAGS] [OPTIONS]
Commands:
start
query Query a state of Basecoin application from the store
help Prints this message or the help of the given subcommand(s)
OPTIONS:
--config <FILE> The path to the configuration file [default: config.toml]
--verbose Increase output logging verbosity to DEBUG level
--quiet Suppress all output logging (overrides --verbose)
-h --help Prints help information
-V, --version Prints version information
# Run the ABCI application (from this repo)
# The -v is to enable trace-level logging
$ cargo run -- -v
# In another terminal
$ cometbft node