work on mocks and unit tests

This commit is contained in:
Ian Norden
2019-12-02 13:24:50 -06:00
parent d702cb720c
commit 15e044403d
753 changed files with 201600 additions and 135 deletions
@@ -4,6 +4,8 @@ CREATE TABLE public.transaction_cids (
header_id INTEGER NOT NULL REFERENCES header_cids (id) ON DELETE CASCADE,
tx_hash VARCHAR(66) NOT NULL,
cid TEXT NOT NULL,
dst VARCHAR(66) NOT NULL,
src VARCHAR(66) NOT NULL,
UNIQUE (header_id, tx_hash)
);
@@ -2,7 +2,8 @@
CREATE TABLE public.receipt_cids (
id SERIAL PRIMARY KEY,
tx_id INTEGER NOT NULL REFERENCES transaction_cids (id) ON DELETE CASCADE,
cid TEXT NOT NULL
cid TEXT NOT NULL,
topic0s VARCHAR(66)[]
);
-- +goose Down