Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Wojtek committed Nov 2, 2023
1 parent 1bfba30 commit a0c188d
Show file tree
Hide file tree
Showing 30 changed files with 116 additions and 62 deletions.
4 changes: 1 addition & 3 deletions cmd/bdjuno/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@ import (

"github.com/forbole/bdjuno/v4/types/config"

"cosmossdk.io/simapp"

"github.com/forbole/bdjuno/v4/database"
"github.com/forbole/bdjuno/v4/modules"
"github.com/forbole/bdjuno/v4/modules/assetft"
"github.com/forbole/bdjuno/v4/modules/assetnft"
"github.com/forbole/bdjuno/v4/modules/nft"
"github.com/forbole/bdjuno/v4/modules/wasm"

coreumapp "github.com/CoreumFoundation/coreum/v2/app"
coreumapp "github.com/CoreumFoundation/coreum/v3/app"
)

func main() {
Expand Down
3 changes: 2 additions & 1 deletion database/assetft_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import (
"encoding/json"
"fmt"

assetfttypes "github.com/CoreumFoundation/coreum/v2/x/asset/ft/types"
dbtypes "github.com/forbole/bdjuno/v3/database/types"
"github.com/forbole/bdjuno/v3/types"

assetfttypes "github.com/CoreumFoundation/coreum/v3/x/asset/ft/types"
)

// SaveAssetFTParams allows to store the given params into the database.
Expand Down
3 changes: 2 additions & 1 deletion database/assetft_params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package database_test
import (
"encoding/json"

assetfttypes "github.com/CoreumFoundation/coreum/v2/x/asset/ft/types"
dbtypes "github.com/forbole/bdjuno/v3/database/types"
"github.com/forbole/bdjuno/v3/types"

assetfttypes "github.com/CoreumFoundation/coreum/v3/x/asset/ft/types"
)

func (suite *DbTestSuite) TestSaveAssetFTParams() {
Expand Down
3 changes: 2 additions & 1 deletion database/assetnft_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import (
"encoding/json"
"fmt"

assetnfttypes "github.com/CoreumFoundation/coreum/v2/x/asset/nft/types"
dbtypes "github.com/forbole/bdjuno/v3/database/types"
"github.com/forbole/bdjuno/v3/types"

assetnfttypes "github.com/CoreumFoundation/coreum/v3/x/asset/nft/types"
)

// SaveAssetNFTParams allows to store the given params into the database.
Expand Down
3 changes: 2 additions & 1 deletion database/assetnft_params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package database_test
import (
"encoding/json"

assetnfttypes "github.com/CoreumFoundation/coreum/v2/x/asset/nft/types"
dbtypes "github.com/forbole/bdjuno/v3/database/types"
"github.com/forbole/bdjuno/v3/types"

assetnfttypes "github.com/CoreumFoundation/coreum/v3/x/asset/nft/types"
)

func (suite *DbTestSuite) TestSaveAssetNFTParams() {
Expand Down
3 changes: 2 additions & 1 deletion database/customparams_params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package database_test
import (
"encoding/json"

customparamstypes "github.com/CoreumFoundation/coreum/v2/x/customparams/types"
dbtypes "github.com/forbole/bdjuno/v3/database/types"
"github.com/forbole/bdjuno/v3/types"

customparamstypes "github.com/CoreumFoundation/coreum/v3/x/customparams/types"
)

func (suite *DbTestSuite) TestSaveCustomParamsParams() {
Expand Down
3 changes: 2 additions & 1 deletion database/feemodel_params.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import (
"encoding/json"
"fmt"

feemodeltypes "github.com/CoreumFoundation/coreum/v2/x/feemodel/types"
dbtypes "github.com/forbole/bdjuno/v3/database/types"
"github.com/forbole/bdjuno/v3/types"

feemodeltypes "github.com/CoreumFoundation/coreum/v3/x/feemodel/types"
)

// SaveFeeModelParams allows to store the given params into the database.
Expand Down
3 changes: 2 additions & 1 deletion database/feemodel_params_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package database_test
import (
"encoding/json"

feemodeltypes "github.com/CoreumFoundation/coreum/v2/x/feemodel/types"
dbtypes "github.com/forbole/bdjuno/v3/database/types"
"github.com/forbole/bdjuno/v3/types"

feemodeltypes "github.com/CoreumFoundation/coreum/v3/x/feemodel/types"
)

func (suite *DbTestSuite) TestSaveFeeModelParams() {
Expand Down
53 changes: 34 additions & 19 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,25 @@ module github.com/forbole/bdjuno/v4

go 1.20

replace (
// cosmos keyring
github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0
// dgrijalva/jwt-go is deprecated and doesn't receive security updates.
// TODO: remove it: https://github.com/cosmos/cosmos-sdk/issues/13134
github.com/dgrijalva/jwt-go => github.com/golang-jwt/jwt/v4 v4.4.2
// Fix upstream GHSA-h395-qcrw-5vmq vulnerability.
// TODO Remove it: https://github.com/cosmos/cosmos-sdk/issues/10409
github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.9.0
// https://github.com/cosmos/cosmos-sdk/issues/14949
// pin the version of goleveldb to v1.0.1-0.20210819022825-2ae1ddf74ef7 required by SDK v47 upgrade guide.
github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
)

require (
cosmossdk.io/math v1.1.2
cosmossdk.io/simapp v0.0.0-20230224204036-a6adb0821462
github.com/cometbft/cometbft v0.37.2
github.com/cosmos/cosmos-sdk v0.47.2
github.com/cosmos/cosmos-sdk v0.47.5
github.com/cosmos/gogoproto v1.4.10
github.com/forbole/juno/v5 v5.2.0
github.com/go-co-op/gocron v1.35.0
Expand All @@ -33,19 +47,20 @@ require (
cloud.google.com/go/iam v1.1.1 // indirect
cloud.google.com/go/storage v1.30.1 // indirect
cosmossdk.io/api v0.3.1 // indirect
cosmossdk.io/core v0.5.1 // indirect
cosmossdk.io/depinject v1.0.0-alpha.3 // indirect
cosmossdk.io/errors v1.0.0-beta.7 // indirect
cosmossdk.io/core v0.6.1 // indirect
cosmossdk.io/depinject v1.0.0-alpha.4 // indirect
cosmossdk.io/errors v1.0.0 // indirect
cosmossdk.io/tools/rosetta v0.2.1 // indirect
filippo.io/edwards25519 v1.0.0 // indirect
github.com/4meepo/tagalign v1.3.2 // indirect
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
github.com/99designs/keyring v1.2.1 // indirect
github.com/99designs/keyring v1.2.2 // indirect
github.com/Abirdcfly/dupword v0.0.12 // indirect
github.com/Antonboom/errname v0.1.12 // indirect
github.com/Antonboom/nilnil v0.1.7 // indirect
github.com/BurntSushi/toml v1.3.2 // indirect
github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d // indirect
github.com/CoreumFoundation/coreum/v3 v3.0.0-20231102084816-3f621c7b16c0 // indirect
github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24 // indirect
github.com/GaijinEntertainment/go-exhaustruct/v3 v3.1.0 // indirect
github.com/Masterminds/semver v1.5.0 // indirect
Expand Down Expand Up @@ -77,16 +92,16 @@ require (
github.com/chzyer/readline v1.5.1 // indirect
github.com/cockroachdb/apd/v2 v2.0.2 // indirect
github.com/coinbase/rosetta-sdk-go/types v1.0.0 // indirect
github.com/cometbft/cometbft-db v0.7.0 // indirect
github.com/cometbft/cometbft-db v0.8.0 // indirect
github.com/confio/ics23/go v0.9.0 // indirect
github.com/cosmos/btcutil v1.0.5 // indirect
github.com/cosmos/cosmos-proto v1.0.0-beta.2 // indirect
github.com/cosmos/cosmos-proto v1.0.0-beta.3 // indirect
github.com/cosmos/go-bip39 v1.0.0 // indirect
github.com/cosmos/gogogateway v1.2.0 // indirect
github.com/cosmos/iavl v0.20.0 // indirect
github.com/cosmos/ibc-go/v7 v7.0.1 // indirect
github.com/cosmos/ics23/go v0.9.1-0.20221207100636-b1abd8678aab // indirect
github.com/cosmos/ledger-cosmos-go v0.12.1 // indirect
github.com/cosmos/ibc-go/v7 v7.2.0 // indirect
github.com/cosmos/ics23/go v0.10.0 // indirect
github.com/cosmos/ledger-cosmos-go v0.12.2 // indirect
github.com/cosmos/rosetta-sdk-go v0.10.0 // indirect
github.com/creachadair/taskgroup v0.4.2 // indirect
github.com/curioswitch/go-reassign v0.2.0 // indirect
Expand Down Expand Up @@ -215,8 +230,8 @@ require (
github.com/nishanths/predeclared v0.2.2 // indirect
github.com/nunnatsa/ginkgolinter v0.13.5 // indirect
github.com/olekukonko/tablewriter v0.0.5 // indirect
github.com/pelletier/go-toml/v2 v2.0.6 // indirect
github.com/petermattis/goid v0.0.0-20221215004737-a150e88a970d // indirect
github.com/pelletier/go-toml/v2 v2.0.8 // indirect
github.com/petermattis/goid v0.0.0-20230317030725-371a4b8eda08 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/polyfloyd/go-errorlint v1.4.4 // indirect
Expand Down Expand Up @@ -245,11 +260,11 @@ require (
github.com/sivchari/tenv v1.7.1 // indirect
github.com/sonatard/noctx v0.0.2 // indirect
github.com/sourcegraph/go-diff v0.7.0 // indirect
github.com/spf13/afero v1.9.3 // indirect
github.com/spf13/cast v1.5.0 // indirect
github.com/spf13/afero v1.9.5 // indirect
github.com/spf13/cast v1.5.1 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.15.0 // indirect
github.com/spf13/viper v1.16.0 // indirect
github.com/ssgreg/nlreturn/v2 v2.2.1 // indirect
github.com/stbenjam/no-sprintf-host-port v0.1.1 // indirect
github.com/stretchr/objx v0.5.0 // indirect
Expand Down Expand Up @@ -297,8 +312,8 @@ require (
google.golang.org/api v0.126.0 // indirect
google.golang.org/appengine v1.6.7 // indirect
google.golang.org/genproto v0.0.0-20230711160842-782d3b101e98 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230711160842-782d3b101e98 // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230711160842-782d3b101e98 // indirect
google.golang.org/genproto/googleapis/api v0.0.0-20230726155614-23370e0ffb3e // indirect
google.golang.org/genproto/googleapis/rpc v0.0.0-20230726155614-23370e0ffb3e // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/ini.v1 v1.67.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
Expand All @@ -307,11 +322,11 @@ require (
mvdan.cc/interfacer v0.0.0-20180901003855-c20040233aed // indirect
mvdan.cc/lint v0.0.0-20170908181259-adc824a0674b // indirect
mvdan.cc/unparam v0.0.0-20221223090309-7455f1af531d // indirect
nhooyr.io/websocket v1.8.6 // indirect
nhooyr.io/websocket v1.8.7 // indirect
pgregory.net/rapid v0.5.5 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect
)

// This is to avoid warnings while running the binary
// See here: https://github.com/desmos-labs/desmos/pull/1131#discussion_r1194090419
replace github.com/cosmos/gogoproto => github.com/cosmos/gogoproto v1.4.8
//replace github.com/cosmos/gogoproto => github.com/cosmos/gogoproto v1.4.8
Loading

0 comments on commit a0c188d

Please sign in to comment.