Skip to content

Commit

Permalink
chore: bump go module to v2 (#404)
Browse files Browse the repository at this point in the history
## Description

This PR bumps the go module to `/v2/` in order to prepare for the
upcoming release.

<!-- Add a description of the changes that this PR introduces and the
files that
are the most critical to review. -->

---

### Author Checklist

*All items are required. Please add a note to the item if the item is
not applicable and
please add links to any relevant follow up issues.*

I have...

- [ ] included the correct [type
prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json)
in the PR title
- [ ] added `!` to the type prefix if API or client breaking change
- [ ] targeted the correct branch
- [ ] provided a link to the relevant issue or specification
- [ ] added a changelog entry to `CHANGELOG.md`
- [ ] included comments for [documenting Go
code](https://blog.golang.org/godoc)
- [ ] updated the relevant documentation or specification
- [ ] reviewed "Files changed" and left comments if necessary
- [ ] confirmed all CI checks have passed

### Reviewers Checklist

*All items are required. Please add a note if the item is not applicable
and please add
your handle next to the items reviewed if you only reviewed selected
items.*

I have...

- [ ] confirmed the correct [type
prefix](https://github.com/commitizen/conventional-commit-types/blob/v3.0.0/index.json)
in the PR title
- [ ] confirmed `!` in the type prefix if API or client breaking change
- [ ] confirmed all author checklist items have been addressed
- [ ] reviewed API design and naming
- [ ] reviewed documentation is accurate
- [ ] reviewed tests and test coverage
- [ ] manually tested (if applicable)
  • Loading branch information
RiccardoM authored Feb 2, 2024
1 parent d7926cc commit c9f5e2e
Show file tree
Hide file tree
Showing 120 changed files with 242 additions and 242 deletions.
6 changes: 3 additions & 3 deletions cmd/athena/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
startcmd "github.com/forbole/juno/v5/cmd/start"
"github.com/forbole/juno/v5/types/params"

parsecmd "github.com/desmos-labs/athena/cmd/parse"
desmosdb "github.com/desmos-labs/athena/database"
"github.com/desmos-labs/athena/x"
parsecmd "github.com/desmos-labs/athena/v2/cmd/parse"
desmosdb "github.com/desmos-labs/athena/v2/database"
"github.com/desmos-labs/athena/v2/x"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions cmd/parse/authz/authorizations.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"

"github.com/desmos-labs/athena/database"
"github.com/desmos-labs/athena/x/authz"
"github.com/desmos-labs/athena/v2/database"
"github.com/desmos-labs/athena/v2/x/authz"
)

// authorizationsCmd returns a Cobra command that allows to refresh all the authorizations
Expand Down
6 changes: 3 additions & 3 deletions cmd/parse/contracts/contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package contracts
import (
"fmt"

"github.com/desmos-labs/athena/x/subspaces"
"github.com/desmos-labs/athena/v2/x/subspaces"

contractsbuilder "github.com/desmos-labs/athena/x/contracts/builder"
contractsbuilder "github.com/desmos-labs/athena/v2/x/contracts/builder"

subspacestypes "github.com/desmos-labs/desmos/v6/x/subspaces/types"
parsecmdtypes "github.com/forbole/juno/v5/cmd/parse/types"
Expand All @@ -14,7 +14,7 @@ import (
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"

"github.com/desmos-labs/athena/database"
"github.com/desmos-labs/athena/v2/database"
)

// contractsCmd returns a Cobra command that allows to refresh the smart contracts data for a single subspace
Expand Down
4 changes: 2 additions & 2 deletions cmd/parse/feegrant/authorizations.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/spf13/cobra"

"github.com/desmos-labs/athena/x/feegrant"
"github.com/desmos-labs/athena/v2/x/feegrant"

"github.com/desmos-labs/athena/database"
"github.com/desmos-labs/athena/v2/database"
)

// allowancesCmd returns a Cobra command that allows to refresh all the allowances
Expand Down
18 changes: 9 additions & 9 deletions cmd/parse/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ import (
parseblocks "github.com/forbole/juno/v5/cmd/parse/blocks"
parsegenesis "github.com/forbole/juno/v5/cmd/parse/genesis"

parseauthz "github.com/desmos-labs/athena/cmd/parse/authz"
parsecontracts "github.com/desmos-labs/athena/cmd/parse/contracts"
parsefeegrant "github.com/desmos-labs/athena/cmd/parse/feegrant"
parseposts "github.com/desmos-labs/athena/cmd/parse/posts"
parseprofiles "github.com/desmos-labs/athena/cmd/parse/profiles"
parsereactions "github.com/desmos-labs/athena/cmd/parse/reactions"
parserelationships "github.com/desmos-labs/athena/cmd/parse/relationships"
parsereports "github.com/desmos-labs/athena/cmd/parse/reports"
parsesubspaces "github.com/desmos-labs/athena/cmd/parse/subspaces"
parseauthz "github.com/desmos-labs/athena/v2/cmd/parse/authz"
parsecontracts "github.com/desmos-labs/athena/v2/cmd/parse/contracts"
parsefeegrant "github.com/desmos-labs/athena/v2/cmd/parse/feegrant"
parseposts "github.com/desmos-labs/athena/v2/cmd/parse/posts"
parseprofiles "github.com/desmos-labs/athena/v2/cmd/parse/profiles"
parsereactions "github.com/desmos-labs/athena/v2/cmd/parse/reactions"
parserelationships "github.com/desmos-labs/athena/v2/cmd/parse/relationships"
parsereports "github.com/desmos-labs/athena/v2/cmd/parse/reports"
parsesubspaces "github.com/desmos-labs/athena/v2/cmd/parse/subspaces"
)

// NewParseCmd returns the Cobra command allowing to parse some data without having to re-sync the whole database
Expand Down
6 changes: 3 additions & 3 deletions cmd/parse/posts/posts.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"github.com/forbole/juno/v5/types/config"
"github.com/spf13/cobra"

"github.com/desmos-labs/athena/database"
"github.com/desmos-labs/athena/x/posts"
"github.com/desmos-labs/athena/x/subspaces"
"github.com/desmos-labs/athena/v2/database"
"github.com/desmos-labs/athena/v2/x/posts"
"github.com/desmos-labs/athena/v2/x/subspaces"
)

// postsCmd returns a Cobra command that allows to refresh all the posts
Expand Down
4 changes: 2 additions & 2 deletions cmd/parse/profiles/application_links.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
"github.com/forbole/juno/v5/types/config"
"github.com/spf13/cobra"

"github.com/desmos-labs/athena/database"
"github.com/desmos-labs/athena/x/profiles"
"github.com/desmos-labs/athena/v2/database"
"github.com/desmos-labs/athena/v2/x/profiles"
)

