Skip to content

Commit

Permalink
Revert "chore: Update Proto + ~~ORM Support~~ (#1589)" (#2614)
Browse files Browse the repository at this point in the history
* Revert "chore: Update Proto + ~~ORM Support~~ (#1589)"

This reverts commit f291e12.

* Update scripts/protocgen.sh

Co-authored-by: Roman <[email protected]>

* Run buf mod update

* query gen

* Change pb

Co-authored-by: Roman <[email protected]>
  • Loading branch information
mattverse and p0mvn authored Sep 13, 2022
1 parent c872548 commit 79adab9
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 71 deletions.
10 changes: 5 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,19 @@ require (
go.uber.org/multierr v1.8.0
golang.org/x/exp v0.0.0-20220722155223-a9213eeb770e
google.golang.org/genproto v0.0.0-20220725144611-272f38e5d71b
google.golang.org/grpc v1.48.0
google.golang.org/grpc v1.49.0
gopkg.in/yaml.v2 v2.4.0
mvdan.cc/gofumpt v0.3.1
)

require (
github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24 // indirect
github.com/alingse/asasalint v0.0.11 // indirect
github.com/creachadair/taskgroup v0.3.2 // indirect
github.com/curioswitch/go-reassign v0.1.2 // indirect
github.com/felixge/httpsnoop v1.0.1 // indirect
github.com/google/btree v1.0.0 // indirect
github.com/regen-network/cosmos-proto v0.3.1 // indirect
github.com/sashamelentyev/interfacebloat v1.1.0 // indirect
github.com/sashamelentyev/usestdlibvars v1.13.0 // indirect
github.com/sivchari/nosnakecase v1.7.0 // indirect
Expand All @@ -59,7 +63,6 @@ require (
github.com/BurntSushi/toml v1.2.0 // indirect
github.com/ChainSafe/go-schnorrkel v0.0.0-20200405005733-88cbf1b4c40d // indirect
github.com/CosmWasm/wasmvm v1.0.0
github.com/Djarvur/go-err113 v0.0.0-20210108212216-aea10b59be24 // indirect
github.com/GaijinEntertainment/go-exhaustruct/v2 v2.3.0 // indirect
github.com/Masterminds/semver v1.5.0 // indirect
github.com/Microsoft/go-winio v0.5.2 // indirect
Expand Down Expand Up @@ -108,7 +111,6 @@ require (
github.com/ettle/strcase v0.1.1 // indirect
github.com/fatih/color v1.13.0 // indirect
github.com/fatih/structtag v1.2.0 // indirect
github.com/felixge/httpsnoop v1.0.1 // indirect
github.com/firefart/nonamedreturns v1.0.4 // indirect
github.com/fsnotify/fsnotify v1.5.4 // indirect
github.com/fzipp/gocyclo v0.6.0 // indirect
Expand Down Expand Up @@ -140,7 +142,6 @@ require (
github.com/golangci/misspell v0.3.5 // indirect
github.com/golangci/revgrep v0.0.0-20220804021717-745bb2f7c2e6 // indirect
github.com/golangci/unconvert v0.0.0-20180507085042-28b1c447d1f4 // indirect
github.com/google/btree v1.0.0 // indirect
github.com/google/flatbuffers v1.12.1 // indirect
github.com/google/go-cmp v0.5.8 // indirect
github.com/google/gofuzz v1.2.0 // indirect
Expand Down Expand Up @@ -225,7 +226,6 @@ require (
github.com/quasilyte/regex/syntax v0.0.0-20200407221936-30656e2c4a95 // indirect
github.com/quasilyte/stdinfo v0.0.0-20220114132959-f7386bf02567 // indirect
github.com/rcrowley/go-metrics v0.0.0-20200313005456-10cdbea86bc0 // indirect
github.com/regen-network/cosmos-proto v0.3.1 // indirect
github.com/rivo/uniseg v0.2.0 // indirect
github.com/rs/cors v1.8.2 // indirect
github.com/rs/zerolog v1.27.0 // indirect
Expand Down
21 changes: 0 additions & 21 deletions proto/buf.gen.pulsar.yaml

This file was deleted.

3 changes: 0 additions & 3 deletions proto/buf.md

This file was deleted.

2 changes: 1 addition & 1 deletion proto/buf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ lint:
- PACKAGE_VERSION_SUFFIX
- RPC_REQUEST_STANDARD_NAME
ignore:
- tendermint
- tendermint
3 changes: 1 addition & 2 deletions scripts/protocgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,4 @@ go mod tidy -compat=1.18

# TODO: Uncomment once ORM/Pulsar support is needed.
#
# Ref: https://github.com/osmosis-labs/osmosis/pull/1589
# ./scripts/protocgen2.sh
# Ref: https://github.com/osmosis-labs/osmosis/pull/1589
30 changes: 0 additions & 30 deletions scripts/protocgen2.sh

This file was deleted.

18 changes: 9 additions & 9 deletions x/twap/client/grpc/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ type Querier struct {

var _ queryproto.QueryServer = Querier{}

func (q Querier) Params(grpcCtx context.Context,
req *queryproto.ParamsRequest,
) (*queryproto.ParamsResponse, error) {
if req == nil {
return nil, status.Error(codes.InvalidArgument, "empty request")
}
ctx := sdk.UnwrapSDKContext(grpcCtx)
return q.Q.Params(ctx, *req)
}
func (q Querier) ArithmeticTwap(grpcCtx context.Context,
req *queryproto.ArithmeticTwapRequest,
) (*queryproto.ArithmeticTwapResponse, error) {
Expand All @@ -38,12 +47,3 @@ func (q Querier) ArithmeticTwapToNow(grpcCtx context.Context,
ctx := sdk.UnwrapSDKContext(grpcCtx)
return q.Q.ArithmeticTwapToNow(ctx, *req)
}
func (q Querier) Params(grpcCtx context.Context,
req *queryproto.ParamsRequest,
) (*queryproto.ParamsResponse, error) {
if req == nil {
return nil, status.Error(codes.InvalidArgument, "empty request")
}
ctx := sdk.UnwrapSDKContext(grpcCtx)
return q.Q.Params(ctx, *req)
}

0 comments on commit 79adab9

Please sign in to comment.