Update FetchedBeneficiary typespec

pull/1184/head
William Sanches 6 years ago
parent 8d3d26d140
commit 0a430d9309
No known key found for this signature in database
GPG Key ID: 27250E49FB133014
  1. 11
      apps/ethereum_jsonrpc/lib/ethereum_jsonrpc/fetched_beneficiary.ex

@ -3,6 +3,15 @@ defmodule EthereumJSONRPC.FetchedBeneficiary do
A single balance request params for the beneficiary of a block. A single balance request params for the beneficiary of a block.
""" """
@type params :: %{address_hash: EthereumJSONRPC.hash(), block_number: non_neg_integer()} alias Explorer.Chain.Block.Reward.AddressType
alias Explorer.Chain.Hash
@type params :: %{
address_hash: EthereumJSONRPC.hash(),
address_type: AddressType.t(),
block_hash: Hash.Full.t(),
block_number: non_neg_integer(),
reward: String.t()
}
@type error :: %{code: integer(), message: String.t(), data: %{block_number: non_neg_integer()}} @type error :: %{code: integer(), message: String.t(), data: %{block_number: non_neg_integer()}}
end end

Loading…
Cancel
Save