-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3a3d582
commit 01b7616
Showing
5 changed files
with
76 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
|
||
CREATE TABLE IF NOT EXISTS calls | ||
( | ||
block_hash String, | ||
block_num UInt64, | ||
timestamp DateTime, | ||
tx_index UInt32, | ||
tx_hash String, | ||
index UInt32, | ||
parent_index UInt32, | ||
depth UInt32, | ||
caller String, | ||
address String, | ||
value Float64, | ||
gas_limit UInt64, | ||
gas_consumed UInt64, | ||
return_data String, | ||
input String, | ||
selfdestruct UInt8, | ||
executed_code UInt8, | ||
begin_ordinal UInt64, | ||
end_ordinal UInt64 | ||
) | ||
ENGINE = ReplacingMergeTree() | ||
PRIMARY KEY (tx_hash, index) | ||
ORDER BY (tx_hash, index); | ||
|
||
CREATE TABLE IF NOT EXISTS transactions | ||
( | ||
block_hash String, | ||
block_num UInt64, | ||
timestamp DateTime, | ||
tx_index UInt32, | ||
tx_hash String, | ||
to String, | ||
nonce UInt64, | ||
gas_price Float64, | ||
gas_limit UInt64, | ||
value Float64, | ||
input String, | ||
v String, | ||
r String, | ||
s String, | ||
gas_used UInt64, | ||
type Int32, | ||
max_fee_per_gas Float64, | ||
max_priority_fee_per_gas Float64, | ||
from String, | ||
return_data String, | ||
public_key String, | ||
begin_ordinal UInt64, | ||
end_ordinal UInt64 | ||
) | ||
ENGINE = ReplacingMergeTree() | ||
PRIMARY KEY (tx_hash) | ||
ORDER BY (tx_hash); | ||
|
||
-- trace_type | ||
-- status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters