From 3d1b3083263daa9d3c5a0208a5f8206261d30f1c Mon Sep 17 00:00:00 2001 From: Arijit Das Date: Mon, 16 Aug 2021 18:54:34 +0530 Subject: [PATCH] Update go mod. --- .../00016_create_eth_log_cids_table.sql | 36 ++++++++++--------- go.mod | 4 +-- go.sum | 2 ++ 3 files changed, 23 insertions(+), 19 deletions(-) diff --git a/db/migrations/00016_create_eth_log_cids_table.sql b/db/migrations/00016_create_eth_log_cids_table.sql index 674f5a2a..ecde887c 100644 --- a/db/migrations/00016_create_eth_log_cids_table.sql +++ b/db/migrations/00016_create_eth_log_cids_table.sql @@ -1,26 +1,28 @@ -- +goose Up CREATE TABLE eth.log_cids ( - id SERIAL PRIMARY KEY, - receipt_id INTEGER NOT NULL REFERENCES eth.receipt_cids (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED, - address VARCHAR(66), - cid TEXT NOT NULL, - log_data BYTEA, - mh_key TEXT NOT NULL REFERENCES public.blocks (key) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED, - index INTEGER NOT NULL, - topic0 VARCHAR(66), - topic1 VARCHAR(66), - topic2 VARCHAR(66), - topic3 VARCHAR(66), + id SERIAL PRIMARY KEY, + receipt_id INTEGER NOT NULL REFERENCES eth.receipt_cids (id) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED, + address VARCHAR(66), + cid TEXT NOT NULL, + log_data BYTEA, + mh_key TEXT NOT NULL REFERENCES public.blocks (key) ON DELETE CASCADE DEFERRABLE INITIALLY DEFERRED, + index INTEGER NOT NULL, + topic0 VARCHAR(66), + topic1 VARCHAR(66), + topic2 VARCHAR(66), + topic3 VARCHAR(66), UNIQUE (receipt_id, index) ); ALTER TABLE eth.receipt_cids -DROP COLUMN topic0s, -DROP COLUMN topic1s, -DROP COLUMN topic2s, -DROP COLUMN topic3s, -DROP COLUMN log_contracts, -ADD COLUMN log_root VARCHAR(66); + DROP COLUMN topic0s, + DROP COLUMN topic1s, + DROP COLUMN topic2s, + DROP COLUMN topic3s, + DROP COLUMN log_contracts, + ADD COLUMN log_root VARCHAR(66); + +CREATE INDEX log_rct_id_index ON eth.log_cids USING btree (receipt_id); CREATE INDEX log_mh_index ON eth.log_cids USING btree (mh_key); diff --git a/go.mod b/go.mod index 384c2bb9..65da4845 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/vulcanize/ipld-eth-server go 1.13 require ( - github.com/ethereum/go-ethereum v1.9.25 + github.com/ethereum/go-ethereum v1.10.6 github.com/graph-gophers/graphql-go v0.0.0-20201113091052-beb923fada29 github.com/ipfs/go-block-format v0.0.2 github.com/ipfs/go-cid v0.0.7 @@ -26,6 +26,6 @@ require ( github.com/vulcanize/ipfs-ethdb v0.0.2-alpha ) -replace github.com/ethereum/go-ethereum v1.9.25 => /Users/arijitdas/go/src/github.com/ethereum/go-ethereum +replace github.com/ethereum/go-ethereum v1.10.6 => github.com/vulcanize/go-ethereum v1.10.6-statediff-0.0.25.0.20210816125050-7b20e5918be3 replace github.com/vulcanize/ipfs-ethdb v0.0.2-alpha => github.com/vulcanize/pg-ipfs-ethdb v0.0.2-alpha \ No newline at end of file diff --git a/go.sum b/go.sum index 0d634720..58107366 100644 --- a/go.sum +++ b/go.sum @@ -1396,6 +1396,8 @@ github.com/vulcanize/go-ethereum v1.10.4-statediff-0.0.24 h1:puM4Qav1IFH99D7cXyk github.com/vulcanize/go-ethereum v1.10.4-statediff-0.0.24/go.mod h1:kf/AR/qS19tnEjA5E8gx9OqokwuyDK5miAfo4hV4TnY= github.com/vulcanize/go-ethereum v1.10.4-statediff-0.0.25 h1:E5GvQBMxmZf1Jlu14UNC7wqh+6/cMNnEoHLDCVVIE94= github.com/vulcanize/go-ethereum v1.10.4-statediff-0.0.25/go.mod h1:rEjFTSfHtouzACrN+/EpWDTt6BauEIQEC7Czbv9k1DY= +github.com/vulcanize/go-ethereum v1.10.6-statediff-0.0.25.0.20210816125050-7b20e5918be3 h1:nI+tD4pJGh5lVB4SBdcMUiMZqWO90a5Acn/no/Llud8= +github.com/vulcanize/go-ethereum v1.10.6-statediff-0.0.25.0.20210816125050-7b20e5918be3/go.mod h1:Ph8UxrzyNNqtLqSm5v/q4AxYQ3kwEf3nlo3mdhmvZCw= github.com/vulcanize/ipfs-ethdb v0.0.2 h1:Ogp9k+OMKIn2xo9Y9VoNTjd5v1kXcjL+k3cDQwqpUPU= github.com/vulcanize/ipfs-ethdb v0.0.2/go.mod h1:9yDJ8PCVKK4auwM8KgVLVkGM05Atp2OITJvt6cSvsHs= github.com/vulcanize/ipld-eth-indexer v0.7.0-alpha h1:VuvKC2qLajohczJX74lwBrpr/X8ZNSyC23jIdN5Ppxg=