Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions schemas/gcp/internal_transactions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
[
{
"name": "internal_tx_block_number",
"type": "INT64",
"mode": "REQUIRED",
"description": "Block number which included parent of this internal transaction",
"_comment" : "Can be made available via joins"
},
{
"name": "internal_tx_block_timestamp",
"type": "INT64",
"mode": "REQUIRED",
"description": "The unix timestamp for when the block was collated"
},
{
"name": "internal_tx_hash",
"type": "STRING",
"mode": "REQUIRED",
"description": "Hash of the transaction"
},
{
"name": "internal_tx_from",
"type": "STRING",
"mode": "REQUIRED",
"description": "Address of the sender"
},
{
"name": "internal_tx_to",
"type": "STRING",
"mode": "REQUIRED",
"description": "Address of the receiver"
},
{
"name": "internal_tx_value",
"type": "STRING",
"mode": "REQUIRED",
"description": "Value transferred in Wei"
},
{
"name": "internal_tx_contract_address",
"type": "STRING",
"mode": "REQUIRED",
"description": "Address of the contract which initiated the transaction"
},
{
"name": "internal_tx_input",
"type": "STRING",
"mode": "REQUIRED",
"description": "The data send along with the transaction"
},
{
"name": "internal_tx_type",
"type": "STRING",
"mode": "REQUIRED",
"description": "Type of internal transaction: CREATE, SELFDESTRUCT, CALL, CALLCODE, DELEGATECALL, STATICCALL"
},
{
"name": "internal_tx_gas",
"type": "STRING",
"description": "Gas available for the internal transaction"
},
{
"name": "internal_tx_gas_used",
"type": "STRING",
"description": "Gas used by the internal transaction"
},
{
"name": "internal_tx_trace_id",

@medvedev1088 medvedev1088 Aug 4, 2018

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The internal_tx_trace_id column can have MODE: REPEATED since it's an array. Then the export job will use json output format for which BigQuery supports REPEATED columns.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we call it internal_tx_trace_address for consistency with Parity https://wiki.parity.io/JSONRPC-trace-module#trace_block?

"type": "STRING",
"mode": "REQUIRED",
"description": "The level of nesting of an internal transaction"
},
{
"name": "internal_tx_is_error",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this column have BOOLEAN type?

"type": "STRING",
"mode": "REQUIRED",
"description": ""
},
{
"name": "internal_tx_err_code",
"type": "STRING",
"mode": "REQUIRED",
"description": ""
}
]