app

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// default home directories for expected binaries
	DefaultCLIHome  = os.ExpandEnv("$HOME/.plasmacli")
	DefaultNodeHome = os.ExpandEnv("$HOME/.plasmad")
)

Functions

func MakeCodec

func MakeCodec() *amino.Codec

func PlasmaAppGenStateJSON added in v0.2.0

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

PlasmaAppGenState but with JSON

func PlasmaAppGenTx added in v0.2.0

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

Generate a gaia genesis transaction with flags

func PlasmaAppGenTxNF added in v0.2.0

func PlasmaAppGenTxNF(cdc *wire.Codec, pk crypto.PubKey, addr string, overwrite bool) (
	appGenTx, cliPrint json.RawMessage, validator tmtypes.GenesisValidator, err error)

Generate a gaia genesis transaction without flags

func PlasmaAppInit added in v0.2.0

func PlasmaAppInit() server.AppInit

get app init parameters for server init command

func ToUTXO added in v0.2.0

func ToUTXO(gutxo GenesisUTXO) types.UTXO

Types

type ChildChain

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

Extended ABCI application

func NewChildChain

func NewChildChain(logger log.Logger, db dbm.DB, traceStore io.Writer) *ChildChain

func (*ChildChain) ExportAppStateJSON added in v0.2.0

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

type GenesisState added in v0.2.0

type GenesisState struct {
	UTXOs []GenesisUTXO `json:"UTXOs"`
}

State to Unmarshal

func PlasmaAppGenState added in v0.2.0

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

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

type GenesisUTXO added in v0.2.0

type GenesisUTXO struct {
	Address  string
	Denom    string
	Position [4]string
}

func NewGenesisUTXO added in v0.2.0

func NewGenesisUTXO(addr string, amount string, position [4]string) GenesisUTXO

type PlasmaGenTx added in v0.2.0

type PlasmaGenTx struct {
	// currently takes address as string because unmarshaling Ether address fails
	Address string `json:"address"`
}

simple genesis tx

Jump to

Keyboard shortcuts

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