From cd58c3342e8d744b3c12aec60c8be20d5d50f0ba Mon Sep 17 00:00:00 2001 From: Riccardo Montagnin Date: Mon, 29 May 2023 15:25:53 -0500 Subject: [PATCH] build: bump Go package to github.com/forbole/juno/v5 --- Makefile | 4 ++-- cmd/config.go | 4 ++-- cmd/executor.go | 12 ++++++------ cmd/init/cmd.go | 2 +- cmd/init/types.go | 2 +- cmd/juno/main.go | 8 ++++---- cmd/migrate/cmd.go | 4 ++-- cmd/migrate/v3/types.go | 14 +++++++------- cmd/migrate/v3/utils.go | 2 +- cmd/migrate/v4/migrate.go | 8 ++++---- cmd/migrate/v4/types.go | 16 ++++++++-------- cmd/parse/blocks/blocks.go | 8 ++++---- cmd/parse/blocks/cmd.go | 2 +- cmd/parse/blocks/missing.go | 6 +++--- cmd/parse/cmd.go | 8 ++++---- cmd/parse/genesis/cmd.go | 8 ++++---- cmd/parse/transactions/cmd.go | 2 +- cmd/parse/transactions/transactions.go | 6 +++--- cmd/parse/types/config.go | 4 ++-- cmd/parse/types/sdk.go | 2 +- cmd/parse/types/setup.go | 10 +++++----- cmd/parse/types/types.go | 10 +++++----- cmd/start/cmd.go | 14 +++++++------- database/builder/builder.go | 4 ++-- database/database.go | 6 +++--- database/legacy/v3/migrate.go | 4 ++-- database/legacy/v3/migrator.go | 4 ++-- database/legacy/v3/prepare.go | 2 +- database/postgresql/postgresql.go | 12 ++++++------ database/postgresql/postgresql_test.go | 8 ++++---- go.mod | 2 +- logging/default.go | 4 ++-- logging/logger.go | 4 ++-- modules/messages/message_handler.go | 4 ++-- modules/messages/module.go | 6 +++--- modules/module.go | 2 +- modules/pruning/config_test.go | 2 +- modules/pruning/handle_block.go | 4 ++-- modules/pruning/module.go | 8 ++++---- modules/registrar/registrar.go | 16 ++++++++-------- modules/telemetry/module.go | 4 ++-- node/builder/builder.go | 8 ++++---- node/config/config.go | 4 ++-- node/config/config_test.go | 6 +++--- node/local/node.go | 4 ++-- node/local/source.go | 2 +- node/node.go | 2 +- node/remote/node.go | 4 ++-- node/remote/source.go | 2 +- parser/context.go | 8 ++++---- parser/utils.go | 2 +- parser/worker.go | 14 +++++++------- types/config/config.go | 8 ++++---- types/utils/genesis.go | 2 +- 54 files changed, 159 insertions(+), 159 deletions(-) diff --git a/Makefile b/Makefile index 2a2e12a7..14b4c17c 100644 --- a/Makefile +++ b/Makefile @@ -13,8 +13,8 @@ all: lint test-unit install ### Build flags ### ############################################################################### -LD_FLAGS = -X github.com/forbole/juno/v4/cmd.Version=$(VERSION) \ - -X github.com/forbole/juno/v4/cmd.Commit=$(COMMIT) +LD_FLAGS = -X github.com/forbole/juno/v5/cmd.Version=$(VERSION) \ + -X github.com/forbole/juno/v5/cmd.Commit=$(COMMIT) BUILD_FLAGS := -ldflags '$(LD_FLAGS)' diff --git a/cmd/config.go b/cmd/config.go index 6916b21c..2c76809f 100644 --- a/cmd/config.go +++ b/cmd/config.go @@ -1,8 +1,8 @@ package cmd import ( - initcmd "github.com/forbole/juno/v4/cmd/init" - parsecmd "github.com/forbole/juno/v4/cmd/parse/types" + initcmd "github.com/forbole/juno/v5/cmd/init" + parsecmd "github.com/forbole/juno/v5/cmd/parse/types" ) // Config represents the general configuration for the commands diff --git a/cmd/executor.go b/cmd/executor.go index aa138fcc..5d07d975 100644 --- a/cmd/executor.go +++ b/cmd/executor.go @@ -5,14 +5,14 @@ import ( "os" "path" - "github.com/forbole/juno/v4/types/config" + "github.com/forbole/juno/v5/types/config" - initcmd "github.com/forbole/juno/v4/cmd/init" - migratecmd "github.com/forbole/juno/v4/cmd/migrate" - parsecmd "github.com/forbole/juno/v4/cmd/parse" - startcmd "github.com/forbole/juno/v4/cmd/start" + initcmd "github.com/forbole/juno/v5/cmd/init" + migratecmd "github.com/forbole/juno/v5/cmd/migrate" + parsecmd "github.com/forbole/juno/v5/cmd/parse" + startcmd "github.com/forbole/juno/v5/cmd/start" - "github.com/forbole/juno/v4/types" + "github.com/forbole/juno/v5/types" "github.com/spf13/cobra" "github.com/tendermint/tendermint/libs/cli" diff --git a/cmd/init/cmd.go b/cmd/init/cmd.go index a7ffcd91..582049f5 100644 --- a/cmd/init/cmd.go +++ b/cmd/init/cmd.go @@ -5,7 +5,7 @@ import ( "io/ioutil" "os" - "github.com/forbole/juno/v4/types/config" + "github.com/forbole/juno/v5/types/config" "github.com/spf13/cobra" ) diff --git a/cmd/init/types.go b/cmd/init/types.go index 5473edf3..8a2fa6de 100644 --- a/cmd/init/types.go +++ b/cmd/init/types.go @@ -3,7 +3,7 @@ package init import ( "github.com/spf13/cobra" - "github.com/forbole/juno/v4/types/config" + "github.com/forbole/juno/v5/types/config" ) // WritableConfig represents a configuration that can be written to a file diff --git a/cmd/juno/main.go b/cmd/juno/main.go index 5c9e2007..be09e4e5 100644 --- a/cmd/juno/main.go +++ b/cmd/juno/main.go @@ -3,12 +3,12 @@ package main import ( "os" - "github.com/forbole/juno/v4/cmd/parse/types" + "github.com/forbole/juno/v5/cmd/parse/types" - "github.com/forbole/juno/v4/modules/messages" - "github.com/forbole/juno/v4/modules/registrar" + "github.com/forbole/juno/v5/modules/messages" + "github.com/forbole/juno/v5/modules/registrar" - "github.com/forbole/juno/v4/cmd" + "github.com/forbole/juno/v5/cmd" ) func main() { diff --git a/cmd/migrate/cmd.go b/cmd/migrate/cmd.go index 010afd75..bb0a4d49 100644 --- a/cmd/migrate/cmd.go +++ b/cmd/migrate/cmd.go @@ -4,11 +4,11 @@ import ( "fmt" "os" - parsecmdtypes "github.com/forbole/juno/v4/cmd/parse/types" + parsecmdtypes "github.com/forbole/juno/v5/cmd/parse/types" "github.com/spf13/cobra" - v4 "github.com/forbole/juno/v4/cmd/migrate/v4" + v4 "github.com/forbole/juno/v5/cmd/migrate/v4" ) type Migrator func(parseCfg *parsecmdtypes.Config) error diff --git a/cmd/migrate/v3/types.go b/cmd/migrate/v3/types.go index d018a3cd..74be7fe1 100644 --- a/cmd/migrate/v3/types.go +++ b/cmd/migrate/v3/types.go @@ -1,13 +1,13 @@ package v3 import ( - loggingconfig "github.com/forbole/juno/v4/logging/config" - "github.com/forbole/juno/v4/modules/pruning" - "github.com/forbole/juno/v4/modules/telemetry" - nodeconfig "github.com/forbole/juno/v4/node/config" - parserconfig "github.com/forbole/juno/v4/parser/config" - pricefeedconfig "github.com/forbole/juno/v4/pricefeed" - "github.com/forbole/juno/v4/types/config" + loggingconfig "github.com/forbole/juno/v5/logging/config" + "github.com/forbole/juno/v5/modules/pruning" + "github.com/forbole/juno/v5/modules/telemetry" + nodeconfig "github.com/forbole/juno/v5/node/config" + parserconfig "github.com/forbole/juno/v5/parser/config" + pricefeedconfig "github.com/forbole/juno/v5/pricefeed" + "github.com/forbole/juno/v5/types/config" ) type Config struct { diff --git a/cmd/migrate/v3/utils.go b/cmd/migrate/v3/utils.go index a2d32bde..734996b4 100644 --- a/cmd/migrate/v3/utils.go +++ b/cmd/migrate/v3/utils.go @@ -8,7 +8,7 @@ import ( "gopkg.in/yaml.v3" - "github.com/forbole/juno/v4/types/config" + "github.com/forbole/juno/v5/types/config" ) // GetConfig returns the configuration reading it from the config.yaml file present inside the home directory diff --git a/cmd/migrate/v4/migrate.go b/cmd/migrate/v4/migrate.go index 4df0ff7a..874bbc9a 100644 --- a/cmd/migrate/v4/migrate.go +++ b/cmd/migrate/v4/migrate.go @@ -4,13 +4,13 @@ import ( "fmt" "io/ioutil" - parsecmdtypes "github.com/forbole/juno/v4/cmd/parse/types" + parsecmdtypes "github.com/forbole/juno/v5/cmd/parse/types" "gopkg.in/yaml.v3" - v3 "github.com/forbole/juno/v4/cmd/migrate/v3" - databaseconfig "github.com/forbole/juno/v4/database/config" - "github.com/forbole/juno/v4/types/config" + v3 "github.com/forbole/juno/v5/cmd/migrate/v3" + databaseconfig "github.com/forbole/juno/v5/database/config" + "github.com/forbole/juno/v5/types/config" ) // RunMigration runs the migrations from v3 to v4 diff --git a/cmd/migrate/v4/types.go b/cmd/migrate/v4/types.go index ca62ec49..37e90937 100644 --- a/cmd/migrate/v4/types.go +++ b/cmd/migrate/v4/types.go @@ -1,14 +1,14 @@ package v4 import ( - databaseconfig "github.com/forbole/juno/v4/database/config" - loggingconfig "github.com/forbole/juno/v4/logging/config" - "github.com/forbole/juno/v4/modules/pruning" - "github.com/forbole/juno/v4/modules/telemetry" - nodeconfig "github.com/forbole/juno/v4/node/config" - parserconfig "github.com/forbole/juno/v4/parser/config" - pricefeedconfig "github.com/forbole/juno/v4/pricefeed" - "github.com/forbole/juno/v4/types/config" + databaseconfig "github.com/forbole/juno/v5/database/config" + loggingconfig "github.com/forbole/juno/v5/logging/config" + "github.com/forbole/juno/v5/modules/pruning" + "github.com/forbole/juno/v5/modules/telemetry" + nodeconfig "github.com/forbole/juno/v5/node/config" + parserconfig "github.com/forbole/juno/v5/parser/config" + pricefeedconfig "github.com/forbole/juno/v5/pricefeed" + "github.com/forbole/juno/v5/types/config" ) // Config defines all necessary juno configuration parameters. diff --git a/cmd/parse/blocks/blocks.go b/cmd/parse/blocks/blocks.go index b8f0a0fb..ff49f805 100644 --- a/cmd/parse/blocks/blocks.go +++ b/cmd/parse/blocks/blocks.go @@ -3,15 +3,15 @@ package blocks import ( "fmt" - parsecmdtypes "github.com/forbole/juno/v4/cmd/parse/types" - "github.com/forbole/juno/v4/types/utils" + parsecmdtypes "github.com/forbole/juno/v5/cmd/parse/types" + "github.com/forbole/juno/v5/types/utils" "github.com/rs/zerolog/log" "github.com/spf13/cobra" - "github.com/forbole/juno/v4/parser" - "github.com/forbole/juno/v4/types/config" + "github.com/forbole/juno/v5/parser" + "github.com/forbole/juno/v5/types/config" ) const ( diff --git a/cmd/parse/blocks/cmd.go b/cmd/parse/blocks/cmd.go index f7b4a398..6a3fb8f7 100644 --- a/cmd/parse/blocks/cmd.go +++ b/cmd/parse/blocks/cmd.go @@ -3,7 +3,7 @@ package blocks import ( "github.com/spf13/cobra" - parsecmdtypes "github.com/forbole/juno/v4/cmd/parse/types" + parsecmdtypes "github.com/forbole/juno/v5/cmd/parse/types" ) // NewBlocksCmd returns the Cobra command that allows to fix all the things related to blocks diff --git a/cmd/parse/blocks/missing.go b/cmd/parse/blocks/missing.go index ee2d84d4..93569fcb 100644 --- a/cmd/parse/blocks/missing.go +++ b/cmd/parse/blocks/missing.go @@ -4,12 +4,12 @@ import ( "fmt" "strconv" - parsecmdtypes "github.com/forbole/juno/v4/cmd/parse/types" + parsecmdtypes "github.com/forbole/juno/v5/cmd/parse/types" "github.com/spf13/cobra" - "github.com/forbole/juno/v4/parser" - "github.com/forbole/juno/v4/types/config" + "github.com/forbole/juno/v5/parser" + "github.com/forbole/juno/v5/types/config" ) // newMissingCmd returns a Cobra command that allows to fix missing blocks in database diff --git a/cmd/parse/cmd.go b/cmd/parse/cmd.go index de596b76..4fed5a9b 100644 --- a/cmd/parse/cmd.go +++ b/cmd/parse/cmd.go @@ -3,11 +3,11 @@ package parse import ( "github.com/spf13/cobra" - parsecmdtypes "github.com/forbole/juno/v4/cmd/parse/types" + parsecmdtypes "github.com/forbole/juno/v5/cmd/parse/types" - parseblocks "github.com/forbole/juno/v4/cmd/parse/blocks" - parsegenesis "github.com/forbole/juno/v4/cmd/parse/genesis" - parsetransactions "github.com/forbole/juno/v4/cmd/parse/transactions" + parseblocks "github.com/forbole/juno/v5/cmd/parse/blocks" + parsegenesis "github.com/forbole/juno/v5/cmd/parse/genesis" + parsetransactions "github.com/forbole/juno/v5/cmd/parse/transactions" ) // NewParseCmd returns the Cobra command allowing to parse some chain data without having to re-sync the whole database diff --git a/cmd/parse/genesis/cmd.go b/cmd/parse/genesis/cmd.go index d9cd299a..f0b5330d 100644 --- a/cmd/parse/genesis/cmd.go +++ b/cmd/parse/genesis/cmd.go @@ -3,11 +3,11 @@ package genesis import ( "github.com/spf13/cobra" - parsecmdtypes "github.com/forbole/juno/v4/cmd/parse/types" + parsecmdtypes "github.com/forbole/juno/v5/cmd/parse/types" - "github.com/forbole/juno/v4/modules" - nodeconfig "github.com/forbole/juno/v4/node/config" - "github.com/forbole/juno/v4/types/utils" + "github.com/forbole/juno/v5/modules" + nodeconfig "github.com/forbole/juno/v5/node/config" + "github.com/forbole/juno/v5/types/utils" ) const ( diff --git a/cmd/parse/transactions/cmd.go b/cmd/parse/transactions/cmd.go index d74b9644..6c2a17b4 100644 --- a/cmd/parse/transactions/cmd.go +++ b/cmd/parse/transactions/cmd.go @@ -3,7 +3,7 @@ package transactions import ( "github.com/spf13/cobra" - parsecmdtypes "github.com/forbole/juno/v4/cmd/parse/types" + parsecmdtypes "github.com/forbole/juno/v5/cmd/parse/types" ) // NewTransactionsCmd returns the Cobra command that allows to fix missing or incomplete transactions diff --git a/cmd/parse/transactions/transactions.go b/cmd/parse/transactions/transactions.go index cc8c7be1..c6319b2e 100644 --- a/cmd/parse/transactions/transactions.go +++ b/cmd/parse/transactions/transactions.go @@ -3,14 +3,14 @@ package transactions import ( "fmt" - parsecmdtypes "github.com/forbole/juno/v4/cmd/parse/types" + parsecmdtypes "github.com/forbole/juno/v5/cmd/parse/types" "github.com/rs/zerolog/log" "github.com/spf13/cobra" - "github.com/forbole/juno/v4/parser" - "github.com/forbole/juno/v4/types/config" + "github.com/forbole/juno/v5/parser" + "github.com/forbole/juno/v5/types/config" ) const ( diff --git a/cmd/parse/types/config.go b/cmd/parse/types/config.go index 06be96d0..37db7794 100644 --- a/cmd/parse/types/config.go +++ b/cmd/parse/types/config.go @@ -4,11 +4,11 @@ import ( "fmt" "os" - "github.com/forbole/juno/v4/types/config" + "github.com/forbole/juno/v5/types/config" "github.com/spf13/cobra" - "github.com/forbole/juno/v4/types" + "github.com/forbole/juno/v5/types" ) // ReadConfigPreRunE represents a Cobra cmd function allowing to read the config before executing the command itself diff --git a/cmd/parse/types/sdk.go b/cmd/parse/types/sdk.go index 1f10edd2..df6c3872 100644 --- a/cmd/parse/types/sdk.go +++ b/cmd/parse/types/sdk.go @@ -4,7 +4,7 @@ import ( "github.com/cosmos/cosmos-sdk/simapp/params" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/forbole/juno/v4/types/config" + "github.com/forbole/juno/v5/types/config" ) // SdkConfigSetup represents a method that allows to customize the given sdk.Config. diff --git a/cmd/parse/types/setup.go b/cmd/parse/types/setup.go index e757f4cd..b4961205 100644 --- a/cmd/parse/types/setup.go +++ b/cmd/parse/types/setup.go @@ -4,16 +4,16 @@ import ( "fmt" "reflect" - "github.com/forbole/juno/v4/parser" + "github.com/forbole/juno/v5/parser" - nodebuilder "github.com/forbole/juno/v4/node/builder" - "github.com/forbole/juno/v4/types/config" + nodebuilder "github.com/forbole/juno/v5/node/builder" + "github.com/forbole/juno/v5/types/config" - "github.com/forbole/juno/v4/database" + "github.com/forbole/juno/v5/database" sdk "github.com/cosmos/cosmos-sdk/types" - modsregistrar "github.com/forbole/juno/v4/modules/registrar" + modsregistrar "github.com/forbole/juno/v5/modules/registrar" ) // GetParserContext setups all the things that can be used to later parse the chain state diff --git a/cmd/parse/types/types.go b/cmd/parse/types/types.go index 598485db..7d548ea4 100644 --- a/cmd/parse/types/types.go +++ b/cmd/parse/types/types.go @@ -3,12 +3,12 @@ package types import ( "github.com/cosmos/cosmos-sdk/simapp" - "github.com/forbole/juno/v4/logging" - "github.com/forbole/juno/v4/types/config" + "github.com/forbole/juno/v5/logging" + "github.com/forbole/juno/v5/types/config" - "github.com/forbole/juno/v4/database" - "github.com/forbole/juno/v4/database/builder" - "github.com/forbole/juno/v4/modules/registrar" + "github.com/forbole/juno/v5/database" + "github.com/forbole/juno/v5/database/builder" + "github.com/forbole/juno/v5/modules/registrar" ) // Config contains all the configuration for the "parse" command diff --git a/cmd/start/cmd.go b/cmd/start/cmd.go index 55ceca91..a3ca40cb 100644 --- a/cmd/start/cmd.go +++ b/cmd/start/cmd.go @@ -7,18 +7,18 @@ import ( "syscall" "time" - parsecmdtypes "github.com/forbole/juno/v4/cmd/parse/types" - "github.com/forbole/juno/v4/modules" - "github.com/forbole/juno/v4/types/utils" + parsecmdtypes "github.com/forbole/juno/v5/cmd/parse/types" + "github.com/forbole/juno/v5/modules" + "github.com/forbole/juno/v5/types/utils" - "github.com/forbole/juno/v4/logging" + "github.com/forbole/juno/v5/logging" - "github.com/forbole/juno/v4/types/config" + "github.com/forbole/juno/v5/types/config" "github.com/go-co-op/gocron" - "github.com/forbole/juno/v4/parser" - "github.com/forbole/juno/v4/types" + "github.com/forbole/juno/v5/parser" + "github.com/forbole/juno/v5/types" "github.com/spf13/cobra" ) diff --git a/database/builder/builder.go b/database/builder/builder.go index de59a75f..0e1dde12 100644 --- a/database/builder/builder.go +++ b/database/builder/builder.go @@ -1,9 +1,9 @@ package builder import ( - "github.com/forbole/juno/v4/database" + "github.com/forbole/juno/v5/database" - "github.com/forbole/juno/v4/database/postgresql" + "github.com/forbole/juno/v5/database/postgresql" ) // Builder represents a generic Builder implementation that build the proper database diff --git a/database/database.go b/database/database.go index 65d09c98..9ca702dc 100644 --- a/database/database.go +++ b/database/database.go @@ -3,11 +3,11 @@ package database import ( "github.com/cosmos/cosmos-sdk/simapp/params" - "github.com/forbole/juno/v4/logging" + "github.com/forbole/juno/v5/logging" - databaseconfig "github.com/forbole/juno/v4/database/config" + databaseconfig "github.com/forbole/juno/v5/database/config" - "github.com/forbole/juno/v4/types" + "github.com/forbole/juno/v5/types" ) // Database represents an abstract database that can be used to save data inside it diff --git a/database/legacy/v3/migrate.go b/database/legacy/v3/migrate.go index 8b1a5df9..7a48ada4 100644 --- a/database/legacy/v3/migrate.go +++ b/database/legacy/v3/migrate.go @@ -6,9 +6,9 @@ import ( "github.com/rs/zerolog/log" - "github.com/forbole/juno/v4/types/config" + "github.com/forbole/juno/v5/types/config" - types "github.com/forbole/juno/v4/database/migrate/utils" + types "github.com/forbole/juno/v5/database/migrate/utils" ) // Migrate implements database.Migrator diff --git a/database/legacy/v3/migrator.go b/database/legacy/v3/migrator.go index bc03559c..9a0737ce 100644 --- a/database/legacy/v3/migrator.go +++ b/database/legacy/v3/migrator.go @@ -3,8 +3,8 @@ package v3 import ( "github.com/jmoiron/sqlx" - "github.com/forbole/juno/v4/database" - "github.com/forbole/juno/v4/database/postgresql" + "github.com/forbole/juno/v5/database" + "github.com/forbole/juno/v5/database/postgresql" ) var _ database.Migrator = &Migrator{} diff --git a/database/legacy/v3/prepare.go b/database/legacy/v3/prepare.go index 3845508d..9d042bf7 100644 --- a/database/legacy/v3/prepare.go +++ b/database/legacy/v3/prepare.go @@ -3,7 +3,7 @@ package v3 import ( "fmt" - "github.com/forbole/juno/v4/types/config" + "github.com/forbole/juno/v5/types/config" ) // PrepareMigration prepares the database for the migration by renaming the old tables and creating the new ones diff --git a/database/postgresql/postgresql.go b/database/postgresql/postgresql.go index 6c33db18..bca5076f 100644 --- a/database/postgresql/postgresql.go +++ b/database/postgresql/postgresql.go @@ -8,16 +8,16 @@ import ( "github.com/jmoiron/sqlx" - "github.com/forbole/juno/v4/logging" + "github.com/forbole/juno/v5/logging" "github.com/cosmos/cosmos-sdk/simapp/params" "github.com/lib/pq" - "github.com/forbole/juno/v4/database" - "github.com/forbole/juno/v4/types" - "github.com/forbole/juno/v4/types/config" - "github.com/forbole/juno/v4/types/env" - "github.com/forbole/juno/v4/types/utils" + "github.com/forbole/juno/v5/database" + "github.com/forbole/juno/v5/types" + "github.com/forbole/juno/v5/types/config" + "github.com/forbole/juno/v5/types/env" + "github.com/forbole/juno/v5/types/utils" ) // Builder creates a database connection with the given database connection info diff --git a/database/postgresql/postgresql_test.go b/database/postgresql/postgresql_test.go index 104172db..baae6ea7 100644 --- a/database/postgresql/postgresql_test.go +++ b/database/postgresql/postgresql_test.go @@ -11,10 +11,10 @@ import ( "github.com/cosmos/cosmos-sdk/simapp" "github.com/stretchr/testify/suite" - "github.com/forbole/juno/v4/database" - databaseconfig "github.com/forbole/juno/v4/database/config" - postgres "github.com/forbole/juno/v4/database/postgresql" - "github.com/forbole/juno/v4/logging" + "github.com/forbole/juno/v5/database" + databaseconfig "github.com/forbole/juno/v5/database/config" + postgres "github.com/forbole/juno/v5/database/postgresql" + "github.com/forbole/juno/v5/logging" ) func TestDatabaseTestSuite(t *testing.T) { diff --git a/go.mod b/go.mod index 09c6180b..b0030259 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/forbole/juno/v4 +module github.com/forbole/juno/v5 go 1.18 diff --git a/logging/default.go b/logging/default.go index a75d3ea6..9179e999 100644 --- a/logging/default.go +++ b/logging/default.go @@ -11,8 +11,8 @@ import ( "github.com/rs/zerolog/log" tmctypes "github.com/tendermint/tendermint/rpc/core/types" - "github.com/forbole/juno/v4/modules" - "github.com/forbole/juno/v4/types" + "github.com/forbole/juno/v5/modules" + "github.com/forbole/juno/v5/types" ) var ( diff --git a/logging/logger.go b/logging/logger.go index 2e33f6db..47f2308d 100644 --- a/logging/logger.go +++ b/logging/logger.go @@ -4,8 +4,8 @@ import ( sdk "github.com/cosmos/cosmos-sdk/types" tmctypes "github.com/tendermint/tendermint/rpc/core/types" - "github.com/forbole/juno/v4/modules" - "github.com/forbole/juno/v4/types" + "github.com/forbole/juno/v5/modules" + "github.com/forbole/juno/v5/types" ) const ( diff --git a/modules/messages/message_handler.go b/modules/messages/message_handler.go index f0699409..ed16d72d 100644 --- a/modules/messages/message_handler.go +++ b/modules/messages/message_handler.go @@ -8,8 +8,8 @@ import ( channeltypes "github.com/cosmos/ibc-go/v3/modules/core/04-channel/types" "github.com/gogo/protobuf/proto" - "github.com/forbole/juno/v4/database" - "github.com/forbole/juno/v4/types" + "github.com/forbole/juno/v5/database" + "github.com/forbole/juno/v5/types" ) // HandleMsg represents a message handler that stores the given message inside the proper database table diff --git a/modules/messages/module.go b/modules/messages/module.go index 27df8ac2..ca39fd1a 100644 --- a/modules/messages/module.go +++ b/modules/messages/module.go @@ -4,9 +4,9 @@ import ( "github.com/cosmos/cosmos-sdk/codec" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/forbole/juno/v4/database" - "github.com/forbole/juno/v4/modules" - "github.com/forbole/juno/v4/types" + "github.com/forbole/juno/v5/database" + "github.com/forbole/juno/v5/modules" + "github.com/forbole/juno/v5/types" ) var _ modules.Module = &Module{} diff --git a/modules/module.go b/modules/module.go index 2a29545e..6f8c36ce 100644 --- a/modules/module.go +++ b/modules/module.go @@ -7,7 +7,7 @@ import ( "github.com/cosmos/cosmos-sdk/x/authz" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/forbole/juno/v4/types" + "github.com/forbole/juno/v5/types" "github.com/go-co-op/gocron" tmctypes "github.com/tendermint/tendermint/rpc/core/types" tmtypes "github.com/tendermint/tendermint/types" diff --git a/modules/pruning/config_test.go b/modules/pruning/config_test.go index 143041b8..91657fc3 100644 --- a/modules/pruning/config_test.go +++ b/modules/pruning/config_test.go @@ -5,7 +5,7 @@ import ( "github.com/stretchr/testify/require" - "github.com/forbole/juno/v4/modules/pruning" + "github.com/forbole/juno/v5/modules/pruning" ) func TestParseConfig(t *testing.T) { diff --git a/modules/pruning/handle_block.go b/modules/pruning/handle_block.go index 8baf4268..cb141684 100644 --- a/modules/pruning/handle_block.go +++ b/modules/pruning/handle_block.go @@ -5,8 +5,8 @@ import ( tmctypes "github.com/tendermint/tendermint/rpc/core/types" - "github.com/forbole/juno/v4/database" - "github.com/forbole/juno/v4/types" + "github.com/forbole/juno/v5/database" + "github.com/forbole/juno/v5/types" ) // HandleBlock implements modules.BlockModule diff --git a/modules/pruning/module.go b/modules/pruning/module.go index 20abd200..daa2b16a 100644 --- a/modules/pruning/module.go +++ b/modules/pruning/module.go @@ -1,12 +1,12 @@ package pruning import ( - "github.com/forbole/juno/v4/types/config" + "github.com/forbole/juno/v5/types/config" - "github.com/forbole/juno/v4/logging" + "github.com/forbole/juno/v5/logging" - "github.com/forbole/juno/v4/database" - "github.com/forbole/juno/v4/modules" + "github.com/forbole/juno/v5/database" + "github.com/forbole/juno/v5/modules" ) var ( diff --git a/modules/registrar/registrar.go b/modules/registrar/registrar.go index 689d74d6..4a3b983b 100644 --- a/modules/registrar/registrar.go +++ b/modules/registrar/registrar.go @@ -4,20 +4,20 @@ import ( "github.com/cosmos/cosmos-sdk/simapp/params" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/forbole/juno/v4/node" + "github.com/forbole/juno/v5/node" - "github.com/forbole/juno/v4/modules/telemetry" + "github.com/forbole/juno/v5/modules/telemetry" - "github.com/forbole/juno/v4/logging" + "github.com/forbole/juno/v5/logging" - "github.com/forbole/juno/v4/types/config" + "github.com/forbole/juno/v5/types/config" - "github.com/forbole/juno/v4/modules/pruning" + "github.com/forbole/juno/v5/modules/pruning" - "github.com/forbole/juno/v4/modules" - "github.com/forbole/juno/v4/modules/messages" + "github.com/forbole/juno/v5/modules" + "github.com/forbole/juno/v5/modules/messages" - "github.com/forbole/juno/v4/database" + "github.com/forbole/juno/v5/database" ) // Context represents the context of the modules registrar diff --git a/modules/telemetry/module.go b/modules/telemetry/module.go index b53750c9..d870f413 100644 --- a/modules/telemetry/module.go +++ b/modules/telemetry/module.go @@ -1,8 +1,8 @@ package telemetry import ( - "github.com/forbole/juno/v4/modules" - "github.com/forbole/juno/v4/types/config" + "github.com/forbole/juno/v5/modules" + "github.com/forbole/juno/v5/types/config" ) const ( diff --git a/node/builder/builder.go b/node/builder/builder.go index f336c16b..7aaad9b8 100644 --- a/node/builder/builder.go +++ b/node/builder/builder.go @@ -5,10 +5,10 @@ import ( "github.com/cosmos/cosmos-sdk/simapp/params" - "github.com/forbole/juno/v4/node" - nodeconfig "github.com/forbole/juno/v4/node/config" - "github.com/forbole/juno/v4/node/local" - "github.com/forbole/juno/v4/node/remote" + "github.com/forbole/juno/v5/node" + nodeconfig "github.com/forbole/juno/v5/node/config" + "github.com/forbole/juno/v5/node/local" + "github.com/forbole/juno/v5/node/remote" ) func BuildNode(cfg nodeconfig.Config, encodingConfig *params.EncodingConfig) (node.Node, error) { diff --git a/node/config/config.go b/node/config/config.go index cd6f06f9..a273df54 100644 --- a/node/config/config.go +++ b/node/config/config.go @@ -3,8 +3,8 @@ package config import ( "gopkg.in/yaml.v3" - "github.com/forbole/juno/v4/node/local" - "github.com/forbole/juno/v4/node/remote" + "github.com/forbole/juno/v5/node/local" + "github.com/forbole/juno/v5/node/remote" ) const ( diff --git a/node/config/config_test.go b/node/config/config_test.go index 94170c07..b97ef578 100644 --- a/node/config/config_test.go +++ b/node/config/config_test.go @@ -7,9 +7,9 @@ import ( "github.com/stretchr/testify/require" "gopkg.in/yaml.v3" - nodeconfig "github.com/forbole/juno/v4/node/config" - "github.com/forbole/juno/v4/node/local" - "github.com/forbole/juno/v4/node/remote" + nodeconfig "github.com/forbole/juno/v5/node/config" + "github.com/forbole/juno/v5/node/local" + "github.com/forbole/juno/v5/node/remote" ) func TestConfig_UnmarshalYAML(t *testing.T) { diff --git a/node/local/node.go b/node/local/node.go index 9f2a3654..796b6e38 100644 --- a/node/local/node.go +++ b/node/local/node.go @@ -31,8 +31,8 @@ import ( "github.com/tendermint/tendermint/store" tmtypes "github.com/tendermint/tendermint/types" - "github.com/forbole/juno/v4/node" - "github.com/forbole/juno/v4/types" + "github.com/forbole/juno/v5/node" + "github.com/forbole/juno/v5/types" "path" "time" diff --git a/node/local/source.go b/node/local/source.go index b129900e..7e83362c 100644 --- a/node/local/source.go +++ b/node/local/source.go @@ -20,7 +20,7 @@ import ( tmstore "github.com/tendermint/tendermint/store" db "github.com/tendermint/tm-db" - "github.com/forbole/juno/v4/node" + "github.com/forbole/juno/v5/node" ) var ( diff --git a/node/node.go b/node/node.go index 2b7606fb..f00a0dd2 100644 --- a/node/node.go +++ b/node/node.go @@ -6,7 +6,7 @@ import ( constypes "github.com/tendermint/tendermint/consensus/types" tmctypes "github.com/tendermint/tendermint/rpc/core/types" - "github.com/forbole/juno/v4/types" + "github.com/forbole/juno/v5/types" ) type Node interface { diff --git a/node/remote/node.go b/node/remote/node.go index 1dc6535a..954c903b 100644 --- a/node/remote/node.go +++ b/node/remote/node.go @@ -17,11 +17,11 @@ import ( constypes "github.com/tendermint/tendermint/consensus/types" tmjson "github.com/tendermint/tendermint/libs/json" - "github.com/forbole/juno/v4/node" + "github.com/forbole/juno/v5/node" "github.com/cosmos/cosmos-sdk/types/tx" - "github.com/forbole/juno/v4/types" + "github.com/forbole/juno/v5/types" httpclient "github.com/tendermint/tendermint/rpc/client/http" tmctypes "github.com/tendermint/tendermint/rpc/core/types" diff --git a/node/remote/source.go b/node/remote/source.go index f7c6cf67..d3dd8ebf 100644 --- a/node/remote/source.go +++ b/node/remote/source.go @@ -5,7 +5,7 @@ import ( "google.golang.org/grpc" - "github.com/forbole/juno/v4/node" + "github.com/forbole/juno/v5/node" ) var ( diff --git a/parser/context.go b/parser/context.go index 2538cbcf..da1eddbd 100644 --- a/parser/context.go +++ b/parser/context.go @@ -3,11 +3,11 @@ package parser import ( "github.com/cosmos/cosmos-sdk/simapp/params" - "github.com/forbole/juno/v4/logging" - "github.com/forbole/juno/v4/node" + "github.com/forbole/juno/v5/logging" + "github.com/forbole/juno/v5/node" - "github.com/forbole/juno/v4/database" - "github.com/forbole/juno/v4/modules" + "github.com/forbole/juno/v5/database" + "github.com/forbole/juno/v5/modules" ) // Context represents the context that is shared among different workers diff --git a/parser/utils.go b/parser/utils.go index 52351afa..f48eefe4 100644 --- a/parser/utils.go +++ b/parser/utils.go @@ -5,7 +5,7 @@ import ( tmctypes "github.com/tendermint/tendermint/rpc/core/types" tmtypes "github.com/tendermint/tendermint/types" - "github.com/forbole/juno/v4/types" + "github.com/forbole/juno/v5/types" ) // findValidatorByAddr finds a validator by a consensus address given a set of diff --git a/parser/worker.go b/parser/worker.go index 434a1982..2de2d52f 100644 --- a/parser/worker.go +++ b/parser/worker.go @@ -7,21 +7,21 @@ import ( "github.com/cosmos/cosmos-sdk/x/authz" - "github.com/forbole/juno/v4/logging" + "github.com/forbole/juno/v5/logging" "github.com/cosmos/cosmos-sdk/codec" - "github.com/forbole/juno/v4/database" - "github.com/forbole/juno/v4/types/config" + "github.com/forbole/juno/v5/database" + "github.com/forbole/juno/v5/types/config" sdk "github.com/cosmos/cosmos-sdk/types" - "github.com/forbole/juno/v4/modules" + "github.com/forbole/juno/v5/modules" tmctypes "github.com/tendermint/tendermint/rpc/core/types" tmtypes "github.com/tendermint/tendermint/types" - "github.com/forbole/juno/v4/node" - "github.com/forbole/juno/v4/types" - "github.com/forbole/juno/v4/types/utils" + "github.com/forbole/juno/v5/node" + "github.com/forbole/juno/v5/types" + "github.com/forbole/juno/v5/types/utils" ) // Worker defines a job consumer that is responsible for getting and diff --git a/types/config/config.go b/types/config/config.go index fb425427..b46b28c1 100644 --- a/types/config/config.go +++ b/types/config/config.go @@ -3,10 +3,10 @@ package config import ( "strings" - databaseconfig "github.com/forbole/juno/v4/database/config" - loggingconfig "github.com/forbole/juno/v4/logging/config" - nodeconfig "github.com/forbole/juno/v4/node/config" - parserconfig "github.com/forbole/juno/v4/parser/config" + databaseconfig "github.com/forbole/juno/v5/database/config" + loggingconfig "github.com/forbole/juno/v5/logging/config" + nodeconfig "github.com/forbole/juno/v5/node/config" + parserconfig "github.com/forbole/juno/v5/parser/config" ) var ( diff --git a/types/utils/genesis.go b/types/utils/genesis.go index 51b28dda..7a860e60 100644 --- a/types/utils/genesis.go +++ b/types/utils/genesis.go @@ -5,7 +5,7 @@ import ( "fmt" "strings" - "github.com/forbole/juno/v4/node" + "github.com/forbole/juno/v5/node" tmjson "github.com/tendermint/tendermint/libs/json" tmos "github.com/tendermint/tendermint/libs/os"