Documentation
¶
Index ¶
- Variables
- func AllowListConfigEqualTests(_ testing.TB, module modules.Module) map[string]precompiletest.ConfigEqualTest
- func AllowListConfigVerifyTests(t testing.TB, module modules.Module) map[string]precompiletest.ConfigVerifyTest
- func AllowListTests(_ testing.TB, module modules.Module) []precompiletest.PrecompileTest
- func EqualPrecompileWithAllowListTests(t *testing.T, module modules.Module, ...)
- func RunPrecompileWithAllowListTests(t *testing.T, module modules.Module, tests []precompiletest.PrecompileTest)
- func SetDefaultRoles(contractAddress common.Address) func(t testing.TB, state *extstate.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(_ 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(_ testing.TB, module modules.Module) []precompiletest.PrecompileTest
func EqualPrecompileWithAllowListTests ¶
func EqualPrecompileWithAllowListTests(t *testing.T, module modules.Module, equalTests map[string]precompiletest.ConfigEqualTest)
func RunPrecompileWithAllowListTests ¶
func RunPrecompileWithAllowListTests(t *testing.T, module modules.Module, tests []precompiletest.PrecompileTest)
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.