stride

module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2022 License: MIT

README

stride

stride is a blockchain built using Cosmos SDK and Tendermint and created with Starport.

Get started

starport chain serve

serve command installs dependencies, builds, initializes, and starts your blockchain in development.

Configure

Your blockchain in development can be configured with config.yml. To learn more, see the Starport docs.

Web Frontend

Starport has scaffolded a Vue.js-based web app in the vue directory. Run the following commands to install dependencies and start the app:

cd vue
npm install
npm run serve

The frontend app is built using the @starport/vue and @starport/vuex packages. For details, see the monorepo for Starport front-end development.

Release

To release a new version of your blockchain, create and push a new tag with v prefix. A new draft release with the configured targets will be created.

git tag v0.1
git push origin v0.1

After a draft release is created, make your final changes from the release page and publish it.

Install

To install the latest version of your blockchain node's binary, execute the following command on your machine:

curl https://get.starport.com/Stride-Labs/stride@latest! | sudo bash

Stride-Labs/stride should match the username and repo_name of the Github repository to which the source code was pushed. Learn more about the install process.

Learn more

Build

Please run make init to build and serve 3 Stride nodes, 3 Gaia nodes, and 1 Hermes relayer on docker images.

You can run make init build=stride (the default option) to

  1. Run ignite chain build to build the Stride binary
  2. Rebuild Stride, using cache when possible
  3. Spin up the 7 docker containers and start all processes

Alternatively, you can run make init build=strideall to re-build the docker image from scratch.

If you want to re-build all images, you can run make init build=base to:

  1. Run ignite chain build to build the Stride binary
  2. Rebuild Stride, Gaia, and Hermes docker images, using cache when possible
  3. Spin up the 7 docker containers and start all processes

Alternatively, you can run make init build=all to

  1. Run ignite chain build to build the Stride binary
  2. Fully rebuild Stride, Gaia, and Hermes docker images, ignoring the cache
  3. Spin up the 7 docker containers and start all processes

Or, if you just want to re-serve, run make init build=none to

  1. Use existing Stride binary
  2. Use existing docker images
  3. Spin up the 7 docker containers and start all processes

Build (Lower Level)

Proceed with lower-level building at your own discretion. Only make init is well-supported.

You can run sh scripts/init.sh to achieve the same output as the above. The following flags are supported

  1. -b This will run ignite chain build
  2. -d This will re-build all docker images, using cache
  3. -f This will re-build all docker images, ignoring cache.
  4. -s This will re-build Stride's docker images, using cache.
  5. -a This will re-build Stride's docker images, ignoring cache.

At the end, all 7 docker images will be served.

Directories

Path Synopsis
cmd
testutil
nullify
Package nullify provides methods to init nil values structs for test assertion.
Package nullify provides methods to init nil values structs for test assertion.
x
epochs/types
Package types is a reverse proxy.
Package types is a reverse proxy.
interchainquery/types
Package types is a reverse proxy.
Package types is a reverse proxy.
mint/types
Package types is a reverse proxy.
Package types is a reverse proxy.
stakeibc/types
Package types is a reverse proxy.
Package types is a reverse proxy.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL