Documentation
¶
Index ¶
- Variables
- func AllowListConfigEqualTests(t testing.TB, module modules.Module) map[string]precompiletest.ConfigEqualTest
- func AllowListConfigVerifyTests(t testing.TB, module modules.Module) map[string]precompiletest.ConfigVerifyTest
- func AllowListTests(t testing.TB, module modules.Module) map[string]precompiletest.PrecompileTest
- func BenchPrecompileWithAllowList(b *testing.B, module modules.Module, ...)
- func EqualPrecompileWithAllowListTests(t *testing.T, module modules.Module, ...)
- func RunPrecompileWithAllowListTests(t *testing.T, module modules.Module, ...)
- func SetDefaultRoles(contractAddress common.Address) func(t testing.TB, state contract.StateDB)
- func VerifyPrecompileWithAllowListTests(t *testing.T, module modules.Module, ...)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TestAdminAddr = common.HexToAddress("0x0000000000000000000000000000000000000011") TestEnabledAddr = common.HexToAddress("0x0000000000000000000000000000000000000022") TestNoRoleAddr = common.HexToAddress("0x0000000000000000000000000000000000000033") TestManagerAddr = common.HexToAddress("0x0000000000000000000000000000000000000044") )
Functions ¶
func AllowListConfigEqualTests ¶
func AllowListConfigEqualTests(t testing.TB, module modules.Module) map[string]precompiletest.ConfigEqualTest
func AllowListConfigVerifyTests ¶
func AllowListConfigVerifyTests(t testing.TB, module modules.Module) map[string]precompiletest.ConfigVerifyTest
func AllowListTests ¶
func AllowListTests(t testing.TB, module modules.Module) map[string]precompiletest.PrecompileTest
func EqualPrecompileWithAllowListTests ¶
func EqualPrecompileWithAllowListTests(t *testing.T, module modules.Module, equalTests map[string]precompiletest.ConfigEqualTest)
func SetDefaultRoles ¶
SetDefaultRoles returns a BeforeHook that sets roles TestAdminAddr and TestEnabledAddr to have the AdminRole and EnabledRole respectively.
func VerifyPrecompileWithAllowListTests ¶
func VerifyPrecompileWithAllowListTests(t *testing.T, module modules.Module, verifyTests map[string]precompiletest.ConfigVerifyTest)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.