evm

package module
v1.0.11-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: AGPL-3.0 Imports: 28 Imported by: 0 modules, 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 MemoryToken = make(map[string]models.TokenData)
View Source
var ScanJobs map[string]bool
View Source
var TokenLists = make(map[string]models.TokenInfo)

Functions

This section is empty.

Types

type AbiParser

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

func NewAbiParser

func NewAbiParser(client lib.MongoConnect) *AbiParser

func (AbiParser) GetAbi

func (abi AbiParser) GetAbi(chain int, address common.Address) (string, error)

func (AbiParser) GetAbiBsc

func (abi AbiParser) GetAbiBsc(addr common.Address) *models.AbiResponse

func (AbiParser) GetAbiEth

func (abi AbiParser) GetAbiEth(addr common.Address) *models.AbiResponse

func (AbiParser) GetAbiEthBase

func (abi AbiParser) GetAbiEthBase(uri string, addr common.Address) *models.AbiResponse

func (AbiParser) GetAbiPolygon

func (abi AbiParser) GetAbiPolygon(addr common.Address) *models.AbiResponse

type Contract

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

func NewContract

func NewContract(address common.Address, cli *ethclient.Client, chain int) *Contract

func (*Contract) Call

func (cn *Contract) Call(name string, args ...interface{}) interface{}

func (*Contract) GetType

func (cn *Contract) GetType() string

func (*Contract) InitContract

func (cn *Contract) InitContract() *abi.ABI

func (*Contract) IsAbi

func (cn *Contract) IsAbi() bool

type ParseNft

type ParseNft struct {
}

func NewNft

func NewNft() *ParseNft

type ScanParse

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

func NewScanParse

func NewScanParse() *ScanParse

func (ScanParse) AddressDataParse

func (tp ScanParse) AddressDataParse(doc soup.Root, address string)

func (ScanParse) GetAddress

func (tp ScanParse) GetAddress(address string)

func (ScanParse) GetCoin

func (tp ScanParse) GetCoin(address string) (string, string, map[string]string, string, []string)

func (ScanParse) GoAddress

func (tp ScanParse) GoAddress(address string)

func (ScanParse) Worker

func (tp ScanParse) Worker()

type TokenParse

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

func NewTokenParse

func NewTokenParse(contract *abi.ABI, contractParser *Contract, chain int, is_base bool) *TokenParse

func (*TokenParse) InitToken

func (tk *TokenParse) InitToken() *models.TokenInfo

func (*TokenParse) ParseWithPrice

func (tk *TokenParse) ParseWithPrice() *models.TokenData

type TransactionParse

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

func NewTransactionParse

func NewTransactionParse(receipt *types.Receipt, trans *types.Transaction, chain int, cli *ethclient.Client, mongo *mongo.Client) *TransactionParse

func (*TransactionParse) Parse

func (t *TransactionParse) Parse() models.Transaction

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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