Skip to content

Commit

Permalink
build: bump Go package to github.com/forbole/juno/v5
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoM authored and MonikaCat committed Jan 5, 2024
1 parent 3a86630 commit b24536c
Show file tree
Hide file tree
Showing 54 changed files with 159 additions and 159 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)'

Expand Down
4 changes: 2 additions & 2 deletions cmd/config.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
12 changes: 6 additions & 6 deletions cmd/executor.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion cmd/init/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io/ioutil"

Check failure on line 5 in cmd/init/cmd.go

View workflow job for this annotation

GitHub Actions / golangci-lint

SA1019: "io/ioutil" has been deprecated since Go 1.16: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
"os"

"github.com/forbole/juno/v4/types/config"
"github.com/forbole/juno/v5/types/config"

"github.com/spf13/cobra"
)
Expand Down
2 changes: 1 addition & 1 deletion cmd/init/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions cmd/juno/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
4 changes: 2 additions & 2 deletions cmd/migrate/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions cmd/migrate/v3/types.go
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion cmd/migrate/v3/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions cmd/migrate/v4/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ import (
"fmt"
"io/ioutil"

Check failure on line 5 in cmd/migrate/v4/migrate.go

View workflow job for this annotation

GitHub Actions / golangci-lint

SA1019: "io/ioutil" has been deprecated since Go 1.16: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)

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
Expand Down
16 changes: 8 additions & 8 deletions cmd/migrate/v4/types.go
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
8 changes: 4 additions & 4 deletions cmd/parse/blocks/blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion cmd/parse/blocks/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions cmd/parse/blocks/missing.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions cmd/parse/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions cmd/parse/genesis/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
2 changes: 1 addition & 1 deletion cmd/parse/transactions/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions cmd/parse/transactions/transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down
4 changes: 2 additions & 2 deletions cmd/parse/types/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cmd/parse/types/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 5 additions & 5 deletions cmd/parse/types/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions cmd/parse/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
14 changes: 7 additions & 7 deletions cmd/start/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
4 changes: 2 additions & 2 deletions database/builder/builder.go
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions database/legacy/v3/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading

0 comments on commit b24536c

Please sign in to comment.