// applicationLinksCmd returns a Cobra command that allows to fix the application links for all the profiles
Expand Down
4 changes: 2 additions & 2 deletions cmd/parse/profiles/application_links_scores.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"

"github.com/desmos-labs/athena/database"
profilesscorebuilder "github.com/desmos-labs/athena/x/profiles-score/builder"
"github.com/desmos-labs/athena/v2/database"
profilesscorebuilder "github.com/desmos-labs/athena/v2/x/profiles-score/builder"
)

// applicationLinksScoresCmd returns a Cobra command that allows to fix the application links scores for all the profiles
Expand Down
4 changes: 2 additions & 2 deletions cmd/parse/profiles/chain_links.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"

"github.com/desmos-labs/athena/database"
"github.com/desmos-labs/athena/x/profiles"
"github.com/desmos-labs/athena/v2/database"
"github.com/desmos-labs/athena/v2/x/profiles"
)

// chainLinksCmd returns a Cobra command that allows to fix the chain links for all the profiles
Expand Down
4 changes: 2 additions & 2 deletions cmd/parse/profiles/profiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"

"github.com/desmos-labs/athena/database"
"github.com/desmos-labs/athena/x/profiles"
"github.com/desmos-labs/athena/v2/database"
"github.com/desmos-labs/athena/v2/x/profiles"
)

