Documentation ¶
Index ¶
- Constants
- Variables
- func ExportStateToJSON(app *StraightedgeApp, path string) error
- func GetMaccPerms() map[string][]string
- func MakeCodec() *codec.Codec
- func RegisterCodec(cdc *codec.Codec)
- func SetBech32AddressPrefixes(config *sdk.Config)
- type GenesisState
- type StraightedgeApp
- func (app *StraightedgeApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
- func (app *StraightedgeApp) Codec() *codec.Codec
- func (app *StraightedgeApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
- func (app *StraightedgeApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string) (appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
- func (app *StraightedgeApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
- func (app *StraightedgeApp) LoadHeight(height int64) error
- func (app *StraightedgeApp) ModuleAccountAddrs() map[string]bool
- type WasmWrapper
Constants ¶
const (
Bech32MainPrefix = "str"
)
Variables ¶
var ( // default home directories for expected binaries DefaultCLIHome = os.ExpandEnv("$HOME/.strcli") DefaultNodeHome = os.ExpandEnv("$HOME/.strd") // ModuleBasics The module BasicManager is in charge of setting up basic, // non-dependant module elements, such as codec registration // and genesis verification. ModuleBasics = module.NewBasicManager( genutil.AppModuleBasic{}, auth.AppModuleBasic{}, bank.AppModuleBasic{}, staking.AppModuleBasic{}, mint.AppModuleBasic{}, distr.AppModuleBasic{}, gov.NewAppModuleBasic(append(wasmclient.ProposalHandlers, paramsclient.ProposalHandler, distr.ProposalHandler, upgradeclient.ProposalHandler)...), params.AppModuleBasic{}, crisis.AppModuleBasic{}, slashing.AppModuleBasic{}, supply.AppModuleBasic{}, upgrade.AppModuleBasic{}, evidence.AppModuleBasic{}, togglerouter.AppModuleBasic{}, wasm.AppModuleBasic{}, ) )
Functions ¶
func ExportStateToJSON ¶
func ExportStateToJSON(app *StraightedgeApp, path string) error
ExportStateToJSON util function to export the app state to JSON
func GetMaccPerms ¶
GetMaccPerms returns a mapping of the application's module account permissions.
func MakeCodec ¶
MakeCodec creates the application codec. The codec is sealed before it is returned.
Types ¶
type GenesisState ¶
type GenesisState map[string]json.RawMessage
GenesisState represents the genesis state of the blockchain. It is a map from module names to module genesis states.
func NewDefaultGenesisState ¶
func NewDefaultGenesisState() GenesisState
NewDefaultGenesisState generates the default state for the application.
type StraightedgeApp ¶
StraightedgeApp extended ABCI application
func NewStraightedgeApp ¶
func NewStraightedgeApp( logger log.Logger, db dbm.DB, traceStore io.Writer, loadLatest bool, invCheckPeriod uint, enabledProposals []wasm.ProposalType, skipUpgradeHeights map[int64]bool, baseAppOptions ...func(*bam.BaseApp), ) *StraightedgeApp
NewStraightedgeApp returns a reference to an initialized StraightedgeApp.
func (*StraightedgeApp) BeginBlocker ¶
func (app *StraightedgeApp) BeginBlocker(ctx sdk.Context, req abci.RequestBeginBlock) abci.ResponseBeginBlock
BeginBlocker application updates every begin block
func (*StraightedgeApp) Codec ¶
func (app *StraightedgeApp) Codec() *codec.Codec
Codec returns the application's sealed codec.
func (*StraightedgeApp) EndBlocker ¶
func (app *StraightedgeApp) EndBlocker(ctx sdk.Context, req abci.RequestEndBlock) abci.ResponseEndBlock
EndBlocker application updates every end block
func (*StraightedgeApp) ExportAppStateAndValidators ¶
func (app *StraightedgeApp) ExportAppStateAndValidators(forZeroHeight bool, jailWhiteList []string) ( appState json.RawMessage, validators []tmtypes.GenesisValidator, err error)
export the state of the app for a genesis file
func (*StraightedgeApp) InitChainer ¶
func (app *StraightedgeApp) InitChainer(ctx sdk.Context, req abci.RequestInitChain) abci.ResponseInitChain
InitChainer application update at chain initialization
func (*StraightedgeApp) LoadHeight ¶
func (app *StraightedgeApp) LoadHeight(height int64) error
LoadHeight loads a particular height
func (*StraightedgeApp) ModuleAccountAddrs ¶
func (app *StraightedgeApp) ModuleAccountAddrs() map[string]bool
ModuleAccountAddrs returns all the app's module account addresses.
type WasmWrapper ¶
type WasmWrapper struct {
Wasm wasm.WasmConfig `mapstructure:"wasm"`
}
WasmWrapper allows us to use namespacing in the config file This is only used for parsing in the app, x/wasm expects WasmConfig