Skip to content

scorum/cosmos-network

Repository files navigation

Scorum Network

Introducing Scorum Cosmos Network

Scorum’s blockchain protocol is in the cosmos family.

Projects currently working on Scorum Cosmos Network

Projects on which work is underway to transfer to the Scorum Cosmos Network

Current and future functions of Scorum Cosmos Network

  • Blogging platform where authors and readers will be rewarded for creating and engaging with content
  • Commission-free betting exchange where fans can place bets against each other using Scorum Coins (SCR)
  • Direct access to the Cosmos Network ecosystem
  • Aviatrix NFT marketplace

Public Announcement & Discussion

Find out more as we take the project public through the following channels:

  • Get the latest updates and chat with us on Telegram

Run Local Node Quick Start

This assumes that you're running Linux or MacOS and have installed Go 1.19+. This guide helps you:

  • build and install Scorum Network
  • allow you to name your node
  • add seeds to your config file
  • download genesis state
  • start your node
  • use scorumd to check the status of your node.

If you already have a previous version of Scorum Network installed:

rm -rf ~/.scorum

Development

Requirements

To build project you should have:

  • go >= 1.19
  • protobuf
  • buf
  • golangci-lint

Guide

Build and install

Build and install are available with make

make build

or

make install

Install tools

make install-proto
make install-linter

Generate proto

make generate-proto

Generate swagger

To generate swagger you need:

  • buf
  • cloned to gopath github.com/cosmos/cosmos-sdk with correct version
  • go-swagger-merger
make generate-proto-swagger

Run tests

make test

Also you can run non-determinism simulation

make test-determinism

Run linter

make lint

Start local node

Node's home is a directory test in the root of the repo. There will be available test account in the test directory.

make local-init
make local-start

To reset state

make local-reset

Run cli with the local node

Be sure you installed scorumd or use the built one from ./build

Retrieve info about test account

scorumd keys list  --keyring-backend test --keyring-dir test

Broadcast transaction

scorumd tx aviatrix create-plane 06c444a4-1ca4-11ee-be56-0242ac120003 scorum1z2ptzs6a2f8dfp4et22x36a53x0w6cma6pplca my-plane black --keyring-backend test --keyring-dir test --broadcast-mode block --from test

Query command

scorumd query bank balances scorum1qujv377hmegm46vnllm20y9c56m5nztserc07a

No Support & No Warranty

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

License

© 2023 Scorum. All right reserved.

Licensed under the Apache v2 License.