// profilesCmd returns a Cobra command that allows to fix the profiles
Expand Down
6 changes: 3 additions & 3 deletions cmd/parse/reactions/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"

"github.com/desmos-labs/athena/database"
"github.com/desmos-labs/athena/x/reactions"
"github.com/desmos-labs/athena/x/subspaces"
"github.com/desmos-labs/athena/v2/database"
"github.com/desmos-labs/athena/v2/x/reactions"
"github.com/desmos-labs/athena/v2/x/subspaces"
)

// paramsCmd returns a Cobra command that allows to refresh all the reactions params
Expand Down
8 changes: 4 additions & 4 deletions cmd/parse/reactions/reactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import (
"github.com/forbole/juno/v5/types/config"
"github.com/spf13/cobra"

"github.com/desmos-labs/athena/database"
"github.com/desmos-labs/athena/x/posts"
"github.com/desmos-labs/athena/x/reactions"
"github.com/desmos-labs/athena/x/subspaces"
"github.com/desmos-labs/athena/v2/database"
"github.com/desmos-labs/athena/v2/x/posts"
"github.com/desmos-labs/athena/v2/x/reactions"
"github.com/desmos-labs/athena/v2/x/subspaces"
)

// reactionsCmd returns a Cobra command that allows to refresh all the reactions
Expand Down
6 changes: 3 additions & 3 deletions cmd/parse/reactions/registered_reactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import (
"github.com/forbole/juno/v5/types/config"
"github.com/spf13/cobra"

"github.com/desmos-labs/athena/database"
"github.com/desmos-labs/athena/x/reactions"
"github.com/desmos-labs/athena/x/subspaces"
"github.com/desmos-labs/athena/v2/database"
"github.com/desmos-labs/athena/v2/x/reactions"
"github.com/desmos-labs/athena/v2/x/subspaces"
)

// registeredReactionsCmd returns a Cobra command that allows to refresh all the registered reactions
Expand Down
8 changes: 4 additions & 4 deletions cmd/parse/relationships/relationships.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"github.com/forbole/juno/v5/types/config"
"github.com/spf13/cobra"

"github.com/desmos-labs/athena/database"
"github.com/desmos-labs/athena/x/profiles"
"github.com/desmos-labs/athena/x/relationships"
"github.com/desmos-labs/athena/x/subspaces"
"github.com/desmos-labs/athena/v2/database"
"github.com/desmos-labs/athena/v2/x/profiles"
"github.com/desmos-labs/athena/v2/x/relationships"
"github.com/desmos-labs/athena/v2/x/subspaces"
)

// relationshipsCmd returns a Cobra command that allows to fix the relationships for all the profiles
Expand Down
8 changes: 4 additions & 4 deletions cmd/parse/relationships/user_blocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ import (
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"

"github.com/desmos-labs/athena/database"
"github.com/desmos-labs/athena/x/profiles"
"github.com/desmos-labs/athena/x/relationships"
"github.com/desmos-labs/athena/x/subspaces"
"github.com/desmos-labs/athena/v2/database"
"github.com/desmos-labs/athena/v2/x/profiles"
"github.com/desmos-labs/athena/v2/x/relationships"
"github.com/desmos-labs/athena/v2/x/subspaces"
)

// userBlocksCmd returns a Cobra command that allows to fix the user blocks for all the profiles
Expand Down
6 changes: 3 additions & 3 deletions cmd/parse/reports/reasons.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"github.com/forbole/juno/v5/types/config"
"github.com/spf13/cobra"

