Skip to content

Commit

Permalink
feat(go/client): integrate cosmos sdk query clients into api
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Troian <[email protected]>
  • Loading branch information
troian committed Mar 12, 2024
1 parent d119011 commit 6c2f330
Show file tree
Hide file tree
Showing 3 changed files with 705 additions and 29 deletions.
27 changes: 27 additions & 0 deletions go/node/client/v1beta2/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,20 @@ import (
"fmt"

sdkclient "github.com/cosmos/cosmos-sdk/client"
authtypes "github.com/cosmos/cosmos-sdk/x/auth/types"
banktypes "github.com/cosmos/cosmos-sdk/x/bank/types"
disttypes "github.com/cosmos/cosmos-sdk/x/distribution/types"
evdtypes "github.com/cosmos/cosmos-sdk/x/evidence/types"
feegranttypes "github.com/cosmos/cosmos-sdk/x/feegrant"
govtypes "github.com/cosmos/cosmos-sdk/x/gov/types"
minttypes "github.com/cosmos/cosmos-sdk/x/mint/types"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types/proposal"
slashtypes "github.com/cosmos/cosmos-sdk/x/slashing/types"
staketypes "github.com/cosmos/cosmos-sdk/x/staking/types"
upgradetypes "github.com/cosmos/cosmos-sdk/x/upgrade/types"

"github.com/cosmos/cosmos-sdk/x/authz"

sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/gogo/protobuf/proto"
tmrpc "github.com/tendermint/tendermint/rpc/core/types"
Expand All @@ -24,6 +38,19 @@ type QueryClient interface {
ptypes.QueryClient
atypes.QueryClient
ctypes.QueryClient
Auth() authtypes.QueryClient
Authz() authz.QueryClient
Bank() banktypes.QueryClient
Distribution() disttypes.QueryClient
Evidence() evdtypes.QueryClient
Feegrant() feegranttypes.QueryClient
Gov() govtypes.QueryClient
Mint() minttypes.QueryClient
Params() paramtypes.QueryClient
Slashing() slashtypes.QueryClient
Staking() staketypes.QueryClient
Upgrade() upgradetypes.QueryClient

ClientContext() sdkclient.Context
}

Expand Down
Loading

0 comments on commit 6c2f330

Please sign in to comment.