method_parser

package
v0.0.0-...-e03aae4 Latest Latest
Warning

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

Go to latest
Published: May 6, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseMethodParser

type BaseMethodParser struct {
	ContractType cs.ContractType
	MethodId     string
	// contains filtered or unexported fields
}

func NewBaseMethodParser

func NewBaseMethodParser(ethApiWrapper interfaces.Contract, contractsSnapshot *storage_contract_snapshot.StorageContractSnapshot, contractType cs.ContractType, methodId string) *BaseMethodParser

func (*BaseMethodParser) ContractsSnapshot

func (*BaseMethodParser) EthApiWrapper

func (p *BaseMethodParser) EthApiWrapper() interfaces.Contract

func (*BaseMethodParser) ParseBalanceChangedLogs

func (p *BaseMethodParser) ParseBalanceChangedLogs(balances map[common.Address]*big.Int, contractType cs.ContractType, contractAddress common.Address, rawLogs []*types.Log) error

func (*BaseMethodParser) ParseBalanceLockedLogs

func (p *BaseMethodParser) ParseBalanceLockedLogs(balances map[common.Address]*big.Int, contractType cs.ContractType, contractAddress common.Address, rawLogs []*types.Log) error

func (*BaseMethodParser) ParseBalanceUnLockedLogs

func (p *BaseMethodParser) ParseBalanceUnLockedLogs(balances map[common.Address]*big.Int, contractType cs.ContractType, contractAddress common.Address, rawLogs []*types.Log) error

func (*BaseMethodParser) ParseFeeChargedLogs

func (p *BaseMethodParser) ParseFeeChargedLogs(contractType cs.ContractType, contractAddress common.Address, rawLogs []*types.Log) (res []dto.FeeChargedEvent, err error)

func (*BaseMethodParser) ParseInput

func (p *BaseMethodParser) ParseInput(inputOut interface{}, tx *types.Transaction) (string, error)

func (*BaseMethodParser) ParseLogs

func (p *BaseMethodParser) ParseLogs(contractType cs.ContractType, contractAddress common.Address, eventName dto.EventType, outConstructor func() interface{}, logs []*types.Log) ([]interface{}, error)

func (*BaseMethodParser) ParseSafeTransferApprovalResultLogs

func (p *BaseMethodParser) ParseSafeTransferApprovalResultLogs(contractType cs.ContractType, contractAddress common.Address, rawLogs []*types.Log) (bitbonErrors.Error, error)

func (*BaseMethodParser) ParseTransferExpiredLogs

func (p *BaseMethodParser) ParseTransferExpiredLogs(contractType cs.ContractType, contractAddress common.Address, rawLogs []*types.Log) (res [][]byte, err error)

func (*BaseMethodParser) Sender

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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