Documentation ¶
Index ¶
- func GenesisSetPinned(defaultNodeHome string, genesisMutator *GenesisIO) *cobra.Command
- func GenesisSetPrivileged(defaultNodeHome string, genesisMutator *GenesisIO) *cobra.Command
- func GetCmdListPrivilegedContracts() *cobra.Command
- func GetCmdShowPrivilegedContracts() *cobra.Command
- func GetQueryCmd() *cobra.Command
- type GenesisIO
- type GenesisReader
- type TWasmGenesisData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenesisSetPinned ¶
GenesisSetPinned returns a cli command to pin a contract into VM cache.
func GenesisSetPrivileged ¶
GenesisSetPrivileged cli command to enable privileges for a contract in the genesis
func GetCmdListPrivilegedContracts ¶
GetCmdListPrivilegedContracts lists all privileged contracts
func GetQueryCmd ¶
Types ¶
type GenesisIO ¶
type GenesisIO struct {
GenesisReader
}
GenesisIO to alter the genesis state for this module. To be used with the wasm cli extension point.
func NewGenesisIO ¶
func NewGenesisIO() *GenesisIO
func (GenesisIO) AlterTWasmModuleState ¶
func (x GenesisIO) AlterTWasmModuleState(cmd *cobra.Command, callback func(state *types.GenesisState, appState map[string]json.RawMessage) error) error
AlterTWasmModuleState loads the genesis from the default or set home dir, unmarshalls the twasm module section into the object representation calls the callback function to modify it and marshals the modified state back into the genesis file
func (GenesisIO) AlterWasmModuleState ¶
func (x GenesisIO) AlterWasmModuleState(cmd *cobra.Command, callback func(state *wasmtypes.GenesisState, appState map[string]json.RawMessage) error) error
AlterWasmModuleState loads the genesis from the default or set home dir, unmarshalls the wasm module section into the object representation calls the callback function to modify it and marshals the modified state back into the genesis file
type GenesisReader ¶
type GenesisReader struct{}
GenesisReader reads the genesis data for this module. To be used with the wasm cli extension point
func (GenesisReader) ReadTWasmGenesis ¶
func (d GenesisReader) ReadTWasmGenesis(cmd *cobra.Command) (*TWasmGenesisData, error)
func (GenesisReader) ReadWasmGenesis ¶
func (d GenesisReader) ReadWasmGenesis(cmd *cobra.Command) (*wasmcli.GenesisData, error)
type TWasmGenesisData ¶
type TWasmGenesisData struct { *wasmcli.GenesisData // contains filtered or unexported fields }
TWasmGenesisData extends the wasmcli GenesisData for this module state.