app

package module
v0.0.0-...-19e21eb Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2019 License: MIT Imports: 21 Imported by: 0

README

Request Chain

Request Chain is a Delegated Proof of Stake blockchain based on Cosmos used as an example of the storage layer of the Request protocol

A Cosmos blockchain is a Delegated Proof of stake blockchain. Users delegate their fund to validators that will run the blockchain. The Request protocol will store the blocks to Request Chain and pay a fee that will be sent to the delegators and validators.

This version is a PoC

How does it works

This repo contains the modules rcd and rccli

Example

Implementation of the storage layer

The new storage layer of Request protocol send API request to the rccli server.

github.com/ltacker/request-chain-storage

Testing

A fork of the Request Node has been created to use the new storage layer.

github.com/ltacker/request-node

This repo contains a docker-compose file that simulates a network with one validator and two, well funded, accounts. The network can be launched with the command:

docker-compose up

Then, you can create and update request with request-client.js to the node running on localhost:3000

IN PROGRESS

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// default home directories for the application CLI
	DefaultCLIHome = os.ExpandEnv("$HOME/.rccli")

	// DefaultNodeHome sets the folder where the applcation data and configuration will be stored
	DefaultNodeHome = os.ExpandEnv("$HOME/.rcd")

	// ModuleBasicManager is in charge of setting up basic module elemnets
	ModuleBasics = module.NewBasicManager(
		genaccounts.AppModuleBasic{},
		genutil.AppModuleBasic{},
		auth.AppModuleBasic{},
		bank.AppModuleBasic{},
		params.AppModuleBasic{},
		requestchain.AppModule{},
		staking.AppModuleBasic{},
		distr.AppModuleBasic{},
		slashing.AppModuleBasic{},
		supply.AppModuleBasic{},

		requestchain.AppModule{},
	)
)

Functions

func MakeCodec

func MakeCodec() *codec.Codec

MakeCodec generates the necessary codecs for Amino

func NewRequestChainApp

func NewRequestChainApp(logger log.Logger, db dbm.DB) *requestChainApp

NewRequestChainApp is a constructor function for requestChainApp

Types

type GenesisState

type GenesisState map[string]json.RawMessage

GenesisState represents chain state at the start of the chain. Any initial state (account balances) are stored here.

func NewDefaultGenesisState

func NewDefaultGenesisState() GenesisState

Directories

Path Synopsis
cmd
rcd
x

Jump to

Keyboard shortcuts

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