export const binaryDataHf26Vote = [
  {
    "children": undefined,
    "key": "ref_block_num",
    "length": undefined,
    "offset": 0,
    "size": 2,
    "type": "scalar",
    "value": "19260"
  },
  {
    "children": undefined,
    "key": "ref_block_prefix",
    "length": undefined,
    "offset": 2,
    "size": 4,
    "type": "scalar",
    "value": "2140466769"
  },
  {
    "children": undefined,
    "key": "expiration",
    "length": undefined,
    "offset": 6,
    "size": 4,
    "type": "scalar",
    "value": "2016-09-15T19:47:33"
  },
  {
    "children": [
      {
      "children": [
        {
          "children": undefined,
          "key": "type",
          "length": undefined,
          "offset": 11,
          "size": 1,
          "type": "scalar",
          "value": "vote_operation"
        },
        {
          "children": [
            {
              "children": undefined,
              "key": "voter",
              "length": undefined,
              "offset": 12,
              "size": 11,
              "type": "scalar",
              "value": "taoteh1221",
            },
            {
              "children": undefined,
              "key": "author",
              "length": undefined,
              "offset": 23,
              "size": 11,
              "type": "scalar",
              "value": "ozchartart",
            },
            {
              "children": undefined,
              "key": "permlink",
              "length": undefined,
              "offset": 34,
              "size": 128,
              "type": "scalar",
              "value": "usdsteem-btc-daily-poloniex-bittrex-technical-analysis-market-report-update-46-glass-half-full-but-the-bottle-s-left-empty-sept",
            },
            {
              "children": undefined,
              "key": "weight",
              "length": undefined,
              "offset": 162,
              "size": 2,
              "type": "scalar",
              "value": "10000"
            }
          ],
          "key": "value",
          "length": undefined,
          "offset": 12,
          "size": 152,
          "type": "object",
          "value": ""
        }
      ],
      "key": "0",
      "length": undefined,
      "offset": 11,
      "size": 153,
      "type": "object",
      "value": ""
    }
    ],
    "key": "operations",
    "length": 1,
    "offset": 10,
    "size": 154,
    "type": "array",
    "value": "Length: 1"
  },
  {
    "children": [{
      "children": [
        {
          "children": undefined,
          "key": "type",
          "length": undefined,
          "offset": 165,
          "size": 1,
          "type": "scalar",
          "value": "void_t"
        },
        {
          "children": [],
          "key": "value",
          "length": undefined,
          "offset": 166,
          "size": 0,
          "type": "object",
          "value": ""
        }
      ],
      "key": "0",
      "length": undefined,
      "offset": 165,
      "size": 1,
      "type": "object",
      "value": ""
    }],
    "key": "extensions",
    "length": 1,
    "offset": 164,
    "size": 2,
    "type": "array",
    "value": "Length: 1"
  },
  {
    "children": [
      {
        "children": undefined,
        "key": "0",
        "length": undefined,
        "offset": 167,
        "size": 65,
        "type": "scalar",
        "value": "202bd7ff67ba97db6b5fecb389ca279e0c98db9a49fd9f49acea63ea523ed35ac602933e9bbb0916b6ee137b5550cbe1ae4594c52a27d1505b1adb53f8b37d3fb3"
      }
    ],
    "key": "signatures",
    "length": 1,
    "offset": 166,
    "size": 66,
    "type": "array",
    "value": "Length: 1"
  }
];

const binaryDataHf26TransferOperationBase = (offset = 0) => ([
  {
    "key": "type",
    "type": "scalar",
    "length": undefined,
    "children": undefined,
    "offset": 0 + offset,
    "size": 1,
    "value": "transfer_operation"
  },
  {
    "key": "value",
    "type": "object",
    "length": undefined,
    "offset": 1 + offset,
    "size": 61,
    "value": "",
    "children": [
      {
        "key": "from",
        "type": "scalar",
        "length": undefined,
        "children": undefined,
        "offset": 1 + offset,
        "size": 9,
        "value": "oneplus7"
      },
      {
        "key": "to",
        "type": "scalar",
        "length": undefined,
        "children": undefined,
        "offset": 10 + offset,
        "size": 12,
        "value": "kryptogames"
      },
      {
        "key": "amount",
        "type": "object",
        "length": undefined,
        "offset": 22 + offset,
        "size": 12,
        "value": "",
        "children": [
          {
            "key": "amount",
            "type": "object",
            "length": undefined,
            "offset": 22 + offset,
            "size": 8,
            "value": "",
            "children": [
              {
                "key": "value",
                "type": "scalar",
                "length": undefined,
                "children": undefined,
                "offset": 22 + offset,
                "size": 8,
                "value": "300000"
              }
            ]
          },
          {
            "key": "symbol",
            "type": "scalar",
            "length": undefined,
            "offset": 30 + offset,
            "size": 4,
            "value": "@@000000021",
            "children": undefined
          }
        ]
      },
      {
        "key": "memo",
        "type": "scalar",
        "length": undefined,
        "children": undefined,
        "offset": 34 + offset,
        "size": 28,
        "value": "Roll under 50 4d434bd943616"
      }
    ]
  }
]);

