Some checks are pending
Docs Deploy / build_and_deploy (push) Waiting to run
Generate Docs / cli (push) Waiting to run
Generate Config Doc / cli (push) Waiting to run
Go formatting / go-formatting (push) Waiting to run
Check links / markdown-link-check (push) Waiting to run
Integration / pre-test (push) Waiting to run
Integration / test on (push) Blocked by required conditions
Integration / status (push) Blocked by required conditions
Lint / Lint Go code (push) Waiting to run
Test / test (ubuntu-latest) (push) Waiting to run
22 lines
715 B
Markdown
22 lines
715 B
Markdown
---
|
|
description: Protocol buffer file support in Ignite CLI
|
|
sidebar_position: 6
|
|
---
|
|
|
|
# Protocol buffer files
|
|
|
|
Protocol buffer files define the data structures used by Cosmos SDK modules.
|
|
|
|
## Files and directories
|
|
|
|
Inside the `proto` directory, a directory for each custom module contains `query.proto`, `tx.proto`, `genesis.proto`, and other files.
|
|
|
|
The `ignite chain serve` command automatically generates Go code from proto files on every file change.
|
|
|
|
## Third-party proto files
|
|
|
|
Third-party proto files, including those of Cosmos SDK and Tendermint, are bundled with Ignite CLI. To import third-party proto files in your custom proto files:
|
|
|
|
```protobuf
|
|
import "cosmos/base/query/v1beta1/pagination.proto";
|
|
```
|