Documentation
¶
Overview ¶
nolint
Index ¶
- func GenInitOptions(args []string, addr sdk.Address, coinDenom string) (json.RawMessage, error)
- func InitChainer(key sdk.StoreKey) func(sdk.Context, abci.RequestInitChain) abci.ResponseInitChain
- func KVStoreHandler(storeKey sdk.StoreKey) sdk.Handler
- func NewApp(rootDir string, logger log.Logger) (abci.Application, error)
- func NewTx(key, value string) kvstoreTx
- func SetupApp() (abci.Application, func(), error)
- type GenesisJSON
- type KV
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenInitOptions ¶
func GenInitOptions(args []string, addr sdk.Address, coinDenom string) (json.RawMessage, error)
GenInitOptions can be passed into InitCmd, returns a static string of a few key-values that can be parsed by InitChainer
func InitChainer ¶
func InitChainer(key sdk.StoreKey) func(sdk.Context, abci.RequestInitChain) abci.ResponseInitChain
InitChainer returns a function that can initialize the chain with key/value pairs
func KVStoreHandler ¶
func KVStoreHandler(storeKey sdk.StoreKey) sdk.Handler
KVStoreHandler is a simple handler that takes kvstoreTx and writes them to the db
Types ¶
type GenesisJSON ¶
type GenesisJSON struct {
Values []KV `json:"values"`
}
What Genesis JSON is formatted as
Click to show internal directories.
Click to hide internal directories.