MCPcopy Index your code
hub / github.com/cosmos/gaia

github.com/cosmos/gaia @v27.5.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v27.5.0 ↗ · + Follow
3,687 symbols 17,221 edges 224 files 659 documented · 18%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Cosmos Hub (Gaia)

Banner!

Project Status: Active -- The project has reached a stable, usable state and is being actively
developed. License: Apache-2.0 Version Go Report Card GoDoc Lines of Code Quality Gate Status Coverage Twitter Discord Cosmos Hub Forum

The Cosmos Hub is the first of an exploding number of interconnected blockchains that comprise the Cosmos Network.

🤔 Why should you be interested in the Cosmos Hub

The Cosmos Hub is built using the Cosmos SDK and compiled to a binary called gaiad (Gaia Daemon). The Cosmos Hub and other fully sovereign Cosmos SDK blockchains interact with one another using a protocol called IBC that enables Inter-Blockchain Communication. In order to understand what the Cosmos Hub is you can read this introductory explanation.

Documentation

For the most up to date documentation please visit hub.cosmos.network.

For an overview of the Interchain Stack (the Cosmos SDK, IBC, etc.), as well as examples and exercises to help developers get a quick start, please visit tutorials.cosmos.network.

Additional resources

For node operators: If you're interested in running a node on the current Cosmos Hub, check out the docs to Join the Cosmos Hub Mainnet.

For validators: If you want to participate and help secure the Cosmos Hub and its consumer chains, consider becoming a validator. Information on what a validator is and how to participate as one can be found at the Validator FAQ. If you're running a validator node on the Cosmos Hub, reach out to a Janitor on the Cosmos Developers Discord to join the #cosmos-hub-validators-verified channel.

For delegators: If you want to secure the Cosmos Hub without running a validator, you can consider becoming a delegator. Information on what a delegator is and how to participate as one can be found at the Delegator FAQ.

Testnet

To participate in or utilize the current Cosmos Hub testnet, take a look at the cosmos/testnets repository.

Archives & Genesis

In the Cosmos Network, chain IDs have a revision number that is incremented on a hard-fork, i.e., when the chain restarts from a new genesis state. Mainnet is currently running as cosmoshub-4. If you are looking for historical genesis files and other data cosmos/mainnet is an excellent resource. Snapshots are also available at cosmos.quicksync.io.

Contributing

Check out CONTRIBUTING.md for our guidelines & policies for how we develop the Cosmos Hub. Thank you to all those who have contributed!

Talk to us

Follow the Cosmos Hub team's activities on the Cosmos Hub X account.

Join the conversation on the Cosmos Hub Forum and on Discord.

Extension points exported contracts — how you extend this code

AccountKeeper (Interface)
AccountKeeper defines the expected account keeper (noalias) [2 implementers]
x/liquid/types/expected_keepers.go
UnsafeStartValidatorCmdCreator (FuncType)
(no doc)
cmd/gaiad/cmd/testnet.go
ConsumerBootstrapCb (FuncType)
(no doc)
tests/interchain/chainsuite/chain_ics.go
FlagOption (FuncType)
(no doc)
tests/e2e/common/util.go
BankKeeper (Interface)
BankKeeper defines the expected interface needed to retrieve account balances. [2 implementers]
x/liquid/types/expected_keepers.go
StakingKeeper (Interface)
StakingKeeper defines the expected interface needed to interact with the x/staking keeper. [2 implementers]
x/liquid/types/expected_keepers.go
DistributionKeeper (Interface)
DistributionKeeper defines the expected interface needed to interact with the x/distribution keeper. [2 implementers]
x/liquid/types/expected_keepers.go

Core symbols most depended-on inside this repo

n
called by 2867
client/docs/swagger-ui/swagger-ui-bundle.js
n
called by 2867
client/docs/swagger-ui/swagger-ui-es-bundle.js
n
called by 2618
client/docs/swagger-ui/swagger-ui.js
n
called by 2618
client/docs/swagger-ui/swagger-ui-es-bundle-core.js
n
called by 1589
client/docs/swagger-ui/swagger-ui-standalone-preset.js
push
called by 1357
contrib/testnets/remote/ansible/inventory/ec2.py
GetContext
called by 697
tests/interchain/chainsuite/suite.go
o
called by 496
client/docs/swagger-ui/swagger-ui-bundle.js

Shape

Function 1,775
Method 1,675
Struct 193
Class 30
Interface 8
FuncType 3
TypeAlias 3

Languages

Go58%
TypeScript40%
Python1%

Modules by API surface

client/docs/swagger-ui/swagger-ui-es-bundle.js470 symbols
client/docs/swagger-ui/swagger-ui-bundle.js470 symbols
x/liquid/types/query.pb.go454 symbols
x/liquid/types/tx.pb.go296 symbols
client/docs/swagger-ui/swagger-ui-standalone-preset.js203 symbols
client/docs/swagger-ui/swagger-ui.js166 symbols
client/docs/swagger-ui/swagger-ui-es-bundle-core.js166 symbols
x/liquid/types/mocks/StakingKeeper.go100 symbols
x/liquid/types/liquid.pb.go90 symbols
x/liquid/types/mocks/BankKeeper.go70 symbols
x/liquid/types/genesis.pb.go42 symbols
x/liquid/types/expected_keepers.go38 symbols

For agents

$ claude mcp add gaia \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact