app

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PluginNameBase = "base"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Basecoin

type Basecoin struct {
	// contains filtered or unexported fields
}

func NewBasecoin

func NewBasecoin(eyesCli *eyes.Client) *Basecoin

func (*Basecoin) BeginBlock

func (app *Basecoin) BeginBlock(hash []byte, header *abci.Header)

ABCI::BeginBlock

func (*Basecoin) CheckTx

func (app *Basecoin) CheckTx(txBytes []byte) (res abci.Result)

ABCI::CheckTx

func (*Basecoin) Commit

func (app *Basecoin) Commit() (res abci.Result)

ABCI::Commit

func (*Basecoin) DeliverTx

func (app *Basecoin) DeliverTx(txBytes []byte) (res abci.Result)

ABCI::DeliverTx

func (*Basecoin) EndBlock

func (app *Basecoin) EndBlock(height uint64) (res abci.ResponseEndBlock)

ABCI::EndBlock

func (*Basecoin) GetState

func (app *Basecoin) GetState() *sm.State

XXX For testing, not thread safe!

func (*Basecoin) Info

func (app *Basecoin) Info() abci.ResponseInfo

ABCI::Info

func (*Basecoin) InitChain

func (app *Basecoin) InitChain(validators []*abci.Validator)

ABCI::InitChain

func (*Basecoin) LoadGenesis

func (app *Basecoin) LoadGenesis(path string) error

func (*Basecoin) Query

func (app *Basecoin) Query(reqQuery abci.RequestQuery) (resQuery abci.ResponseQuery)

ABCI::Query

func (*Basecoin) RegisterPlugin

func (app *Basecoin) RegisterPlugin(plugin types.Plugin)

func (*Basecoin) SetLogger

func (app *Basecoin) SetLogger(l log.Logger)

func (*Basecoin) SetOption

func (app *Basecoin) SetOption(key string, value string) string

ABCI::SetOption

type FullGenesisDoc

type FullGenesisDoc struct {
	ChainID    string      `json:"chain_id"`
	AppOptions *GenesisDoc `json:"app_options"`
}

includes tendermint (in the json, we ignore here)

type GenesisAccount

type GenesisAccount struct {
	Address data.Bytes `json:"address"`
	// this from types.Account (don't know how to embed this properly)
	PubKey   crypto.PubKey `json:"pub_key"` // May be nil, if not known.
	Sequence int           `json:"sequence"`
	Balance  types.Coins   `json:"coins"`
}

func (GenesisAccount) GetAddr

func (g GenesisAccount) GetAddr() ([]byte, error)

func (GenesisAccount) ToAccount

func (g GenesisAccount) ToAccount() *types.Account

type GenesisDoc

type GenesisDoc struct {
	Accounts      []GenesisAccount  `json:"accounts"`
	PluginOptions []json.RawMessage `json:"plugin_options"`
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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