   end
 
   def address_factory do
-    %Addresses.Address{
+    %Address{
       address: sequence("hash"),
-      tx_ids: %{ sequence("txhash") => %{
+      histories: %{ sequence("txhash") => %{
         "txid" => sequence("txhash"),
         "balance" => %{
           sequence("assethash") => %{

  end

  def transaction_factory do
    %Transactions.Transaction{
      attributes: [%{sequence("attributehash") => sequence("attributeinnerhash")}],
      net_fee: "0",
      scripts: [%{sequence("scripthash") => sequence("scriptinnerhash")}],

defmodule Neoscan.Factory do
  # with Ecto
  use ExMachina.Ecto, repo: Neoscan.Repo
  alias Neoscan.Addresses.Address
  alias Neoscan.Transactions.Transaction
  alias Neoscan.Blocks.Block
  alias Neoscan.Transactions.Vout


  def block_factory do
    %Block{
      confirmations: 50,
      hash: sequence("blockhash"),
      index: 05,
