From 51659c28a674a49e55cc387800083766031fe530 Mon Sep 17 00:00:00 2001 From: Ian Norden Date: Fri, 30 Apr 2021 16:14:11 -0500 Subject: [PATCH] update TxModel; add AccessListElementModel --- statediff/indexer/models/models.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/statediff/indexer/models/models.go b/statediff/indexer/models/models.go index 639d17eab..599df8ae9 100644 --- a/statediff/indexer/models/models.go +++ b/statediff/indexer/models/models.go @@ -60,6 +60,16 @@ type TxModel struct { Dst string `db:"dst"` Src string `db:"src"` Data []byte `db:"tx_data"` + Type uint8 `db:"tx_type"` +} + +// AccessListEntryModel is the db model for eth.access_list_entry +type AccessListElementModel struct { + ID int64 `db:"id"` + Index int64 `db:"index"` + TxID int64 `db:"tx_id"` + Address string `db:"address"` + StorageKeys pq.StringArray `db:"storage_keys"` } // ReceiptModel is the db model for eth.receipt_cids