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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TrimLeftZeroes added in v0.5.6

func TrimLeftZeroes(hex string) string

Types

type ArbitrumNovaAdapter

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

func NewArbitrumNovaAdapter

func NewArbitrumNovaAdapter(cfg *config.Arbitrum3, 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) GetEtherBalance added in v0.5.6

func (a *ArbitrumNovaAdapter) GetEtherBalance(wallet *common.Address, block uint64) (*big.Int, error)

func (*ArbitrumNovaAdapter) GetEtherLogs added in v0.5.6

func (a *ArbitrumNovaAdapter) GetEtherLogs(fromBlock, toBlock uint64, wallets map[common.Address]bool) ([]harvester.ChangeEtherLog, 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) GetNFTBalance added in v0.5.6

func (a *ArbitrumNovaAdapter) GetNFTBalance(nftContract *common.Address, wallet *common.Address, block uint64) ([]common.Hash, error)

func (*ArbitrumNovaAdapter) GetNFTLogs added in v0.5.6

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

func (*ArbitrumNovaAdapter) GetRawLogs added in v0.5.6

func (a *ArbitrumNovaAdapter) GetRawLogs(
	topic0 *common.Hash,
	topic1 *common.Hash,
	topic2 *common.Hash,
	addresses []common.Address,
	fromBlock *big.Int,
	toBlock *big.Int,
) (replies []types.Log, err error)

func (*ArbitrumNovaAdapter) GetTokenBalance added in v0.5.6

func (a *ArbitrumNovaAdapter) GetTokenBalance(contract *common.Address, wallet *common.Address, blockNumber uint64) (*big.Int, uint64, error)

func (*ArbitrumNovaAdapter) GetTokenLogs added in v0.5.6

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

func (*ArbitrumNovaAdapter) GetTransactionMessage

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

func (*ArbitrumNovaAdapter) RegisterNewBlockListener

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

func (*ArbitrumNovaAdapter) Run

func (a *ArbitrumNovaAdapter) Run()

type TransactionReceipt added in v0.5.6

type TransactionReceipt struct {
	From              string `json:"from"`
	Status            string `json:"status"`
	GasUsed           string `json:"gasUsed"`
	EffectiveGasPrice string `json:"effectiveGasPrice"`
}

Jump to

Keyboard shortcuts

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