Skip to content

Commit

Permalink
chore: prepare v6 (#120)
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
<!-- Small description -->
Close #118

This PR releases v6 for juno.

## Checklist
- [ ] 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.  
- [ ] Re-reviewed `Files changed` in the Github PR explorer.
  • Loading branch information
dadamu authored Jun 20, 2024
1 parent 292e5db commit 69b804d
Show file tree
Hide file tree
Showing 60 changed files with 191 additions and 168 deletions.
10 changes: 9 additions & 1 deletion .docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ node:
grpc:
insecure: true
address: localhost:9090
api:
address: localhost:1317

parsing:
fast_sync: true
Expand Down Expand Up @@ -71,7 +73,7 @@ Currently we support the followings Cosmos modules:
- `auth` to parse the `x/auth` data
- `bank` to parse the `x/bank` data
- `distribution` to parse the `x/distribution` data
- `gov` to parse the `x/gox` data
- `gov` to parse the `x/gov` data
- `mint` to parse the `x/mint` data
- `slashing` to parse the `x/slashing` data
- `staking` to parse the `x/staking` data
Expand All @@ -98,6 +100,7 @@ A remote node is the default implementation of a node. It relies on both an RPC
| :-------: | :---: | :--------- | :------ |
| `rpc` | `object` | Contains the RPC configuration data | |
| `grpc` | `object` | Contains the gRPC configuration data | |
| `api` | `object` | Contains the REST API configuration data | |

#### `rpc`
| Attribute | Type | Description | Example |
Expand All @@ -112,6 +115,11 @@ A remote node is the default implementation of a node. It relies on both an RPC
| `address` | `string` | Address of the gRPC endpoint | `localhost:9090` |
| `insecure` | `boolean` | Whether the gRPC endpoint is insecure or not | `false` |

#### `api`
| Attribute | Type | Description | Example |
| :-------: | :---: | :--------- | :------ |
| `address` | `string` | Address of the REST API endpoint | `localhost:1317` |

### Local node
A local node reads the data to be parsed from a local directory referred to as `home`. If you want to use this kind of node, you need to set the [`node`](#node) type to `local` and then set the following attributes of the configuration.

Expand Down
2 changes: 1 addition & 1 deletion .docs/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Setting up Juno is pretty straightforward. It requires three things to be done:
2. Start the parser.

## Installing Juno
In order to install Juno you are required to have [Go 1.15+](https://golang.org/dl/) installed on your machine. Once you have it, the first thing to do is to clone the GitHub repository. To do this you can run
In order to install Juno you are required to have [Go 1.21+](https://golang.org/dl/) installed on your machine. Once you have it, the first thing to do is to clone the GitHub repository. To do this you can run

```shell
$ git clone https://github.com/forbole/juno.git
Expand Down
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
# v6.0.0
### Changes
- ([\#107](https://github.com/forbole/juno/pull/107)) Removed SDK codec dependency from remote mode

### Database
- ([\#110](https://github.com/forbole/juno/pull/110)) Fixed initialization of involved account addresses slice
- ([\#114](https://github.com/forbole/juno/pull/114)) Changed colum type from JSON into JSONB for message-related field

### Dependencies
- ([\#119](https://github.com/forbole/juno/pull/119)) Updated cosmos-sdk to v0.50.x

### Migrations

Now the api config is required in remote mode, please check the [reference](./.docs/config.md#remote-node) and add the field into your config after upgrading Juno to v6.


## v5.3.0
### Changes
- ([\#100](https://github.com/forbole/juno/pull/100)) Improved account relationship mapping
Expand Down
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,11 @@ Since the Cosmos SDK has evolved a lot, we have different versions of Juno avail

| Cosmos SDK Version | Juno branch |
|:-----------------------------------------------:|:----------------:|
| `v0.37.x` | `cosmos-v0.37.x` |
| `v0.38.x` | `cosmos-v0.38.x` |
| `v0.39.x` | `cosmos-v0.39.x` |
| Stargate <br> (`v0.40.x`, `v0.41.x`, `v0.42.x`) | `cosmos-v0.40.x` |
| `v0.43.x`, `v0.44.x`, `v0.45.1` | `cosmos-v0.44.x` |
| > `v0.45.1` | `cosmos-v0.45.x` |
| `v0.43.x`, `v0.44.x`, `v0.45.1` | `cosmos/v0.44.x` |
| `v0.45.x` | `cosmos/v0.45.x` |
| `v0.46.x` | `cosmos/v0.46.x` |
| `v0.47.x` | `cosmos/v0.47.x` |
| `v0.50.x` | `cosmos/v0.50.x` |

## Usage
To know how to setup and run Juno, please refer to the [docs folder](.docs).
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/v5/cmd/init"
parsecmd "github.com/forbole/juno/v5/cmd/parse/types"
initcmd "github.com/forbole/juno/v6/cmd/init"
parsecmd "github.com/forbole/juno/v6/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/v5/types/config"
"github.com/forbole/juno/v6/types/config"

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

"github.com/forbole/juno/v5/types"
"github.com/forbole/juno/v6/types"

"github.com/cometbft/cometbft/libs/cli"
"github.com/spf13/cobra"
Expand Down
2 changes: 1 addition & 1 deletion cmd/init/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

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

"github.com/forbole/juno/v5/modules/messages"
"github.com/forbole/juno/v5/modules/registrar"
"github.com/forbole/juno/v6/modules/messages"
"github.com/forbole/juno/v6/modules/registrar"

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

"github.com/spf13/cobra"

v4 "github.com/forbole/juno/v5/cmd/migrate/v4"
v4 "github.com/forbole/juno/v6/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/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"
loggingconfig "github.com/forbole/juno/v6/logging/config"
"github.com/forbole/juno/v6/modules/pruning"
"github.com/forbole/juno/v6/modules/telemetry"
nodeconfig "github.com/forbole/juno/v6/node/config"
parserconfig "github.com/forbole/juno/v6/parser/config"
pricefeedconfig "github.com/forbole/juno/v6/pricefeed"
"github.com/forbole/juno/v6/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 @@ -7,7 +7,7 @@ import (

"gopkg.in/yaml.v3"

"github.com/forbole/juno/v5/types/config"
"github.com/forbole/juno/v6/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"
"os"

parsecmdtypes "github.com/forbole/juno/v5/cmd/parse/types"
parsecmdtypes "github.com/forbole/juno/v6/cmd/parse/types"

"gopkg.in/yaml.v3"

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

"github.com/rs/zerolog/log"

"github.com/spf13/cobra"

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

"github.com/spf13/cobra"

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

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"
parseblocks "github.com/forbole/juno/v6/cmd/parse/blocks"
parsegenesis "github.com/forbole/juno/v6/cmd/parse/genesis"
parsetransactions "github.com/forbole/juno/v6/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/v5/cmd/parse/types"
parsecmdtypes "github.com/forbole/juno/v6/cmd/parse/types"

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

"github.com/rs/zerolog/log"

"github.com/spf13/cobra"

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

"github.com/spf13/cobra"

"github.com/forbole/juno/v5/types"
"github.com/forbole/juno/v6/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 @@ -3,7 +3,7 @@ package types
import (
sdk "github.com/cosmos/cosmos-sdk/types"

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

nodebuilder "github.com/forbole/juno/v5/node/builder"
"github.com/forbole/juno/v5/types/config"
nodebuilder "github.com/forbole/juno/v6/node/builder"
"github.com/forbole/juno/v6/types/config"

"github.com/forbole/juno/v5/database"
"github.com/forbole/juno/v6/database"

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

modsregistrar "github.com/forbole/juno/v5/modules/registrar"
modsregistrar "github.com/forbole/juno/v6/modules/registrar"
)

// GetParserContext setups all the things that can be used to later parse the chain state
Expand Down
Loading

0 comments on commit 69b804d

Please sign in to comment.