Skip to content

Latest commit

 

History

History
 
 

scripts

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Helper scripts to build proto files and generate openapi docs

Prerequisites

Docker

The Dockerfile might be handy for the following cases:

  • when you want to use not yet release (dev) version of starport
  • when you don't want to setup starport 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 starport chain build).

starport chain build

Generate Cosmos base openapi

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