mpt

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyParams = "s/k:params/"
)

Variables

This section is empty.

Functions

func AccountGetCmd

func AccountGetCmd(ctx *server.Context) *cobra.Command

func GenSnapshot added in v0.1.1

func GenSnapshot(dataDir string)

func GetStorageByAddressKey

func GetStorageByAddressKey(prefix, key []byte) ethcmn.Hash

GetStorageByAddressKey returns a hash of the composite key for a state object's storage prefixed with it's address.

func MptCmd

func MptCmd(ctx *server.Context) *cobra.Command

Types

type TempModuleAccountPretty

type TempModuleAccountPretty struct {
	Address       sdk.AccAddress `json:"address" yaml:"address"`
	EthAddress    string         `json:"eth_address" yaml:"eth_address"`
	Coins         sdk.Coins      `json:"coins" yaml:"coins"`
	PubKey        string         `json:"public_key" yaml:"public_key"`
	AccountNumber uint64         `json:"account_number" yaml:"account_number"`
	Sequence      uint64         `json:"sequence" yaml:"sequence"`
	Name          string         `json:"name" yaml:"name"`               // name of the module
	Permissions   []string       `json:"permissions" yaml:"permissions"` // permissions of module account
}

type TempNewAccountPretty

type TempNewAccountPretty struct {
	Address       sdk.AccAddress    `json:"address" yaml:"address"`
	EthAddress    string            `json:"eth_address" yaml:"eth_address"`
	Coins         sdk.Coins         `json:"coins" yaml:"coins"`
	PubKey        string            `json:"public_key" yaml:"public_key"`
	AccountNumber uint64            `json:"account_number" yaml:"account_number"`
	Sequence      uint64            `json:"sequence" yaml:"sequence"`
	CodeHash      string            `json:"code_hash" yaml:"code_hash"`
	Storage       map[string]string `json:"storages" yaml:"storages"`
}

Jump to

Keyboard shortcuts

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