Documentation
¶
Index ¶
- func NewForked(lgr log.Logger, rpcURL string, anvilOpts ...AnvilOption) (*Anvil, CleanupFunc, error)
- func NewForkedSepolia(lgr log.Logger) (*Anvil, CleanupFunc, error)
- func NewMockPreStateBuilder(opts ...mockPreStateBuilderOption) *mockPreStateBuilder
- func WithBuildPrestate(...) mockPreStateBuilderOption
- type Anvil
- type AnvilOption
- type CleanupFunc
- type Option
- type RetryProxy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewForked ¶
func NewForked(lgr log.Logger, rpcURL string, anvilOpts ...AnvilOption) (*Anvil, CleanupFunc, error)
func NewForkedSepolia ¶
func NewForkedSepolia(lgr log.Logger) (*Anvil, CleanupFunc, error)
func NewMockPreStateBuilder ¶ added in v1.13.0
func NewMockPreStateBuilder(opts ...mockPreStateBuilderOption) *mockPreStateBuilder
func WithBuildPrestate ¶ added in v1.13.0
func WithBuildPrestate(buildPrestate func(ctx context.Context, opts ...prestate.PrestateBuilderOption) (prestate.PrestateManifest, error)) mockPreStateBuilderOption
Types ¶
type AnvilOption ¶
type AnvilOption func(*Anvil)
func WithBaseFee ¶
func WithBaseFee(baseFee uint64) AnvilOption
func WithBlockTime ¶
func WithBlockTime(bt int) AnvilOption
func WithChainID ¶
func WithChainID(id uint64) AnvilOption
func WithForkURL ¶
func WithForkURL(url string) AnvilOption
type CleanupFunc ¶
type CleanupFunc func() error
type Option ¶
type Option func(*RetryProxy)
type RetryProxy ¶
type RetryProxy struct {
// contains filtered or unexported fields
}
func NewRetryProxy ¶
func NewRetryProxy(lgr log.Logger, upstream string, opts ...Option) *RetryProxy
func (*RetryProxy) Endpoint ¶
func (p *RetryProxy) Endpoint() string
func (*RetryProxy) ServeHTTP ¶
func (p *RetryProxy) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*RetryProxy) Start ¶
func (p *RetryProxy) Start() error
func (*RetryProxy) Stop ¶
func (p *RetryProxy) Stop() error
Click to show internal directories.
Click to hide internal directories.