forked from FuelLabs/fuel-explorer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: index assets contracts (FuelLabs#576)
- Loading branch information
1 parent
fd5e166
commit 1e73385
Showing
16 changed files
with
1,033 additions
and
104 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
CREATE TABLE indexer.block_statistics ( | ||
id SERIAL PRIMARY KEY, | ||
timestamp TIMESTAMP NOT NULL, | ||
number_of_blocks INTEGER NOT NULL, | ||
cumulative_block_reward NUMERIC NOT NULL, | ||
start_block INTEGER NOT NULL, | ||
end_block INTEGER NOT NULL | ||
create table indexer.assets_contracts ( | ||
asset_id text not null, | ||
contract_id text not null, | ||
transaction_id text not null, | ||
name text, | ||
symbol text, | ||
decimals integer, | ||
error text, | ||
primary key (asset_id, contract_id) | ||
); | ||
|
||
CREATE UNIQUE INDEX ON indexer.block_statistics(id); | ||
CREATE INDEX ON indexer.block_statistics(timestamp); | ||
create index on indexer.assets_contracts (asset_id); | ||
create index on indexer.assets_contracts (contract_id); |
Oops, something went wrong.