|
|
|
@ -7,7 +7,6 @@ defmodule EthereumJSONRPC.Receipt do |
|
|
|
|
import EthereumJSONRPC, only: [quantity_to_integer: 1] |
|
|
|
|
|
|
|
|
|
alias EthereumJSONRPC.Logs |
|
|
|
|
alias Explorer.Chain.Transaction.Status |
|
|
|
|
|
|
|
|
|
@type elixir :: %{String.t() => String.t() | non_neg_integer} |
|
|
|
|
|
|
|
|
@ -39,6 +38,12 @@ defmodule EthereumJSONRPC.Receipt do |
|
|
|
|
| nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@typedoc """ |
|
|
|
|
* `:ok` - transaction succeeded |
|
|
|
|
* `:error` - transaction failed |
|
|
|
|
""" |
|
|
|
|
@type status :: :ok | :error |
|
|
|
|
|
|
|
|
|
@doc """ |
|
|
|
|
Get `t:EthereumJSONRPC.Logs.elixir/0` from `t:elixir/0` |
|
|
|
|
""" |
|
|
|
@ -110,7 +115,7 @@ defmodule EthereumJSONRPC.Receipt do |
|
|
|
|
cumulative_gas_used: non_neg_integer, |
|
|
|
|
gas_used: non_neg_integer, |
|
|
|
|
created_contract_address_hash: String.t() | nil, |
|
|
|
|
status: Status.t(), |
|
|
|
|
status: status(), |
|
|
|
|
transaction_hash: String.t(), |
|
|
|
|
transaction_index: non_neg_integer() |
|
|
|
|
} |
|
|
|
|