Skip to content

Commit

Permalink
chore: release v4.0.0 (#85)
Browse files Browse the repository at this point in the history
<!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
v                               ✰  Thanks for creating a PR! ✰    
v    Before smashing the submit button please review the checkboxes.
v If a checkbox is n/a - please still include it but + a little note why
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >  -->

## Description
This PR prepares the code for release `v4.0.0` by:
- updating `CHANGELOG.md` to contain the proper changes
- updating the `go.mod` to use the proper go module
(`github.com/forbole/juno/v4`)

Depends-on: #84
Depends-on: #86

## Checklist
- [x] Targeted PR against correct branch.
- [ ] Linked to Github issue with discussion and accepted design OR link
to spec that describes this work.
- [ ] Wrote unit tests.  
- [x] Re-reviewed `Files changed` in the Github PR explorer.
  • Loading branch information
RiccardoM authored and MonikaCat committed Jan 19, 2024
1 parent 9814b21 commit 5f5580a
Show file tree
Hide file tree
Showing 55 changed files with 190 additions and 178 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
## Unreleased
## v4.0.0
### Changes
- Updated cosmos/cosmos-sdk to `v0.45.8`
- ([\#74](https://github.com/forbole/juno/pull/74)) Added database block count to prometheus to improve alert monitoring
- ([\#75](https://github.com/forbole/juno/pull/75)) Allow modules to handle MsgExec inner messages
- ([\#76](https://github.com/forbole/juno/pull/76)) Return 0 as height for `GetLastBlockHeight()` method if there are no blocks saved in database
- ([\#77](https://github.com/forbole/juno/pull/77)) Add wait group to handle messages concurrently
- ([\#79](https://github.com/forbole/juno/pull/79)) Use `sqlx` instead of `sql` while dealing with a PostgreSQL database
- ([\#83](https://github.com/forbole/juno/pull/83)) Bump `github.com/tendermint/tendermint` to `v0.34.22`
- ([\#84](https://github.com/forbole/juno/pull/84)) Replace database configuration params with URI
- ([\#86](https://github.com/forbole/juno/pull/86)) Revert concurrent handling of transactions and messages

## v3.4.0
### Changes
Expand Down
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/v3/cmd.Version=$(VERSION) \
-X github.com/forbole/juno/v3/cmd.Commit=$(COMMIT)
LD_FLAGS = -X github.com/forbole/juno/v4/cmd.Version=$(VERSION) \
-X github.com/forbole/juno/v4/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/v3/cmd/init"
parsecmd "github.com/forbole/juno/v3/cmd/parse/types"
initcmd "github.com/forbole/juno/v4/cmd/init"
parsecmd "github.com/forbole/juno/v4/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/v3/types/config"
"github.com/forbole/juno/v4/types/config"

initcmd "github.com/forbole/juno/v3/cmd/init"
migratecmd "github.com/forbole/juno/v3/cmd/migrate"
parsecmd "github.com/forbole/juno/v3/cmd/parse"
startcmd "github.com/forbole/juno/v3/cmd/start"
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"

"github.com/forbole/juno/v3/types"
"github.com/forbole/juno/v4/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/v3/types/config"
"github.com/forbole/juno/v4/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/v3/types/config"
"github.com/forbole/juno/v4/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/v3/cmd/parse/types"
"github.com/forbole/juno/v4/cmd/parse/types"

"github.com/forbole/juno/v3/modules/messages"
"github.com/forbole/juno/v3/modules/registrar"
"github.com/forbole/juno/v4/modules/messages"
"github.com/forbole/juno/v4/modules/registrar"

"github.com/forbole/juno/v3/cmd"
"github.com/forbole/juno/v4/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/v3/cmd/parse/types"
parsecmdtypes "github.com/forbole/juno/v4/cmd/parse/types"

"github.com/spf13/cobra"

v4 "github.com/forbole/juno/v3/cmd/migrate/v4"
v4 "github.com/forbole/juno/v4/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/v3/logging/config"
"github.com/forbole/juno/v3/modules/pruning"
"github.com/forbole/juno/v3/modules/telemetry"
nodeconfig "github.com/forbole/juno/v3/node/config"
parserconfig "github.com/forbole/juno/v3/parser/config"
pricefeedconfig "github.com/forbole/juno/v3/pricefeed"
"github.com/forbole/juno/v3/types/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"
)

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/v3/types/config"
"github.com/forbole/juno/v4/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/v3/cmd/parse/types"
parsecmdtypes "github.com/forbole/juno/v4/cmd/parse/types"

"gopkg.in/yaml.v3"

v3 "github.com/forbole/juno/v3/cmd/migrate/v3"
databaseconfig "github.com/forbole/juno/v3/database/config"
"github.com/forbole/juno/v3/types/config"
v3 "github.com/forbole/juno/v4/cmd/migrate/v3"
databaseconfig "github.com/forbole/juno/v4/database/config"
"github.com/forbole/juno/v4/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/v3/database/config"
loggingconfig "github.com/forbole/juno/v3/logging/config"
"github.com/forbole/juno/v3/modules/pruning"
"github.com/forbole/juno/v3/modules/telemetry"
nodeconfig "github.com/forbole/juno/v3/node/config"
parserconfig "github.com/forbole/juno/v3/parser/config"
pricefeedconfig "github.com/forbole/juno/v3/pricefeed"
"github.com/forbole/juno/v3/types/config"
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"
)

// 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/v3/cmd/parse/types"
"github.com/forbole/juno/v3/types/utils"
parsecmdtypes "github.com/forbole/juno/v4/cmd/parse/types"
"github.com/forbole/juno/v4/types/utils"

"github.com/rs/zerolog/log"

"github.com/spf13/cobra"

"github.com/forbole/juno/v3/parser"
"github.com/forbole/juno/v3/types/config"
"github.com/forbole/juno/v4/parser"
"github.com/forbole/juno/v4/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/v3/cmd/parse/types"
parsecmdtypes "github.com/forbole/juno/v4/cmd/parse/types"
)

// NewBlocksCmd returns the Cobra command that allows to fix all the things related to blocks
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/v3/cmd/parse/types"
parsecmdtypes "github.com/forbole/juno/v4/cmd/parse/types"

parseblocks "github.com/forbole/juno/v3/cmd/parse/blocks"
parsegenesis "github.com/forbole/juno/v3/cmd/parse/genesis"
parsetransactions "github.com/forbole/juno/v3/cmd/parse/transactions"
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"
)

// 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/v3/cmd/parse/types"
parsecmdtypes "github.com/forbole/juno/v4/cmd/parse/types"

"github.com/forbole/juno/v3/modules"
nodeconfig "github.com/forbole/juno/v3/node/config"
"github.com/forbole/juno/v3/types/utils"
"github.com/forbole/juno/v4/modules"
nodeconfig "github.com/forbole/juno/v4/node/config"
"github.com/forbole/juno/v4/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/v3/cmd/parse/types"
parsecmdtypes "github.com/forbole/juno/v4/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/v3/cmd/parse/types"
parsecmdtypes "github.com/forbole/juno/v4/cmd/parse/types"

"github.com/rs/zerolog/log"

"github.com/spf13/cobra"

"github.com/forbole/juno/v3/parser"
"github.com/forbole/juno/v3/types/config"
"github.com/forbole/juno/v4/parser"
"github.com/forbole/juno/v4/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/v3/types/config"
"github.com/forbole/juno/v4/types/config"

"github.com/spf13/cobra"

"github.com/forbole/juno/v3/types"
"github.com/forbole/juno/v4/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/v3/types/config"
"github.com/forbole/juno/v4/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/v3/parser"
"github.com/forbole/juno/v4/parser"

nodebuilder "github.com/forbole/juno/v3/node/builder"
"github.com/forbole/juno/v3/types/config"
nodebuilder "github.com/forbole/juno/v4/node/builder"
"github.com/forbole/juno/v4/types/config"

"github.com/forbole/juno/v3/database"
"github.com/forbole/juno/v4/database"

sdk "github.com/cosmos/cosmos-sdk/types"

modsregistrar "github.com/forbole/juno/v3/modules/registrar"
modsregistrar "github.com/forbole/juno/v4/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/v3/logging"
"github.com/forbole/juno/v3/types/config"
"github.com/forbole/juno/v4/logging"
"github.com/forbole/juno/v4/types/config"

"github.com/forbole/juno/v3/database"
"github.com/forbole/juno/v3/database/builder"
"github.com/forbole/juno/v3/modules/registrar"
"github.com/forbole/juno/v4/database"
"github.com/forbole/juno/v4/database/builder"
"github.com/forbole/juno/v4/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/v3/cmd/parse/types"
"github.com/forbole/juno/v3/types/utils"
parsecmdtypes "github.com/forbole/juno/v4/cmd/parse/types"
"github.com/forbole/juno/v4/types/utils"

"github.com/forbole/juno/v3/logging"
"github.com/forbole/juno/v4/logging"

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

"github.com/go-co-op/gocron"

"github.com/forbole/juno/v3/modules"
"github.com/forbole/juno/v3/parser"
"github.com/forbole/juno/v3/types"
"github.com/forbole/juno/v4/modules"
"github.com/forbole/juno/v4/parser"
"github.com/forbole/juno/v4/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/v3/database"
"github.com/forbole/juno/v4/database"

"github.com/forbole/juno/v3/database/postgresql"
"github.com/forbole/juno/v4/database/postgresql"
)

// Builder represents a generic Builder implementation that build the proper database
Expand Down
Loading

0 comments on commit 5f5580a

Please sign in to comment.