eip712

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 28 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FuzzTestParams

type FuzzTestParams struct {
	// contains filtered or unexported fields
}

type TestParams

type TestParams struct {
	// contains filtered or unexported fields
}

type TestSuite

type TestSuite struct {
	suite.Suite
	// contains filtered or unexported fields
}

func NewTestSuite

func NewTestSuite(create network.CreateEvmApp, useLegacyEIP712TypedData bool, options ...network.ConfigOption) *TestSuite

func (*TestSuite) SetupTest

func (s *TestSuite) SetupTest()

func (*TestSuite) TestEIP712

func (s *TestSuite) TestEIP712()

func (*TestSuite) TestFlattenPayloadErrorHandling

func (s *TestSuite) TestFlattenPayloadErrorHandling()

TestFlattenPayloadErrorHandling tests error handling in TypedData generation, specifically regarding the payload.

func (*TestSuite) TestRandomPayloadFlattening

func (s *TestSuite) TestRandomPayloadFlattening()

TestRandomPayloadFlattening generates many random payloads with different JSON values to ensure that Flattening works across all inputs. Note that this is a fuzz test, although it doesn't use Go's Fuzz testing suite, since there are variable input sizes, types, and fields. While it may be possible to translate a single input into a JSON object, it would require difficult parsing, and ultimately approximates our randomized unit tests as they are.

func (*TestSuite) TestTypedDataEdgeCases

func (s *TestSuite) TestTypedDataEdgeCases()

TestTypedDataEdgeCases tests certain interesting edge cases to ensure that they work (or don't work) as expected.

func (*TestSuite) TestTypedDataErrorHandling

func (s *TestSuite) TestTypedDataErrorHandling()

TestTypedDataErrorHandling tests error handling for TypedData generation in the main algorithm.

func (*TestSuite) TestTypedDataGeneration

func (s *TestSuite) TestTypedDataGeneration()

TestTypedDataGeneration tests certain qualities about the output Types representation.

Jump to

Keyboard shortcuts

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