"github.com/desmos-labs/athena/database"
"github.com/desmos-labs/athena/x/reports"
"github.com/desmos-labs/athena/x/subspaces"
"github.com/desmos-labs/athena/v2/database"
"github.com/desmos-labs/athena/v2/x/reports"
"github.com/desmos-labs/athena/v2/x/subspaces"
)

// reasonsCmd returns a Cobra command that allows to refresh all the reporting reasons
Expand Down
6 changes: 3 additions & 3 deletions cmd/parse/reports/reports.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ import (
"github.com/forbole/juno/v5/types/config"
"github.com/spf13/cobra"

"github.com/desmos-labs/athena/database"
"github.com/desmos-labs/athena/x/reports"
"github.com/desmos-labs/athena/x/subspaces"
"github.com/desmos-labs/athena/v2/database"
"github.com/desmos-labs/athena/v2/x/reports"
"github.com/desmos-labs/athena/v2/x/subspaces"
)

// reportsCmd returns a Cobra command that allows to refresh all the reports
Expand Down
16 changes: 8 additions & 8 deletions cmd/parse/subspaces/subspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package subspaces
import (
"fmt"

contractsbuilder "github.com/desmos-labs/athena/x/contracts/builder"
contractsbuilder "github.com/desmos-labs/athena/v2/x/contracts/builder"

subspacestypes "github.com/desmos-labs/desmos/v6/x/subspaces/types"
parsecmdtypes "github.com/forbole/juno/v5/cmd/parse/types"
Expand All @@ -12,13 +12,13 @@ import (
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"

"github.com/desmos-labs/athena/database"
"github.com/desmos-labs/athena/x/posts"
"github.com/desmos-labs/athena/x/profiles"
"github.com/desmos-labs/athena/x/reactions"
"github.com/desmos-labs/athena/x/relationships"
"github.com/desmos-labs/athena/x/reports"
"github.com/desmos-labs/athena/x/subspaces"
"github.com/desmos-labs/athena/v2/database"
"github.com/desmos-labs/athena/v2/x/posts"
"github.com/desmos-labs/athena/v2/x/profiles"
"github.com/desmos-labs/athena/v2/x/reactions"
"github.com/desmos-labs/athena/v2/x/relationships"
"github.com/desmos-labs/athena/v2/x/reports"
"github.com/desmos-labs/athena/v2/x/subspaces"
)

// subspaceCmd returns a Cobra command that allows to refresh a single subspace and all the data within it
Expand Down
4 changes: 2 additions & 2 deletions cmd/parse/subspaces/subspaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"

"github.com/desmos-labs/athena/database"
"github.com/desmos-labs/athena/x/subspaces"
"github.com/desmos-labs/athena/v2/database"
"github.com/desmos-labs/athena/v2/x/subspaces"
)

// subspacesCmd returns a Cobra command that allows to refresh all the subspaces
Expand Down
2 changes: 1 addition & 1 deletion database/authz.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"time"

"github.com/desmos-labs/athena/types"
"github.com/desmos-labs/athena/v2/types"
)

// SaveAuthzGrant saves the given grant inside the database
Expand Down
4 changes: 2 additions & 2 deletions database/contracts.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package database
import (
"fmt"

"github.com/desmos-labs/athena/types"
contracts "github.com/desmos-labs/athena/x/contracts/base"
"github.com/desmos-labs/athena/v2/types"
contracts "github.com/desmos-labs/athena/v2/x/contracts/base"
)

