app

package
v0.22.4 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2018 License: Apache-2.0, Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultCLIHome  = os.ExpandEnv("$HOME/.ichaincli")
	DefaultNodeHome = os.ExpandEnv("$HOME/.ichaind")
)

default home directories for expected binaries

Functions

func GaiaAppGenState added in v0.2.2

func GaiaAppGenState(cdc *wire.Codec, appGenTxs []json.RawMessage) (genesisState types.GenesisState, err error)

Create the core parameters for genesis initialization for gaia note that the pubkey input is this machines pubkey

func GaiaAppGenStateJSON added in v0.2.2

func GaiaAppGenStateJSON(cdc *wire.Codec, appGenTxs []json.RawMessage) (appState json.RawMessage, err error)

GaiaAppGenState but with JSON

func GaiaAppGenTx added in v0.2.2

func GaiaAppGenTx(cdc *wire.Codec, pk crypto.PubKey, genTxConfig config.GenTx) (
	appGenTx, cliPrint json.RawMessage, validator tmtypes.GenesisValidator, err error)

Generate a gaia genesis transaction with flags

func GaiaAppGenTxNF added in v0.2.2

func GaiaAppGenTxNF(cdc *wire.Codec, pk crypto.PubKey, addr sdk.AccAddress, name string) (
	appGenTx, cliPrint json.RawMessage, validator tmtypes.GenesisValidator, err error)

Generate a gaia genesis transaction without flags

func GaiaAppInit added in v0.2.2

func GaiaAppInit() server.AppInit

get app init parameters for server init command

func MakeCodec

func MakeCodec() *wire.Codec

MakeCodec Custom tx codec

Types

type GaiaGenTx added in v0.2.2

type GaiaGenTx struct {
	Name    string         `json:"name"`
	Address sdk.AccAddress `json:"address"`
	PubKey  string         `json:"pub_key"`
}

simple genesis tx

type IchainApp

type IchainApp struct {
	*bam.BaseApp
	// contains filtered or unexported fields
}

IchainApp Extended ABCI application

func NewIchainApp

func NewIchainApp(logger log.Logger, db dbm.DB, traceStore io.Writer, baseAppOptions ...func(*bam.BaseApp)) *IchainApp

NewIchainApp new ichain application

func (*IchainApp) BeginBlocker added in v0.1.4

func (app *IchainApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock

application updates every end block

func (*IchainApp) EndBlocker added in v0.1.4

func (app *IchainApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock

application updates every end block

func (*IchainApp) ExportAppStateJSON added in v0.0.2

func (app *IchainApp) ExportAppStateJSON() (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)

Custom logic for state export

Jump to

Keyboard shortcuts

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