Skip to content

Integration of the Gordian consensus engine with the Cosmos SDK

License

Notifications You must be signed in to change notification settings

gordian-engine/gcosmos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4f0afa9 · Feb 5, 2025
Oct 29, 2024
Feb 5, 2025
Oct 31, 2024
Dec 13, 2024
Oct 25, 2024
Oct 25, 2024
Oct 25, 2024
Feb 4, 2025
Dec 13, 2024
Nov 5, 2024
Nov 5, 2024
Nov 6, 2024
Nov 5, 2024
Oct 29, 2024
Apr 17, 2024
Oct 29, 2024
Oct 31, 2024
Oct 25, 2024
Feb 4, 2025
Feb 4, 2025
Dec 13, 2024
Feb 5, 2025
Dec 13, 2024
Oct 30, 2024
Oct 30, 2024

Repository files navigation

gcosmos

This repository integrates Gordian with the Cosmos SDK.

Refer to the _docs directory for more technical details about how gcosmos works.

Quickstart

Start the example Gordian-backed Cosmos SDK chain with four validators

make testnet-start

Interact

In a second terminal, interact with the running chain

Show validator address

VAL_ADDR=$(./gcosmos --home ./test/val1 keys show val --address)
echo $VAL_ADDR

Query bank balance of validator, it has 9000000stake.

./gcosmos q bank balance $VAL_ADDR stake

Transaction Testing

Send 100stake from the first validator to a new account.

./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.

./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 for more details on available HTTP paths.

About

Integration of the Gordian consensus engine with the Cosmos SDK

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published