Documentation
¶
Overview ¶
Package testutil provides internal test helpers, mock implementations, and fixture data for testing synapse-go packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FWSSAddressResolutionResultHex ¶
FWSSAddressResolutionResultHex returns an ABI-encoded Multicall3 aggregate3 result for the FWSS address-resolution calls used by synapse.New tests.
func FWSSAddressResolutionResultHexFor ¶
func FWSSAddressResolutionResultHexFor(t testing.TB, addresses chain.ContractAddresses, filBeamBeneficiary common.Address) string
FWSSAddressResolutionResultHexFor returns an ABI-encoded Multicall3 aggregate3 result for the supplied child-contract addresses.
func MulticallABI ¶ added in v0.6.2
MulticallABI returns the aggregate3 ABI for encoding and inspecting test RPCs.
func PieceCIDv2WithRawSize ¶ added in v0.6.0
PieceCIDv2WithRawSize returns a PieceCIDv2 for v1's root that encodes rawSize. Unlike the PieceCIDv2 constructors, it also encodes sizes below chain.MinUploadSize, which decoders accept but providers reject.
Types ¶
This section is empty.