Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gordian-engine/gcosmos
Integration of the Gordian consensus engine with the Cosmos SDK
https://github.com/gordian-engine/gcosmos
cosmos-sdk go gordian
Last synced: 3 months ago
JSON representation
Integration of the Gordian consensus engine with the Cosmos SDK
- Host: GitHub
- URL: https://github.com/gordian-engine/gcosmos
- Owner: gordian-engine
- License: apache-2.0
- Created: 2024-10-25T16:34:40.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-30T20:08:07.000Z (3 months ago)
- Last Synced: 2024-10-30T20:25:28.893Z (3 months ago)
- Topics: cosmos-sdk, go, gordian
- Language: Go
- Homepage:
- Size: 1.63 MB
- Stars: 3
- Watchers: 0
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gcosmos
This repository integrates [Gordian](https://github.com/gordian-engine/gordian)
with [the Cosmos SDK](https://github.com/cosmos/cosmos-sdk).Refer to the [`_docs` directory](/docs)
for more technical details about how gcosmos works.## Quickstart
Start the example Gordian-backed Cosmos SDK chain with four validators
```bash
make testnet-start
```### Interact
In a second terminal, interact with the running chain
Show validator address
```bash
VAL_ADDR=$(./gcosmos --home ./test/val1 keys show val --address)
echo $VAL_ADDR
```Query bank balance of validator, it has `9000000stake`.
```bash
./gcosmos q bank balance $VAL_ADDR stake
```### Transaction Testing
Send `100stake` from the first validator to a new account.
```bash
./gcosmos --home ./test/val1 --chain-id gchain-1 tx bank send val cosmos10r39fueph9fq7a6lgswu4zdsg8t3gxlqvvvyvn 100stake
```Wait a few seconds for the block to be produced, then confirm the balance in the new account. It now has `100stake`.
```bash
./gcosmos q bank balance cosmos10r39fueph9fq7a6lgswu4zdsg8t3gxlqvvvyvn stake
```### Shutdown
Shutdown the testnet by pressing Ctrl+C in the first terminal.
## Additional Information
Refer to the `http*.go` files in [the gserver/internal/gsi directory](gserver/internal/gsi/) for more details on available HTTP paths.