Skip to content

Latest commit

 

History

History
48 lines (32 loc) · 984 Bytes

File metadata and controls

48 lines (32 loc) · 984 Bytes

Helper scripts to build proto files and generate openapi docs

Prerequisites

Docker

The Dockerfile might be handy for the following cases:

  • when you don't want to setup Ignite or Swagger dependencies locally by some reason

[Note] If you want to install dependencies locally, try to use versions specified in Dockerfile to avoid errors while running scripts

Build docker image from Dockerfile:

docker build -t <name[:tag]> ./scripts

Run docker container (from the root of the project) in an interactive mode:

docker run -it -v "$PWD":/dcl <name[:tag]> /bin/bash

Scripts

Build proto (for example buf generate --template buf.gen.gogo.yaml).

./scripts/protocgen.sh

or

ignite chain build

Generate Cosmos base openapi

./scripts/cosmos-swagger-gen.sh base
./scripts/cosmos-swagger-gen.sh tx

Update DCL openapi

./scripts/dcl-swagger-gen.sh