address

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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TableName = "address"
	KeyPrefix = TableName + "-"
)
View Source
const (
	AccountPersonage = "personage"
	AccountContract  = "contract"
)
View Source
const Mapping = `` /* 260-byte string literal not displayed */

Mapping 合约验证表

Variables

This section is empty.

Functions

func AddKeyPrefix

func AddKeyPrefix(hash string) string

AddKeyPrefix 添加索引前缀

func Init

func Init(client escli.ESClient) error

func InitESDB

func InitESDB(cli db.DBCreator) error

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

Types

type Address

type Address struct {
	Address          string `json:"address"`
	TxCount          int64  `json:"tx_count"`
	EvmTransferCount int64  `json:"evm_transfer_count"`
	AddrType         string `json:"addr_type"`
}

Address 地址

func (*Address) Key

func (c *Address) Key() string

type DB

type DB interface {
	Get(addr string) (*Address, error)
	AddTxCount(op int, addr string) (*Address, error)
	AddEvmTransferCount(op int, addr string) (*Address, error)
}
var Manager DB

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 *Address) *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