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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArbitrumNovaAdapter

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

func NewArbitrumNovaAdapter

func NewArbitrumNovaAdapter(cfg *config.Config, logger *zap.SugaredLogger) *ArbitrumNovaAdapter

func (*ArbitrumNovaAdapter) DecodeTransactionInputData

func (a *ArbitrumNovaAdapter) 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 (*ArbitrumNovaAdapter) FilterLogs

func (a *ArbitrumNovaAdapter) FilterLogs(ctx context.Context, q ethereum.FilterQuery) ([]types.Log, error)

func (*ArbitrumNovaAdapter) GetBalance

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

func (*ArbitrumNovaAdapter) GetInfo

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

func (*ArbitrumNovaAdapter) GetLastBlockNumber

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

func (*ArbitrumNovaAdapter) GetLogs

func (a *ArbitrumNovaAdapter) GetLogs(fromBlock, toBlock int64, contracts []common.Address) ([]any, error)

func (*ArbitrumNovaAdapter) GetLogsRecursively

func (a *ArbitrumNovaAdapter) GetLogsRecursively(fromBlock, toBlock int64, contracts []common.Address, level int) ([]any, error)

func (*ArbitrumNovaAdapter) GetTransactionMessage

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

func (*ArbitrumNovaAdapter) RegisterNewBlockListener

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

func (*ArbitrumNovaAdapter) Run

func (a *ArbitrumNovaAdapter) Run()

type Contracts

type Contracts struct {
	TokenABI abi.ABI
	StakeABI abi.ABI
	NftABI   abi.ABI

	AllAddresses []common.Address
	// contains filtered or unexported fields
}

func NewContracts

func NewContracts(cfg *config.Arbitrum) *Contracts

Jump to

Keyboard shortcuts

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