contractverify

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TableName = "contract_verify"
	KeyPrefix = TableName + "-"
)
View Source
const Mapping = `` /* 512-byte string literal not displayed */

Mapping 合约验证表

Variables

This section is empty.

Functions

func AddKeyPrefix

func AddKeyPrefix(hash string) string

AddKeyPrefix 添加索引前缀

func InitESDB

func InitESDB(cli db.DBCreator) error

InitESDB 创建db (插件满足接口 db.ExecConvert)

Types

type ContractVerify

type ContractVerify struct {
	ContractBinHash string `json:"contract_bin_hash"`
	ContractBin     string `json:"contract_bin"`
	ContractAbi     string `json:"contract_abi"`
	ContractType    string `json:"contract_type"`
	CompileType     string `json:"compile_type"`
	CompileVersion  string `json:"compile_version"`
}

func (*ContractVerify) GetContractBinHash

func (c *ContractVerify) GetContractBinHash() string

func (*ContractVerify) Key

func (c *ContractVerify) Key() string

type DB

type DB interface {
	Get(hash string) (*ContractVerify, error)
	Set(r *Record) error
}

DB operate FilePart

func NewEsDB

func NewEsDB(client db.WrapDB) DB

NewEsDB new es DB

type Record

type Record struct {
	*db.IKey
	*db.Op
	// contains filtered or unexported fields
}

Record es record

func NewRecord

func NewRecord(op int, value *ContractVerify) *Record

NewRecord new RecordFilePart

func (*Record) Value

func (r *Record) Value() []byte

Value value

Jump to

Keyboard shortcuts

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