evm

package
v0.0.0-...-d1aa88e Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Overview

Package evm implements the E2E tests for the evm module.

Index

Constants

This section is empty.

Variables

Functions

func BasicERC20Test

func BasicERC20Test(ctx context.Context, env *scenario.Env) error

BasicERC20Test does a simple ERC20 contract test.

func BasicSolTest

func BasicSolTest(ctx context.Context, env *scenario.Env) error

BasicSolTest does a simple Solidity contract test.

func BasicSolTestCreateMulti

func BasicSolTestCreateMulti(ctx context.Context, env *scenario.Env) error

BasicSolTestCreateMulti does a test of a contract that creates two contracts.

func BasicTest

func BasicTest(ctx context.Context, env *scenario.Env) error

BasicTest does a simple EVM test.

func C10lBasicERC20Test

func C10lBasicERC20Test(ctx context.Context, env *scenario.Env) error

C10lBasicERC20Test does a simple ERC20 contract test.

func C10lBasicSolTest

func C10lBasicSolTest(ctx context.Context, env *scenario.Env) error

C10lSolTest does a simple Solidity contract test.

func C10lBasicSolTestCreateMulti

func C10lBasicSolTestCreateMulti(ctx context.Context, env *scenario.Env) error

C10lSolTestCreateMulti does a test of a contract that creates two contracts.

func C10lBasicTest

func C10lBasicTest(ctx context.Context, env *scenario.Env) error

C10lBasicTest does a simple EVM test.

func C10lCallSuicideTest

func C10lCallSuicideTest(ctx context.Context, env *scenario.Env) error

C10lCallSuicideTest does a simple call suicide contract test.

func C10lSuicideTest

func C10lSuicideTest(ctx context.Context, env *scenario.Env) error

C10lSuicideTest does a simple suicide contract test.

func CallSuicideTest

func CallSuicideTest(ctx context.Context, env *scenario.Env) error

CallSuicideTest does a simple call suicide contract test.

func DelegationReceiptsTest

func DelegationReceiptsTest(ctx context.Context, env *scenario.Env) error

func DepositWithdrawTest

func DepositWithdrawTest(ctx context.Context, env *scenario.Env) error

DepositWithdrawTest tests deposits and withdrawals.

func EncryptionTest

func EncryptionTest(ctx context.Context, env *scenario.Env) error

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

func EthereumTxTest(ctx context.Context, env *scenario.Env) error

EthereumTxTest tests Ethereum-encoded transaction support.

func KeyDerivationTest

func KeyDerivationTest(ctx context.Context, env *scenario.Env) error

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

func MessageSigningTest(ctx context.Context, env *scenario.Env) error

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

func ParametersTest(ctx context.Context, env *scenario.Env) error

ParametersTest tests parameters methods.

func RNGTest

func RNGTest(ctx context.Context, env *scenario.Env) error

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(ff *oasis.NetworkFixture)

RuntimeFixture prepares the runtime fixture for the EVM tests.

func SubcallDelegationTest

func SubcallDelegationTest(ctx context.Context, env *scenario.Env) error

SubcallDelegationTest performs a delegation from the EVM by using the subcall precompile.

func SubcallRoundRootTest

func SubcallRoundRootTest(ctx context.Context, env *scenario.Env) error

SubcallRoundRootTest performs a runtime round root query from the EVM by using the subcall precompile.

func SuicideTest

func SuicideTest(ctx context.Context, env *scenario.Env) error

SuicideTest does a simple suicide contract test.

Types

This section is empty.

Directories

Path Synopsis
contracts
rng

Jump to

Keyboard shortcuts

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