Module solana_evm_loader_program::scope::evm[][src]

Modules

error
persist_old
secp256k1

Secp256k1

transactions
types

Structs

Account
AccountState
Address

Fixed-size uninterpreted hash type with 20 bytes (160 bits) size.

Block
BlockHeader
Bloom

Bloom hash type with 256 bytes (2048 bits) size.

ChainContext

Represents some chain context, that should be emulated for EVM based application proper works.

Code
Committed
Config

Runtime configuration.

Context

Context of the runtime.

EvmBackend
EvmConfig

Config of evm chain. This type is written to genesis config, and can be updated in future releases

ExecutionResult
Executor
H64
H160

Fixed-size uninterpreted hash type with 20 bytes (160 bits) size.

H256

Fixed-size uninterpreted hash type with 32 bytes (256 bits) size.

Incomming
Log
LogFilter
LogWithLocation
MemoryAccount

Account information of a memory backend.

MemoryVicinity

Vivinity value of a memory backend.

PublicKey

A Secp256k1 public key, used for verification of signatures

SecretKey

Secret 256-bit key used as x in an ECDSA signature

StackExecutor

Stack-based executor.

Storage
Transaction

Etherium transaction.

TransactionReceipt
TransactionSignature
Transfer

Transfer from source to target, with given value.

U256

Little-endian large integer type

UnsignedTransaction
UnsignedTransactionWithCaller

Enums

Apply

Apply state operation.

BlockVersion

Blocks versions.

EvmPersistState
EvmState
ExitError

Exit error reason.

ExitFatal

Exit fatal reason.

ExitReason

Exit reason.

ExitRevert

Exit revert reason.

ExitSucceed

Exit succeed reason.

LogFilterTopicEntry
Maybe
TransactionAction
TransactionInReceipt

Constants

DEFAULT_GAS_LIMIT
HELLO_WORLD_ABI
HELLO_WORLD_CODE
HELLO_WORLD_CODE_SAVED
HELLO_WORLD_RESULT
LAMPORTS_TO_GWEI_PRICE
MAX_IN_MEMORY_EVM_ACCOUNTS

Dont load to many account to memory, to avoid OOM.

MAX_TX_LEN
TEST_CHAIN_ID
TX_MTU

Statics

SECP256K1

A global, static context to avoid repeatedly creating contexts where one can’t be passed

Traits

AccountProvider
ApplyBackend

EVM backend that can apply changes.

Backend

EVM backend.

FromKey
Handler

EVM context handler.

Functions

addr_from_public_key
empty_ommers_hash
empty_trie_hash

Get the empty trie hash for merkle trie.

gweis_to_lamports
lamports_to_gwei

Type Definitions

Address
BlockNum
Gas
PrecompileCallResult

Exit result, if succeed, returns ExitSucceed - info about execution, Vec - output data, u64 - gas cost