-module(gleeth@ethereum@types). -compile([no_auto_import, nowarn_unused_vars, nowarn_unused_function, nowarn_nomatch, inline]). -define(FILEPATH, "src/gleeth/ethereum/types.gleam"). -export_type([gas_estimate_transaction/0, transaction_status/0, log/0, log_filter/0, transaction_receipt/0, block/0, transaction/0, balance/0, fee_history/0]). -if(?OTP_RELEASE >= 27). -define(MODULEDOC(Str), -moduledoc(Str)). -define(DOC(Str), -doc(Str)). -else. -define(MODULEDOC(Str), -compile([])). -define(DOC(Str), -compile([])). -endif. ?MODULEDOC( " Ethereum domain types used throughout gleeth.\n" "\n" " Most types are hex-encoded string aliases (addresses, hashes, wei values)\n" " matching how the JSON-RPC API represents them. Structured types like\n" " `Transaction`, `TransactionReceipt`, and `Log` are decoded from RPC\n" " responses by the `methods` module.\n" ). -type gas_estimate_transaction() :: {gas_estimate_transaction, binary(), binary(), binary(), binary()}. -type transaction_status() :: success | failed. -type log() :: {log, binary(), list(binary()), binary(), binary(), binary(), binary(), binary(), binary(), boolean()}. -type log_filter() :: {log_filter, binary(), binary(), binary(), list(binary())}. -type transaction_receipt() :: {transaction_receipt, binary(), binary(), binary(), binary(), binary(), binary(), binary(), binary(), binary(), list(log()), binary(), transaction_status(), binary()}. -type block() :: {block, binary(), binary(), binary(), binary(), binary(), binary(), list(binary())}. -type transaction() :: {transaction, binary(), binary(), binary(), binary(), binary(), binary(), binary(), binary(), binary(), binary(), binary(), binary(), binary(), binary(), binary(), binary(), binary(), binary()}. -type balance() :: {balance, binary(), binary()}. -type fee_history() :: {fee_history, binary(), list(binary()), list(float()), list(list(binary()))}.