cli

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenesisSetPinned

func GenesisSetPinned(defaultNodeHome string, genesisMutator *GenesisIO) *cobra.Command

GenesisSetPinned returns a cli command to pin a contract into VM cache.

func GenesisSetPrivileged

func GenesisSetPrivileged(defaultNodeHome string, genesisMutator *GenesisIO) *cobra.Command

GenesisSetPrivileged cli command to enable privileges for a contract in the genesis

func GetCmdListPrivilegedContracts

func GetCmdListPrivilegedContracts() *cobra.Command

GetCmdListPrivilegedContracts lists all privileged contracts

func GetCmdShowPrivilegedContracts

func GetCmdShowPrivilegedContracts() *cobra.Command

func GetQueryCmd

func GetQueryCmd() *cobra.Command

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.

Jump to

Keyboard shortcuts

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