Documentation ¶
Index ¶
- Variables
- func MakeCodec() *amino.Codec
- func PlasmaAppGenStateJSON(cdc *wire.Codec, appGenTxs []json.RawMessage) (appState json.RawMessage, err error)
- func PlasmaAppGenTx(cdc *wire.Codec, pk crypto.PubKey, gentTxConfig config.GenTx) (appGenTx, cliPrint json.RawMessage, validator tmtypes.GenesisValidator, ...)
- func PlasmaAppGenTxNF(cdc *wire.Codec, pk crypto.PubKey, addr string, overwrite bool) (appGenTx, cliPrint json.RawMessage, validator tmtypes.GenesisValidator, ...)
- func PlasmaAppInit() server.AppInit
- func ToUTXO(gutxo GenesisUTXO) types.UTXO
- type ChildChain
- type GenesisState
- type GenesisUTXO
- type PlasmaGenTx
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 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
get app init parameters for server init command
func ToUTXO ¶ added in v0.2.0
func ToUTXO(gutxo GenesisUTXO) types.UTXO
Types ¶
type ChildChain ¶
Extended ABCI application
func NewChildChain ¶
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
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
Click to show internal directories.
Click to hide internal directories.