Documentation ¶
Index ¶
- Constants
- Variables
- func IrisAppGenStateJSON(cdc *wire.Codec, appGenTxs []json.RawMessage) (appState json.RawMessage, err error)
- func IrisAppGenTx(cdc *wire.Codec, pk crypto.PubKey, genTxConfig config.GenTx) (appGenTx, cliPrint json.RawMessage, validator tmtypes.GenesisValidator, ...)
- func IrisAppGenTxNF(cdc *wire.Codec, pk crypto.PubKey, addr sdk.AccAddress, name string) (appGenTx, cliPrint json.RawMessage, validator tmtypes.GenesisValidator, ...)
- func IrisAppInit() server.AppInit
- func MakeCodec() *wire.Codec
- type Context
- func (c Context) BroadcastTxAsync(tx []byte) (*ctypes.ResultBroadcastTx, error)
- func (c Context) BroadcastTxSync(tx []byte) (*ctypes.ResultBroadcastTx, error)
- func (c Context) NetInfo() *ctypes.ResultNetInfo
- func (c Context) NumUnconfirmedTxs() *ctypes.ResultUnconfirmedTxs
- func (c Context) WithCodeC(cdc *wire.Codec) Context
- type GenesisAccount
- type GenesisState
- type IrisApp
- func (app *IrisApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *IrisApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *IrisApp) ExportAppStateAndValidators() (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
- type IrisGenTx
Constants ¶
View Source
const (
FlagReplay = "replay"
)
Variables ¶
View Source
var ( DefaultCLIHome = os.ExpandEnv("$HOME/.iriscli") DefaultNodeHome = os.ExpandEnv("$HOME/.iris") )
default home directories for expected binaries
Functions ¶
func IrisAppGenStateJSON ¶
func IrisAppGenStateJSON(cdc *wire.Codec, appGenTxs []json.RawMessage) (appState json.RawMessage, err error)
IrisAppGenState but with JSON
func IrisAppGenTx ¶
func IrisAppGenTx(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 IrisAppGenTxNF ¶
func IrisAppGenTxNF(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 IrisAppInit ¶
get app init parameters for server init command
Types ¶
type Context ¶
type Context struct { Ctx context.CoreContext Cdc *wire.Codec }
func NewContext ¶
func NewContext() Context
func (Context) BroadcastTxAsync ¶
func (c Context) BroadcastTxAsync(tx []byte) (*ctypes.ResultBroadcastTx, error)
func (Context) BroadcastTxSync ¶
func (c Context) BroadcastTxSync(tx []byte) (*ctypes.ResultBroadcastTx, error)
func (Context) NetInfo ¶
func (c Context) NetInfo() *ctypes.ResultNetInfo
func (Context) NumUnconfirmedTxs ¶
func (c Context) NumUnconfirmedTxs() *ctypes.ResultUnconfirmedTxs
type GenesisAccount ¶
type GenesisAccount struct { Address sdk.AccAddress `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 auth.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
func IrisAppGenState ¶
func IrisAppGenState(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 IrisApp ¶
Extended ABCI application
func NewIrisApp ¶
func (*IrisApp) BeginBlocker ¶
func (app *IrisApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
application updates every end block
func (*IrisApp) EndBlocker ¶
func (app *IrisApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
application updates every end block
func (*IrisApp) ExportAppStateAndValidators ¶
func (app *IrisApp) ExportAppStateAndValidators() (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
export the state of iris for a genesis file
Click to show internal directories.
Click to hide internal directories.