evm v0.1.14 EVM.Interface.AccountInterface protocol

Interface for interacting with accounts.

Link to this section Summary

Link to this section Types

Link to this type t()
t() :: module

Link to this section Functions

Link to this function account_exists?(t, address)
account_exists?(t, EVM.address) :: boolean
Link to this function add_wei(t, address, value)
add_wei(t, EVM.address, integer) :: nil | EVM.Wei.t
Link to this function create_contract(t, sender, originator, available_gas, gas_price, endowment, init_code, stack_depth, block_header)
Link to this function dump_storage(t)
dump_storage(t) :: %{optional(EVM.address) => EVM.val}
Link to this function get_account_balance(t, address)
get_account_balance(t, EVM.address) :: nil | EVM.Wei.t
Link to this function get_account_code(t, address)
get_account_code(t, EVM.address) :: nil | binary
Link to this function get_account_nonce(mock_account_interface, address)
get_account_nonce(EVM.Interface.AccountInterface.t, EVM.address) :: integer
Link to this function get_storage(t, address, key)
get_storage(t, EVM.address, integer) ::
  {:ok, integer} |
  :account_not_found |
  :key_not_found
Link to this function increment_account_nonce(t, address)
increment_account_nonce(t, EVM.address) :: t
Link to this function message_call(t, sender, originator, recipient, contract, available_gas, gas_price, value, apparent_value, data, stack_depth, block_header)
Link to this function new_contract_address(t, address, nonce)
new_contract_address(t, EVM.address, integer) :: EVM.address
Link to this function put_storage(t, address, key, value)
put_storage(t, EVM.address, integer, integer) :: t
Link to this function suicide_account(t, address)
suicide_account(t, EVM.address) :: t
Link to this function transfer(t, from, to, value)
transfer(t, EVM.address, EVM.address, integer) ::
  nil |
  EVM.Wei.t