executor

package
v1.76.5 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: BSD-3-Clause Imports: 10 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//KeyPrefixStateDB state db key必须前缀
	KeyPrefixStateDB = "mavl-storage-"
	//KeyPrefixLocalDB local db的key必须前缀
	KeyPrefixLocalDB = "LODB-storage-"
)

Functions

func BatchQueryStorage

func BatchQueryStorage(statedb, localdb dbm.KV, in *ety.BatchQueryStorage) (types.Message, error)

BatchQueryStorage ...

func GetName

func GetName() string

GetName get driver name

func Init

func Init(name string, cfg *types.Chain33Config, sub []byte)

Init register dapp

func InitExecType

func InitExecType()

InitExecType Init Exec Type

func Key

func Key(txHash string) (key []byte)

Key Storage to save key

func QueryStorage

func QueryStorage(statedb, localdb dbm.KV, txHash string) (*ety.Storage, error)

QueryStorage ...

func QueryStorageByTxHash

func QueryStorageByTxHash(db dbm.KV, txhash string) (*ety.Storage, error)

QueryStorageByTxHash ...

func QueryStorageFromLocalDB

func QueryStorageFromLocalDB(localdb dbm.KV, key string) (*ety.Storage, error)

QueryStorageFromLocalDB 因为table表不支持嵌套多种数据存储结构,改成手动KV存储

Types

type StorageAction

type StorageAction struct {
	// contains filtered or unexported fields
}

StorageAction ...

func (*StorageAction) ContentStorage

func (s *StorageAction) ContentStorage(payload *ety.ContentOnlyNotaryStorage) (*types.Receipt, error)

ContentStorage ...

func (*StorageAction) EncryptAdd added in v1.65.2

func (s *StorageAction) EncryptAdd(payload *ety.EncryptNotaryAdd) (*types.Receipt, error)

EncryptAdd ...

func (*StorageAction) EncryptShareStorage

func (s *StorageAction) EncryptShareStorage(payload *ety.EncryptShareNotaryStorage) (*types.Receipt, error)

EncryptShareStorage ...

func (*StorageAction) EncryptStorage

func (s *StorageAction) EncryptStorage(payload *ety.EncryptNotaryStorage) (*types.Receipt, error)

EncryptStorage ...

func (*StorageAction) GetKVSet

func (s *StorageAction) GetKVSet(payload proto.Message) (kvset []*types.KeyValue)

GetKVSet ...

func (*StorageAction) HashStorage

func (s *StorageAction) HashStorage(payload *ety.HashOnlyNotaryStorage) (*types.Receipt, error)

HashStorage ...

func (*StorageAction) LinkStorage

func (s *StorageAction) LinkStorage(payload *ety.LinkNotaryStorage) (*types.Receipt, error)

LinkStorage ...

Jump to

Keyboard shortcuts

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