Git Product home page Git Product logo

onomy's Introduction

onomy

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

Get started

starport 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 reference.

Development Testnet Launch Docker Command

docker run --name onomy-devtestnet -p 26656-26659:26656-26659 -p 6061:6061 -p 9091:9091 -p 1317:1317 onomy/onomy-devtestnet:latest onomyd start --rpc.laddr tcp://0.0.0.0:26657 --grpc.address 0.0.0.0:9091

Launch

To launch your blockchain live on multiple nodes use starport network commands. Learn more about Starport Network.

To use SPN you will need Starport installed. SPN is being actively developed, please, build Starport from source and use develop branch.

Initiating a blockchain launch

To initiate a blockchain launch run the following command:

starport network chain create [chainID] [sourceURL]

chainID is a string that uniquely identifies your blockchain on SPN. sourceURL is a URL that can be used to clone the repository containing a Cosmos SDK blockchain node (for example, https://github.com/tendermint/spn). By running the create command you act as a "coordinator" and initiate the launch of a blockchain.

To start an Onomy chain the following command may be used

starport network chain create <your_chain_name> http://github.com/onomyprotocol/onomy

Joining as a validator

Run the following command from a server to propose yourself as a validator:

starport network chain join [chainID]

Follow the prompts to provide information about the validator. Starport will download the source code of the blockchain node, build, initialize and create and send two proposals to SPN: to add an account and to add a validator with self-delegation. By running a join command you act as a "validator".

By default, a coordinator does not propose themselves as a validator. To do so, run join command and your proposals will be automatically approved.

Please visit the following site for more information such as current test-net or main-net chainID as well as genesis file: https://github.com/onomyprotocol/onomy-launch

Listing pending proposals

starport network proposal list [chainID]

This command lists all proposals. To filter the list of proposals use the --status flag (possible values are: approved, pending and rejected). Each proposal has a proposalID (integer, unique to the chain), this ID is used to approve and reject a proposal.

Accepting and rejecting proposals

As a coordinator run the following command to approve proposals:

starport network proposal approve [chainID] 1,4,5,6

Replace comma-separated values with a list of proposalID being accepted. Replace approve with reject to reject proposals instead.

Starting a blockchain node

Once validator proposals have been accepted, run the following command to start a blockchain node:

starport network chain start [chainID]

This command will use SPN to create a correct genesis file, configure and launch your blockchain node. Once the node is started and the required number of validators are online, you will see output with incrementing block height number, which means that the blockchain has been successfully started.

onomy's People

Contributors

cgdusek avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.