Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incremental index #132

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/v6/cmd/init"
parsecmd "github.com/forbole/juno/v6/cmd/parse/types"
initcmd "github.com/0xPellNetwork/juno/v6/cmd/init"
parsecmd "github.com/0xPellNetwork/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/v6/types/config"
"github.com/0xPellNetwork/juno/v6/types/config"

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

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

"github.com/forbole/juno/v6/modules/messages"
"github.com/forbole/juno/v6/modules/registrar"
"github.com/0xPellNetwork/juno/v6/modules/messages"
"github.com/0xPellNetwork/juno/v6/modules/registrar"

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

"github.com/spf13/cobra"

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

"gopkg.in/yaml.v3"

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

"github.com/rs/zerolog/log"

"github.com/spf13/cobra"

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

"github.com/spf13/cobra"

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

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

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

"github.com/rs/zerolog/log"

"github.com/spf13/cobra"

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

"github.com/spf13/cobra"

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

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

"github.com/forbole/juno/v6/database"
"github.com/0xPellNetwork/juno/v6/database"

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

modsregistrar "github.com/forbole/juno/v6/modules/registrar"
modsregistrar "github.com/0xPellNetwork/juno/v6/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
@@ -1,12 +1,12 @@
package types

import (
"github.com/forbole/juno/v6/logging"
"github.com/forbole/juno/v6/types/config"
"github.com/0xPellNetwork/juno/v6/logging"
"github.com/0xPellNetwork/juno/v6/types/config"

"github.com/forbole/juno/v6/database"
"github.com/forbole/juno/v6/database/builder"
"github.com/forbole/juno/v6/modules/registrar"
"github.com/0xPellNetwork/juno/v6/database"
"github.com/0xPellNetwork/juno/v6/database/builder"
"github.com/0xPellNetwork/juno/v6/modules/registrar"
)

// Config contains all the configuration for the "parse" command
Expand Down
Loading