export const binaryDataHf26TransferOperation = binaryDataHf26TransferOperationBase(0);

export const binaryDataHf26Transfer = [
  {
    "key": "ref_block_num",
    "type": "scalar",
    "length": undefined,
    "children": undefined,
    "offset": 0,
    "size": 2,
    "value": "1959"
  },
  {
    "key": "ref_block_prefix",
    "type": "scalar",
    "length": undefined,
    "children": undefined,
    "offset": 2,
    "size": 4,
    "value": "3625727107"
  },
  {
    "key": "expiration",
    "type": "scalar",
    "length": undefined,
    "children": undefined,
    "offset": 6,
    "size": 4,
    "value": "2023-11-09T22:01:24"
  },
  {
    "key": "operations",
    "type": "array",
    "offset": 10,
    "size": 63,
    "value": "Length: 1",
    "length": 1,
    "children": [
      {
        "key": "0",
        "type": "object",
        "length": undefined,
        "offset": 11,
        "size": 62,
        "value": "",
        "children": binaryDataHf26TransferOperationBase(11)
      }
    ]
  },
  {
    "key": "extensions",
    "type": "array",
    "offset": 73,
    "size": 1,
    "value": "Length: 0",
    "length": 0,
    "children": []
  },
  {
    "key": "signatures",
    "type": "array",
    "offset": 74,
    "size": 1,
    "value": "Length: 0",
    "length": 0,
    "children": []
  }
];

const binaryDataLegacyTransferOperationBase = (offset = 0) => ([
  {
    "key": "type",
    "type": "scalar",
    "offset": 0 + offset,
    "size": 1,
    "value": "transfer_operation",
    "length": undefined,
    "children": undefined
  },
  {
    "key": "value",
    "type": "object",
    "offset": 1 + offset,
    "size": 65,
    "value": "",
    "length": undefined,
    "children": [
      {
        "key": "from",
        "type": "scalar",
        "offset": 1 + offset,
        "size": 9,
        "value": "oneplus7",
        "length": undefined,
        "children": undefined
      },
      {
        "key": "to",
        "type": "scalar",
        "offset": 10 + offset,
        "size": 12,
        "value": "kryptogames",
        "length": undefined,
        "children": undefined
      },
      {
        "key": "amount",
        "type": "object",
        "offset": 22 + offset,
        "size": 16,
        "value": "",
        "length": undefined,
        "children": [
          {
            "key": "amount",
            "type": "object",
            "offset": 22 + offset,
            "size": 8,
            "value": "",
            "length": undefined,
            "children": [
              {
                "key": "value",
                "type": "scalar",
                "offset": 22 + offset,
                "size": 8,
                "value": "300000",
                "length": undefined,
                "children": undefined
              }
            ]
          },
          {
            "key": "symbol",
            "type": "scalar",
            "offset": 30 + offset,
            "size": 8,
            "value": "STEEM",
            "length": undefined,
            "children": undefined
          }
        ]
      },
      {
        "key": "memo",
        "type": "scalar",
        "offset": 38 + offset,
        "size": 28,
        "value": "Roll under 50 4d434bd943616",
        "length": undefined,
        "children": undefined
      }
    ]
  }
]);

export const binaryDataLegacyTransferOperation = binaryDataLegacyTransferOperationBase(0);

export const binaryDataLegacyTransfer = [
  {
    "key": "ref_block_num",
    "type": "scalar",
    "offset": 0,
    "size": 2,
    "value": "1959",
    "length": undefined,
    "children": undefined
  },
  {
    "key": "ref_block_prefix",
    "type": "scalar",
    "offset": 2,
    "size": 4,
    "value": "3625727107",
    "length": undefined,
    "children": undefined
  },
  {
    "key": "expiration",
    "type": "scalar",
    "offset": 6,
    "size": 4,
    "value": "2023-11-09T22:01:24",
    "length": undefined,
    "children": undefined
  },
  {
    "key": "operations",
    "type": "array",
    "offset": 10,
    "size": 67,
    "value": "Length: 1",
    "length": 1,
    "children": [
      {
        "key": "0",
        "type": "object",
        "offset": 11,
        "size": 66,
        "value": "",
        "length": undefined,
        "children": binaryDataLegacyTransferOperationBase(11)
      }
    ]
  },
  {
    "key": "extensions",
    "type": "array",
    "offset": 77,
    "size": 1,
    "value": "Length: 0",
    "length": 0,
    "children": []
  },
  {
    "key": "signatures",
    "type": "array",
    "offset": 78,
    "size": 1,
    "value": "Length: 0",
    "length": 0,
    "children": []
  }
];
