forked from cerc-io/ipld-eth-server
7ee253b2a3
- starting with the totalSupply function - sets contract config on transformer by passing it into the transformer initializer - handles block records with the same number for different nodes for both creating token_supply records, and finding missing blocks
10 lines
261 B
SQL
10 lines
261 B
SQL
CREATE TABLE token_supply (
|
|
id SERIAL,
|
|
block_id INTEGER NOT NULL,
|
|
supply DECIMAL NOT NULL,
|
|
token_address CHARACTER VARYING(66) NOT NULL,
|
|
CONSTRAINT blocks_fk FOREIGN KEY (block_id)
|
|
REFERENCES blocks (id)
|
|
ON DELETE CASCADE
|
|
)
|