Documentation
¶
Overview ¶
Package evm implements the E2E tests for the evm module.
Index ¶
- Variables
- func BasicERC20Test(ctx context.Context, env *scenario.Env) error
- func BasicSolTest(ctx context.Context, env *scenario.Env) error
- func BasicSolTestCreateMulti(ctx context.Context, env *scenario.Env) error
- func BasicTest(ctx context.Context, env *scenario.Env) error
- func C10lBasicERC20Test(ctx context.Context, env *scenario.Env) error
- func C10lBasicSolTest(ctx context.Context, env *scenario.Env) error
- func C10lBasicSolTestCreateMulti(ctx context.Context, env *scenario.Env) error
- func C10lBasicTest(ctx context.Context, env *scenario.Env) error
- func C10lCallSuicideTest(ctx context.Context, env *scenario.Env) error
- func C10lSuicideTest(ctx context.Context, env *scenario.Env) error
- func CallSuicideTest(ctx context.Context, env *scenario.Env) error
- func DelegationReceiptsTest(ctx context.Context, env *scenario.Env) error
- func DepositWithdrawTest(ctx context.Context, env *scenario.Env) error
- func EncryptionTest(ctx context.Context, env *scenario.Env) error
- func EthereumTxTest(ctx context.Context, env *scenario.Env) error
- func KeyDerivationTest(ctx context.Context, env *scenario.Env) error
- func MessageSigningTest(ctx context.Context, env *scenario.Env) error
- func ParametersTest(ctx context.Context, env *scenario.Env) error
- func RNGTest(ctx context.Context, env *scenario.Env) error
- func RuntimeFixture(_ *scenario.RuntimeScenario, ff *oasis.NetworkFixture)
- func SubcallDelegationTest(ctx context.Context, env *scenario.Env) error
- func SubcallRoundRootTest(ctx context.Context, env *scenario.Env) error
- func SuicideTest(ctx context.Context, env *scenario.Env) error
Constants ¶
This section is empty.
Variables ¶
var ( // PlainRuntime is the non-confidential EVM module test. PlainRuntime = scenario.NewRuntimeScenario("test-runtime-simple-evm", []scenario.RunTestFunction{ DepositWithdrawTest, BasicTest, BasicSolTest, BasicSolTestCreateMulti, BasicERC20Test, SuicideTest, CallSuicideTest, SubcallDelegationTest, DelegationReceiptsTest, ParametersTest, SubcallRoundRootTest, EthereumTxTest, }, scenario.WithCustomFixture(RuntimeFixture)) // C10lRuntime is the confidential EVM module test. C10lRuntime = scenario.NewRuntimeScenario("test-runtime-c10l-evm", []scenario.RunTestFunction{ DepositWithdrawTest, C10lBasicTest, C10lBasicSolTest, C10lBasicSolTestCreateMulti, C10lBasicERC20Test, C10lSuicideTest, C10lCallSuicideTest, KeyDerivationTest, EncryptionTest, RNGTest, MessageSigningTest, ParametersTest, EthereumTxTest, }, scenario.WithCustomFixture(RuntimeFixture)) )
Functions ¶
func BasicERC20Test ¶
BasicERC20Test does a simple ERC20 contract test.
func BasicSolTest ¶
BasicSolTest does a simple Solidity contract test.
func BasicSolTestCreateMulti ¶
BasicSolTestCreateMulti does a test of a contract that creates two contracts.
func C10lBasicERC20Test ¶
C10lBasicERC20Test does a simple ERC20 contract test.
func C10lBasicSolTest ¶
C10lSolTest does a simple Solidity contract test.
func C10lBasicSolTestCreateMulti ¶
C10lSolTestCreateMulti does a test of a contract that creates two contracts.
func C10lBasicTest ¶
C10lBasicTest does a simple EVM test.
func C10lCallSuicideTest ¶
C10lCallSuicideTest does a simple call suicide contract test.
func C10lSuicideTest ¶
C10lSuicideTest does a simple suicide contract test.
func CallSuicideTest ¶
CallSuicideTest does a simple call suicide contract test.
func DelegationReceiptsTest ¶
func DepositWithdrawTest ¶
DepositWithdrawTest tests deposits and withdrawals.
func EncryptionTest ¶
EncryptionTest does a simple evm encryption precompile test.
Note that this test will only work with a confidential runtime because it needs the confidential precompiles.
func EthereumTxTest ¶
EthereumTxTest tests Ethereum-encoded transaction support.
func KeyDerivationTest ¶
KeyDerivationTest does a simple evm x25519 key derivation precompile test.
Note that this test will only work with a confidential runtime because it needs the confidential precompiles.
func MessageSigningTest ¶
MessageSigningTest does a simple evm key generation and signing precompile test.
Note that this test will only work with a confidential runtime because it needs the confidential precompiles.
func ParametersTest ¶
ParametersTest tests parameters methods.
func RNGTest ¶
RNGTest exercises the RNG precompile.
Note that this test will only work with a confidential runtime because it needs the confidential precompiles.
func RuntimeFixture ¶
func RuntimeFixture(_ *scenario.RuntimeScenario, ff *oasis.NetworkFixture)
RuntimeFixture prepares the runtime fixture for the EVM tests.
func SubcallDelegationTest ¶
SubcallDelegationTest performs a delegation from the EVM by using the subcall precompile.
func SubcallRoundRootTest ¶
SubcallRoundRootTest performs a runtime round root query from the EVM by using the subcall precompile.
Types ¶
This section is empty.