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 19, 2024
1 parent a112bdc commit cd58c33
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"
"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"

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 cd58c33

Please sign in to comment.