From 84aa0a7ebaa21f5ee6937321a7a71422e62eb0b8 Mon Sep 17 00:00:00 2001 From: Ian Norden Date: Thu, 7 Mar 2019 11:02:52 -0600 Subject: [PATCH 1/5] plugin migration order specified in config --- cmd/compose.go | 34 ++++++++++++++++++++++------------ pkg/config/plugin.go | 28 ++++++++++++++++++++++------ pkg/plugin/manager/manager.go | 4 ++-- 3 files changed, 46 insertions(+), 20 deletions(-) diff --git a/cmd/compose.go b/cmd/compose.go index 0a55284f..2c66fb05 100644 --- a/cmd/compose.go +++ b/cmd/compose.go @@ -18,6 +18,7 @@ package cmd import ( "errors" "fmt" + "strconv" log "github.com/sirupsen/logrus" "github.com/spf13/cobra" @@ -132,32 +133,41 @@ func prepConfig() { transformers := make(map[string]config.Transformer) for _, name := range names { transformer := viper.GetStringMapString("exporter." + name) - p, ok := transformer["path"] - if !ok || p == "" { - log.Fatal(fmt.Sprintf("%s transformer config is missing `path` value", name)) + p, pOK := transformer["path"] + if !pOK || p == "" { + log.Fatal(name, "transformer config is missing `path` value") } - r, ok := transformer["repository"] - if !ok || r == "" { - log.Fatal(fmt.Sprintf("%s transformer config is missing `repository` value", name)) + r, rOK := transformer["repository"] + if !rOK || r == "" { + log.Fatal(name, "transformer config is missing `repository` value") } - m, ok := transformer["migrations"] - if !ok || m == "" { - log.Fatal(fmt.Sprintf("%s transformer config is missing `migrations` value", name)) + m, mOK := transformer["migrations"] + if !mOK || m == "" { + log.Fatal(name, "transformer config is missing `migrations` value") } - t, ok := transformer["type"] - if !ok { - log.Fatal(fmt.Sprintf("%s transformer config is missing `type` value", name)) + mr, mrOK := transformer["rank"] + if !mrOK || mr == "" { + log.Fatal(name, "transformer config is missing `rank` value") + } + t, tOK := transformer["type"] + if !tOK { + log.Fatal(name, "transformer config is missing `type` value") } transformerType := config.GetTransformerType(t) if transformerType == config.UnknownTransformerType { log.Fatal(errors.New(`unknown transformer type in exporter config accepted types are "eth_event", "eth_storage"`)) } + rank, err := strconv.Atoi(mr) + if err != nil { + log.Fatal(name, "migration `rank` can't be converted to an integer") + } transformers[name] = config.Transformer{ Path: p, Type: transformerType, RepositoryPath: r, MigrationPath: m, + MigrationRank: rank, } } diff --git a/pkg/config/plugin.go b/pkg/config/plugin.go index 04d41ea9..36d96d86 100644 --- a/pkg/config/plugin.go +++ b/pkg/config/plugin.go @@ -17,6 +17,8 @@ package config import ( + "errors" + "fmt" "path/filepath" "strings" @@ -35,6 +37,7 @@ type Transformer struct { Path string Type TransformerType MigrationPath string + MigrationRank int RepositoryPath string } @@ -51,10 +54,10 @@ func (c *Plugin) GetPluginPaths() (string, string, error) { return goFile, soFile, nil } -// Removes duplicate migration paths before returning them -func (c *Plugin) GetMigrationsPaths() (map[string]bool, error) { - paths := make(map[string]bool) - for _, transformer := range c.Transformers { +// Removes duplicate migration paths and returns them in ranked order +func (c *Plugin) GetMigrationsPaths() ([]string, error) { + paths := make(map[int]string) + for name, transformer := range c.Transformers { repo := transformer.RepositoryPath mig := transformer.MigrationPath path := filepath.Join("$GOPATH/src", c.Home, "vendor", repo, mig) @@ -62,10 +65,23 @@ func (c *Plugin) GetMigrationsPaths() (map[string]bool, error) { if err != nil { return nil, err } - paths[cleanPath] = true + // If there is a different path with the same rank then we have a conflict + _, ok := paths[transformer.MigrationRank] + if ok { + conflictingPath := paths[transformer.MigrationRank] + if conflictingPath != cleanPath { + return nil, errors.New(fmt.Sprintf("transformer %s has the same migration rank (%d) as another transformer", name, transformer.MigrationRank)) + } + } + paths[transformer.MigrationRank] = cleanPath } - return paths, nil + sortedPaths := make([]string, len(paths)) + for rank, path := range paths { + sortedPaths[rank] = path + } + + return sortedPaths, nil } // Removes duplicate repo paths before returning them diff --git a/pkg/plugin/manager/manager.go b/pkg/plugin/manager/manager.go index a5afd965..54d2be17 100644 --- a/pkg/plugin/manager/manager.go +++ b/pkg/plugin/manager/manager.go @@ -105,9 +105,9 @@ func (m *manager) setupMigrationEnv() error { } // Create copies of db migrations from vendored libs -func (m *manager) createMigrationCopies(paths map[string]bool) error { +func (m *manager) createMigrationCopies(paths []string) error { // Iterate through migration paths to find migration directory - for path := range paths { + for _, path := range paths { dir, err := ioutil.ReadDir(path) if err != nil { return err From b3ce1ecd785852b52dbd78707c745d744ba4cbc9 Mon Sep 17 00:00:00 2001 From: Ian Norden Date: Thu, 7 Mar 2019 11:17:07 -0600 Subject: [PATCH 2/5] update readme and cmd usage comments --- README.md | 12 +++++++++++- cmd/compose.go | 12 ++++++++---- cmd/composeAndExecute.go | 4 ++++ 3 files changed, 23 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4ff53afc..2b3424b2 100644 --- a/README.md +++ b/README.md @@ -286,21 +286,25 @@ The config provides information for composing a set of transformers: type = "eth_event" repository = "github.com/account/repo" migrations = "db/migrations" + rank = "0" [exporter.transformer2] path = "path/to/transformer2" type = "eth_event" repository = "github.com/account/repo" migrations = "db/migrations" + rank = "2" [exporter.transformer3] path = "path/to/transformer3" type = "eth_event" repository = "github.com/account/repo" migrations = "db/migrations" + rank = "0" [exporter.transformer4] path = "path/to/transformer4" type = "eth_storage" repository = "github.com/account2/repo2" migrations = "to/db/migrations" + rank = "1" ``` - `home` is the name of the package you are building the plugin for, in most cases this is github.com/vulcanize/vulcanizedb - `name` is the name used for the plugin files (.so and .go) @@ -316,7 +320,13 @@ The config provides information for composing a set of transformers: - `eth_event` indicates the transformer works with the [event watcher](https://github.com/vulcanize/maker-vulcanizedb/blob/staging/libraries/shared/watcher/event_watcher.go) that fetches event logs from an ETH node - `migrations` is the relative path from `repository` to the db migrations directory for the transformer -- Note: If any of the imported transformers need additional config variables those need to be included as well + - `rank` determines the order that migrations are ran, with lower ranked migrations running first + - this is to help isolate any potential conflicts between transformer migrations + - start at "0" + - use strings + - don't leave gaps + - transformers with identical migrations/migration paths should share the same rank +- Note: If any of the imported transformers need additional config variables those need to be included as well This information is used to write and build a Go plugin which exports the configured transformers. These transformers are loaded onto their specified watchers and executed. diff --git a/cmd/compose.go b/cmd/compose.go index 2c66fb05..14dfe5c8 100644 --- a/cmd/compose.go +++ b/cmd/compose.go @@ -59,21 +59,25 @@ var composeCmd = &cobra.Command{ type = "eth_event" repository = "github.com/account/repo" migrations = "db/migrations" + rank = "0" [exporter.transformer2] path = "path/to/transformer2" type = "eth_event" repository = "github.com/account/repo" migrations = "db/migrations" + rank = "2" [exporter.transformer3] path = "path/to/transformer3" type = "eth_event" repository = "github.com/account/repo" migrations = "db/migrations" + rank = "0" [exporter.transformer4] path = "path/to/transformer4" type = "eth_storage" repository = "github.com/account2/repo2" migrations = "to/db/migrations" + rank = "1" Note: If any of the plugin transformer need additional @@ -149,6 +153,10 @@ func prepConfig() { if !mrOK || mr == "" { log.Fatal(name, "transformer config is missing `rank` value") } + rank, err := strconv.Atoi(mr) + if err != nil { + log.Fatal(name, "migration `rank` can't be converted to an integer") + } t, tOK := transformer["type"] if !tOK { log.Fatal(name, "transformer config is missing `type` value") @@ -157,10 +165,6 @@ func prepConfig() { if transformerType == config.UnknownTransformerType { log.Fatal(errors.New(`unknown transformer type in exporter config accepted types are "eth_event", "eth_storage"`)) } - rank, err := strconv.Atoi(mr) - if err != nil { - log.Fatal(name, "migration `rank` can't be converted to an integer") - } transformers[name] = config.Transformer{ Path: p, diff --git a/cmd/composeAndExecute.go b/cmd/composeAndExecute.go index 961d38c9..ad24cf55 100644 --- a/cmd/composeAndExecute.go +++ b/cmd/composeAndExecute.go @@ -59,21 +59,25 @@ var composeAndExecuteCmd = &cobra.Command{ type = "eth_event" repository = "github.com/account/repo" migrations = "db/migrations" + rank = "0" [exporter.transformer2] path = "path/to/transformer2" type = "eth_event" repository = "github.com/account/repo" migrations = "db/migrations" + rank = "2" [exporter.transformer3] path = "path/to/transformer3" type = "eth_event" repository = "github.com/account/repo" migrations = "db/migrations" + rank = "0" [exporter.transformer4] path = "path/to/transformer4" type = "eth_storage" repository = "github.com/account2/repo2" migrations = "to/db/migrations" + rank = "1" Note: If any of the plugin transformer need additional From f37c458992a7190c1a6b6f15ce1c34f255717cf9 Mon Sep 17 00:00:00 2001 From: Ian Norden Date: Thu, 7 Mar 2019 15:02:13 -0600 Subject: [PATCH 3/5] the part that actually runs the migrations in order --- pkg/plugin/manager/manager.go | 39 +++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 15 deletions(-) diff --git a/pkg/plugin/manager/manager.go b/pkg/plugin/manager/manager.go index 54d2be17..f80edda3 100644 --- a/pkg/plugin/manager/manager.go +++ b/pkg/plugin/manager/manager.go @@ -66,21 +66,6 @@ func (m *manager) RunMigrations() error { if err != nil { return err } - // Fix the migrations - cmd := exec.Command("goose", "fix") - cmd.Dir = m.tmpMigDir - err = cmd.Run() - if err != nil { - return errors.New(fmt.Sprintf("version fixing for plugin migrations failed: %s", err.Error())) - } - // Run the copied migrations with goose - pgStr := fmt.Sprintf("postgres://%s:%d/%s?sslmode=disable", m.DBConfig.Hostname, m.DBConfig.Port, m.DBConfig.Name) - cmd = exec.Command("goose", "postgres", pgStr, "up") - cmd.Dir = m.tmpMigDir - err = cmd.Run() - if err != nil { - return errors.New(fmt.Sprintf("db migrations for plugin transformers failed: %s", err.Error())) - } return nil } @@ -125,6 +110,30 @@ func (m *manager) createMigrationCopies(paths []string) error { return err } } + err = m.fixAndRun(path) + if err != nil { + return err + } + } + + return nil +} + +func (m *manager) fixAndRun(path string) error { + // Fix the migrations + cmd := exec.Command("goose", "fix") + cmd.Dir = m.tmpMigDir + err := cmd.Run() + if err != nil { + return errors.New(fmt.Sprintf("version fixing for plugin migrations at %s failed: %s", path, err.Error())) + } + // Run the copied migrations with goose + pgStr := fmt.Sprintf("postgres://%s:%d/%s?sslmode=disable", m.DBConfig.Hostname, m.DBConfig.Port, m.DBConfig.Name) + cmd = exec.Command("goose", "postgres", pgStr, "up") + cmd.Dir = m.tmpMigDir + err = cmd.Run() + if err != nil { + return errors.New(fmt.Sprintf("db migrations for plugin transformers at %s failed: %s", path, err.Error())) } return nil From 05cb06c2d3fe6f93d39488caf1e410e064722cc9 Mon Sep 17 00:00:00 2001 From: Ian Norden Date: Fri, 8 Mar 2019 10:31:32 -0600 Subject: [PATCH 4/5] config example fixes --- README.md | 2 +- cmd/compose.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2b3424b2..3d36055f 100644 --- a/README.md +++ b/README.md @@ -292,7 +292,7 @@ The config provides information for composing a set of transformers: type = "eth_event" repository = "github.com/account/repo" migrations = "db/migrations" - rank = "2" + rank = "0" [exporter.transformer3] path = "path/to/transformer3" type = "eth_event" diff --git a/cmd/compose.go b/cmd/compose.go index 14dfe5c8..a06d9ab4 100644 --- a/cmd/compose.go +++ b/cmd/compose.go @@ -65,7 +65,7 @@ var composeCmd = &cobra.Command{ type = "eth_event" repository = "github.com/account/repo" migrations = "db/migrations" - rank = "2" + rank = "0" [exporter.transformer3] path = "path/to/transformer3" type = "eth_event" From 9f8c50e3aba108445c264cb4541e57f47c63b9db Mon Sep 17 00:00:00 2001 From: Ian Norden Date: Tue, 12 Mar 2019 10:46:42 -0500 Subject: [PATCH 5/5] tests for migration path ordering and errors --- cmd/coldImport.go | 2 +- cmd/compose.go | 4 +- cmd/lightSync.go | 2 +- cmd/omniWatcher.go | 2 +- cmd/root.go | 2 +- cmd/sync.go | 2 +- integration_test/block_rewards_test.go | 2 +- integration_test/contract_test.go | 2 +- integration_test/geth_blockchain_test.go | 2 +- .../integration_test_suite_test.go | 2 +- .../shared/chunker/chunker_suite_test.go | 2 +- libraries/shared/chunker/log_chunker.go | 2 +- libraries/shared/chunker/log_chunker_test.go | 2 +- libraries/shared/constants/checked_headers.go | 2 +- libraries/shared/constants/data.go | 2 +- libraries/shared/factories/converter.go | 2 +- .../shared/factories/factories_suite_test.go | 2 +- .../shared/factories/log_note_converter.go | 2 +- .../shared/factories/log_note_transformer.go | 2 +- .../factories/log_note_transformer_test.go | 2 +- libraries/shared/factories/repository.go | 2 +- .../factories/storage/storage_suite_test.go | 2 +- .../shared/factories/storage/transformer.go | 2 +- .../factories/storage/transformer_test.go | 2 +- libraries/shared/factories/transformer.go | 2 +- .../shared/factories/transformer_test.go | 2 +- .../shared/fetcher/fetcher_suite_test.go | 2 +- libraries/shared/fetcher/log_fetcher.go | 2 +- libraries/shared/fetcher/log_fetcher_test.go | 2 +- libraries/shared/mocks/converter.go | 2 +- libraries/shared/mocks/log_note_converter.go | 2 +- libraries/shared/mocks/mappings.go | 2 +- .../shared/mocks/mock_watcher_repository.go | 2 +- libraries/shared/mocks/repository.go | 2 +- libraries/shared/mocks/storage_queue.go | 2 +- libraries/shared/mocks/storage_repository.go | 2 +- libraries/shared/mocks/storage_transformer.go | 2 +- libraries/shared/mocks/transformer.go | 2 +- libraries/shared/repository/repository.go | 2 +- .../repository/repository_suite_test.go | 2 +- .../shared/repository/repository_test.go | 2 +- .../shared/repository/storage_repository.go | 2 +- libraries/shared/storage/mappings.go | 2 +- libraries/shared/storage/storage_queue.go | 2 +- .../shared/storage/storage_suite_test.go | 2 +- libraries/shared/storage/utils/decoder.go | 2 +- .../shared/storage/utils/decoder_test.go | 2 +- libraries/shared/storage/utils/errors.go | 2 +- libraries/shared/storage/utils/row.go | 2 +- libraries/shared/storage/utils/row_test.go | 2 +- .../shared/storage/utils/utils_suite_test.go | 2 +- libraries/shared/storage/utils/value.go | 2 +- libraries/shared/test_data/generic.go | 2 +- .../shared/transformer/event_transformer.go | 2 +- .../shared/transformer/storage_transformer.go | 2 +- libraries/shared/watcher/event_watcher.go | 2 +- .../shared/watcher/event_watcher_test.go | 2 +- libraries/shared/watcher/storage_watcher.go | 2 +- .../shared/watcher/storage_watcher_test.go | 2 +- .../shared/watcher/watcher_suite_test.go | 2 +- pkg/config/client.go | 2 +- pkg/config/config.go | 2 +- pkg/config/config_suite_test.go | 2 +- pkg/config/config_test.go | 2 +- pkg/config/database.go | 2 +- pkg/config/plugin.go | 38 ++- pkg/config/plugin_test.go | 241 ++++++++++++++++++ pkg/core/block.go | 2 +- pkg/core/blockchain.go | 2 +- pkg/core/contract.go | 2 +- pkg/core/eth_client.go | 2 +- pkg/core/header.go | 2 +- pkg/core/log.go | 2 +- pkg/core/node_info.go | 2 +- pkg/core/receipts.go | 2 +- pkg/core/rpc_client.go | 2 +- pkg/core/topics.go | 2 +- pkg/core/transaction.go | 2 +- pkg/core/watched_event_log.go | 2 +- pkg/crypto/crypto_suite_test.go | 2 +- pkg/crypto/parser.go | 2 +- pkg/crypto/parser_test.go | 2 +- pkg/datastore/ethereum/config.go | 2 +- pkg/datastore/ethereum/database.go | 2 +- pkg/datastore/ethereum/level/database.go | 2 +- .../ethereum/level/database_reader.go | 2 +- pkg/datastore/ethereum/level/database_test.go | 2 +- .../ethereum/level/level_suite_test.go | 2 +- pkg/datastore/postgres/postgres.go | 2 +- pkg/datastore/postgres/postgres_suite_test.go | 2 +- pkg/datastore/postgres/postgres_test.go | 2 +- .../postgres/repositories/block_repository.go | 2 +- .../repositories/block_repository_test.go | 2 +- .../repositories/contract_repository.go | 2 +- .../repositories/contract_repository_test.go | 2 +- .../repositories/header_repository.go | 2 +- .../repositories/header_repository_test.go | 2 +- .../repositories/log_filter_repository.go | 2 +- .../log_filter_repository_test.go | 2 +- .../postgres/repositories/logs_repository.go | 2 +- .../repositories/logs_repository_test.go | 2 +- .../repositories/receipt_repository.go | 2 +- .../repositories/receipts_repository_test.go | 2 +- .../repositories/repositories_suite_test.go | 2 +- .../repositories/watched_events_repository.go | 2 +- .../watched_events_repository_test.go | 2 +- pkg/datastore/repository.go | 2 +- pkg/fakes/data.go | 2 +- pkg/fakes/mock_block_repository.go | 2 +- pkg/fakes/mock_blockchain.go | 2 +- pkg/fakes/mock_crypto_parser.go | 2 +- pkg/fakes/mock_eth_client.go | 2 +- pkg/fakes/mock_ethereum_database.go | 2 +- pkg/fakes/mock_fs_reader.go | 2 +- pkg/fakes/mock_header_repository.go | 2 +- pkg/fakes/mock_level_database_reader.go | 2 +- pkg/fakes/mock_receipt_repository.go | 2 +- pkg/fakes/mock_rpc_client.go | 2 +- pkg/fakes/mock_transaction_converter.go | 2 +- pkg/filters/filter_query.go | 2 +- pkg/filters/filter_test.go | 2 +- pkg/filters/query_builder_suite_test.go | 2 +- pkg/fs/reader.go | 2 +- pkg/geth/abi.go | 2 +- pkg/geth/abi_test.go | 2 +- pkg/geth/blockchain.go | 2 +- pkg/geth/blockchain_test.go | 2 +- pkg/geth/client/eth_client.go | 2 +- pkg/geth/client/rpc_client.go | 2 +- .../cold_import/cold_import_suite_test.go | 2 +- pkg/geth/cold_import/importer.go | 2 +- pkg/geth/cold_import/importer_test.go | 2 +- pkg/geth/cold_import/node_builder.go | 2 +- pkg/geth/cold_import/node_builder_test.go | 2 +- pkg/geth/contract.go | 2 +- .../cold_db/transaction_converter.go | 2 +- pkg/geth/converters/common/block_converter.go | 2 +- .../converters/common/block_converter_test.go | 2 +- pkg/geth/converters/common/block_rewards.go | 2 +- .../converters/common/common_suite_test.go | 2 +- .../converters/common/header_converter.go | 2 +- .../common/header_converter_test.go | 2 +- pkg/geth/converters/common/log_converter.go | 2 +- .../converters/common/log_converter_test.go | 2 +- .../converters/common/receipt_converter.go | 2 +- .../common/receipt_converter_test.go | 2 +- .../common/transaction_converter.go | 2 +- .../converters/rpc/transaction_converter.go | 2 +- pkg/geth/geth_suite_test.go | 2 +- pkg/geth/node/node.go | 2 +- pkg/geth/node/node_suite_test.go | 2 +- pkg/geth/node/node_test.go | 2 +- pkg/geth/testing/helpers.go | 2 +- pkg/history/block_validator.go | 2 +- pkg/history/block_validator_test.go | 2 +- pkg/history/header_validator.go | 2 +- pkg/history/header_validator_test.go | 2 +- pkg/history/history_suite_test.go | 2 +- pkg/history/populate_blocks.go | 2 +- pkg/history/populate_blocks_test.go | 2 +- pkg/history/populate_headers.go | 2 +- pkg/history/populate_headers_test.go | 2 +- pkg/history/validation_window.go | 2 +- pkg/history/validation_window_test.go | 2 +- pkg/omni/full/converter/converter.go | 2 +- .../full/converter/converter_suite_test.go | 2 +- pkg/omni/full/converter/converter_test.go | 2 +- pkg/omni/full/retriever/block_retriever.go | 2 +- .../full/retriever/block_retriever_test.go | 2 +- .../full/retriever/retriever_suite_test.go | 2 +- pkg/omni/full/transformer/transformer.go | 2 +- .../transformer/transformer_suite_test.go | 2 +- pkg/omni/full/transformer/transformer_test.go | 2 +- pkg/omni/light/converter/converter.go | 2 +- .../light/converter/converter_suite_test.go | 2 +- pkg/omni/light/converter/converter_test.go | 2 +- pkg/omni/light/fetcher/fetcher.go | 2 +- pkg/omni/light/fetcher/fetcher_suite_test.go | 2 +- pkg/omni/light/fetcher/fetcher_test.go | 2 +- .../light/repository/header_repository.go | 2 +- .../repository/header_repository_test.go | 2 +- .../light/repository/repository_suite_test.go | 2 +- pkg/omni/light/retriever/block_retriever.go | 2 +- .../light/retriever/block_retriever_test.go | 2 +- .../light/retriever/retriever_suite_test.go | 2 +- pkg/omni/light/transformer/transformer.go | 2 +- .../transformer/transformer_suite_test.go | 2 +- .../light/transformer/transformer_test.go | 2 +- pkg/omni/shared/constants/constants.go | 2 +- pkg/omni/shared/constants/interface.go | 2 +- pkg/omni/shared/contract/contract.go | 2 +- .../shared/contract/contract_suite_test.go | 2 +- pkg/omni/shared/contract/contract_test.go | 2 +- pkg/omni/shared/fetcher/fetcher.go | 2 +- pkg/omni/shared/getter/getter_suite_test.go | 2 +- pkg/omni/shared/getter/getter_test.go | 2 +- pkg/omni/shared/getter/interface_getter.go | 2 +- pkg/omni/shared/helpers/helpers.go | 2 +- .../shared/helpers/test_helpers/database.go | 2 +- .../helpers/test_helpers/mocks/entities.go | 2 +- .../helpers/test_helpers/mocks/parser.go | 2 +- pkg/omni/shared/parser/parser.go | 2 +- pkg/omni/shared/parser/parser_suite_test.go | 2 +- pkg/omni/shared/parser/parser_test.go | 2 +- pkg/omni/shared/poller/poller.go | 2 +- pkg/omni/shared/poller/poller_suite_test.go | 2 +- pkg/omni/shared/poller/poller_test.go | 2 +- .../shared/repository/event_repository.go | 2 +- .../repository/event_repository_test.go | 2 +- .../shared/repository/method_repository.go | 2 +- .../repository/method_repository_test.go | 2 +- .../repository/repository_suite_test.go | 2 +- .../shared/retriever/address_retriever.go | 2 +- .../retriever/address_retriever_test.go | 2 +- .../shared/retriever/retriever_suite_test.go | 2 +- pkg/omni/shared/transformer/interface.go | 2 +- pkg/omni/shared/types/event.go | 2 +- pkg/omni/shared/types/method.go | 2 +- pkg/omni/shared/types/mode.go | 2 +- pkg/plugin/builder/builder.go | 2 +- pkg/plugin/generator.go | 2 +- pkg/plugin/helpers/helpers.go | 2 +- pkg/plugin/manager/manager.go | 2 +- pkg/plugin/test_helpers/database.go | 2 +- pkg/plugin/writer/writer.go | 2 +- test_config/test_config.go | 2 +- utils/utils.go | 2 +- 227 files changed, 502 insertions(+), 229 deletions(-) create mode 100644 pkg/config/plugin_test.go diff --git a/cmd/coldImport.go b/cmd/coldImport.go index 0d8efdbf..58d9df89 100644 --- a/cmd/coldImport.go +++ b/cmd/coldImport.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/cmd/compose.go b/cmd/compose.go index a06d9ab4..72f6a299 100644 --- a/cmd/compose.go +++ b/cmd/compose.go @@ -153,9 +153,9 @@ func prepConfig() { if !mrOK || mr == "" { log.Fatal(name, "transformer config is missing `rank` value") } - rank, err := strconv.Atoi(mr) + rank, err := strconv.ParseUint(mr, 10, 64) if err != nil { - log.Fatal(name, "migration `rank` can't be converted to an integer") + log.Fatal(name, "migration `rank` can't be converted to an unsigned integer") } t, tOK := transformer["type"] if !tOK { diff --git a/cmd/lightSync.go b/cmd/lightSync.go index f3d47220..5ce62647 100644 --- a/cmd/lightSync.go +++ b/cmd/lightSync.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/cmd/omniWatcher.go b/cmd/omniWatcher.go index a46549ef..a07108a9 100644 --- a/cmd/omniWatcher.go +++ b/cmd/omniWatcher.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/cmd/root.go b/cmd/root.go index e88a025d..f322867e 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/cmd/sync.go b/cmd/sync.go index 82ac52b5..6dd2be07 100644 --- a/cmd/sync.go +++ b/cmd/sync.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/integration_test/block_rewards_test.go b/integration_test/block_rewards_test.go index f379b870..2cee003d 100644 --- a/integration_test/block_rewards_test.go +++ b/integration_test/block_rewards_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/integration_test/contract_test.go b/integration_test/contract_test.go index 139d46d8..3d2dd866 100644 --- a/integration_test/contract_test.go +++ b/integration_test/contract_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/integration_test/geth_blockchain_test.go b/integration_test/geth_blockchain_test.go index bec8d39b..c970c799 100644 --- a/integration_test/geth_blockchain_test.go +++ b/integration_test/geth_blockchain_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/integration_test/integration_test_suite_test.go b/integration_test/integration_test_suite_test.go index cc2318de..fd5e5588 100644 --- a/integration_test/integration_test_suite_test.go +++ b/integration_test/integration_test_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/chunker/chunker_suite_test.go b/libraries/shared/chunker/chunker_suite_test.go index f28d59d6..0c5d4562 100644 --- a/libraries/shared/chunker/chunker_suite_test.go +++ b/libraries/shared/chunker/chunker_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/chunker/log_chunker.go b/libraries/shared/chunker/log_chunker.go index a8bbe089..06066ec2 100644 --- a/libraries/shared/chunker/log_chunker.go +++ b/libraries/shared/chunker/log_chunker.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/chunker/log_chunker_test.go b/libraries/shared/chunker/log_chunker_test.go index 27e73c24..2a1b9b7e 100644 --- a/libraries/shared/chunker/log_chunker_test.go +++ b/libraries/shared/chunker/log_chunker_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/constants/checked_headers.go b/libraries/shared/constants/checked_headers.go index 2e02d3f9..c3fdbeb3 100644 --- a/libraries/shared/constants/checked_headers.go +++ b/libraries/shared/constants/checked_headers.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/constants/data.go b/libraries/shared/constants/data.go index 1011736a..f4803592 100644 --- a/libraries/shared/constants/data.go +++ b/libraries/shared/constants/data.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/factories/converter.go b/libraries/shared/factories/converter.go index 1d46a048..631a27f4 100644 --- a/libraries/shared/factories/converter.go +++ b/libraries/shared/factories/converter.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/factories/factories_suite_test.go b/libraries/shared/factories/factories_suite_test.go index 497c53d3..c90b0fb1 100644 --- a/libraries/shared/factories/factories_suite_test.go +++ b/libraries/shared/factories/factories_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/factories/log_note_converter.go b/libraries/shared/factories/log_note_converter.go index 646ad13a..9229a082 100644 --- a/libraries/shared/factories/log_note_converter.go +++ b/libraries/shared/factories/log_note_converter.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/factories/log_note_transformer.go b/libraries/shared/factories/log_note_transformer.go index 7a96cfee..a53bcf68 100644 --- a/libraries/shared/factories/log_note_transformer.go +++ b/libraries/shared/factories/log_note_transformer.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/factories/log_note_transformer_test.go b/libraries/shared/factories/log_note_transformer_test.go index 6d8ea569..cb084044 100644 --- a/libraries/shared/factories/log_note_transformer_test.go +++ b/libraries/shared/factories/log_note_transformer_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/factories/repository.go b/libraries/shared/factories/repository.go index d953249b..e2ea8d46 100644 --- a/libraries/shared/factories/repository.go +++ b/libraries/shared/factories/repository.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/factories/storage/storage_suite_test.go b/libraries/shared/factories/storage/storage_suite_test.go index 3c2e86b8..14fb90a0 100644 --- a/libraries/shared/factories/storage/storage_suite_test.go +++ b/libraries/shared/factories/storage/storage_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/factories/storage/transformer.go b/libraries/shared/factories/storage/transformer.go index b3570019..fce04465 100644 --- a/libraries/shared/factories/storage/transformer.go +++ b/libraries/shared/factories/storage/transformer.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/factories/storage/transformer_test.go b/libraries/shared/factories/storage/transformer_test.go index aa80fbfa..354c106b 100644 --- a/libraries/shared/factories/storage/transformer_test.go +++ b/libraries/shared/factories/storage/transformer_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/factories/transformer.go b/libraries/shared/factories/transformer.go index 7ef882bf..c0a74062 100644 --- a/libraries/shared/factories/transformer.go +++ b/libraries/shared/factories/transformer.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/factories/transformer_test.go b/libraries/shared/factories/transformer_test.go index 201044f3..198fed89 100644 --- a/libraries/shared/factories/transformer_test.go +++ b/libraries/shared/factories/transformer_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/fetcher/fetcher_suite_test.go b/libraries/shared/fetcher/fetcher_suite_test.go index 09f024bd..e1bb832a 100644 --- a/libraries/shared/fetcher/fetcher_suite_test.go +++ b/libraries/shared/fetcher/fetcher_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/fetcher/log_fetcher.go b/libraries/shared/fetcher/log_fetcher.go index 225c1469..a231b3de 100644 --- a/libraries/shared/fetcher/log_fetcher.go +++ b/libraries/shared/fetcher/log_fetcher.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/fetcher/log_fetcher_test.go b/libraries/shared/fetcher/log_fetcher_test.go index c8f23cf1..1a41a5a3 100644 --- a/libraries/shared/fetcher/log_fetcher_test.go +++ b/libraries/shared/fetcher/log_fetcher_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/mocks/converter.go b/libraries/shared/mocks/converter.go index 0d5a2ae3..01b0e4a6 100644 --- a/libraries/shared/mocks/converter.go +++ b/libraries/shared/mocks/converter.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/mocks/log_note_converter.go b/libraries/shared/mocks/log_note_converter.go index 1ab9312a..7125fc5e 100644 --- a/libraries/shared/mocks/log_note_converter.go +++ b/libraries/shared/mocks/log_note_converter.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/mocks/mappings.go b/libraries/shared/mocks/mappings.go index 0ad0dee9..d2f681bb 100644 --- a/libraries/shared/mocks/mappings.go +++ b/libraries/shared/mocks/mappings.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/mocks/mock_watcher_repository.go b/libraries/shared/mocks/mock_watcher_repository.go index fe9d70a6..fb0da575 100644 --- a/libraries/shared/mocks/mock_watcher_repository.go +++ b/libraries/shared/mocks/mock_watcher_repository.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/mocks/repository.go b/libraries/shared/mocks/repository.go index 4bd39e64..1c3efe13 100644 --- a/libraries/shared/mocks/repository.go +++ b/libraries/shared/mocks/repository.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/mocks/storage_queue.go b/libraries/shared/mocks/storage_queue.go index ea668e54..fa44c474 100644 --- a/libraries/shared/mocks/storage_queue.go +++ b/libraries/shared/mocks/storage_queue.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/mocks/storage_repository.go b/libraries/shared/mocks/storage_repository.go index a370e745..c4e351be 100644 --- a/libraries/shared/mocks/storage_repository.go +++ b/libraries/shared/mocks/storage_repository.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/mocks/storage_transformer.go b/libraries/shared/mocks/storage_transformer.go index 047a9cc3..a2140de0 100644 --- a/libraries/shared/mocks/storage_transformer.go +++ b/libraries/shared/mocks/storage_transformer.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/mocks/transformer.go b/libraries/shared/mocks/transformer.go index f8a74c80..fef302d1 100644 --- a/libraries/shared/mocks/transformer.go +++ b/libraries/shared/mocks/transformer.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/repository/repository.go b/libraries/shared/repository/repository.go index e80a8ce7..bab8aa9d 100644 --- a/libraries/shared/repository/repository.go +++ b/libraries/shared/repository/repository.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/repository/repository_suite_test.go b/libraries/shared/repository/repository_suite_test.go index 3e467abc..d934f9f8 100644 --- a/libraries/shared/repository/repository_suite_test.go +++ b/libraries/shared/repository/repository_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/repository/repository_test.go b/libraries/shared/repository/repository_test.go index dfd595ff..1a9977d0 100644 --- a/libraries/shared/repository/repository_test.go +++ b/libraries/shared/repository/repository_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/repository/storage_repository.go b/libraries/shared/repository/storage_repository.go index 379362e3..f921d5aa 100644 --- a/libraries/shared/repository/storage_repository.go +++ b/libraries/shared/repository/storage_repository.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/storage/mappings.go b/libraries/shared/storage/mappings.go index dab8efb7..47dab424 100644 --- a/libraries/shared/storage/mappings.go +++ b/libraries/shared/storage/mappings.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/storage/storage_queue.go b/libraries/shared/storage/storage_queue.go index 9c5c7135..a077a4f9 100644 --- a/libraries/shared/storage/storage_queue.go +++ b/libraries/shared/storage/storage_queue.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/storage/storage_suite_test.go b/libraries/shared/storage/storage_suite_test.go index 7773fc65..a24f35d3 100644 --- a/libraries/shared/storage/storage_suite_test.go +++ b/libraries/shared/storage/storage_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/storage/utils/decoder.go b/libraries/shared/storage/utils/decoder.go index 36f9208d..1a6ac31c 100644 --- a/libraries/shared/storage/utils/decoder.go +++ b/libraries/shared/storage/utils/decoder.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/storage/utils/decoder_test.go b/libraries/shared/storage/utils/decoder_test.go index ba74a969..9e7bb65a 100644 --- a/libraries/shared/storage/utils/decoder_test.go +++ b/libraries/shared/storage/utils/decoder_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/storage/utils/errors.go b/libraries/shared/storage/utils/errors.go index 2d698f27..0c87c642 100644 --- a/libraries/shared/storage/utils/errors.go +++ b/libraries/shared/storage/utils/errors.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/storage/utils/row.go b/libraries/shared/storage/utils/row.go index 840a8883..dddb4e8f 100644 --- a/libraries/shared/storage/utils/row.go +++ b/libraries/shared/storage/utils/row.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/storage/utils/row_test.go b/libraries/shared/storage/utils/row_test.go index 261085c3..ffd49fbf 100644 --- a/libraries/shared/storage/utils/row_test.go +++ b/libraries/shared/storage/utils/row_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/storage/utils/utils_suite_test.go b/libraries/shared/storage/utils/utils_suite_test.go index e5bc1ace..f77d6860 100644 --- a/libraries/shared/storage/utils/utils_suite_test.go +++ b/libraries/shared/storage/utils/utils_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/storage/utils/value.go b/libraries/shared/storage/utils/value.go index 5241bffe..095ff8fd 100644 --- a/libraries/shared/storage/utils/value.go +++ b/libraries/shared/storage/utils/value.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/test_data/generic.go b/libraries/shared/test_data/generic.go index 9dd53ad7..12b79a27 100644 --- a/libraries/shared/test_data/generic.go +++ b/libraries/shared/test_data/generic.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/transformer/event_transformer.go b/libraries/shared/transformer/event_transformer.go index 3b0fd626..6fd43fa4 100644 --- a/libraries/shared/transformer/event_transformer.go +++ b/libraries/shared/transformer/event_transformer.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/transformer/storage_transformer.go b/libraries/shared/transformer/storage_transformer.go index 22ca9378..3db5c0c1 100644 --- a/libraries/shared/transformer/storage_transformer.go +++ b/libraries/shared/transformer/storage_transformer.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/watcher/event_watcher.go b/libraries/shared/watcher/event_watcher.go index b957c878..aae76b3b 100644 --- a/libraries/shared/watcher/event_watcher.go +++ b/libraries/shared/watcher/event_watcher.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/watcher/event_watcher_test.go b/libraries/shared/watcher/event_watcher_test.go index 5d8e2ae1..84487d9d 100644 --- a/libraries/shared/watcher/event_watcher_test.go +++ b/libraries/shared/watcher/event_watcher_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/watcher/storage_watcher.go b/libraries/shared/watcher/storage_watcher.go index 8b871e5b..524cbcd4 100644 --- a/libraries/shared/watcher/storage_watcher.go +++ b/libraries/shared/watcher/storage_watcher.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/watcher/storage_watcher_test.go b/libraries/shared/watcher/storage_watcher_test.go index 4a073be3..dc74eba4 100644 --- a/libraries/shared/watcher/storage_watcher_test.go +++ b/libraries/shared/watcher/storage_watcher_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/libraries/shared/watcher/watcher_suite_test.go b/libraries/shared/watcher/watcher_suite_test.go index 2425d502..9685a721 100644 --- a/libraries/shared/watcher/watcher_suite_test.go +++ b/libraries/shared/watcher/watcher_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/config/client.go b/pkg/config/client.go index 650bf5b1..ea426d5d 100644 --- a/pkg/config/client.go +++ b/pkg/config/client.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/config/config.go b/pkg/config/config.go index 9b7c9799..87588f9d 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/config/config_suite_test.go b/pkg/config/config_suite_test.go index 22df0c6f..97aa327c 100644 --- a/pkg/config/config_suite_test.go +++ b/pkg/config/config_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/config/config_test.go b/pkg/config/config_test.go index fe8dc0aa..0daa5e77 100644 --- a/pkg/config/config_test.go +++ b/pkg/config/config_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/config/database.go b/pkg/config/database.go index 62bdd8bf..2eb37e1b 100644 --- a/pkg/config/database.go +++ b/pkg/config/database.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/config/plugin.go b/pkg/config/plugin.go index 36d96d86..dbe6a2f3 100644 --- a/pkg/config/plugin.go +++ b/pkg/config/plugin.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by @@ -37,7 +37,7 @@ type Transformer struct { Path string Type TransformerType MigrationPath string - MigrationRank int + MigrationRank uint64 RepositoryPath string } @@ -56,7 +56,8 @@ func (c *Plugin) GetPluginPaths() (string, string, error) { // Removes duplicate migration paths and returns them in ranked order func (c *Plugin) GetMigrationsPaths() ([]string, error) { - paths := make(map[int]string) + paths := make(map[uint64]string) + highestRank := -1 for name, transformer := range c.Transformers { repo := transformer.RepositoryPath mig := transformer.MigrationPath @@ -74,6 +75,16 @@ func (c *Plugin) GetMigrationsPaths() ([]string, error) { } } paths[transformer.MigrationRank] = cleanPath + if int(transformer.MigrationRank) >= highestRank { + highestRank = int(transformer.MigrationRank) + } + } + // Check for gaps and duplicates + if len(paths) != (highestRank + 1) { + return []string{}, errors.New("number of distinct ranks does not match number of distinct migration paths") + } + if anyDupes(paths) { + return []string{}, errors.New("duplicate paths with different ranks present") } sortedPaths := make([]string, len(paths)) @@ -130,3 +141,24 @@ func GetTransformerType(str string) TransformerType { return UnknownTransformerType } + +func anyDupes(list map[uint64]string) bool { + seen := make([]string, 0, len(list)) + for _, str := range list { + dupe := inList(str, seen) + if dupe { + return true + } + seen = append(seen, str) + } + return false +} + +func inList(str string, list []string) bool { + for _, element := range list { + if str == element { + return true + } + } + return false +} diff --git a/pkg/config/plugin_test.go b/pkg/config/plugin_test.go new file mode 100644 index 00000000..1d1616bb --- /dev/null +++ b/pkg/config/plugin_test.go @@ -0,0 +1,241 @@ +// VulcanizeDB +// Copyright © 2019 Vulcanize + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +package config_test + +import ( + . "github.com/onsi/ginkgo" + . "github.com/onsi/gomega" + "github.com/vulcanize/vulcanizedb/pkg/config" + "os" + "path/filepath" +) + +var allDifferentPathsConfig = config.Plugin{ + Transformers: map[string]config.Transformer{ + "transformer1": { + Path: "test/init/path", + Type: config.EthEvent, + MigrationPath: "test/migration/path1", + MigrationRank: 0, + RepositoryPath: "test/repo/path", + }, + "transformer2": { + Path: "test/init/path", + Type: config.EthEvent, + MigrationPath: "test/migration/path2", + MigrationRank: 2, + RepositoryPath: "test/repo/path", + }, + "transformer3": { + Path: "test/init/path2", + Type: config.EthEvent, + MigrationPath: "test/migration/path3", + MigrationRank: 1, + RepositoryPath: "test/repo/path", + }, + }, +} + +var overlappingPathsConfig = config.Plugin{ + Transformers: map[string]config.Transformer{ + "transformer1": { + Path: "test/init/path", + Type: config.EthEvent, + MigrationPath: "test/migration/path1", + MigrationRank: 0, + RepositoryPath: "test/repo/path", + }, + "transformer2": { + Path: "test/init/path", + Type: config.EthEvent, + MigrationPath: "test/migration/path1", + MigrationRank: 0, + RepositoryPath: "test/repo/path", + }, + "transformer3": { + Path: "test/init/path2", + Type: config.EthEvent, + MigrationPath: "test/migration/path3", + MigrationRank: 1, + RepositoryPath: "test/repo/path", + }, + }, +} + +var conflictErrorConfig = config.Plugin{ + Transformers: map[string]config.Transformer{ + "transformer1": { + Path: "test/init/path", + Type: config.EthEvent, + MigrationPath: "test/migration/path1", + MigrationRank: 0, + RepositoryPath: "test/repo/path", + }, + "transformer2": { + Path: "test/init/path", + Type: config.EthEvent, + MigrationPath: "test/migration/path2", + MigrationRank: 0, + RepositoryPath: "test/repo/path", + }, + "transformer3": { + Path: "test/init/path2", + Type: config.EthEvent, + MigrationPath: "test/migration/path3", + MigrationRank: 1, + RepositoryPath: "test/repo/path", + }, + }, +} + +var gapErrorConfig = config.Plugin{ + Transformers: map[string]config.Transformer{ + "transformer1": { + Path: "test/init/path", + Type: config.EthEvent, + MigrationPath: "test/migration/path1", + MigrationRank: 0, + RepositoryPath: "test/repo/path", + }, + "transformer2": { + Path: "test/init/path", + Type: config.EthEvent, + MigrationPath: "test/migration/path2", + MigrationRank: 3, + RepositoryPath: "test/repo/path", + }, + "transformer3": { + Path: "test/init/path2", + Type: config.EthEvent, + MigrationPath: "test/migration/path3", + MigrationRank: 1, + RepositoryPath: "test/repo/path", + }, + }, +} + +var missingRankErrorConfig = config.Plugin{ + Transformers: map[string]config.Transformer{ + "transformer1": { + Path: "test/init/path", + Type: config.EthEvent, + MigrationPath: "test/migration/path1", + MigrationRank: 0, + RepositoryPath: "test/repo/path", + }, + "transformer2": { + Path: "test/init/path", + Type: config.EthEvent, + MigrationPath: "test/migration/path2", + RepositoryPath: "test/repo/path", + }, + "transformer3": { + Path: "test/init/path2", + Type: config.EthEvent, + MigrationPath: "test/migration/path3", + MigrationRank: 1, + RepositoryPath: "test/repo/path", + }, + }, +} + +var duplicateErrorConfig = config.Plugin{ + Transformers: map[string]config.Transformer{ + "transformer1": { + Path: "test/init/path", + Type: config.EthEvent, + MigrationPath: "test/migration/path1", + MigrationRank: 0, + RepositoryPath: "test/repo/path", + }, + "transformer2": { + Path: "test/init/path", + Type: config.EthEvent, + MigrationPath: "test/migration/path1", + RepositoryPath: "test/repo/path", + MigrationRank: 2, + }, + "transformer3": { + Path: "test/init/path2", + Type: config.EthEvent, + MigrationPath: "test/migration/path3", + MigrationRank: 1, + RepositoryPath: "test/repo/path", + }, + }, +} + +var _ = Describe("GetMigrationsPaths", func() { + It("Sorts migration paths by rank", func() { + plugin := allDifferentPathsConfig + migrationPaths, err := plugin.GetMigrationsPaths() + Expect(err).ToNot(HaveOccurred()) + Expect(len(migrationPaths)).To(Equal(3)) + + env := os.Getenv("GOPATH") + path1 := filepath.Join(env, "src/vendor/test/repo/path/test/migration/path1") + path2 := filepath.Join(env, "src/vendor/test/repo/path/test/migration/path3") + path3 := filepath.Join(env, "src/vendor/test/repo/path/test/migration/path2") + expectedMigrationPaths := []string{path1, path2, path3} + Expect(migrationPaths).To(Equal(expectedMigrationPaths)) + }) + + It("Expects identical migration paths to have the same rank", func() { + plugin := overlappingPathsConfig + migrationPaths, err := plugin.GetMigrationsPaths() + Expect(err).ToNot(HaveOccurred()) + Expect(len(migrationPaths)).To(Equal(2)) + + env := os.Getenv("GOPATH") + path1 := filepath.Join(env, "src/vendor/test/repo/path/test/migration/path1") + path2 := filepath.Join(env, "src/vendor/test/repo/path/test/migration/path3") + expectedMigrationPaths := []string{path1, path2} + Expect(migrationPaths).To(Equal(expectedMigrationPaths)) + }) + + It("Fails if two different migration paths have the same rank", func() { + plugin := conflictErrorConfig + migrationPaths, err := plugin.GetMigrationsPaths() + Expect(err).To(HaveOccurred()) + Expect(len(migrationPaths)).To(Equal(0)) + Expect(err.Error()).To(ContainSubstring("has the same migration rank")) + }) + + It("Fails if there is a gap in the ranks of the migration paths", func() { + plugin := gapErrorConfig + migrationPaths, err := plugin.GetMigrationsPaths() + Expect(err).To(HaveOccurred()) + Expect(len(migrationPaths)).To(Equal(0)) + Expect(err.Error()).To(ContainSubstring("number of distinct ranks does not match number of distinct migration paths")) + }) + + It("Fails if a transformer is missing its rank", func() { + plugin := missingRankErrorConfig + migrationPaths, err := plugin.GetMigrationsPaths() + Expect(err).To(HaveOccurred()) + Expect(len(migrationPaths)).To(Equal(0)) + Expect(err.Error()).To(ContainSubstring("has the same migration rank")) + }) + + It("Fails if the same migration path has more than one rank", func() { + plugin := duplicateErrorConfig + migrationPaths, err := plugin.GetMigrationsPaths() + Expect(err).To(HaveOccurred()) + Expect(len(migrationPaths)).To(Equal(0)) + Expect(err.Error()).To(ContainSubstring("duplicate paths with different ranks present")) + }) +}) diff --git a/pkg/core/block.go b/pkg/core/block.go index cf3eb5e6..94296913 100644 --- a/pkg/core/block.go +++ b/pkg/core/block.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/core/blockchain.go b/pkg/core/blockchain.go index fa2a846a..2b3af6b6 100644 --- a/pkg/core/blockchain.go +++ b/pkg/core/blockchain.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/core/contract.go b/pkg/core/contract.go index 1ca4dffd..a0da9470 100644 --- a/pkg/core/contract.go +++ b/pkg/core/contract.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/core/eth_client.go b/pkg/core/eth_client.go index 2ec6c6bb..183d224b 100644 --- a/pkg/core/eth_client.go +++ b/pkg/core/eth_client.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/core/header.go b/pkg/core/header.go index 007e3aad..591aec7d 100644 --- a/pkg/core/header.go +++ b/pkg/core/header.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/core/log.go b/pkg/core/log.go index 33ff4146..16962055 100644 --- a/pkg/core/log.go +++ b/pkg/core/log.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/core/node_info.go b/pkg/core/node_info.go index 6b84ca36..db1d9de6 100644 --- a/pkg/core/node_info.go +++ b/pkg/core/node_info.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/core/receipts.go b/pkg/core/receipts.go index dad982e6..dafd916f 100644 --- a/pkg/core/receipts.go +++ b/pkg/core/receipts.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/core/rpc_client.go b/pkg/core/rpc_client.go index 66b29c00..1f52b27a 100644 --- a/pkg/core/rpc_client.go +++ b/pkg/core/rpc_client.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/core/topics.go b/pkg/core/topics.go index 643579b9..d1e2f11a 100644 --- a/pkg/core/topics.go +++ b/pkg/core/topics.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/core/transaction.go b/pkg/core/transaction.go index ca3beb9a..dc5f21b6 100644 --- a/pkg/core/transaction.go +++ b/pkg/core/transaction.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/core/watched_event_log.go b/pkg/core/watched_event_log.go index fa2a495b..695bb94e 100644 --- a/pkg/core/watched_event_log.go +++ b/pkg/core/watched_event_log.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/crypto/crypto_suite_test.go b/pkg/crypto/crypto_suite_test.go index 4d08b0b0..25e15381 100644 --- a/pkg/crypto/crypto_suite_test.go +++ b/pkg/crypto/crypto_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/crypto/parser.go b/pkg/crypto/parser.go index 91af01a8..bf65cb7f 100644 --- a/pkg/crypto/parser.go +++ b/pkg/crypto/parser.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/crypto/parser_test.go b/pkg/crypto/parser_test.go index 711e9d83..b1576c42 100644 --- a/pkg/crypto/parser_test.go +++ b/pkg/crypto/parser_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/datastore/ethereum/config.go b/pkg/datastore/ethereum/config.go index 589ae819..ffc463ab 100644 --- a/pkg/datastore/ethereum/config.go +++ b/pkg/datastore/ethereum/config.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/datastore/ethereum/database.go b/pkg/datastore/ethereum/database.go index dc2724c5..b034f515 100644 --- a/pkg/datastore/ethereum/database.go +++ b/pkg/datastore/ethereum/database.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/datastore/ethereum/level/database.go b/pkg/datastore/ethereum/level/database.go index 6deb7125..a05d95b7 100644 --- a/pkg/datastore/ethereum/level/database.go +++ b/pkg/datastore/ethereum/level/database.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/datastore/ethereum/level/database_reader.go b/pkg/datastore/ethereum/level/database_reader.go index 66f49c8d..5a2b87a7 100644 --- a/pkg/datastore/ethereum/level/database_reader.go +++ b/pkg/datastore/ethereum/level/database_reader.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/datastore/ethereum/level/database_test.go b/pkg/datastore/ethereum/level/database_test.go index 5e9de31e..e8b1fe1a 100644 --- a/pkg/datastore/ethereum/level/database_test.go +++ b/pkg/datastore/ethereum/level/database_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/datastore/ethereum/level/level_suite_test.go b/pkg/datastore/ethereum/level/level_suite_test.go index 26c6cb49..7aac15b2 100644 --- a/pkg/datastore/ethereum/level/level_suite_test.go +++ b/pkg/datastore/ethereum/level/level_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/datastore/postgres/postgres.go b/pkg/datastore/postgres/postgres.go index 82a1b2ac..d6472652 100644 --- a/pkg/datastore/postgres/postgres.go +++ b/pkg/datastore/postgres/postgres.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/datastore/postgres/postgres_suite_test.go b/pkg/datastore/postgres/postgres_suite_test.go index 48c8c677..0868f58c 100644 --- a/pkg/datastore/postgres/postgres_suite_test.go +++ b/pkg/datastore/postgres/postgres_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/datastore/postgres/postgres_test.go b/pkg/datastore/postgres/postgres_test.go index ea68c49a..ba6ecb77 100644 --- a/pkg/datastore/postgres/postgres_test.go +++ b/pkg/datastore/postgres/postgres_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/datastore/postgres/repositories/block_repository.go b/pkg/datastore/postgres/repositories/block_repository.go index 2cbc1373..4a778aea 100644 --- a/pkg/datastore/postgres/repositories/block_repository.go +++ b/pkg/datastore/postgres/repositories/block_repository.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/datastore/postgres/repositories/block_repository_test.go b/pkg/datastore/postgres/repositories/block_repository_test.go index ae391424..4195f74e 100644 --- a/pkg/datastore/postgres/repositories/block_repository_test.go +++ b/pkg/datastore/postgres/repositories/block_repository_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/datastore/postgres/repositories/contract_repository.go b/pkg/datastore/postgres/repositories/contract_repository.go index 8f32c435..317f4d28 100644 --- a/pkg/datastore/postgres/repositories/contract_repository.go +++ b/pkg/datastore/postgres/repositories/contract_repository.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/datastore/postgres/repositories/contract_repository_test.go b/pkg/datastore/postgres/repositories/contract_repository_test.go index e386cf99..f2558727 100644 --- a/pkg/datastore/postgres/repositories/contract_repository_test.go +++ b/pkg/datastore/postgres/repositories/contract_repository_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/datastore/postgres/repositories/header_repository.go b/pkg/datastore/postgres/repositories/header_repository.go index 1aaa40b6..83126e1f 100644 --- a/pkg/datastore/postgres/repositories/header_repository.go +++ b/pkg/datastore/postgres/repositories/header_repository.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/datastore/postgres/repositories/header_repository_test.go b/pkg/datastore/postgres/repositories/header_repository_test.go index ba97195e..17dd5dbb 100644 --- a/pkg/datastore/postgres/repositories/header_repository_test.go +++ b/pkg/datastore/postgres/repositories/header_repository_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/datastore/postgres/repositories/log_filter_repository.go b/pkg/datastore/postgres/repositories/log_filter_repository.go index faad7ca8..705f721e 100644 --- a/pkg/datastore/postgres/repositories/log_filter_repository.go +++ b/pkg/datastore/postgres/repositories/log_filter_repository.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/datastore/postgres/repositories/log_filter_repository_test.go b/pkg/datastore/postgres/repositories/log_filter_repository_test.go index 5426868d..69f9b8e2 100644 --- a/pkg/datastore/postgres/repositories/log_filter_repository_test.go +++ b/pkg/datastore/postgres/repositories/log_filter_repository_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/datastore/postgres/repositories/logs_repository.go b/pkg/datastore/postgres/repositories/logs_repository.go index 63a8c99f..51da7a7d 100644 --- a/pkg/datastore/postgres/repositories/logs_repository.go +++ b/pkg/datastore/postgres/repositories/logs_repository.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/datastore/postgres/repositories/logs_repository_test.go b/pkg/datastore/postgres/repositories/logs_repository_test.go index e6923b85..2e4c843d 100644 --- a/pkg/datastore/postgres/repositories/logs_repository_test.go +++ b/pkg/datastore/postgres/repositories/logs_repository_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/datastore/postgres/repositories/receipt_repository.go b/pkg/datastore/postgres/repositories/receipt_repository.go index 29de83e9..20ef9d25 100644 --- a/pkg/datastore/postgres/repositories/receipt_repository.go +++ b/pkg/datastore/postgres/repositories/receipt_repository.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/datastore/postgres/repositories/receipts_repository_test.go b/pkg/datastore/postgres/repositories/receipts_repository_test.go index 33572bb7..073d7531 100644 --- a/pkg/datastore/postgres/repositories/receipts_repository_test.go +++ b/pkg/datastore/postgres/repositories/receipts_repository_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/datastore/postgres/repositories/repositories_suite_test.go b/pkg/datastore/postgres/repositories/repositories_suite_test.go index a24b8ac0..c34a23b0 100644 --- a/pkg/datastore/postgres/repositories/repositories_suite_test.go +++ b/pkg/datastore/postgres/repositories/repositories_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/datastore/postgres/repositories/watched_events_repository.go b/pkg/datastore/postgres/repositories/watched_events_repository.go index a08b6414..7cda002b 100644 --- a/pkg/datastore/postgres/repositories/watched_events_repository.go +++ b/pkg/datastore/postgres/repositories/watched_events_repository.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/datastore/postgres/repositories/watched_events_repository_test.go b/pkg/datastore/postgres/repositories/watched_events_repository_test.go index 100e0f00..957d3c33 100644 --- a/pkg/datastore/postgres/repositories/watched_events_repository_test.go +++ b/pkg/datastore/postgres/repositories/watched_events_repository_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/datastore/repository.go b/pkg/datastore/repository.go index 9ae4841b..7f942051 100644 --- a/pkg/datastore/repository.go +++ b/pkg/datastore/repository.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/fakes/data.go b/pkg/fakes/data.go index 32eff1d3..07f6abe3 100644 --- a/pkg/fakes/data.go +++ b/pkg/fakes/data.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/fakes/mock_block_repository.go b/pkg/fakes/mock_block_repository.go index 4eca601f..70c89d02 100644 --- a/pkg/fakes/mock_block_repository.go +++ b/pkg/fakes/mock_block_repository.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/fakes/mock_blockchain.go b/pkg/fakes/mock_blockchain.go index 80cdff2f..67fab6d0 100644 --- a/pkg/fakes/mock_blockchain.go +++ b/pkg/fakes/mock_blockchain.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/fakes/mock_crypto_parser.go b/pkg/fakes/mock_crypto_parser.go index e4de379c..d2644a24 100644 --- a/pkg/fakes/mock_crypto_parser.go +++ b/pkg/fakes/mock_crypto_parser.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/fakes/mock_eth_client.go b/pkg/fakes/mock_eth_client.go index 7023e2bd..224ae4d5 100644 --- a/pkg/fakes/mock_eth_client.go +++ b/pkg/fakes/mock_eth_client.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/fakes/mock_ethereum_database.go b/pkg/fakes/mock_ethereum_database.go index 038d04ba..c1424304 100644 --- a/pkg/fakes/mock_ethereum_database.go +++ b/pkg/fakes/mock_ethereum_database.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/fakes/mock_fs_reader.go b/pkg/fakes/mock_fs_reader.go index e967a2cd..b1bfafda 100644 --- a/pkg/fakes/mock_fs_reader.go +++ b/pkg/fakes/mock_fs_reader.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/fakes/mock_header_repository.go b/pkg/fakes/mock_header_repository.go index 05f06bb3..42a21f5c 100644 --- a/pkg/fakes/mock_header_repository.go +++ b/pkg/fakes/mock_header_repository.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/fakes/mock_level_database_reader.go b/pkg/fakes/mock_level_database_reader.go index 261d6be0..78f99987 100644 --- a/pkg/fakes/mock_level_database_reader.go +++ b/pkg/fakes/mock_level_database_reader.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/fakes/mock_receipt_repository.go b/pkg/fakes/mock_receipt_repository.go index 5663eeed..63a0d24d 100644 --- a/pkg/fakes/mock_receipt_repository.go +++ b/pkg/fakes/mock_receipt_repository.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/fakes/mock_rpc_client.go b/pkg/fakes/mock_rpc_client.go index fe615555..fcf224cc 100644 --- a/pkg/fakes/mock_rpc_client.go +++ b/pkg/fakes/mock_rpc_client.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/fakes/mock_transaction_converter.go b/pkg/fakes/mock_transaction_converter.go index b36c390e..dd535acd 100644 --- a/pkg/fakes/mock_transaction_converter.go +++ b/pkg/fakes/mock_transaction_converter.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/filters/filter_query.go b/pkg/filters/filter_query.go index 26e3f428..6db68638 100644 --- a/pkg/filters/filter_query.go +++ b/pkg/filters/filter_query.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/filters/filter_test.go b/pkg/filters/filter_test.go index ea475f8c..9c4e8b79 100644 --- a/pkg/filters/filter_test.go +++ b/pkg/filters/filter_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/filters/query_builder_suite_test.go b/pkg/filters/query_builder_suite_test.go index 7f49afb6..189a4314 100644 --- a/pkg/filters/query_builder_suite_test.go +++ b/pkg/filters/query_builder_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/fs/reader.go b/pkg/fs/reader.go index 8e886a7d..05326ae7 100644 --- a/pkg/fs/reader.go +++ b/pkg/fs/reader.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/abi.go b/pkg/geth/abi.go index d6943597..37d3bd77 100644 --- a/pkg/geth/abi.go +++ b/pkg/geth/abi.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/abi_test.go b/pkg/geth/abi_test.go index 3e5a78dc..8e601783 100644 --- a/pkg/geth/abi_test.go +++ b/pkg/geth/abi_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/blockchain.go b/pkg/geth/blockchain.go index 819c9c03..ea2a653a 100644 --- a/pkg/geth/blockchain.go +++ b/pkg/geth/blockchain.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/blockchain_test.go b/pkg/geth/blockchain_test.go index 5d011f72..27667fe8 100644 --- a/pkg/geth/blockchain_test.go +++ b/pkg/geth/blockchain_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/client/eth_client.go b/pkg/geth/client/eth_client.go index c4af6009..0b335ee6 100644 --- a/pkg/geth/client/eth_client.go +++ b/pkg/geth/client/eth_client.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/client/rpc_client.go b/pkg/geth/client/rpc_client.go index 43f9892e..b80a746d 100644 --- a/pkg/geth/client/rpc_client.go +++ b/pkg/geth/client/rpc_client.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/cold_import/cold_import_suite_test.go b/pkg/geth/cold_import/cold_import_suite_test.go index 22f9632c..d11dbf00 100644 --- a/pkg/geth/cold_import/cold_import_suite_test.go +++ b/pkg/geth/cold_import/cold_import_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/cold_import/importer.go b/pkg/geth/cold_import/importer.go index 9ebeb0dc..dca5f87c 100644 --- a/pkg/geth/cold_import/importer.go +++ b/pkg/geth/cold_import/importer.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/cold_import/importer_test.go b/pkg/geth/cold_import/importer_test.go index 9277fd15..26e5a8aa 100644 --- a/pkg/geth/cold_import/importer_test.go +++ b/pkg/geth/cold_import/importer_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/cold_import/node_builder.go b/pkg/geth/cold_import/node_builder.go index 4e39bf69..b9c12080 100644 --- a/pkg/geth/cold_import/node_builder.go +++ b/pkg/geth/cold_import/node_builder.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/cold_import/node_builder_test.go b/pkg/geth/cold_import/node_builder_test.go index 83300078..e2be8620 100644 --- a/pkg/geth/cold_import/node_builder_test.go +++ b/pkg/geth/cold_import/node_builder_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/contract.go b/pkg/geth/contract.go index 4c49f422..f59cab5f 100644 --- a/pkg/geth/contract.go +++ b/pkg/geth/contract.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/converters/cold_db/transaction_converter.go b/pkg/geth/converters/cold_db/transaction_converter.go index 3b095754..0bd409d1 100644 --- a/pkg/geth/converters/cold_db/transaction_converter.go +++ b/pkg/geth/converters/cold_db/transaction_converter.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/converters/common/block_converter.go b/pkg/geth/converters/common/block_converter.go index 8976a164..52e1d245 100644 --- a/pkg/geth/converters/common/block_converter.go +++ b/pkg/geth/converters/common/block_converter.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/converters/common/block_converter_test.go b/pkg/geth/converters/common/block_converter_test.go index 0df05be4..7e73967e 100644 --- a/pkg/geth/converters/common/block_converter_test.go +++ b/pkg/geth/converters/common/block_converter_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/converters/common/block_rewards.go b/pkg/geth/converters/common/block_rewards.go index 51c967fc..fcf1a2c7 100644 --- a/pkg/geth/converters/common/block_rewards.go +++ b/pkg/geth/converters/common/block_rewards.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/converters/common/common_suite_test.go b/pkg/geth/converters/common/common_suite_test.go index 3d8de4d8..06af9ce1 100644 --- a/pkg/geth/converters/common/common_suite_test.go +++ b/pkg/geth/converters/common/common_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/converters/common/header_converter.go b/pkg/geth/converters/common/header_converter.go index a890aa13..90d14a11 100644 --- a/pkg/geth/converters/common/header_converter.go +++ b/pkg/geth/converters/common/header_converter.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/converters/common/header_converter_test.go b/pkg/geth/converters/common/header_converter_test.go index c7d5c973..6c939425 100644 --- a/pkg/geth/converters/common/header_converter_test.go +++ b/pkg/geth/converters/common/header_converter_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/converters/common/log_converter.go b/pkg/geth/converters/common/log_converter.go index 11dce787..8904a720 100644 --- a/pkg/geth/converters/common/log_converter.go +++ b/pkg/geth/converters/common/log_converter.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/converters/common/log_converter_test.go b/pkg/geth/converters/common/log_converter_test.go index d382aa25..6a5505cb 100644 --- a/pkg/geth/converters/common/log_converter_test.go +++ b/pkg/geth/converters/common/log_converter_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/converters/common/receipt_converter.go b/pkg/geth/converters/common/receipt_converter.go index 5d558948..0f437cbb 100644 --- a/pkg/geth/converters/common/receipt_converter.go +++ b/pkg/geth/converters/common/receipt_converter.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/converters/common/receipt_converter_test.go b/pkg/geth/converters/common/receipt_converter_test.go index b43b6152..d3316558 100644 --- a/pkg/geth/converters/common/receipt_converter_test.go +++ b/pkg/geth/converters/common/receipt_converter_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/converters/common/transaction_converter.go b/pkg/geth/converters/common/transaction_converter.go index 320dc975..885b7488 100644 --- a/pkg/geth/converters/common/transaction_converter.go +++ b/pkg/geth/converters/common/transaction_converter.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/converters/rpc/transaction_converter.go b/pkg/geth/converters/rpc/transaction_converter.go index d741f908..ebec4c43 100644 --- a/pkg/geth/converters/rpc/transaction_converter.go +++ b/pkg/geth/converters/rpc/transaction_converter.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/geth_suite_test.go b/pkg/geth/geth_suite_test.go index c4078ffc..1a151480 100644 --- a/pkg/geth/geth_suite_test.go +++ b/pkg/geth/geth_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/node/node.go b/pkg/geth/node/node.go index 7c276097..7fa6a087 100644 --- a/pkg/geth/node/node.go +++ b/pkg/geth/node/node.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/node/node_suite_test.go b/pkg/geth/node/node_suite_test.go index 27139341..38ca2516 100644 --- a/pkg/geth/node/node_suite_test.go +++ b/pkg/geth/node/node_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/node/node_test.go b/pkg/geth/node/node_test.go index 58ad5ca9..8a74a441 100644 --- a/pkg/geth/node/node_test.go +++ b/pkg/geth/node/node_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/geth/testing/helpers.go b/pkg/geth/testing/helpers.go index 1a612703..70929e40 100644 --- a/pkg/geth/testing/helpers.go +++ b/pkg/geth/testing/helpers.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/history/block_validator.go b/pkg/history/block_validator.go index 88be8c29..d7b41a8d 100644 --- a/pkg/history/block_validator.go +++ b/pkg/history/block_validator.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/history/block_validator_test.go b/pkg/history/block_validator_test.go index 2022dc6d..6548fc2d 100644 --- a/pkg/history/block_validator_test.go +++ b/pkg/history/block_validator_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/history/header_validator.go b/pkg/history/header_validator.go index d65d1a3d..5065f65c 100644 --- a/pkg/history/header_validator.go +++ b/pkg/history/header_validator.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/history/header_validator_test.go b/pkg/history/header_validator_test.go index 674c4ab6..b77d50cf 100644 --- a/pkg/history/header_validator_test.go +++ b/pkg/history/header_validator_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/history/history_suite_test.go b/pkg/history/history_suite_test.go index 3e99e488..99cd6951 100644 --- a/pkg/history/history_suite_test.go +++ b/pkg/history/history_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/history/populate_blocks.go b/pkg/history/populate_blocks.go index 6ea83237..a2c542d0 100644 --- a/pkg/history/populate_blocks.go +++ b/pkg/history/populate_blocks.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/history/populate_blocks_test.go b/pkg/history/populate_blocks_test.go index d629da28..6a5138ed 100644 --- a/pkg/history/populate_blocks_test.go +++ b/pkg/history/populate_blocks_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/history/populate_headers.go b/pkg/history/populate_headers.go index b60b7eb4..e545fd23 100644 --- a/pkg/history/populate_headers.go +++ b/pkg/history/populate_headers.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/history/populate_headers_test.go b/pkg/history/populate_headers_test.go index 398744e8..2a5fa37c 100644 --- a/pkg/history/populate_headers_test.go +++ b/pkg/history/populate_headers_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/history/validation_window.go b/pkg/history/validation_window.go index 0ce41b78..24ae5ff0 100644 --- a/pkg/history/validation_window.go +++ b/pkg/history/validation_window.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/history/validation_window_test.go b/pkg/history/validation_window_test.go index 0d3ee1fa..86e45c66 100644 --- a/pkg/history/validation_window_test.go +++ b/pkg/history/validation_window_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/full/converter/converter.go b/pkg/omni/full/converter/converter.go index cabba692..2810438a 100644 --- a/pkg/omni/full/converter/converter.go +++ b/pkg/omni/full/converter/converter.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/full/converter/converter_suite_test.go b/pkg/omni/full/converter/converter_suite_test.go index 93fd8aef..e8cb72e6 100644 --- a/pkg/omni/full/converter/converter_suite_test.go +++ b/pkg/omni/full/converter/converter_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/full/converter/converter_test.go b/pkg/omni/full/converter/converter_test.go index e35780b8..8fa7b8f5 100644 --- a/pkg/omni/full/converter/converter_test.go +++ b/pkg/omni/full/converter/converter_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/full/retriever/block_retriever.go b/pkg/omni/full/retriever/block_retriever.go index f4c3ac5d..0b0289d2 100644 --- a/pkg/omni/full/retriever/block_retriever.go +++ b/pkg/omni/full/retriever/block_retriever.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/full/retriever/block_retriever_test.go b/pkg/omni/full/retriever/block_retriever_test.go index caa1a1ed..dcd13c35 100644 --- a/pkg/omni/full/retriever/block_retriever_test.go +++ b/pkg/omni/full/retriever/block_retriever_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/full/retriever/retriever_suite_test.go b/pkg/omni/full/retriever/retriever_suite_test.go index ba723a69..005d2817 100644 --- a/pkg/omni/full/retriever/retriever_suite_test.go +++ b/pkg/omni/full/retriever/retriever_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/full/transformer/transformer.go b/pkg/omni/full/transformer/transformer.go index 7e8e1528..3a37c084 100644 --- a/pkg/omni/full/transformer/transformer.go +++ b/pkg/omni/full/transformer/transformer.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/full/transformer/transformer_suite_test.go b/pkg/omni/full/transformer/transformer_suite_test.go index a7eafe12..42d0ffb0 100644 --- a/pkg/omni/full/transformer/transformer_suite_test.go +++ b/pkg/omni/full/transformer/transformer_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/full/transformer/transformer_test.go b/pkg/omni/full/transformer/transformer_test.go index 16632ada..f25ca8f6 100644 --- a/pkg/omni/full/transformer/transformer_test.go +++ b/pkg/omni/full/transformer/transformer_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/light/converter/converter.go b/pkg/omni/light/converter/converter.go index e8a91ceb..b2c0d7ac 100644 --- a/pkg/omni/light/converter/converter.go +++ b/pkg/omni/light/converter/converter.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/light/converter/converter_suite_test.go b/pkg/omni/light/converter/converter_suite_test.go index d69367df..98964a11 100644 --- a/pkg/omni/light/converter/converter_suite_test.go +++ b/pkg/omni/light/converter/converter_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/light/converter/converter_test.go b/pkg/omni/light/converter/converter_test.go index 374bb699..67c9950d 100644 --- a/pkg/omni/light/converter/converter_test.go +++ b/pkg/omni/light/converter/converter_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/light/fetcher/fetcher.go b/pkg/omni/light/fetcher/fetcher.go index 77162f0e..bfecf807 100644 --- a/pkg/omni/light/fetcher/fetcher.go +++ b/pkg/omni/light/fetcher/fetcher.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/light/fetcher/fetcher_suite_test.go b/pkg/omni/light/fetcher/fetcher_suite_test.go index 3b60a906..031d15fc 100644 --- a/pkg/omni/light/fetcher/fetcher_suite_test.go +++ b/pkg/omni/light/fetcher/fetcher_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/light/fetcher/fetcher_test.go b/pkg/omni/light/fetcher/fetcher_test.go index 8dca9ca8..77982d84 100644 --- a/pkg/omni/light/fetcher/fetcher_test.go +++ b/pkg/omni/light/fetcher/fetcher_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/light/repository/header_repository.go b/pkg/omni/light/repository/header_repository.go index e0d8ba74..87d81990 100644 --- a/pkg/omni/light/repository/header_repository.go +++ b/pkg/omni/light/repository/header_repository.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/light/repository/header_repository_test.go b/pkg/omni/light/repository/header_repository_test.go index 4f25cabc..6c4958b7 100644 --- a/pkg/omni/light/repository/header_repository_test.go +++ b/pkg/omni/light/repository/header_repository_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/light/repository/repository_suite_test.go b/pkg/omni/light/repository/repository_suite_test.go index a38eb353..8edfbbec 100644 --- a/pkg/omni/light/repository/repository_suite_test.go +++ b/pkg/omni/light/repository/repository_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/light/retriever/block_retriever.go b/pkg/omni/light/retriever/block_retriever.go index a871278e..47691013 100644 --- a/pkg/omni/light/retriever/block_retriever.go +++ b/pkg/omni/light/retriever/block_retriever.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/light/retriever/block_retriever_test.go b/pkg/omni/light/retriever/block_retriever_test.go index 563e3738..d9066b92 100644 --- a/pkg/omni/light/retriever/block_retriever_test.go +++ b/pkg/omni/light/retriever/block_retriever_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/light/retriever/retriever_suite_test.go b/pkg/omni/light/retriever/retriever_suite_test.go index a973ff7e..83a16269 100644 --- a/pkg/omni/light/retriever/retriever_suite_test.go +++ b/pkg/omni/light/retriever/retriever_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/light/transformer/transformer.go b/pkg/omni/light/transformer/transformer.go index 426e3587..f7738c0a 100644 --- a/pkg/omni/light/transformer/transformer.go +++ b/pkg/omni/light/transformer/transformer.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/light/transformer/transformer_suite_test.go b/pkg/omni/light/transformer/transformer_suite_test.go index 0770d248..34a84416 100644 --- a/pkg/omni/light/transformer/transformer_suite_test.go +++ b/pkg/omni/light/transformer/transformer_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/light/transformer/transformer_test.go b/pkg/omni/light/transformer/transformer_test.go index 0cc44162..31e3c194 100644 --- a/pkg/omni/light/transformer/transformer_test.go +++ b/pkg/omni/light/transformer/transformer_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/constants/constants.go b/pkg/omni/shared/constants/constants.go index e5a9edfe..9ac4bd80 100644 --- a/pkg/omni/shared/constants/constants.go +++ b/pkg/omni/shared/constants/constants.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/constants/interface.go b/pkg/omni/shared/constants/interface.go index a1bf56b0..f49ac96a 100644 --- a/pkg/omni/shared/constants/interface.go +++ b/pkg/omni/shared/constants/interface.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/contract/contract.go b/pkg/omni/shared/contract/contract.go index 70f3c123..19364d91 100644 --- a/pkg/omni/shared/contract/contract.go +++ b/pkg/omni/shared/contract/contract.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/contract/contract_suite_test.go b/pkg/omni/shared/contract/contract_suite_test.go index 9ef74e40..fa6d1257 100644 --- a/pkg/omni/shared/contract/contract_suite_test.go +++ b/pkg/omni/shared/contract/contract_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/contract/contract_test.go b/pkg/omni/shared/contract/contract_test.go index a9164f94..819e6959 100644 --- a/pkg/omni/shared/contract/contract_test.go +++ b/pkg/omni/shared/contract/contract_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/fetcher/fetcher.go b/pkg/omni/shared/fetcher/fetcher.go index 0f5d5459..459e96c3 100644 --- a/pkg/omni/shared/fetcher/fetcher.go +++ b/pkg/omni/shared/fetcher/fetcher.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/getter/getter_suite_test.go b/pkg/omni/shared/getter/getter_suite_test.go index 78fdc7bf..75b2e014 100644 --- a/pkg/omni/shared/getter/getter_suite_test.go +++ b/pkg/omni/shared/getter/getter_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/getter/getter_test.go b/pkg/omni/shared/getter/getter_test.go index 1c440972..730767db 100644 --- a/pkg/omni/shared/getter/getter_test.go +++ b/pkg/omni/shared/getter/getter_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/getter/interface_getter.go b/pkg/omni/shared/getter/interface_getter.go index a49ac669..70fc8273 100644 --- a/pkg/omni/shared/getter/interface_getter.go +++ b/pkg/omni/shared/getter/interface_getter.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/helpers/helpers.go b/pkg/omni/shared/helpers/helpers.go index 3c448989..9fb8dfae 100644 --- a/pkg/omni/shared/helpers/helpers.go +++ b/pkg/omni/shared/helpers/helpers.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/helpers/test_helpers/database.go b/pkg/omni/shared/helpers/test_helpers/database.go index 576b569c..fb12cb3c 100644 --- a/pkg/omni/shared/helpers/test_helpers/database.go +++ b/pkg/omni/shared/helpers/test_helpers/database.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/helpers/test_helpers/mocks/entities.go b/pkg/omni/shared/helpers/test_helpers/mocks/entities.go index 69e832d7..9a2800c5 100644 --- a/pkg/omni/shared/helpers/test_helpers/mocks/entities.go +++ b/pkg/omni/shared/helpers/test_helpers/mocks/entities.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/helpers/test_helpers/mocks/parser.go b/pkg/omni/shared/helpers/test_helpers/mocks/parser.go index 5fd8f5fc..5dd5d2e8 100644 --- a/pkg/omni/shared/helpers/test_helpers/mocks/parser.go +++ b/pkg/omni/shared/helpers/test_helpers/mocks/parser.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/parser/parser.go b/pkg/omni/shared/parser/parser.go index 14860f43..22686bfb 100644 --- a/pkg/omni/shared/parser/parser.go +++ b/pkg/omni/shared/parser/parser.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/parser/parser_suite_test.go b/pkg/omni/shared/parser/parser_suite_test.go index ccc11fb2..ce6d4944 100644 --- a/pkg/omni/shared/parser/parser_suite_test.go +++ b/pkg/omni/shared/parser/parser_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/parser/parser_test.go b/pkg/omni/shared/parser/parser_test.go index bd8b170d..a3ee5bfc 100644 --- a/pkg/omni/shared/parser/parser_test.go +++ b/pkg/omni/shared/parser/parser_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/poller/poller.go b/pkg/omni/shared/poller/poller.go index c1b30a93..7964e8bf 100644 --- a/pkg/omni/shared/poller/poller.go +++ b/pkg/omni/shared/poller/poller.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/poller/poller_suite_test.go b/pkg/omni/shared/poller/poller_suite_test.go index 47bdc2f7..9b4e94b5 100644 --- a/pkg/omni/shared/poller/poller_suite_test.go +++ b/pkg/omni/shared/poller/poller_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/poller/poller_test.go b/pkg/omni/shared/poller/poller_test.go index b36cecde..7b2df18d 100644 --- a/pkg/omni/shared/poller/poller_test.go +++ b/pkg/omni/shared/poller/poller_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/repository/event_repository.go b/pkg/omni/shared/repository/event_repository.go index a499638d..a08849b4 100644 --- a/pkg/omni/shared/repository/event_repository.go +++ b/pkg/omni/shared/repository/event_repository.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/repository/event_repository_test.go b/pkg/omni/shared/repository/event_repository_test.go index 06cac7d7..aee6fe40 100644 --- a/pkg/omni/shared/repository/event_repository_test.go +++ b/pkg/omni/shared/repository/event_repository_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/repository/method_repository.go b/pkg/omni/shared/repository/method_repository.go index 3449d876..e916e045 100644 --- a/pkg/omni/shared/repository/method_repository.go +++ b/pkg/omni/shared/repository/method_repository.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/repository/method_repository_test.go b/pkg/omni/shared/repository/method_repository_test.go index c6936e8a..54a665c2 100644 --- a/pkg/omni/shared/repository/method_repository_test.go +++ b/pkg/omni/shared/repository/method_repository_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/repository/repository_suite_test.go b/pkg/omni/shared/repository/repository_suite_test.go index bfa6e50a..1ffa6ded 100644 --- a/pkg/omni/shared/repository/repository_suite_test.go +++ b/pkg/omni/shared/repository/repository_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/retriever/address_retriever.go b/pkg/omni/shared/retriever/address_retriever.go index f56d448f..61e2b939 100644 --- a/pkg/omni/shared/retriever/address_retriever.go +++ b/pkg/omni/shared/retriever/address_retriever.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/retriever/address_retriever_test.go b/pkg/omni/shared/retriever/address_retriever_test.go index 48f45531..fd19a8f1 100644 --- a/pkg/omni/shared/retriever/address_retriever_test.go +++ b/pkg/omni/shared/retriever/address_retriever_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/retriever/retriever_suite_test.go b/pkg/omni/shared/retriever/retriever_suite_test.go index f9b78611..aff7fab1 100644 --- a/pkg/omni/shared/retriever/retriever_suite_test.go +++ b/pkg/omni/shared/retriever/retriever_suite_test.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/transformer/interface.go b/pkg/omni/shared/transformer/interface.go index 42a241df..ef0d331b 100644 --- a/pkg/omni/shared/transformer/interface.go +++ b/pkg/omni/shared/transformer/interface.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/types/event.go b/pkg/omni/shared/types/event.go index af1389e6..7033f4ed 100644 --- a/pkg/omni/shared/types/event.go +++ b/pkg/omni/shared/types/event.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/types/method.go b/pkg/omni/shared/types/method.go index 1ef3eb8f..795b5b7f 100644 --- a/pkg/omni/shared/types/method.go +++ b/pkg/omni/shared/types/method.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/omni/shared/types/mode.go b/pkg/omni/shared/types/mode.go index 71e5c531..62057a16 100644 --- a/pkg/omni/shared/types/mode.go +++ b/pkg/omni/shared/types/mode.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/plugin/builder/builder.go b/pkg/plugin/builder/builder.go index c16e50b1..f126a9dc 100644 --- a/pkg/plugin/builder/builder.go +++ b/pkg/plugin/builder/builder.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/plugin/generator.go b/pkg/plugin/generator.go index c5ef1df5..7b3310f2 100644 --- a/pkg/plugin/generator.go +++ b/pkg/plugin/generator.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/plugin/helpers/helpers.go b/pkg/plugin/helpers/helpers.go index 0455efdb..a3904d3c 100644 --- a/pkg/plugin/helpers/helpers.go +++ b/pkg/plugin/helpers/helpers.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/plugin/manager/manager.go b/pkg/plugin/manager/manager.go index f80edda3..e19fbd0b 100644 --- a/pkg/plugin/manager/manager.go +++ b/pkg/plugin/manager/manager.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/plugin/test_helpers/database.go b/pkg/plugin/test_helpers/database.go index 846e331a..0ab5c63f 100644 --- a/pkg/plugin/test_helpers/database.go +++ b/pkg/plugin/test_helpers/database.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/pkg/plugin/writer/writer.go b/pkg/plugin/writer/writer.go index 7ab4ccd8..155bcb8b 100644 --- a/pkg/plugin/writer/writer.go +++ b/pkg/plugin/writer/writer.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/test_config/test_config.go b/test_config/test_config.go index 513a315a..b64a9278 100644 --- a/test_config/test_config.go +++ b/test_config/test_config.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by diff --git a/utils/utils.go b/utils/utils.go index ae610cbf..bf098ef5 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -1,5 +1,5 @@ // VulcanizeDB -// Copyright © 2018 Vulcanize +// Copyright © 2019 Vulcanize // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as published by