module

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BlockNumberArg

func BlockNumberArg(blockNumber *big.Int) string

func HexBigRetWrapper

func HexBigRetWrapper(ret **big.Int) any

func HexBytesRetWrapper

func HexBytesRetWrapper(ret *[]byte) any

func HexUint64RetWrapper

func HexUint64RetWrapper(ret *uint64) any

func HexUintRetWrapper

func HexUintRetWrapper(ret *uint) any

Types

type ArgsWrapperFunc

type ArgsWrapperFunc func([]any) ([]any, error)

type Factory

type Factory[T any] struct {
	// contains filtered or unexported fields
}

func NewFactory

func NewFactory[T any](method string, args []any, opts ...Option[T]) *Factory[T]

func (Factory[T]) CreateRequest

func (f Factory[T]) CreateRequest() (rpc.BatchElem, error)

func (Factory[T]) HandleResponse

func (f Factory[T]) HandleResponse(elem rpc.BatchElem) error

func (Factory[T]) Returns

func (f Factory[T]) Returns(ret *T) w3types.RPCCaller

type Option

type Option[T any] func(*Factory[T])

func WithArgsWrapper

func WithArgsWrapper[T any](fn ArgsWrapperFunc) Option[T]

func WithRetWrapper

func WithRetWrapper[T any](fn RetWrapperFunc[T]) Option[T]

type RetWrapperFunc

type RetWrapperFunc[T any] func(*T) any

Jump to

Keyboard shortcuts

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