add to schema table list

This commit is contained in:
Roy Crihfield 2024-07-26 15:23:10 +08:00
parent 115b3c779e
commit 3f1b5f382b

View File

@ -27,6 +27,7 @@ var EthTables = []*Table{
&TableReceipt, &TableReceipt,
&TableLog, &TableLog,
&TableWithdrawal, &TableWithdrawal,
&TableBlobHash,
} }
var AllTables = append( var AllTables = append(
@ -154,15 +155,6 @@ var TableTransaction = Table{
UpsertClause: OnConflict("block_number", "header_id", "tx_hash"), UpsertClause: OnConflict("block_number", "header_id", "tx_hash"),
} }
var TableBlobHash = Table{
Name: "eth.blob_hashes",
Columns: []Column{
{Name: "tx_hash", Type: Dvarchar},
{Name: "index", Type: Dinteger},
{Name: "blob_hash", Type: Dbytea},
},
}
var TableReceipt = Table{ var TableReceipt = Table{
Name: "eth.receipt_cids", Name: "eth.receipt_cids",
Columns: []Column{ Columns: []Column{
@ -208,6 +200,15 @@ var TableWithdrawal = Table{
UpsertClause: OnConflict("block_number", "header_id", "index"), UpsertClause: OnConflict("block_number", "header_id", "index"),
} }
var TableBlobHash = Table{
Name: "eth.blob_hashes",
Columns: []Column{
{Name: "tx_hash", Type: Dvarchar},
{Name: "index", Type: Dinteger},
{Name: "blob_hash", Type: Dbytea},
},
}
var TableWatchedAddresses = Table{ var TableWatchedAddresses = Table{
Name: "eth_meta.watched_addresses", Name: "eth_meta.watched_addresses",
Columns: []Column{ Columns: []Column{