package
1.16.0
Repository: https://github.com/synapsecns/sanguine.git
Documentation: pkg.go.dev

# README

Anvil

Anvil is ran as a docker image, with options passed in to the option builder being reflected in the anvil backend.

Notes:

Anything relying on an impersonated account that takes the form eth_getTransactionByHash will not work because geth will always try to recover the v, r, and s values.

# Functions

Dial dials an anvil instance.
ImpersonatedSigner is a signer that does nothing for use in account impersonation w/ contracts.
NewAnvilBackend creates a test anvil backend.
NewAnvilOptionBuilder creates a new option builder.

# Constants

arrowglacier.
Autoremove removes the container when it's finished.
BackendName is the name of the anvil backend.
berlin.
byzantium.
constantinople.
dao.
Failure defines the restart policy for the docker container.
fees.
fifo.
frontier.
grayglacier.
homestead.
istanbul.
latest.
london.
muirglacier.
No defines the restart policy for the docker container.
petersburg.
Restart defines the restart policy for the docker container.
spuriousdragon.
tangerine.
UnlessStopped defines the restart policy for the docker container.

# Structs

Backend contains the anvil test backend.
Client is a client for interacting with anvil.
OptionBuilder is a builder for anvil options.

# Type aliases

Hardfork indicates which chain should be hardforked by foundry see: https://github.com/foundry-rs/foundry/blob/master/anvil/src/hardfork.rs#L94 note: because of the way foundry does alias being incompatible w/ stringer, latest will have the wrong id when passed as an int go:generate go run golang.org/x/tools/cmd/stringer -type=Hardfork -linecomment.
Order is the Order of transactions to use.
RestartPolicy defines the restart policy for the docker container.