app

package
v0.17.3-rc1 Latest Latest
Warning

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

Go to latest
Published: May 25, 2018 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultCLIHome  = os.ExpandEnv("$HOME/.gaiacli")
	DefaultNodeHome = os.ExpandEnv("$HOME/.gaiad")
)

default home directories for expected binaries

Functions

func GaiaAppGenState

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

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

func GaiaAppGenTx

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

Generate a gaia genesis transaction

func GaiaAppInit

func GaiaAppInit() server.AppInit

get app init parameters for server init command

func MakeCodec

func MakeCodec() *wire.Codec

custom tx codec

Types

type GaiaApp

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

Extended ABCI application

func NewGaiaApp

func NewGaiaApp(logger log.Logger, db dbm.DB) *GaiaApp

func (*GaiaApp) ExportAppStateJSON

func (app *GaiaApp) ExportAppStateJSON() (appState json.RawMessage, err error)

export the state of gaia for a genesis f

type GaiaGenTx

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

simple genesis tx

type GenesisAccount

type GenesisAccount struct {
	Address sdk.Address `json:"address"`
	Coins   sdk.Coins   `json:"coins"`
}

GenesisAccount doesn't need pubkey or sequence

func NewGenesisAccount

func NewGenesisAccount(acc *auth.BaseAccount) GenesisAccount

func NewGenesisAccountI

func NewGenesisAccountI(acc sdk.Account) GenesisAccount

func (*GenesisAccount) ToAccount

func (ga *GenesisAccount) ToAccount() (acc *auth.BaseAccount)

convert GenesisAccount to auth.BaseAccount

type GenesisState

type GenesisState struct {
	Accounts  []GenesisAccount   `json:"accounts"`
	StakeData stake.GenesisState `json:"stake"`
}

State to Unmarshal

Jump to

Keyboard shortcuts

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