Documentation ¶
Index ¶
- Constants
- func BuildQueryBinary(name string, args interface{}) ([]byte, error)
- func Run(a store.Adapter, config *Config, addrPtr, abciPtr *string)
- type Config
- type Info
- type LastBlockInfo
- type Query
- type TMPop
- func (t *TMPop) BeginBlock(hash []byte, header *tmtypes.Header)
- func (t *TMPop) CheckTx(tx []byte) tmtypes.Result
- func (t *TMPop) Commit() tmtypes.Result
- func (t *TMPop) DeliverTx(tx []byte) tmtypes.Result
- func (t *TMPop) EndBlock(height uint64) tmtypes.ResponseEndBlock
- func (t *TMPop) Info() tmtypes.ResponseInfo
- func (t *TMPop) InitChain(validators []*tmtypes.Validator)
- func (t *TMPop) LoadLastBlock() (lastBlock LastBlockInfo)
- func (t *TMPop) Query(q []byte) tmtypes.Result
- func (t *TMPop) SetAdapter(a store.Adapter)
- func (t *TMPop) SetOption(key string, value string) (log string)
Constants ¶
const ( // Name of the Tendermint Application Name = "TMPop" // Description of this Tendermint Application Description = "Agent Store in a Blockchain" )
Variables ¶
This section is empty.
Functions ¶
func BuildQueryBinary ¶
BuildQueryBinary outputs the marshalled Query
Types ¶
type Config ¶
type Config struct { // A version string that will be set in the store's information. Version string // A git commit hash that will be set in the store's information. Commit string // Where godb will be saved. DbDir string }
Config contains configuration options for the App.
type Info ¶
type Info struct { Name string `json:"name"` Description string `json:"description"` Version string `json:"version"` Commit string `json:"commit"` AdapterInfo interface{} `json:"adapterInfo"` }
Info is the info returned by GetInfo.
type LastBlockInfo ¶
LastBlockInfo stores information about the last block
type TMPop ¶
type TMPop struct {
// contains filtered or unexported fields
}
TMPop is the type of the application that implements github.com/tendermint/abci/types.Application, the tendermint socket protocol (ABCI)
func (*TMPop) BeginBlock ¶
BeginBlock implements github.com/tendermint/abci/types.BlockchainAware.BeginBlock
func (*TMPop) DeliverTx ¶
DeliverTx implements github.com/tendermint/abci/types.Application.DeliverTx
func (*TMPop) EndBlock ¶
func (t *TMPop) EndBlock(height uint64) tmtypes.ResponseEndBlock
EndBlock implements github.com/tendermint/abci/types.BlockchainAware.EndBlock
func (*TMPop) Info ¶
func (t *TMPop) Info() tmtypes.ResponseInfo
Info implements github.com/tendermint/abci/types.Application.Info
func (*TMPop) InitChain ¶
InitChain implements github.com/tendermint/abci/types.BlockchainAware.InitChain
func (*TMPop) LoadLastBlock ¶
func (t *TMPop) LoadLastBlock() (lastBlock LastBlockInfo)
LoadLastBlock gets the last block from the db