Skip to content

Instantly share code, notes, and snippets.

@maoueh
Last active October 19, 2022 13:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maoueh/9f6fbb3b26af047535a5a05fc2641119 to your computer and use it in GitHub Desktop.
Save maoueh/9f6fbb3b26af047535a5a05fc2641119 to your computer and use it in GitHub Desktop.
Ethereum Battlefield Call with Failures
# Firehose Block Model after Execution of https://github.com/streamingfast/battlefield-ethereum/blob/master/contract/src/main.sol#L107
{
"beginOrdinal": "1",
"calls": [
{
"address": "71940c77ccadaea1238cea27674e6253128ca177",
"balanceChanges": [
{
"address": "821b55d8abe79bc98f05eb675fdc50dfe796b7ab",
"newValue": "02863c1f5cdaaee529985e1e51",
"oldValue": "02863c1f5cdae42f953fff9e51",
"ordinal": "2",
"reason": "REASON_GAS_BUY"
},
{
"address": "821b55d8abe79bc98f05eb675fdc50dfe796b7ab",
"newValue": "02863c1f5cdab6ca1aed4a7251",
"oldValue": "02863c1f5cdaaee529985e1e51",
"ordinal": "99",
"reason": "REASON_GAS_REFUND"
},
{
"address": "821b55d8abe79bc98f05eb675fdc50dfe796b7ab",
"newValue": "02863c1f5cdae42f953fff9e51",
"oldValue": "02863c1f5cdab6ca1aed4a7251",
"ordinal": "100",
"reason": "REASON_REWARD_TRANSACTION_FEE"
}
],
"callType": "CALL",
"caller": "821b55d8abe79bc98f05eb675fdc50dfe796b7ab",
"endOrdinal": "98",
"executedCode": true,
"gasChanges": [
{
"newValue": "278200",
"oldValue": "300000",
"ordinal": "3",
"reason": "REASON_INTRINSIC_GAS"
},
{
"newValue": "257635",
"oldValue": "257656",
"ordinal": "7",
"reason": "REASON_CALL_DATA_COPY"
},
{
"newValue": "254485",
"oldValue": "257539",
"ordinal": "8",
"reason": "REASON_EVENT_LOG"
},
{
"newValue": "56581",
"oldValue": "253889",
"ordinal": "10",
"reason": "REASON_CALL"
},
{
"newValue": "192847",
"oldValue": "56581",
"ordinal": "16",
"reason": "REASON_REFUND_AFTER_EXECUTION"
},
{
"newValue": "2977",
"oldValue": "191245",
"ordinal": "18",
"reason": "REASON_CALL"
},
{
"newValue": "123349",
"oldValue": "2977",
"ordinal": "35",
"reason": "REASON_REFUND_AFTER_EXECUTION"
},
{
"newValue": "1893",
"oldValue": "121862",
"ordinal": "37",
"reason": "REASON_CALL"
},
{
"newValue": "118420",
"oldValue": "1893",
"ordinal": "43",
"reason": "REASON_REFUND_AFTER_EXECUTION"
},
{
"newValue": "1823",
"oldValue": "117374",
"ordinal": "45",
"reason": "REASON_CALL_CODE"
},
{
"newValue": "116464",
"oldValue": "1823",
"ordinal": "48",
"reason": "REASON_REFUND_AFTER_EXECUTION"
},
{
"newValue": "1808",
"oldValue": "116443",
"ordinal": "49",
"reason": "REASON_CALL_CODE"
},
{
"newValue": "115697",
"oldValue": "1808",
"ordinal": "52",
"reason": "REASON_REFUND_AFTER_EXECUTION"
},
{
"newValue": "1791",
"oldValue": "115336",
"ordinal": "53",
"reason": "REASON_DELEGATE_CALL"
},
{
"newValue": "114426",
"oldValue": "1791",
"ordinal": "56",
"reason": "REASON_REFUND_AFTER_EXECUTION"
},
{
"newValue": "1770",
"oldValue": "114016",
"ordinal": "57",
"reason": "REASON_STATIC_CALL"
},
{
"newValue": "113106",
"oldValue": "1770",
"ordinal": "60",
"reason": "REASON_REFUND_AFTER_EXECUTION"
},
{
"newValue": "1751",
"oldValue": "112797",
"ordinal": "61",
"reason": "REASON_DELEGATE_CALL"
},
{
"newValue": "112051",
"oldValue": "1751",
"ordinal": "64",
"reason": "REASON_REFUND_AFTER_EXECUTION"
},
{
"newValue": "1735",
"oldValue": "111745",
"ordinal": "65",
"reason": "REASON_STATIC_CALL"
},
{
"newValue": "110999",
"oldValue": "1735",
"ordinal": "68",
"reason": "REASON_REFUND_AFTER_EXECUTION"
},
{
"newValue": "110844",
"oldValue": "110856",
"ordinal": "69",
"reason": "REASON_CALL_DATA_COPY"
},
{
"newValue": "110724",
"oldValue": "110745",
"ordinal": "70",
"reason": "REASON_CALL_DATA_COPY"
},
{
"newValue": "99803",
"oldValue": "110503",
"ordinal": "71",
"reason": "REASON_STATIC_CALL"
},
{
"newValue": "103803",
"oldValue": "99803",
"ordinal": "75",
"reason": "REASON_REFUND_AFTER_EXECUTION"
},
{
"newValue": "103683",
"oldValue": "103699",
"ordinal": "76",
"reason": "REASON_CALL_DATA_COPY"
},
{
"newValue": "103563",
"oldValue": "103584",
"ordinal": "77",
"reason": "REASON_CALL_DATA_COPY"
},
{
"newValue": "92642",
"oldValue": "103342",
"ordinal": "78",
"reason": "REASON_STATIC_CALL"
},
{
"newValue": "92566",
"oldValue": "92587",
"ordinal": "83",
"reason": "REASON_CODE_COPY"
},
{
"newValue": "60530",
"oldValue": "92530",
"ordinal": "84",
"reason": "REASON_CONTRACT_CREATION"
},
{
"newValue": "945",
"oldValue": "60530",
"ordinal": "85",
"reason": "REASON_CONTRACT_CREATION"
},
{
"newValue": "47864",
"oldValue": "945",
"ordinal": "94",
"reason": "REASON_REFUND_AFTER_EXECUTION"
},
{
"newValue": "47618",
"oldValue": "47636",
"ordinal": "95",
"reason": "REASON_CALL_DATA_COPY"
},
{
"newValue": "44468",
"oldValue": "47522",
"ordinal": "96",
"reason": "REASON_EVENT_LOG"
}
],
"gasConsumed": "233759",
"gasLimit": "278200",
"index": 1,
"input": "efd7a07b0000000000000000000000009a77f7b94488d24eca50fa0d144212ae48300a71000000000000000000000000702641c70a11e480f646ed247d078c65abaac5de",
"keccakPreimages": {
"ba90b72e9b42697b5d87dae0137b6e55e582e73c46cffef15fa563672767922d": "656d70747943616c6c466f724c6f776573744761732829"
},
"logs": [
{
"address": "71940c77ccadaea1238cea27674e6253128ca177",
"data": "00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000003ef3f000000000000000000000000821b55d8abe79bc98f05eb675fdc50dfe796b7abefd7a07b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044efd7a07b0000000000000000000000009a77f7b94488d24eca50fa0d144212ae48300a71000000000000000000000000702641c70a11e480f646ed247d078c65abaac5de00000000000000000000000000000000000000000000000000000000",
"ordinal": "9",
"topics": ["d41b36b76d8b32ab74deba2ef94d5017b230225c5a1b46122d43c27230652613"]
},
{
"address": "71940c77ccadaea1238cea27674e6253128ca177",
"blockIndex": 3,
"data": "00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000bad0000000000000000000000000821b55d8abe79bc98f05eb675fdc50dfe796b7abefd7a07b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044efd7a07b0000000000000000000000009a77f7b94488d24eca50fa0d144212ae48300a71000000000000000000000000702641c70a11e480f646ed247d078c65abaac5de00000000000000000000000000000000000000000000000000000000",
"index": 3,
"ordinal": "97",
"topics": ["d41b36b76d8b32ab74deba2ef94d5017b230225c5a1b46122d43c27230652613"]
}
],
"nonceChanges": [
{
"address": "821b55d8abe79bc98f05eb675fdc50dfe796b7ab",
"newValue": "34",
"oldValue": "33",
"ordinal": "4"
}
],
"storageChanges": [
{
"address": "71940c77ccadaea1238cea27674e6253128ca177",
"key": "000000000000000000000000000000000000000000000000000000000000000c",
"newValue": "00000000000000000000000000000000000000000000000000000000ca110001",
"oldValue": "0000000000000000000000000000000000000000000000000000000000000000",
"ordinal": "6"
},
{
"address": "71940c77ccadaea1238cea27674e6253128ca177",
"key": "000000000000000000000000000000000000000000000000000000000000000c",
"newValue": "00000000000000000000000000000000000000000000000000000000ca110002",
"oldValue": "00000000000000000000000000000000000000000000000000000000ca110001",
"ordinal": "17"
},
{
"address": "71940c77ccadaea1238cea27674e6253128ca177",
"key": "000000000000000000000000000000000000000000000000000000000000000c",
"newValue": "00000000000000000000000000000000000000000000000000000000ca110003",
"oldValue": "00000000000000000000000000000000000000000000000000000000ca110002",
"ordinal": "36"
},
{
"address": "71940c77ccadaea1238cea27674e6253128ca177",
"key": "000000000000000000000000000000000000000000000000000000000000000c",
"newValue": "00000000000000000000000000000000000000000000000000000000ca110004",
"oldValue": "00000000000000000000000000000000000000000000000000000000ca110003",
"ordinal": "44"
}
]
},
{
"address": "9a77f7b94488d24eca50fa0d144212ae48300a71",
"beginOrdinal": "11",
"callType": "CALL",
"caller": "71940c77ccadaea1238cea27674e6253128ca177",
"depth": 1,
"endOrdinal": "15",
"executedCode": true,
"gasConsumed": "60342",
"gasLimit": "196608",
"index": 2,
"input": "a64b9faf0000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000003e1f6",
"parentIndex": 1,
"storageChanges": [
{
"address": "9a77f7b94488d24eca50fa0d144212ae48300a71",
"key": "0000000000000000000000000000000000000000000000000000000000000000",
"newValue": "0000000000000000000000000000000000000000000000000000000000030000",
"oldValue": "0000000000000000000000000000000000000000000000000000000000000000",
"ordinal": "12"
},
{
"address": "9a77f7b94488d24eca50fa0d144212ae48300a71",
"key": "0000000000000000000000000000000000000000000000000000000000000001",
"newValue": "000000000000000000000000000000000000000000000000000000000003e1f6",
"oldValue": "0000000000000000000000000000000000000000000000000000000000000000",
"ordinal": "13"
},
{
"address": "9a77f7b94488d24eca50fa0d144212ae48300a71",
"key": "0000000000000000000000000000000000000000000000000000000000000002",
"newValue": "0000000000000000000000000000000000000000000000000000000000026282",
"oldValue": "0000000000000000000000000000000000000000000000000000000000000000",
"ordinal": "14"
}
]
},
{
"address": "9a77f7b94488d24eca50fa0d144212ae48300a71",
"beginOrdinal": "19",
"callType": "CALL",
"caller": "71940c77ccadaea1238cea27674e6253128ca177",
"depth": 1,
"endOrdinal": "34",
"executedCode": true,
"gasChanges": [
{
"newValue": "2866",
"oldValue": "184142",
"ordinal": "23",
"reason": "REASON_CALL"
},
{
"newValue": "121810",
"oldValue": "2866",
"ordinal": "31",
"reason": "REASON_REFUND_AFTER_EXECUTION"
},
{
"newValue": "120391",
"oldValue": "121653",
"ordinal": "32",
"reason": "REASON_EVENT_LOG"
}
],
"gasConsumed": "67196",
"gasLimit": "187568",
"index": 3,
"input": "cc905682000000000000000000000000702641c70a11e480f646ed247d078c65abaac5de0000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000002edbd",
"logs": [
{
"address": "9a77f7b94488d24eca50fa0d144212ae48300a71",
"blockIndex": 2,
"data": "000000000000000000000000000000000000000000000000000000000001db8500000000000000000000000071940c77ccadaea1238cea27674e6253128ca177",
"index": 2,
"ordinal": "33",
"topics": ["5d6e09c3a2a72b85c9c8b4d91cae443f86bdc7bb8e2480ba2a3e7aa63f25e507"]
}
],
"parentIndex": 1,
"storageChanges": [
{
"address": "9a77f7b94488d24eca50fa0d144212ae48300a71",
"key": "0000000000000000000000000000000000000000000000000000000000000000",
"newValue": "0000000000000000000000000000000000000000000000000000000000040000",
"oldValue": "0000000000000000000000000000000000000000000000000000000000030000",
"ordinal": "20"
},
{
"address": "9a77f7b94488d24eca50fa0d144212ae48300a71",
"key": "0000000000000000000000000000000000000000000000000000000000000001",
"newValue": "000000000000000000000000000000000000000000000000000000000002edbd",
"oldValue": "000000000000000000000000000000000000000000000000000000000003e1f6",
"ordinal": "21"
},
{
"address": "9a77f7b94488d24eca50fa0d144212ae48300a71",
"key": "0000000000000000000000000000000000000000000000000000000000000002",
"newValue": "000000000000000000000000000000000000000000000000000000000002d4e5",
"oldValue": "0000000000000000000000000000000000000000000000000000000000026282",
"ordinal": "22"
}
]
},
{
"address": "702641c70a11e480f646ed247d078c65abaac5de",
"beginOrdinal": "24",
"callType": "CALL",
"caller": "9a77f7b94488d24eca50fa0d144212ae48300a71",
"depth": 2,
"endOrdinal": "30",
"executedCode": true,
"gasChanges": [
{
"newValue": "118957",
"oldValue": "120219",
"ordinal": "28",
"reason": "REASON_EVENT_LOG"
}
],
"gasConsumed": "61632",
"gasLimit": "180576",
"index": 4,
"input": "a64b9faf000000000000000000000000000000000000000000000000000000000016e360000000000000000000000000000000000000000000000000000000000002d19b",
"logs": [
{
"address": "702641c70a11e480f646ed247d078c65abaac5de",
"blockIndex": 1,
"data": "000000000000000000000000000000000000000000000000000000000001d5f40000000000000000000000009a77f7b94488d24eca50fa0d144212ae48300a71",
"index": 1,
"ordinal": "29",
"topics": ["5d6e09c3a2a72b85c9c8b4d91cae443f86bdc7bb8e2480ba2a3e7aa63f25e507"]
}
],
"parentIndex": 3,
"storageChanges": [
{
"address": "702641c70a11e480f646ed247d078c65abaac5de",
"key": "0000000000000000000000000000000000000000000000000000000000000000",
"newValue": "000000000000000000000000000000000000000000000000000000000016e360",
"oldValue": "0000000000000000000000000000000000000000000000000000000000000000",
"ordinal": "25"
},
{
"address": "702641c70a11e480f646ed247d078c65abaac5de",
"key": "0000000000000000000000000000000000000000000000000000000000000001",
"newValue": "000000000000000000000000000000000000000000000000000000000002d19b",
"oldValue": "0000000000000000000000000000000000000000000000000000000000000000",
"ordinal": "26"
},
{
"address": "702641c70a11e480f646ed247d078c65abaac5de",
"key": "0000000000000000000000000000000000000000000000000000000000000002",
"newValue": "0000000000000000000000000000000000000000000000000000000000022424",
"oldValue": "0000000000000000000000000000000000000000000000000000000000000000",
"ordinal": "27"
}
]
},
{
"address": "9a77f7b94488d24eca50fa0d144212ae48300a71",
"beginOrdinal": "38",
"callType": "CALL",
"caller": "71940c77ccadaea1238cea27674e6253128ca177",
"depth": 1,
"endOrdinal": "42",
"executedCode": true,
"gasConsumed": "2742",
"gasLimit": "119269",
"index": 5,
"input": "a64b9faf0000000000000000000000000000000000000000000000000000000000050000000000000000000000000000000000000000000000000000000000000001de41",
"parentIndex": 1,
"storageChanges": [
{
"address": "9a77f7b94488d24eca50fa0d144212ae48300a71",
"key": "0000000000000000000000000000000000000000000000000000000000000000",
"newValue": "0000000000000000000000000000000000000000000000000000000000050000",
"oldValue": "0000000000000000000000000000000000000000000000000000000000040000",
"ordinal": "39"
},
{
"address": "9a77f7b94488d24eca50fa0d144212ae48300a71",
"key": "0000000000000000000000000000000000000000000000000000000000000001",
"newValue": "000000000000000000000000000000000000000000000000000000000001de41",
"oldValue": "000000000000000000000000000000000000000000000000000000000002edbd",
"ordinal": "40"
},
{
"address": "9a77f7b94488d24eca50fa0d144212ae48300a71",
"key": "0000000000000000000000000000000000000000000000000000000000000002",
"newValue": "000000000000000000000000000000000000000000000000000000000001ca67",
"oldValue": "000000000000000000000000000000000000000000000000000000000002d4e5",
"ordinal": "41"
}
]
},
{
"address": "9a77f7b94488d24eca50fa0d144212ae48300a71",
"beginOrdinal": "46",
"callType": "CALLCODE",
"caller": "71940c77ccadaea1238cea27674e6253128ca177",
"depth": 1,
"endOrdinal": "47",
"executedCode": true,
"gasConsumed": "210",
"gasLimit": "114851",
"index": 6,
"input": "ba90b72e",
"parentIndex": 1
},
{
"address": "9a77f7b94488d24eca50fa0d144212ae48300a71",
"beginOrdinal": "50",
"callType": "CALLCODE",
"caller": "71940c77ccadaea1238cea27674e6253128ca177",
"depth": 1,
"endOrdinal": "51",
"failureReason": "(varying field)",
"gasConsumed": "46",
"gasLimit": "113935",
"index": 7,
"parentIndex": 1,
"stateReverted": true,
"statusFailed": true,
"statusReverted": true
},
{
"address": "9a77f7b94488d24eca50fa0d144212ae48300a71",
"beginOrdinal": "54",
"callType": "DELEGATE",
"caller": "821b55d8abe79bc98f05eb675fdc50dfe796b7ab",
"depth": 1,
"endOrdinal": "55",
"executedCode": true,
"gasConsumed": "210",
"gasLimit": "112845",
"index": 8,
"input": "ba90b72e",
"parentIndex": 1
},
{
"address": "9a77f7b94488d24eca50fa0d144212ae48300a71",
"beginOrdinal": "58",
"callType": "STATIC",
"caller": "71940c77ccadaea1238cea27674e6253128ca177",
"depth": 1,
"endOrdinal": "59",
"executedCode": true,
"gasConsumed": "210",
"gasLimit": "111546",
"index": 9,
"input": "ba90b72e",
"parentIndex": 1
},
{
"address": "9a77f7b94488d24eca50fa0d144212ae48300a71",
"beginOrdinal": "62",
"callType": "DELEGATE",
"caller": "821b55d8abe79bc98f05eb675fdc50dfe796b7ab",
"depth": 1,
"endOrdinal": "63",
"failureReason": "(varying field)",
"gasConsumed": "46",
"gasLimit": "110346",
"index": 10,
"parentIndex": 1,
"stateReverted": true,
"statusFailed": true,
"statusReverted": true
},
{
"address": "9a77f7b94488d24eca50fa0d144212ae48300a71",
"beginOrdinal": "66",
"callType": "STATIC",
"caller": "71940c77ccadaea1238cea27674e6253128ca177",
"depth": 1,
"endOrdinal": "67",
"failureReason": "(varying field)",
"gasConsumed": "46",
"gasLimit": "109310",
"index": 11,
"parentIndex": 1,
"stateReverted": true,
"statusFailed": true,
"statusReverted": true
},
{
"address": "0000000000000000000000000000000000000007",
"beginOrdinal": "72",
"callType": "STATIC",
"caller": "71940c77ccadaea1238cea27674e6253128ca177",
"depth": 1,
"endOrdinal": "74",
"executedCode": true,
"gasChanges": [
{
"newValue": "4000",
"oldValue": "10000",
"ordinal": "73",
"reason": "REASON_PRECOMPILED_CONTRACT"
}
],
"gasConsumed": "6000",
"gasLimit": "10000",
"index": 12,
"input": "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003",
"parentIndex": 1,
"returnData": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
},
{
"address": "0000000000000000000000000000000000000007",
"beginOrdinal": "79",
"callType": "STATIC",
"caller": "71940c77ccadaea1238cea27674e6253128ca177",
"depth": 1,
"endOrdinal": "82",
"executedCode": true,
"failureReason": "(varying field)",
"gasChanges": [
{
"newValue": "4000",
"oldValue": "10000",
"ordinal": "80",
"reason": "REASON_PRECOMPILED_CONTRACT"
},
{
"oldValue": "4000",
"ordinal": "81",
"reason": "REASON_FAILED_EXECUTION"
}
],
"gasConsumed": "10000",
"gasLimit": "10000",
"index": 13,
"input": "000000000000000000000000000000000000000000000000000000000000012300000000000000000000000000000000000000000000000000000000000004560000000000000000000000000000000000000000000000000000000000000003",
"parentIndex": 1,
"stateReverted": true,
"statusFailed": true
},
{
"accountCreations": [
{
"account": "66fcbb258c30b4f8a76c79934adad3e8682b7035",
"ordinal": "88"
}
],
"address": "66fcbb258c30b4f8a76c79934adad3e8682b7035",
"beginOrdinal": "86",
"callType": "CREATE",
"caller": "71940c77ccadaea1238cea27674e6253128ca177",
"codeChanges": [
{
"address": "66fcbb258c30b4f8a76c79934adad3e8682b7035",
"newCode": "6080604052600080fdfea2646970667358221220b6fd1ccb1ca39e7e665638d4fed25f21cb32e39a5313fcaaee885cc296c6fcda64736f6c63430006060033",
"newHash": "8741cdd600a2a3acbd9a66f15caefe08f96171f8529d1308057d481f70ec2089",
"oldHash": "c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",
"ordinal": "92"
}
],
"depth": 1,
"endOrdinal": "93",
"gasChanges": [
{
"newValue": "59522",
"oldValue": "59531",
"ordinal": "90",
"reason": "REASON_CODE_COPY"
},
{
"newValue": "46919",
"oldValue": "59519",
"ordinal": "91",
"reason": "REASON_CODE_STORAGE"
}
],
"gasConsumed": "12666",
"gasLimit": "59585",
"index": 14,
"nonceChanges": [
{
"address": "71940c77ccadaea1238cea27674e6253128ca177",
"newValue": "2",
"oldValue": "1",
"ordinal": "87"
},
{
"address": "66fcbb258c30b4f8a76c79934adad3e8682b7035",
"newValue": "1",
"ordinal": "89"
}
],
"parentIndex": 1
}
],
"endOrdinal": "101",
"from": "821b55d8abe79bc98f05eb675fdc50dfe796b7ab",
"gasLimit": "300000",
"gasPrice": "0ba43b7400",
"gasUsed": "255559",
"hash": "a3fe31852a3d36d2855e17cdc2cc7af249985f4391e28221994d251b7b8c6212",
"input": "efd7a07b0000000000000000000000009a77f7b94488d24eca50fa0d144212ae48300a71000000000000000000000000702641c70a11e480f646ed247d078c65abaac5de",
"nonce": "33",
"r": "8ffc531f38fde12bea4365be2b58be7192129852fc0a74aa75983d63a43f1610",
"receipt": {
"cumulativeGasUsed": "255559",
"logs": [
{
"address": "71940c77ccadaea1238cea27674e6253128ca177",
"data": "00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000003ef3f000000000000000000000000821b55d8abe79bc98f05eb675fdc50dfe796b7abefd7a07b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044efd7a07b0000000000000000000000009a77f7b94488d24eca50fa0d144212ae48300a71000000000000000000000000702641c70a11e480f646ed247d078c65abaac5de00000000000000000000000000000000000000000000000000000000",
"ordinal": "9",
"topics": ["d41b36b76d8b32ab74deba2ef94d5017b230225c5a1b46122d43c27230652613"]
},
{
"address": "702641c70a11e480f646ed247d078c65abaac5de",
"blockIndex": 1,
"data": "000000000000000000000000000000000000000000000000000000000001d5f40000000000000000000000009a77f7b94488d24eca50fa0d144212ae48300a71",
"index": 1,
"ordinal": "29",
"topics": ["5d6e09c3a2a72b85c9c8b4d91cae443f86bdc7bb8e2480ba2a3e7aa63f25e507"]
},
{
"address": "9a77f7b94488d24eca50fa0d144212ae48300a71",
"blockIndex": 2,
"data": "000000000000000000000000000000000000000000000000000000000001db8500000000000000000000000071940c77ccadaea1238cea27674e6253128ca177",
"index": 2,
"ordinal": "33",
"topics": ["5d6e09c3a2a72b85c9c8b4d91cae443f86bdc7bb8e2480ba2a3e7aa63f25e507"]
},
{
"address": "71940c77ccadaea1238cea27674e6253128ca177",
"blockIndex": 3,
"data": "00000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000bad0000000000000000000000000821b55d8abe79bc98f05eb675fdc50dfe796b7abefd7a07b0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044efd7a07b0000000000000000000000009a77f7b94488d24eca50fa0d144212ae48300a71000000000000000000000000702641c70a11e480f646ed247d078c65abaac5de00000000000000000000000000000000000000000000000000000000",
"index": 3,
"ordinal": "97",
"topics": ["d41b36b76d8b32ab74deba2ef94d5017b230225c5a1b46122d43c27230652613"]
}
],
"logsBloom": "00800000000000000000000010000000000000000000000000000000000000000000000000000200000000008000000000000000000000000000000000008000000000000000000000000000000000000000000000008000000000004000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000042000080000000000000010000000000000000000000000000000000002000000000000000002000000000000040020000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
},
"s": "6dddfd58de7ec32cb4a9f2c785b2174041071dbf1241e34180006d49fd9647d9",
"status": "SUCCEEDED",
"to": "71940c77ccadaea1238cea27674e6253128ca177",
"v": "0bfa"
}
# Firehose Block Model after Execution of https://github.com/streamingfast/battlefield-ethereum/blob/master/contract/src/main.sol#L191
{
"beginOrdinal": "125",
"calls": [
{
"address": "71940c77ccadaea1238cea27674e6253128ca177",
"balanceChanges": [
{
"address": "821b55d8abe79bc98f05eb675fdc50dfe796b7ab",
"newValue": "02863c1f5cdaaee529985e1e51",
"oldValue": "02863c1f5cdae42f953fff9e51",
"ordinal": "126",
"reason": "REASON_GAS_BUY"
},
{
"address": "821b55d8abe79bc98f05eb675fdc50dfe796b7ab",
"newValue": "02863c1f5cdae42f953fff9e51",
"oldValue": "02863c1f5cdaaee529985e1e51",
"ordinal": "138",
"reason": "REASON_REWARD_TRANSACTION_FEE"
}
],
"callType": "CALL",
"caller": "821b55d8abe79bc98f05eb675fdc50dfe796b7ab",
"endOrdinal": "137",
"executedCode": true,
"failureReason": "(varying field)",
"gasChanges": [
{
"newValue": "278568",
"oldValue": "300000",
"ordinal": "127",
"reason": "REASON_INTRINSIC_GAS"
},
{
"newValue": "3993",
"oldValue": "256315",
"ordinal": "131",
"reason": "REASON_CALL"
},
{
"oldValue": "2283",
"ordinal": "136",
"reason": "REASON_FAILED_EXECUTION"
}
],
"gasConsumed": "278568",
"gasLimit": "278568",
"index": 1,
"input": "bf2ff2390000000000000000000000009a77f7b94488d24eca50fa0d144212ae48300a71",
"nonceChanges": [
{
"address": "821b55d8abe79bc98f05eb675fdc50dfe796b7ab",
"newValue": "36",
"oldValue": "35",
"ordinal": "128"
}
],
"stateReverted": true,
"statusFailed": true,
"storageChanges": [
{
"address": "71940c77ccadaea1238cea27674e6253128ca177",
"key": "000000000000000000000000000000000000000000000000000000000000000d",
"newValue": "0000000000000000000000000000000000000000000000000000000000000001",
"oldValue": "0000000000000000000000000000000000000000000000000000000000000000",
"ordinal": "130"
}
]
},
{
"address": "9a77f7b94488d24eca50fa0d144212ae48300a71",
"beginOrdinal": "132",
"callType": "CALL",
"caller": "71940c77ccadaea1238cea27674e6253128ca177",
"depth": 1,
"endOrdinal": "135",
"executedCode": true,
"failureReason": "(varying field)",
"gasChanges": [
{
"oldValue": "229832",
"ordinal": "134",
"reason": "REASON_FAILED_EXECUTION"
}
],
"gasConsumed": "251622",
"gasLimit": "251622",
"index": 2,
"input": "69961c23",
"parentIndex": 1,
"stateReverted": true,
"statusFailed": true,
"storageChanges": [
{
"address": "9a77f7b94488d24eca50fa0d144212ae48300a71",
"key": "0000000000000000000000000000000000000000000000000000000000000003",
"newValue": "0000000000000000000000000000000000000000000000000000000000000001",
"oldValue": "0000000000000000000000000000000000000000000000000000000000000000",
"ordinal": "133"
}
]
}
],
"endOrdinal": "139",
"from": "821b55d8abe79bc98f05eb675fdc50dfe796b7ab",
"gasLimit": "300000",
"gasPrice": "0ba43b7400",
"gasUsed": "300000",
"hash": "939363ce2f1c770dbb3686ffdae127c10058522dddb6389bd357755bb2f8ccd2",
"index": 2,
"input": "bf2ff2390000000000000000000000009a77f7b94488d24eca50fa0d144212ae48300a71",
"nonce": "35",
"r": "6957e90cf92c047ccc0fa5df7d9ef5065c4653636a7ee4099863286076b6e077",
"receipt": {
"cumulativeGasUsed": "655804",
"logsBloom": "00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
},
"s": "17d0930c994380f808398023d1f8b9ac124670da534691b792372ba9a9b40c8e",
"status": "FAILED",
"to": "71940c77ccadaea1238cea27674e6253128ca177",
"v": "0bfa"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment