services

package
v0.0.0-...-92d349b Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BaseFeeFromBlock

func BaseFeeFromBlock() (uint64, error)

func CheckTxPoolContent

func CheckTxPoolContent(expectedPendingSize, expectedQueuedSize, expectedBaseFeeSize int)

func CreateManyEIP1559TransactionsRefWithBaseFee

func CreateManyEIP1559TransactionsRefWithBaseFee(addr string, startingNonce *uint64) ([]*types.Transaction, []*types.Transaction, error)

func CreateManyEIP1559TransactionsRefWithBaseFee2

func CreateManyEIP1559TransactionsRefWithBaseFee2(addr string, startingNonce *uint64) ([]*types.Transaction, []*types.Transaction, error)

func CreateTransaction

func CreateTransaction(txType models.TransactionType, addr string, value, nonce uint64) (*types.Transaction, libcommon.Address, *contracts.Subscription, *bind.TransactOpts, error)

CreateTransaction creates a transaction depending on the type of transaction being passed

func EmitFallbackEvent

func EmitFallbackEvent(subContract *contracts.Subscription, opts *bind.TransactOpts) (*libcommon.Hash, error)

EmitFallbackEvent emits an event from the contract using the fallback method

func GetNonce

func GetNonce(reqId int, address libcommon.Address) (uint64, error)

func InitSubscriptions

func InitSubscriptions(methods []models.SubMethod)

func SearchReservesForTransactionHash

func SearchReservesForTransactionHash(hashes map[libcommon.Hash]bool) (*map[libcommon.Hash]string, error)

func SendManyTransactions

func SendManyTransactions(signedTransactions []*types.Transaction) ([]*libcommon.Hash, error)

func UnsubscribeAll

func UnsubscribeAll()

UnsubscribeAll closes all the client subscriptions and empties their global subscription channel

Types

This section is empty.

Jump to

Keyboard shortcuts

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