From 5d9e720b3b67e3a8338b3a62ba922a835f58b813 Mon Sep 17 00:00:00 2001 From: Robert Zaremba Date: Sat, 22 Jun 2024 21:36:42 +0200 Subject: [PATCH] use cosmossdk.io/api --- go.mod | 1 - go.sum | 4 ---- x/data/go.mod | 1 - x/data/go.sum | 2 -- x/data/keys.go | 2 +- x/ecocredit/base/keeper/msg_update_class_fee.go | 2 +- x/ecocredit/basket/keeper/msg_update_basket_fee.go | 2 +- x/ecocredit/client/testsuite/suite.go | 2 +- x/ecocredit/go.mod | 1 - x/ecocredit/go.sum | 2 -- x/ecocredit/keys.go | 2 +- x/ecocredit/server/testsuite/genesis.go | 2 +- x/ecocredit/server/testsuite/suite.go | 2 +- x/ecocredit/simulation/genesis.go | 2 +- 14 files changed, 8 insertions(+), 19 deletions(-) diff --git a/go.mod b/go.mod index bebaa9e70a..3d3540d32d 100644 --- a/go.mod +++ b/go.mod @@ -62,7 +62,6 @@ require ( 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.5 // indirect - github.com/cosmos/cosmos-sdk/api v0.1.0 // indirect github.com/cosmos/go-bip39 v1.0.0 // indirect github.com/cosmos/gogogateway v1.2.0 // indirect github.com/cosmos/gogoproto v1.4.10 // indirect diff --git a/go.sum b/go.sum index 9efb34eb7b..8524d19553 100644 --- a/go.sum +++ b/go.sum @@ -400,8 +400,6 @@ github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+R github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec= github.com/cosmos/cosmos-sdk v0.47.10 h1:Wxf5yEN3jZbG4fftxAMKB6rpd8ME0mxuCVihpz65dt0= github.com/cosmos/cosmos-sdk v0.47.10/go.mod h1:UWpgWkhcsBIATS68uUC0del7IiBN4hPv/vqg8Zz23uw= -github.com/cosmos/cosmos-sdk/api v0.1.0 h1:xfSKM0e9p+EJTMQnf5PbWE6VT8ruxTABIJ64Rd064dE= -github.com/cosmos/cosmos-sdk/api v0.1.0/go.mod h1:CupqQBskAOiTXO1XDZ/wrtWzN/wTxUvbQmOqdUhR8wI= github.com/cosmos/cosmos-sdk/orm v1.0.0-alpha.12.0.20240514101554-56648741cbd6 h1:76NYnDI6NSu6kaY36QmJCetofGuSDXYtIUX+Thm4PIY= github.com/cosmos/cosmos-sdk/orm v1.0.0-alpha.12.0.20240514101554-56648741cbd6/go.mod h1:6zNEnLt9qtbxrno8UUPbWK2DuScBzQ79p0jArEAwbDo= github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y= @@ -630,8 +628,6 @@ github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk= github.com/golang/protobuf v1.5.1/go.mod h1:DopwsBzvsk0Fs44TXzsVbJyPhcCPeIwnvohx4u74HPM= github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= -github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg= -github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY= github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek= github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps= github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q= diff --git a/x/data/go.mod b/x/data/go.mod index 535a8942f4..3395b17462 100644 --- a/x/data/go.mod +++ b/x/data/go.mod @@ -59,7 +59,6 @@ require ( github.com/coinbase/rosetta-sdk-go v0.7.9 // indirect github.com/confio/ics23/go v0.9.0 // indirect github.com/cosmos/cosmos-proto v1.0.0-beta.5 // indirect - github.com/cosmos/cosmos-sdk/api v0.1.0 github.com/cosmos/go-bip39 v1.0.0 // indirect github.com/cosmos/gogogateway v1.2.0 // indirect github.com/cosmos/iavl v0.20.1 // indirect diff --git a/x/data/go.sum b/x/data/go.sum index 9b96cd0855..1a2dcbea3a 100644 --- a/x/data/go.sum +++ b/x/data/go.sum @@ -237,8 +237,6 @@ github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+R github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec= github.com/cosmos/cosmos-sdk v0.47.10 h1:Wxf5yEN3jZbG4fftxAMKB6rpd8ME0mxuCVihpz65dt0= github.com/cosmos/cosmos-sdk v0.47.10/go.mod h1:UWpgWkhcsBIATS68uUC0del7IiBN4hPv/vqg8Zz23uw= -github.com/cosmos/cosmos-sdk/api v0.1.0 h1:xfSKM0e9p+EJTMQnf5PbWE6VT8ruxTABIJ64Rd064dE= -github.com/cosmos/cosmos-sdk/api v0.1.0/go.mod h1:CupqQBskAOiTXO1XDZ/wrtWzN/wTxUvbQmOqdUhR8wI= github.com/cosmos/cosmos-sdk/orm v1.0.0-alpha.12.0.20240514101554-56648741cbd6 h1:76NYnDI6NSu6kaY36QmJCetofGuSDXYtIUX+Thm4PIY= github.com/cosmos/cosmos-sdk/orm v1.0.0-alpha.12.0.20240514101554-56648741cbd6/go.mod h1:6zNEnLt9qtbxrno8UUPbWK2DuScBzQ79p0jArEAwbDo= github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y= diff --git a/x/data/keys.go b/x/data/keys.go index 54e5fc8d70..bd791039a1 100644 --- a/x/data/keys.go +++ b/x/data/keys.go @@ -1,7 +1,7 @@ package data import ( - ormv1alpha1 "github.com/cosmos/cosmos-sdk/api/cosmos/orm/v1alpha1" + ormv1alpha1 "cosmossdk.io/api/cosmos/orm/v1alpha1" api "github.com/regen-network/regen-ledger/api/v2/regen/data/v1" ) diff --git a/x/ecocredit/base/keeper/msg_update_class_fee.go b/x/ecocredit/base/keeper/msg_update_class_fee.go index 99e1ce9aec..521846a714 100644 --- a/x/ecocredit/base/keeper/msg_update_class_fee.go +++ b/x/ecocredit/base/keeper/msg_update_class_fee.go @@ -3,7 +3,7 @@ package keeper import ( "context" - sdkbase "github.com/cosmos/cosmos-sdk/api/cosmos/base/v1beta1" + sdkbase "cosmossdk.io/api/cosmos/base/v1beta1" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" api "github.com/regen-network/regen-ledger/api/v2/regen/ecocredit/v1" diff --git a/x/ecocredit/basket/keeper/msg_update_basket_fee.go b/x/ecocredit/basket/keeper/msg_update_basket_fee.go index ca666cec5f..4c9e4f039d 100644 --- a/x/ecocredit/basket/keeper/msg_update_basket_fee.go +++ b/x/ecocredit/basket/keeper/msg_update_basket_fee.go @@ -3,7 +3,7 @@ package keeper import ( "context" - sdkbase "github.com/cosmos/cosmos-sdk/api/cosmos/base/v1beta1" + sdkbase "cosmossdk.io/api/cosmos/base/v1beta1" govtypes "github.com/cosmos/cosmos-sdk/x/gov/types" api "github.com/regen-network/regen-ledger/api/v2/regen/ecocredit/basket/v1" diff --git a/x/ecocredit/client/testsuite/suite.go b/x/ecocredit/client/testsuite/suite.go index a95c49e9a2..70e3371b68 100644 --- a/x/ecocredit/client/testsuite/suite.go +++ b/x/ecocredit/client/testsuite/suite.go @@ -10,7 +10,7 @@ import ( "github.com/cosmos/gogoproto/proto" "github.com/stretchr/testify/suite" - sdkbase "github.com/cosmos/cosmos-sdk/api/cosmos/base/v1beta1" + sdkbase "cosmossdk.io/api/cosmos/base/v1beta1" "github.com/cosmos/cosmos-sdk/client" "github.com/cosmos/cosmos-sdk/client/flags" "github.com/cosmos/cosmos-sdk/crypto/hd" diff --git a/x/ecocredit/go.mod b/x/ecocredit/go.mod index 7de5790b9d..af2891d360 100644 --- a/x/ecocredit/go.mod +++ b/x/ecocredit/go.mod @@ -58,7 +58,6 @@ require ( github.com/coinbase/rosetta-sdk-go v0.7.9 // indirect github.com/confio/ics23/go v0.9.0 // indirect github.com/cosmos/btcutil v1.0.5 // indirect - github.com/cosmos/cosmos-sdk/api v0.1.0 github.com/cosmos/go-bip39 v1.0.0 // indirect github.com/cosmos/gogogateway v1.2.0 // indirect github.com/cosmos/iavl v0.20.1 // indirect diff --git a/x/ecocredit/go.sum b/x/ecocredit/go.sum index 0c12fe95fd..cf6d754756 100644 --- a/x/ecocredit/go.sum +++ b/x/ecocredit/go.sum @@ -237,8 +237,6 @@ github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+R github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec= github.com/cosmos/cosmos-sdk v0.47.10 h1:Wxf5yEN3jZbG4fftxAMKB6rpd8ME0mxuCVihpz65dt0= github.com/cosmos/cosmos-sdk v0.47.10/go.mod h1:UWpgWkhcsBIATS68uUC0del7IiBN4hPv/vqg8Zz23uw= -github.com/cosmos/cosmos-sdk/api v0.1.0 h1:xfSKM0e9p+EJTMQnf5PbWE6VT8ruxTABIJ64Rd064dE= -github.com/cosmos/cosmos-sdk/api v0.1.0/go.mod h1:CupqQBskAOiTXO1XDZ/wrtWzN/wTxUvbQmOqdUhR8wI= github.com/cosmos/cosmos-sdk/orm v1.0.0-alpha.12.0.20240514101554-56648741cbd6 h1:76NYnDI6NSu6kaY36QmJCetofGuSDXYtIUX+Thm4PIY= github.com/cosmos/cosmos-sdk/orm v1.0.0-alpha.12.0.20240514101554-56648741cbd6/go.mod h1:6zNEnLt9qtbxrno8UUPbWK2DuScBzQ79p0jArEAwbDo= github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y= diff --git a/x/ecocredit/keys.go b/x/ecocredit/keys.go index 443b8925ce..64b90b4128 100644 --- a/x/ecocredit/keys.go +++ b/x/ecocredit/keys.go @@ -1,7 +1,7 @@ package ecocredit import ( - ormapi "github.com/cosmos/cosmos-sdk/api/cosmos/orm/v1alpha1" + ormapi "cosmossdk.io/api/cosmos/orm/v1alpha1" basketapi "github.com/regen-network/regen-ledger/api/v2/regen/ecocredit/basket/v1" marketApi "github.com/regen-network/regen-ledger/api/v2/regen/ecocredit/marketplace/v1" diff --git a/x/ecocredit/server/testsuite/genesis.go b/x/ecocredit/server/testsuite/genesis.go index 1815bb87c5..43e79c6802 100644 --- a/x/ecocredit/server/testsuite/genesis.go +++ b/x/ecocredit/server/testsuite/genesis.go @@ -7,7 +7,7 @@ import ( "github.com/stretchr/testify/suite" "google.golang.org/protobuf/proto" - sdkbase "github.com/cosmos/cosmos-sdk/api/cosmos/base/v1beta1" + sdkbase "cosmossdk.io/api/cosmos/base/v1beta1" sdk "github.com/cosmos/cosmos-sdk/types" bankkeeper "github.com/cosmos/cosmos-sdk/x/bank/keeper" diff --git a/x/ecocredit/server/testsuite/suite.go b/x/ecocredit/server/testsuite/suite.go index bac7a3ad4b..39ab0f16d8 100644 --- a/x/ecocredit/server/testsuite/suite.go +++ b/x/ecocredit/server/testsuite/suite.go @@ -9,7 +9,7 @@ import ( dbm "github.com/cometbft/cometbft-db" "github.com/stretchr/testify/suite" - sdkbase "github.com/cosmos/cosmos-sdk/api/cosmos/base/v1beta1" + sdkbase "cosmossdk.io/api/cosmos/base/v1beta1" "github.com/cosmos/cosmos-sdk/codec" "github.com/cosmos/cosmos-sdk/orm/model/ormdb" "github.com/cosmos/cosmos-sdk/orm/model/ormtable" diff --git a/x/ecocredit/simulation/genesis.go b/x/ecocredit/simulation/genesis.go index 1d447713d9..de185a4130 100644 --- a/x/ecocredit/simulation/genesis.go +++ b/x/ecocredit/simulation/genesis.go @@ -9,7 +9,7 @@ import ( dbm "github.com/cometbft/cometbft-db" "google.golang.org/protobuf/types/known/timestamppb" - sdkbase "github.com/cosmos/cosmos-sdk/api/cosmos/base/v1beta1" + sdkbase "cosmossdk.io/api/cosmos/base/v1beta1" "github.com/cosmos/cosmos-sdk/orm/model/ormdb" "github.com/cosmos/cosmos-sdk/orm/model/ormtable" "github.com/cosmos/cosmos-sdk/orm/types/ormerrors"