Blockchain explorer for Ethereum based network and a tool for inspecting and analyzing EVM based blockchains.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
blockscout/test/support/factories/block_factory.ex

22 lines
450 B

defmodule Explorer.BlockFactory do
defmacro __using__(_opts) do
quote do
def block_factory do
%Explorer.Block{
number: 1,
hash: "0x0",
parent_hash: "0x0",
nonce: "1",
miner: "0x0",
difficulty: 1,
total_difficulty: 1,
size: 0,
gas_limit: 0,
gas_used: 0,
timestamp: DateTime.utc_now,
}
end
end
end
end