txanalyzer

package
v0.0.0-...-0c526e4 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SplitEventArguments

func SplitEventArguments(args abi.Arguments) (abi.Arguments, abi.Arguments)

Types

type AddressDatabase

type AddressDatabase interface {
	GetName(addr string) string
}

type AddressResult

type AddressResult struct {
	Address string
	Name    string
}

type DefaultAddressDatabase

type DefaultAddressDatabase struct {
	Data map[common.Address]string
}

func NewDefaultAddressDatabase

func NewDefaultAddressDatabase() *DefaultAddressDatabase

func (*DefaultAddressDatabase) GetName

func (self *DefaultAddressDatabase) GetName(addr string) string

func (*DefaultAddressDatabase) Register

func (self *DefaultAddressDatabase) Register(addr string, name string)

type GnosisResult

type GnosisResult struct {
	Contract AddressResult
	Method   string
	Params   []ParamResult
}

type LogResult

type LogResult struct {
	Name   string
	Topics []TopicResult
	Data   []ParamResult
}

type ParamResult

type ParamResult struct {
	Name  string
	Type  string
	Value string
}

type TopicResult

type TopicResult struct {
	Name  string
	Value string
}

type TxAnalyzer

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

func NewAnalyzer

func NewAnalyzer() *TxAnalyzer

func NewRopstenAnalyzer

func NewRopstenAnalyzer() *TxAnalyzer

func (*TxAnalyzer) Analyze

func (self *TxAnalyzer) Analyze(tx string) *TxResult

print all info on the tx

func (*TxAnalyzer) SetAddressDatabase

func (self *TxAnalyzer) SetAddressDatabase(db AddressDatabase)

type TxResult

type TxResult struct {
	Hash     string
	Status   string
	From     AddressResult
	Value    string
	To       AddressResult
	Nonce    string
	GasPrice string
	GasLimit string
	TxType   string

	Contract AddressResult
	Method   string
	Params   []ParamResult
	Logs     []LogResult

	GnosisInit *GnosisResult

	Completed bool
	Error     string
}

func NewTxResult

func NewTxResult() *TxResult

func (*TxResult) Print

func (self *TxResult) Print(writer io.Writer)

Jump to

Keyboard shortcuts

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