ethereum_adapter

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapToJson

func MapToJson(param map[string]interface{}) string

Types

type EthereumAdapter

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

func NewEthereumAdapter

func NewEthereumAdapter() *EthereumAdapter

func (*EthereumAdapter) DecodeTransactionInputData

func (a *EthereumAdapter) DecodeTransactionInputData(contractABI *abi.ABI, data []byte) (string, map[string]any, error)

refer https://github.com/ethereum/web3.py/blob/master/web3/contract.py#L435

func (*EthereumAdapter) GetBalance

func (a *EthereumAdapter) GetBalance(wallet string, contract string, blockNumber uint64) (*big.Int, error)

func (*EthereumAdapter) GetInfo

func (a *EthereumAdapter) GetInfo() (umid umid.UMID, name string, rpcURL string)

func (*EthereumAdapter) GetLastBlockNumber

func (a *EthereumAdapter) GetLastBlockNumber() (uint64, error)

func (*EthereumAdapter) GetLogs

func (a *EthereumAdapter) GetLogs(fromBlock, toBlock int64, addresses []common.Address) ([]*contracter.BCDiff, []*contracter.BCStake, error)

func (*EthereumAdapter) GetTransactionMessage

func (a *EthereumAdapter) GetTransactionMessage(tx *types.Transaction) *core.Message

func (*EthereumAdapter) RegisterNewBlockListener

func (a *EthereumAdapter) RegisterNewBlockListener(f contracter.AdapterListener)

func (*EthereumAdapter) Run

func (a *EthereumAdapter) Run()

Jump to

Keyboard shortcuts

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