var (
Expand Down
24 changes: 12 additions & 12 deletions database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@ import (
"github.com/forbole/juno/v5/database/postgresql"
juno "github.com/forbole/juno/v5/types"

"github.com/desmos-labs/athena/x/authz"
contracts "github.com/desmos-labs/athena/x/contracts/base"
"github.com/desmos-labs/athena/x/contracts/tips"
"github.com/desmos-labs/athena/x/feegrant"
"github.com/desmos-labs/athena/x/notifications"
"github.com/desmos-labs/athena/x/posts"
"github.com/desmos-labs/athena/x/profiles"
profilesscore "github.com/desmos-labs/athena/x/profiles-score"
"github.com/desmos-labs/athena/x/reactions"
"github.com/desmos-labs/athena/x/relationships"
"github.com/desmos-labs/athena/x/reports"
"github.com/desmos-labs/athena/x/subspaces"
"github.com/desmos-labs/athena/v2/x/authz"
contracts "github.com/desmos-labs/athena/v2/x/contracts/base"
"github.com/desmos-labs/athena/v2/x/contracts/tips"
"github.com/desmos-labs/athena/v2/x/feegrant"
"github.com/desmos-labs/athena/v2/x/notifications"
"github.com/desmos-labs/athena/v2/x/posts"
"github.com/desmos-labs/athena/v2/x/profiles"
profilesscore "github.com/desmos-labs/athena/v2/x/profiles-score"
"github.com/desmos-labs/athena/v2/x/reactions"
"github.com/desmos-labs/athena/v2/x/relationships"
"github.com/desmos-labs/athena/v2/x/reports"
"github.com/desmos-labs/athena/v2/x/subspaces"
)

type Database interface {
Expand Down
2 changes: 1 addition & 1 deletion database/database_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

"github.com/stretchr/testify/suite"

"github.com/desmos-labs/athena/database"
"github.com/desmos-labs/athena/v2/database"

_ "github.com/proullon/ramsql/driver"
)
Expand Down
4 changes: 2 additions & 2 deletions database/feegrant.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"github.com/cosmos/gogoproto/proto"
"github.com/lib/pq"

dbtypes "github.com/desmos-labs/athena/database/types"
"github.com/desmos-labs/athena/types"
dbtypes "github.com/desmos-labs/athena/v2/database/types"
"github.com/desmos-labs/athena/v2/types"
)

// SaveFeeGrant stores the given grant inside the database
Expand Down
2 changes: 1 addition & 1 deletion database/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"time"

"github.com/desmos-labs/athena/types"
"github.com/desmos-labs/athena/v2/types"
)

// SaveNotification stores the given notification inside the database
Expand Down
4 changes: 2 additions & 2 deletions database/posts.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (

poststypes "github.com/desmos-labs/desmos/v6/x/posts/types"

dbtypes "github.com/desmos-labs/athena/database/types"
"github.com/desmos-labs/athena/types"
dbtypes "github.com/desmos-labs/athena/v2/database/types"
"github.com/desmos-labs/athena/v2/types"
)

// getPostRowID returns the row_id of the post having the given data
Expand Down
4 changes: 2 additions & 2 deletions database/profiles.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (

profilestypes "github.com/desmos-labs/desmos/v6/x/profiles/types"

"github.com/desmos-labs/athena/types"
"github.com/desmos-labs/athena/v2/types"

dbtypes "github.com/desmos-labs/athena/database/types"
dbtypes "github.com/desmos-labs/athena/v2/database/types"
)

// SaveProfilesParams allows to store the given profiles params
Expand Down
2 changes: 1 addition & 1 deletion database/profiles_score.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"fmt"

"github.com/desmos-labs/athena/types"
"github.com/desmos-labs/athena/v2/types"
)

// SaveApplicationLinkScore stores the given profile score inside the database
Expand Down
2 changes: 1 addition & 1 deletion database/profiles_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"github.com/cosmos/cosmos-sdk/codec/legacy"

"github.com/desmos-labs/athena/types"
"github.com/desmos-labs/athena/v2/types"

sdk "github.com/cosmos/cosmos-sdk/types"
profilestypes "github.com/desmos-labs/desmos/v6/x/profiles/types"
Expand Down
Loading

0 comments on commit c9f5e2e

Please sign in to comment.