diff --git a/.clang-format b/.clang-format new file mode 100644 index 0000000000..d783aec661 --- /dev/null +++ b/.clang-format @@ -0,0 +1,9 @@ +--- +Language: Proto +BasedOnStyle: Google +AlignConsecutiveDeclarations: true +AlignConsecutiveAssignments: true +ColumnLimit: 0 +IndentWidth: 2 +... + diff --git a/CHANGELOG.md b/CHANGELOG.md index 81c1f9708b..bfff0a1fdb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -52,6 +52,10 @@ Ref: https://keepachangelog.com/en/1.0.0/ - [913](https://github.com/umee-network/umee/pull/913) Changed update registry gov proposal to add and update tokens, but never delete them. - [918](https://github.com/umee-network/umee/pull/918) Add MarketSummary query to CLI +### Improvements + +- [935](https://github.com/umee-network/umee/pull/935) Fix protobuf linting + ## [v2.0.2](https://github.com/umee-network/umee/releases/tag/v2.0.2) - 2022-05-13 ### Features diff --git a/Makefile b/Makefile index 593835c38b..0776a91b59 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ #!/usr/bin/make -f + BRANCH := $(shell git rev-parse --abbrev-ref HEAD) COMMIT := $(shell git log -1 --format='%H') BUILD_DIR ?= $(CURDIR)/build @@ -8,6 +9,7 @@ LEDGER_ENABLED ?= true TM_VERSION := $(shell go list -m github.com/tendermint/tendermint | sed 's:.* ::') DOCKER := $(shell which docker) PROJECT_NAME = $(shell git remote get-url origin | xargs basename -s .git) +HTTPS_GIT := https://github.com/umee-network/umee.git ############################################################################### ## Version ## @@ -184,31 +186,33 @@ test-sim-benchmark-invariants ## Protobuf ## ############################################################################### -DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace bufbuild/buf +#DOCKER_BUF := docker run -v $(shell pwd):/workspace --workdir /workspace bufbuild/buf:1.0.0-rc11 +DOCKER_BUF := $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace bufbuild/buf:1.4.0 -protoVer=v0.2 -protoImageName=tendermintdev/sdk-proto-gen:$(protoVer) -containerProtoGen=$(PROJECT_NAME)-proto-gen-$(protoVer) -containerProtoGenAny=$(PROJECT_NAME)-proto-gen-any-$(protoVer) -containerProtoGenSwagger=$(PROJECT_NAME)-proto-gen-swagger-$(protoVer) -containerProtoFmt=$(PROJECT_NAME)-proto-fmt-$(protoVer) +containerProtoVer=v0.7 +containerProtoImage=tendermintdev/sdk-proto-gen:$(containerProtoVer) +containerProtoGen=cosmos-sdk-proto-gen-$(containerProtoVer) +containerProtoFmt=cosmos-sdk-proto-fmt-$(containerProtoVer) -proto-all: proto-format proto-lint proto-gen -proto-format: - @echo "Formatting Protobuf files" - @if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoFmt}$$"; then docker start -a $(containerProtoFmt); else docker run --name $(containerProtoFmt) -v $(CURDIR):/workspace --workdir /workspace tendermintdev/docker-build-proto \ - find ./ -not -path "./third_party/*" -name "*.proto" -exec clang-format -i {} \; ; fi +proto-all: proto-gen proto-lint proto-check-breaking proto-format +.PHONY: proto-all proto-gen proto-lint proto-check-breaking proto-format proto-gen: @echo "Generating Protobuf files" - @if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoGen}$$"; then docker start -a $(containerProtoGen); else docker run --name $(containerProtoGen) -v $(CURDIR):/workspace --workdir /workspace $(protoImageName) \ + @if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoGen}$$"; then docker start -a $(containerProtoGen); else docker run --name $(containerProtoGen) -v $(CURDIR):/workspace --workdir /workspace $(containerProtoImage) \ sh ./contrib/scripts/protocgen.sh; fi -proto-lint: +proto-format: + @echo "Formatting Protobuf files" + @if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoFmt}$$"; then docker start -a $(containerProtoFmt); else docker run --name $(containerProtoFmt) -v $(CURDIR):/workspace --workdir /workspace tendermintdev/docker-build-proto \ + find ./ -name "*.proto" -exec sh -c 'clang-format -style=file -i {}' \; ; fi + +proto-lint: + @echo "Linting Protobuf files" @$(DOCKER_BUF) lint --error-format=json -proto-check-breaking: - @$(DOCKER_BUF) breaking --against https://github.com/umee-network/umee.git#branch=main +proto-check-breaking: + @echo "Checking for breaking changes" + @$(DOCKER_BUF) breaking --against $(HTTPS_GIT)#branch=brianosaurus/fix-proto-linting -.PHONY: proto-all proto-gen proto-format proto-lint proto-check-breaking diff --git a/buf.work.yaml b/buf.work.yaml new file mode 100644 index 0000000000..c53a007535 --- /dev/null +++ b/buf.work.yaml @@ -0,0 +1,3 @@ +version: v1 +directories: + - ./proto diff --git a/contrib/scripts/protocgen.sh b/contrib/scripts/protocgen.sh index efcc493e90..5c37982227 100755 --- a/contrib/scripts/protocgen.sh +++ b/contrib/scripts/protocgen.sh @@ -2,33 +2,30 @@ set -eo pipefail -# get protoc executions -go get github.com/regen-network/cosmos-proto/protoc-gen-gocosmos 2>/dev/null +protoc_gen_go() { + if ! grep "github.com/gogo/protobuf => github.com/umee-network/umee" go.mod &>/dev/null ; then + echo -e "\tPlease run this command from somewhere inside the umee-core folder." + return 1 + fi -# get cosmos sdk from github -go get github.com/cosmos/cosmos-sdk 2>/dev/null - -# get the path of the cosmos-sdk repo from go/pkg/mod -cosmos_sdk_dir=$(go list -f '{{ .Dir }}' -m github.com/cosmos/cosmos-sdk) -proto_dirs=$(find . -path ./third_party -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq) + go get github.com/regen-network/cosmos-proto/protoc-gen-gocosmos 2>/dev/null +} +cd proto +proto_dirs=$(find ./umee -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq) for dir in $proto_dirs; do - # generate protobuf bind - buf protoc \ - -I "proto" \ - -I "$cosmos_sdk_dir/third_party/proto" \ - -I "$cosmos_sdk_dir/proto" \ - --gocosmos_out=plugins=interfacetype+grpc,Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types:. \ - $(find "${dir}" -name '*.proto') - - # generate grpc gateway - buf protoc \ - -I "proto" \ - -I "$cosmos_sdk_dir/third_party/proto" \ - -I "$cosmos_sdk_dir/proto" \ - --grpc-gateway_out=logtostderr=true:. \ - $(find "${dir}" -maxdepth 1 -name '*.proto') + for file in $(find "${dir}" -maxdepth 1 -name '*.proto'); do + if grep go_package $file &> /dev/null ; then + buf generate --template buf.gen.gogo.yaml $file + fi + done done -cp -r ./github.com/umee-network/umee/v*/x/* x/ -rm -rf ./github.com +cd .. + +# after the proto files have been generated add them to the the repo +# in the proper location. Then, remove the ephemeral tree used for generation +cp -r github.com/umee-network/umee/v2/* . +rm -rf github.com + +go mod tidy diff --git a/proto/README.md b/proto/README.md new file mode 100644 index 0000000000..d558e5370f --- /dev/null +++ b/proto/README.md @@ -0,0 +1,30 @@ +# Protobuf +![Logo!](../assets/umee-logo.png) + +[![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://img.shields.io/badge/repo%20status-WIP-yellow.svg?style=flat-square)](https://www.repostatus.org/#wip) +[![GoDoc](https://img.shields.io/badge/godoc-reference-blue?style=flat-square&logo=go)](https://godoc.org/github.com/umee-network/umee) +[![Go Report Card](https://goreportcard.com/badge/github.com/umee-network/umee?style=flat-square)](https://goreportcard.com/report/github.com/umee-network/umee) +[![Version](https://img.shields.io/github/tag/umee-network/umee.svg?style=flat-square)](https://github.com/umee-network/umee/releases/latest) +[![License: Apache-2.0](https://img.shields.io/github/license/umee-network/umee.svg?style=flat-square)](https://github.com/umee-network/umee/blob/main/LICENSE) +[![Lines Of Code](https://img.shields.io/tokei/lines/github/umee-network/umee?style=flat-square)](https://github.com/umee-network/umee) +[![GitHub Super-Linter](https://img.shields.io/github/workflow/status/umee-network/umee/Lint?style=flat-square&label=Lint)](https://github.com/marketplace/actions/super-linter) + +> A Golang implementation of the Umee network, a decentralized universal capital +> facility in the Cosmos ecosystem. + +Umee is a Universal Capital Facility that can collateralize assets on one blockchain +towards borrowing assets on another blockchain. The platform specializes in +allowing staked assets from PoS blockchains to be used as collateral for borrowing +across blockchains. The platform uses a combination of algorithmically determined +interest rates based on market-driven conditions. As a cross-chain DeFi protocol, +Umee will allow a multitude of decentralized debt products. + +## Table of Contents + +- [Protobuf](#protobuf-endpoints) + +## Protobuf Endpoints + +See the swagger HTTP endpoint to see how to use Umee's protobuf additions. + +`http://API_HOST:API_PORT/swagger` diff --git a/proto/buf.gen.gogo.yaml b/proto/buf.gen.gogo.yaml new file mode 100644 index 0000000000..1ea5fb4ffd --- /dev/null +++ b/proto/buf.gen.gogo.yaml @@ -0,0 +1,5 @@ +version: v1 +plugins: + - name: gocosmos + out: .. + opt: plugins=grpc,Mgoogle/protobuf/duration.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/struct.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types diff --git a/proto/buf.lock b/proto/buf.lock new file mode 100644 index 0000000000..286014f06e --- /dev/null +++ b/proto/buf.lock @@ -0,0 +1,31 @@ +# Generated by buf. DO NOT EDIT. +version: v1 +deps: + - remote: buf.build + owner: cosmos + repository: cosmos-proto + branch: main + commit: 1935555c206d4afb9e94615dfd0fad31 + digest: b1-TNqW6xj2Pjha5Uoj9a-5uOeRo4mwswKfyqMcN3I_gZ0= + create_time: 2021-12-02T22:04:00.31049Z + - remote: buf.build + owner: cosmos + repository: cosmos-sdk + branch: main + commit: af8d763f189a4482b59f9f283b446293 + digest: b1-_yAm1-e1B5X3nv4-_DX5VR8YY0C_A42zokN3WshF9IE= + create_time: 2022-01-05T19:59:53.846919Z + - remote: buf.build + owner: cosmos + repository: gogo-proto + branch: main + commit: bee5511075b7499da6178d9e4aaa628b + digest: b1-rrBIustouD-S80cVoZ_rM0qJsmei9AgbXy9GPQu6vxg= + create_time: 2021-12-02T20:01:17.069307Z + - remote: buf.build + owner: googleapis + repository: googleapis + branch: main + commit: c21d9ee7a8c74d6a8cce1338a2839547 + digest: b1-Rdf7A_4QeTLvu6BdzORkijdmHsAyJd2MHEEZWBEUFIM= + create_time: 2022-01-15T15:04:23.382499Z diff --git a/proto/buf.yaml b/proto/buf.yaml new file mode 100644 index 0000000000..041b067e1e --- /dev/null +++ b/proto/buf.yaml @@ -0,0 +1,20 @@ +version: v1 +name: buf.build/umee-network/umee +deps: + - buf.build/cosmos/cosmos-sdk + - buf.build/cosmos/cosmos-proto + - buf.build/cosmos/gogo-proto + - buf.build/googleapis/googleapis +breaking: + use: + - FILE +lint: + use: + - DEFAULT + - COMMENTS + except: + - SERVICE_SUFFIX + - RPC_REQUEST_STANDARD_NAME + - COMMENT_FIELD + - FIELD_LOWER_SNAKE_CASE + - PACKAGE_DIRECTORY_MATCH diff --git a/proto/umee/leverage/v1/genesis.proto b/proto/umee/leverage/v1/genesis.proto index dde1e18ea9..cc1dcea840 100644 --- a/proto/umee/leverage/v1/genesis.proto +++ b/proto/umee/leverage/v1/genesis.proto @@ -1,41 +1,49 @@ syntax = "proto3"; package umeenetwork.umee.leverage.v1; -import "gogoproto/gogo.proto"; +option go_package = "github.com/umee-network/umee/v2/x/leverage/types"; + import "cosmos/base/v1beta1/coin.proto"; import "umee/leverage/v1/leverage.proto"; - -option go_package = "github.com/umee-network/umee/v2/x/leverage/types"; +import "gogoproto/gogo.proto"; // GenesisState defines the x/leverage module's genesis state. message GenesisState { - Params params = 1 [(gogoproto.nullable) = false]; - repeated Token registry = 2 [(gogoproto.nullable) = false]; - repeated AdjustedBorrow adjusted_borrows = 3 [(gogoproto.nullable) = false]; - repeated CollateralSetting collateral_settings = 4 [(gogoproto.nullable) = false]; - repeated Collateral collateral = 5 [(gogoproto.nullable) = false]; - repeated cosmos.base.v1beta1.Coin reserves = 6 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; - int64 last_interest_time = 7; - repeated BadDebt bad_debts = 8 [(gogoproto.nullable) = false]; - repeated InterestScalar interest_scalars = 9 [(gogoproto.nullable) = false]; - repeated cosmos.base.v1beta1.Coin utoken_supply = 10 - [(gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins"]; + Params params = 1 [(gogoproto.nullable) = false]; + repeated Token registry = 2 [(gogoproto.nullable) = false]; + repeated AdjustedBorrow adjusted_borrows = 3 [(gogoproto.nullable) = false]; + repeated CollateralSetting collateral_settings = 4 + [(gogoproto.nullable) = false]; + repeated Collateral collateral = 5 [(gogoproto.nullable) = false]; + repeated cosmos.base.v1beta1.Coin reserves = 6 [ + (gogoproto.nullable) = false, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; + int64 last_interest_time = 7; + repeated BadDebt bad_debts = 8 [(gogoproto.nullable) = false]; + repeated InterestScalar interest_scalars = 9 [(gogoproto.nullable) = false]; + repeated cosmos.base.v1beta1.Coin utoken_supply = 10 [ + (gogoproto.nullable) = false, + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" + ]; } -// AdjustedBorrow is a borrow struct used in the leverage module's genesis state. +// AdjustedBorrow is a borrow struct used in the leverage module's genesis +// state. message AdjustedBorrow { string address = 1; cosmos.base.v1beta1.DecCoin amount = 2 [(gogoproto.nullable) = false]; } -// CollateralSetting is a collateral setting struct used in the leverage module's genesis state. +// CollateralSetting is a collateral setting struct used in the leverage +// module's genesis state. message CollateralSetting { string address = 1; string denom = 2; } -// Collateral is a collateral struct used in the leverage module's genesis state. +// Collateral is a collateral struct used in the leverage module's genesis +// state. message Collateral { string address = 1; cosmos.base.v1beta1.Coin amount = 2 [(gogoproto.nullable) = false]; @@ -47,8 +55,12 @@ message BadDebt { string denom = 2; } -// InterestScalar is an interest scalar used in the leverage module's genesis state. +// InterestScalar is an interest scalar used in the leverage module's genesis +// state. message InterestScalar { string denom = 1; - string scalar = 2 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; -} \ No newline at end of file + string scalar = 2 [ + (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", + (gogoproto.nullable) = false + ]; +} diff --git a/proto/umee/leverage/v1/leverage.proto b/proto/umee/leverage/v1/leverage.proto index ba191bdcb3..db2fd33e1f 100644 --- a/proto/umee/leverage/v1/leverage.proto +++ b/proto/umee/leverage/v1/leverage.proto @@ -8,29 +8,32 @@ option go_package = "github.com/umee-network/umee/v2/x/leverage/types"; // Params defines the parameters for the leverage module. message Params { option (gogoproto.goproto_stringer) = false; - // The complete_liquidation_threshold determines how far over their borrow limit a borrower - // must be in order for their positions to be liquidated fully in a single event. + // The complete_liquidation_threshold determines how far over their borrow + // limit a borrower must be in order for their positions to be liquidated + // fully in a single event. string complete_liquidation_threshold = 2 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"complete_liquidation_threshold\"" ]; - // The minimum_close_factor determines the portion of a borrower's position that can be - // liquidated in a single event, when the borrower is just barely over their borrow limit. + // The minimum_close_factor determines the portion of a borrower's position + // that can be liquidated in a single event, when the borrower is just barely + // over their borrow limit. string minimum_close_factor = 3 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"minimum_close_factor\"" ]; - // The oracle_reward_factor determines the portion of interest accrued on borrows that is - // sent to the oracle module to fund its reward pool. + // The oracle_reward_factor determines the portion of interest accrued on + // borrows that is sent to the oracle module to fund its reward pool. string oracle_reward_factor = 4 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"oracle_reward_factor\"" ]; - // The small_liquidation_size determines the USD value at which a borrow is considered small - // enough to be liquidated in a single transaction, bypassing dynamic close factor. + // The small_liquidation_size determines the USD value at which a borrow is + // considered small enough to be liquidated in a single transaction, bypassing + // dynamic close factor. string small_liquidation_size = 5 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, @@ -46,8 +49,8 @@ message Token { // The base_denom defines the denomination of the underlying base token. string base_denom = 1 [(gogoproto.moretags) = "yaml:\"base_denom\""]; - // The reserve factor defines what portion of accrued interest of the asset type - // goes to reserves. + // The reserve factor defines what portion of accrued interest of the asset + // type goes to reserves. string reserve_factor = 2 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, @@ -55,17 +58,17 @@ message Token { ]; // The collateral_weight defines what amount of the total value of the asset - // can contribute to a users borrowing power. If the collateral_weight is zero, - // using this asset as collateral against borrowing will be disabled. + // can contribute to a users borrowing power. If the collateral_weight is + // zero, using this asset as collateral against borrowing will be disabled. string collateral_weight = 3 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"collateral_weight\"" ]; - - // The liquidation_threshold defines what amount of the total value of the asset - // can contribute to a user's liquidation threshold (above which they become - // eligible for liquidation). + + // The liquidation_threshold defines what amount of the total value of the + // asset can contribute to a user's liquidation threshold (above which they + // become eligible for liquidation). string liquidation_threshold = 4 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false, @@ -117,16 +120,18 @@ message Token { // list of allowed tokens. string symbol_denom = 10 [(gogoproto.moretags) = "yaml:\"symbol_denom\""]; uint32 exponent = 11 [(gogoproto.moretags) = "yaml:\"exponent\""]; - - // Allows lending and setting a collateral using this token. Note that withdrawing - // is always enabled. Disabling lending would be one step in phasing out an asset type. + + // Allows lending and setting a collateral using this token. Note that + // withdrawing is always enabled. Disabling lending would be one step in + // phasing out an asset type. bool enable_msg_lend = 12 [(gogoproto.moretags) = "yaml:\"enable_msg_lend\""]; // Allows borrowing of this token. Note that repaying is always enabled. // Disabling borrowing would be one step in phasing out an asset type, but // could also be used from the start for asset types meant to be collateral // only, like meTokens. - bool enable_msg_borrow = 13 [(gogoproto.moretags) = "yaml:\"enable_msg_borrow\""]; + bool enable_msg_borrow = 13 + [(gogoproto.moretags) = "yaml:\"enable_msg_borrow\""]; // This should only be used to eliminate an asset completely. A blacklisted // asset is treated as though its oracle price is zero, and thus ignored by diff --git a/proto/umee/leverage/v1/query.proto b/proto/umee/leverage/v1/query.proto index 76a05dff94..46c8002451 100644 --- a/proto/umee/leverage/v1/query.proto +++ b/proto/umee/leverage/v1/query.proto @@ -150,73 +150,83 @@ message QueryRegisteredTokens {} // QueryAvailableBorrowRequest defines the request structure for the // AvailableBorrow gRPC service handler. -message QueryAvailableBorrowRequest { string denom = 1; } +message QueryAvailableBorrowRequest { + string denom = 1; +} // QueryAvailableBorrowResponse defines the response structure for the // AvailableBorrow gRPC service handler. message QueryAvailableBorrowResponse { string amount = 1 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.nullable) = false + (gogoproto.nullable) = false ]; } // QueryBorrowAPYRequest defines the request structure for the BorrowAPY // gRPC service handler. -message QueryBorrowAPYRequest { string denom = 1; } +message QueryBorrowAPYRequest { + string denom = 1; +} // QueryBorrowAPYResponse defines the response structure for the BorrowAPY // gRPC service handler. message QueryBorrowAPYResponse { string APY = 1 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (gogoproto.nullable) = false ]; } // QueryLendAPYRequest defines the request structure for the LendAPY // gRPC service handler. -message QueryLendAPYRequest { string denom = 1; } +message QueryLendAPYRequest { + string denom = 1; +} // QueryLendAPYResponse defines the response structure for the LendAPY // gRPC service handler. message QueryLendAPYResponse { string APY = 1 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (gogoproto.nullable) = false ]; } // QueryMarketSizeRequest defines the request structure for the Market Size in // USD gRPC service handler. -message QueryMarketSizeRequest { string denom = 1; } +message QueryMarketSizeRequest { + string denom = 1; +} // QueryMarketSizeResponse defines the response structure for the Market Size in // USD gRPC service handler. message QueryMarketSizeResponse { string market_size_usd = 1 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (gogoproto.nullable) = false ]; } // QueryTokenMarketSizeRequest defines the request structure for the Token // Market Size gRPC service handler. -message QueryTokenMarketSizeRequest { string denom = 1; } +message QueryTokenMarketSizeRequest { + string denom = 1; +} // QueryTokenMarketSizeResponse defines the response structure for the Token // Market Size gRPC service handler. message QueryTokenMarketSizeResponse { string market_size = 1 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.nullable) = false + (gogoproto.nullable) = false ]; } // QueryRegisteredTokensResponse defines the response structure for the // RegisteredTokens gRPC service handler. message QueryRegisteredTokensResponse { - repeated Token registry = 1 [ (gogoproto.nullable) = false ]; + repeated Token registry = 1 [(gogoproto.nullable) = false]; } // QueryParamsRequest defines the request structure for the Params gRPC service @@ -226,21 +236,21 @@ message QueryParamsRequest {} // QueryParamsResponse defines the response structure for the Params gRPC // service handler. message QueryParamsResponse { - Params params = 1 [ (gogoproto.nullable) = false ]; + Params params = 1 [(gogoproto.nullable) = false]; } // QueryBorrowedRequest defines the request structure for the Borrowed gRPC // service handler. message QueryBorrowedRequest { string address = 1; - string denom = 2; + string denom = 2; } // QueryBorrowedResponse defines the response structure for the Borrowed gRPC // service handler. message QueryBorrowedResponse { repeated cosmos.base.v1beta1.Coin borrowed = 1 [ - (gogoproto.nullable) = false, + (gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; } @@ -249,7 +259,7 @@ message QueryBorrowedResponse { // gRPC service handler. message QueryBorrowedValueRequest { string address = 1; - string denom = 2; + string denom = 2; } // QueryBorrowedValueResponse defines the response structure for the @@ -257,7 +267,7 @@ message QueryBorrowedValueRequest { message QueryBorrowedValueResponse { string borrowed_value = 1 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (gogoproto.nullable) = false ]; } @@ -265,7 +275,7 @@ message QueryBorrowedValueResponse { // CollateralValue gRPC service handler. message QueryCollateralValueRequest { string address = 1; - string denom = 2; + string denom = 2; } // QueryCollateralValueResponse defines the response structure for the @@ -273,7 +283,7 @@ message QueryCollateralValueRequest { message QueryCollateralValueResponse { string collateral_value = 1 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (gogoproto.nullable) = false ]; } @@ -281,14 +291,14 @@ message QueryCollateralValueResponse { // handler. message QueryLoanedRequest { string address = 1; - string denom = 2; + string denom = 2; } // QueryLoanedResponse defines the response structure for the Loaned gRPC // service handler. message QueryLoanedResponse { repeated cosmos.base.v1beta1.Coin loaned = 1 [ - (gogoproto.nullable) = false, + (gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; } @@ -297,7 +307,7 @@ message QueryLoanedResponse { // gRPC service handler. message QueryLoanedValueRequest { string address = 1; - string denom = 2; + string denom = 2; } // QueryLoanedValueResponse defines the response structure for the LoanedValue @@ -305,20 +315,22 @@ message QueryLoanedValueRequest { message QueryLoanedValueResponse { string loaned_value = 1 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (gogoproto.nullable) = false ]; } // QueryReserveAmountRequest defines the request structure for the ReserveAmount // gRPC service handler. -message QueryReserveAmountRequest { string denom = 1; } +message QueryReserveAmountRequest { + string denom = 1; +} // QueryReserveAmountResponse defines the response structure for the // ReserveAmount gRPC service handler. message QueryReserveAmountResponse { string amount = 1 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.nullable) = false + (gogoproto.nullable) = false ]; } @@ -326,65 +338,73 @@ message QueryReserveAmountResponse { // CollateralSetting gRPC service handler. message QueryCollateralSettingRequest { string address = 1; - string denom = 2; + string denom = 2; } // QueryCollateralSettingsResponse defines the response structure for the // CollateralSetting gRPC service handler. -message QueryCollateralSettingResponse { bool enabled = 1; } +message QueryCollateralSettingResponse { + bool enabled = 1; +} // QueryCollateralRequest defines the request structure for the Collateral gRPC // service handler. message QueryCollateralRequest { string address = 1; - string denom = 2; + string denom = 2; } // QueryCollateralResponse defines the response structure for the Collateral // gRPC service handler. message QueryCollateralResponse { repeated cosmos.base.v1beta1.Coin collateral = 1 [ - (gogoproto.nullable) = false, + (gogoproto.nullable) = false, (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.Coins" ]; } // QueryExchangeRateRequest defines the request structure for the ExchangeRate // gRPC service handler. -message QueryExchangeRateRequest { string denom = 1; } +message QueryExchangeRateRequest { + string denom = 1; +} // QueryExchangeRateResponse defines the response structure for the ExchangeRate // gRPC service handler. message QueryExchangeRateResponse { string exchange_rate = 1 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (gogoproto.nullable) = false ]; } // QueryBorrowLimitRequest defines the request structure for the BorrowLimit // gRPC service handler. -message QueryBorrowLimitRequest { string address = 1; } +message QueryBorrowLimitRequest { + string address = 1; +} // QueryBorrowLimitResponse defines the response structure for the BorrowLimit // gRPC service handler. message QueryBorrowLimitResponse { string borrow_limit = 1 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (gogoproto.nullable) = false ]; } // QueryLiquidationThresholdRequest defines the request structure for the // LiquidationThreshold gRPC service handler. -message QueryLiquidationThresholdRequest { string address = 1; } +message QueryLiquidationThresholdRequest { + string address = 1; +} // QueryLiquidationThresholdResponse defines the response structure for the // LiquidationThreshold gRPC service handler. message QueryLiquidationThresholdResponse { string liquidation_threshold = 1 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (gogoproto.nullable) = false ]; } @@ -394,43 +414,47 @@ message QueryLiquidationTargetsRequest {} // QueryLiquidationTargetsResponse defines the response structure for the // LiquidationTargets gRPC service handler. -message QueryLiquidationTargetsResponse { repeated string targets = 1; } +message QueryLiquidationTargetsResponse { + repeated string targets = 1; +} // QueryMarketSummaryRequest defines the request structure for the // MarketSummary gRPC service handler. -message QueryMarketSummaryRequest { string denom = 1; } +message QueryMarketSummaryRequest { + string denom = 1; +} // QueryMarketSummaryResponse defines the response structure for the // MarketSummary gRPC service handler. message QueryMarketSummaryResponse { string symbol_denom = 1; - uint32 exponent = 2; + uint32 exponent = 2; string oracle_price = 3 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = true + (gogoproto.nullable) = true ]; string uToken_exchange_rate = 4 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (gogoproto.nullable) = false ]; string lend_APY = 5 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (gogoproto.nullable) = false ]; string borrow_APY = 6 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", - (gogoproto.nullable) = false + (gogoproto.nullable) = false ]; string market_size = 7 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.nullable) = false + (gogoproto.nullable) = false ]; string available_borrow = 8 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.nullable) = false + (gogoproto.nullable) = false ]; string reserved = 9 [ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int", - (gogoproto.nullable) = false + (gogoproto.nullable) = false ]; } diff --git a/proto/umee/leverage/v1/tx.proto b/proto/umee/leverage/v1/tx.proto index 4fb468ae38..42b2c3e385 100644 --- a/proto/umee/leverage/v1/tx.proto +++ b/proto/umee/leverage/v1/tx.proto @@ -22,11 +22,12 @@ service Msg { // BorrowAsset defines a method for borrowing coins from the capital facility. rpc BorrowAsset(MsgBorrowAsset) returns (MsgBorrowAssetResponse); - // RepayAsset defines a method for repaying borrowed coins to the capital facility. + // RepayAsset defines a method for repaying borrowed coins to the capital + // facility. rpc RepayAsset(MsgRepayAsset) returns (MsgRepayAssetResponse); - // Liquidate defines a method for repaying a different user's borrowed coins to - // the capital facility in exchange for some of their collateral. + // Liquidate defines a method for repaying a different user's borrowed coins + // to the capital facility in exchange for some of their collateral. rpc Liquidate(MsgLiquidate) returns (MsgLiquidateResponse); } @@ -37,9 +38,9 @@ message MsgLendAsset { cosmos.base.v1beta1.Coin amount = 2 [(gogoproto.nullable) = false]; } -// MsgWithdrawAsset represents a lender's request to withdraw a previously loaned -// base asset type from the module. Amount can either be exact uTokens to withdraw -// or equivalent base assets. +// MsgWithdrawAsset represents a lender's request to withdraw a previously +// loaned base asset type from the module. Amount can either be exact uTokens to +// withdraw or equivalent base assets. message MsgWithdrawAsset { string lender = 1; cosmos.base.v1beta1.Coin amount = 2 [(gogoproto.nullable) = false]; @@ -49,8 +50,8 @@ message MsgWithdrawAsset { // a uToken type in their possession as collateral. message MsgSetCollateral { string borrower = 1; - string denom = 2; - bool enable = 3; + string denom = 2; + bool enable = 3; } // MsgBorrowAsset represents a lender's request to borrow a base asset type @@ -60,8 +61,8 @@ message MsgBorrowAsset { cosmos.base.v1beta1.Coin amount = 2 [(gogoproto.nullable) = false]; } -// MsgRepayAsset represents a lender's request to repay a borrowed base asset type -// to the module. +// MsgRepayAsset represents a lender's request to repay a borrowed base asset +// type to the module. message MsgRepayAsset { string borrower = 1; cosmos.base.v1beta1.Coin amount = 2 [(gogoproto.nullable) = false]; diff --git a/proto/umee/oracle/v1/genesis.proto b/proto/umee/oracle/v1/genesis.proto index c5843dbd9a..f3897e2505 100644 --- a/proto/umee/oracle/v1/genesis.proto +++ b/proto/umee/oracle/v1/genesis.proto @@ -3,19 +3,23 @@ package umeenetwork.umee.oracle.v1; import "gogoproto/gogo.proto"; import "umee/oracle/v1/oracle.proto"; -import "cosmos/base/v1beta1/coin.proto"; option go_package = "github.com/umee-network/umee/v2/x/oracle/types"; // GenesisState defines the oracle module's genesis state. message GenesisState { - Params params = 1 [(gogoproto.nullable) = false]; - repeated FeederDelegation feeder_delegations = 2 [(gogoproto.nullable) = false]; - repeated ExchangeRateTuple exchange_rates = 3 - [(gogoproto.castrepeated) = "ExchangeRateTuples", (gogoproto.nullable) = false]; + Params params = 1 [(gogoproto.nullable) = false]; + repeated FeederDelegation feeder_delegations = 2 + [(gogoproto.nullable) = false]; + repeated ExchangeRateTuple exchange_rates = 3 [ + (gogoproto.castrepeated) = "ExchangeRateTuples", + (gogoproto.nullable) = false + ]; repeated MissCounter miss_counters = 4 [(gogoproto.nullable) = false]; - repeated AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 [(gogoproto.nullable) = false]; - repeated AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 [(gogoproto.nullable) = false]; + repeated AggregateExchangeRatePrevote aggregate_exchange_rate_prevotes = 5 + [(gogoproto.nullable) = false]; + repeated AggregateExchangeRateVote aggregate_exchange_rate_votes = 6 + [(gogoproto.nullable) = false]; } // FeederDelegation is the address for where oracle feeder authority are diff --git a/proto/umee/oracle/v1/oracle.proto b/proto/umee/oracle/v1/oracle.proto index 9f4f0df31b..a104419370 100644 --- a/proto/umee/oracle/v1/oracle.proto +++ b/proto/umee/oracle/v1/oracle.proto @@ -2,7 +2,6 @@ syntax = "proto3"; package umeenetwork.umee.oracle.v1; import "gogoproto/gogo.proto"; -import "cosmos/base/v1beta1/coin.proto"; option go_package = "github.com/umee-network/umee/v2/x/oracle/types"; @@ -22,8 +21,9 @@ message Params { (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false ]; - uint64 reward_distribution_window = 4 [(gogoproto.moretags) = "yaml:\"reward_distribution_window\""]; - repeated Denom accept_list = 5 [ + uint64 reward_distribution_window = 4 + [(gogoproto.moretags) = "yaml:\"reward_distribution_window\""]; + repeated Denom accept_list = 5 [ (gogoproto.moretags) = "yaml:\"accept_list\"", (gogoproto.castrepeated) = "DenomList", (gogoproto.nullable) = false @@ -47,9 +47,9 @@ message Denom { option (gogoproto.goproto_getters) = false; option (gogoproto.goproto_stringer) = false; - string base_denom = 1 [(gogoproto.moretags) = "yaml:\"base_denom\""]; - string symbol_denom = 2 [(gogoproto.moretags) = "yaml:\"symbol_denom\""]; - uint32 exponent = 3 [(gogoproto.moretags) = "yaml:\"exponent\""]; + string base_denom = 1 [(gogoproto.moretags) = "yaml:\"base_denom\""]; + string symbol_denom = 2 [(gogoproto.moretags) = "yaml:\"symbol_denom\""]; + uint32 exponent = 3 [(gogoproto.moretags) = "yaml:\"exponent\""]; } // AggregateExchangeRatePrevote - diff --git a/proto/umee/oracle/v1/query.proto b/proto/umee/oracle/v1/query.proto index 3fa204e89e..5dc7a8875a 100644 --- a/proto/umee/oracle/v1/query.proto +++ b/proto/umee/oracle/v1/query.proto @@ -12,42 +12,56 @@ option go_package = "github.com/umee-network/umee/v2/x/oracle/types"; service Query { // ExchangeRates returns exchange rates of all denoms, // or, if specified, returns a single denom - rpc ExchangeRates(QueryExchangeRatesRequest) returns (QueryExchangeRatesResponse) { - option (google.api.http).get = "/umee/oracle/v1/denoms/exchange_rates/{denom}"; + rpc ExchangeRates(QueryExchangeRatesRequest) + returns (QueryExchangeRatesResponse) { + option (google.api.http).get = + "/umee/oracle/v1/denoms/exchange_rates/{denom}"; } // ActiveExchangeRates returns all active denoms - rpc ActiveExchangeRates(QueryActiveExchangeRatesRequest) returns (QueryActiveExchangeRatesResponse) { - option (google.api.http).get = "/umee/oracle/v1/denoms/active_exchange_rates"; + rpc ActiveExchangeRates(QueryActiveExchangeRatesRequest) + returns (QueryActiveExchangeRatesResponse) { + option (google.api.http).get = + "/umee/oracle/v1/denoms/active_exchange_rates"; } // FeederDelegation returns feeder delegation of a validator - rpc FeederDelegation(QueryFeederDelegationRequest) returns (QueryFeederDelegationResponse) { - option (google.api.http).get = "/umee/oracle/v1/validators/{validator_addr}/feeder"; + rpc FeederDelegation(QueryFeederDelegationRequest) + returns (QueryFeederDelegationResponse) { + option (google.api.http).get = + "/umee/oracle/v1/validators/{validator_addr}/feeder"; } // MissCounter returns oracle miss counter of a validator rpc MissCounter(QueryMissCounterRequest) returns (QueryMissCounterResponse) { - option (google.api.http).get = "/umee/oracle/v1/validators/{validator_addr}/miss"; + option (google.api.http).get = + "/umee/oracle/v1/validators/{validator_addr}/miss"; } // AggregatePrevote returns an aggregate prevote of a validator - rpc AggregatePrevote(QueryAggregatePrevoteRequest) returns (QueryAggregatePrevoteResponse) { - option (google.api.http).get = "/umee/oracle/v1/validators/{validator_addr}/aggregate_prevote"; + rpc AggregatePrevote(QueryAggregatePrevoteRequest) + returns (QueryAggregatePrevoteResponse) { + option (google.api.http).get = + "/umee/oracle/v1/validators/{validator_addr}/aggregate_prevote"; } // AggregatePrevotes returns aggregate prevotes of all validators - rpc AggregatePrevotes(QueryAggregatePrevotesRequest) returns (QueryAggregatePrevotesResponse) { - option (google.api.http).get = "/umee/oracle/v1/validators/aggregate_prevotes"; + rpc AggregatePrevotes(QueryAggregatePrevotesRequest) + returns (QueryAggregatePrevotesResponse) { + option (google.api.http).get = + "/umee/oracle/v1/validators/aggregate_prevotes"; } // AggregateVote returns an aggregate vote of a validator - rpc AggregateVote(QueryAggregateVoteRequest) returns (QueryAggregateVoteResponse) { - option (google.api.http).get = "/umee/oracle/v1/valdiators/{validator_addr}/aggregate_vote"; + rpc AggregateVote(QueryAggregateVoteRequest) + returns (QueryAggregateVoteResponse) { + option (google.api.http).get = + "/umee/oracle/v1/valdiators/{validator_addr}/aggregate_vote"; } // AggregateVotes returns aggregate votes of all validators - rpc AggregateVotes(QueryAggregateVotesRequest) returns (QueryAggregateVotesResponse) { + rpc AggregateVotes(QueryAggregateVotesRequest) + returns (QueryAggregateVotesResponse) { option (google.api.http).get = "/umee/oracle/v1/validators/aggregate_votes"; } @@ -67,18 +81,19 @@ message QueryExchangeRatesRequest { string denom = 1; } - // QueryExchangeRatesResponse is response type for the // Query/ExchangeRates RPC method. message QueryExchangeRatesResponse { // exchange_rates defines a list of the exchange rate for all whitelisted // denoms. - repeated cosmos.base.v1beta1.DecCoin exchange_rates = 1 - [(gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", (gogoproto.nullable) = false]; + repeated cosmos.base.v1beta1.DecCoin exchange_rates = 1 [ + (gogoproto.castrepeated) = "github.com/cosmos/cosmos-sdk/types.DecCoins", + (gogoproto.nullable) = false + ]; } - -// QueryActiveExchangeRatesRequest is the request type for the Query/ActiveExchangeRates RPC method. +// QueryActiveExchangeRatesRequest is the request type for the +// Query/ActiveExchangeRates RPC method. message QueryActiveExchangeRatesRequest {} // QueryActiveExchangeRatesResponse is response type for the @@ -89,7 +104,6 @@ message QueryActiveExchangeRatesResponse { repeated string active_rates = 1; } - // QueryFeederDelegationRequest is the request type for the // Query/FeederDelegation RPC method. message QueryFeederDelegationRequest { @@ -139,7 +153,8 @@ message QueryAggregatePrevoteRequest { message QueryAggregatePrevoteResponse { // aggregate_prevote defines oracle aggregate prevote submitted by a validator // in the current vote period - AggregateExchangeRatePrevote aggregate_prevote = 1 [(gogoproto.nullable) = false]; + AggregateExchangeRatePrevote aggregate_prevote = 1 + [(gogoproto.nullable) = false]; ; } @@ -152,7 +167,8 @@ message QueryAggregatePrevotesRequest {} message QueryAggregatePrevotesResponse { // aggregate_prevotes defines all oracle aggregate prevotes submitted in the // current vote period - repeated AggregateExchangeRatePrevote aggregate_prevotes = 1 [(gogoproto.nullable) = false]; + repeated AggregateExchangeRatePrevote aggregate_prevotes = 1 + [(gogoproto.nullable) = false]; } // QueryAggregateVoteRequest is the request type for the Query/AggregateVote RPC @@ -182,7 +198,8 @@ message QueryAggregateVotesRequest {} message QueryAggregateVotesResponse { // aggregate_votes defines all oracle aggregate votes submitted in the current // vote period - repeated AggregateExchangeRateVote aggregate_votes = 1 [(gogoproto.nullable) = false]; + repeated AggregateExchangeRateVote aggregate_votes = 1 + [(gogoproto.nullable) = false]; } // QueryParamsRequest is the request type for the Query/Params RPC method. diff --git a/proto/umee/oracle/v1/tx.proto b/proto/umee/oracle/v1/tx.proto index c518ebcf04..1029fcbdb1 100644 --- a/proto/umee/oracle/v1/tx.proto +++ b/proto/umee/oracle/v1/tx.proto @@ -9,14 +9,17 @@ option go_package = "github.com/umee-network/umee/v2/x/oracle/types"; service Msg { // AggregateExchangeRatePrevote defines a method for submitting an aggregate // exchange rate prevote. - rpc AggregateExchangeRatePrevote(MsgAggregateExchangeRatePrevote) returns (MsgAggregateExchangeRatePrevoteResponse); + rpc AggregateExchangeRatePrevote(MsgAggregateExchangeRatePrevote) + returns (MsgAggregateExchangeRatePrevoteResponse); // AggregateExchangeRateVote defines a method for submitting an aggregate // exchange rate vote. - rpc AggregateExchangeRateVote(MsgAggregateExchangeRateVote) returns (MsgAggregateExchangeRateVoteResponse); + rpc AggregateExchangeRateVote(MsgAggregateExchangeRateVote) + returns (MsgAggregateExchangeRateVoteResponse); // DelegateFeedConsent defines a method for setting the feeder delegation. - rpc DelegateFeedConsent(MsgDelegateFeedConsent) returns (MsgDelegateFeedConsentResponse); + rpc DelegateFeedConsent(MsgDelegateFeedConsent) + returns (MsgDelegateFeedConsentResponse); } // MsgAggregateExchangeRatePrevote represents a message to submit an aggregate diff --git a/x/leverage/types/genesis.pb.go b/x/leverage/types/genesis.pb.go index 5fc5c485a2..cce5c66a03 100644 --- a/x/leverage/types/genesis.pb.go +++ b/x/leverage/types/genesis.pb.go @@ -142,7 +142,8 @@ func (m *GenesisState) GetUtokenSupply() github_com_cosmos_cosmos_sdk_types.Coin return nil } -// AdjustedBorrow is a borrow struct used in the leverage module's genesis state. +// AdjustedBorrow is a borrow struct used in the leverage module's genesis +// state. type AdjustedBorrow struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Amount types.DecCoin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"` @@ -195,7 +196,8 @@ func (m *AdjustedBorrow) GetAmount() types.DecCoin { return types.DecCoin{} } -// CollateralSetting is a collateral setting struct used in the leverage module's genesis state. +// CollateralSetting is a collateral setting struct used in the leverage +// module's genesis state. type CollateralSetting struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` @@ -248,7 +250,8 @@ func (m *CollateralSetting) GetDenom() string { return "" } -// Collateral is a collateral struct used in the leverage module's genesis state. +// Collateral is a collateral struct used in the leverage module's genesis +// state. type Collateral struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"` @@ -354,7 +357,8 @@ func (m *BadDebt) GetDenom() string { return "" } -// InterestScalar is an interest scalar used in the leverage module's genesis state. +// InterestScalar is an interest scalar used in the leverage module's genesis +// state. type InterestScalar struct { Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` Scalar github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=scalar,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"scalar"` @@ -417,42 +421,42 @@ var fileDescriptor_a51f71666aa8f549 = []byte{ 0x14, 0x8e, 0xb9, 0x04, 0x32, 0xf0, 0xf3, 0xd3, 0x29, 0x0b, 0x17, 0x21, 0x07, 0xa5, 0x17, 0x65, 0x01, 0x36, 0xd0, 0x45, 0xd5, 0xee, 0x6a, 0xe8, 0x75, 0x51, 0x55, 0x09, 0xab, 0x4a, 0x95, 0x35, 0xb6, 0x0f, 0xae, 0x8b, 0xed, 0x89, 0xe6, 0x4c, 0x42, 0x79, 0x8b, 0x3e, 0x47, 0x9f, 0x84, 0x25, - 0xcb, 0xaa, 0x0b, 0x5a, 0x85, 0x17, 0xa9, 0x3c, 0x33, 0x49, 0x08, 0x54, 0x16, 0x95, 0xba, 0x8a, - 0x67, 0xce, 0xf9, 0x2e, 0x99, 0xf3, 0xcd, 0x10, 0xa7, 0x9f, 0x03, 0x78, 0x19, 0x0c, 0x40, 0xb0, + 0xcb, 0xaa, 0x0b, 0x5a, 0x85, 0x17, 0xa9, 0x3c, 0x33, 0x49, 0x08, 0x54, 0x16, 0x95, 0xba, 0xca, + 0xcc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x20, 0x7d, 0x47, 0xc8, 0xe4, 0xd4, 0x9e, 0x57, 0xf4, 0xed, 0xdb, 0xd2, 0x1b, 0xde, 0x2b, 0x0c, + 0x34, 0x29, 0x6f, 0x17, 0x41, 0x0c, 0x00, 0xed, 0xba, 0x62, 0xbb, 0xe7, 0xea, 0x70, 0xb8, 0x65, + 0x38, 0x5c, 0x13, 0x0e, 0x77, 0x9f, 0xa7, 0x85, 0xbf, 0x53, 0xc2, 0xbf, 0xfd, 0x6c, 0xb6, 0x93, + 0x54, 0x7e, 0xea, 0x87, 0x6e, 0xc4, 0x73, 0xcf, 0x24, 0x49, 0xff, 0x6c, 0x63, 0x7c, 0xec, 0xc9, + 0xd3, 0x1e, 0xa0, 0x02, 0x60, 0x67, 0x4c, 0x4e, 0xb7, 0x08, 0xcd, 0x18, 0xca, 0x20, 0x2d, 0x24, + 0x08, 0x40, 0x19, 0xc8, 0x34, 0x07, 0x7b, 0x61, 0xd3, 0x6a, 0xcf, 0x76, 0x56, 0xcb, 0xca, 0x1b, + 0x53, 0x38, 0x4c, 0x73, 0xa0, 0xaf, 0x49, 0x23, 0x64, 0x71, 0x10, 0x43, 0x28, 0xd1, 0x5e, 0x54, + 0xbe, 0x1e, 0x56, 0xff, 0x4b, 0x9f, 0xc5, 0x07, 0x10, 0xca, 0xd1, 0xdc, 0x43, 0xbd, 0xc5, 0x72, + 0xee, 0x63, 0x49, 0x8c, 0x58, 0xc6, 0x04, 0xda, 0x8d, 0xdb, 0xcc, 0x7d, 0xe4, 0xa7, 0xab, 0x40, + 0xa3, 0xb9, 0xa7, 0x53, 0xa7, 0x48, 0x7b, 0xe4, 0xbf, 0xbe, 0x2c, 0x03, 0x17, 0x60, 0xbf, 0xd7, + 0xcb, 0x4e, 0x6d, 0xf2, 0xef, 0x2f, 0x71, 0x59, 0x2b, 0x74, 0x95, 0x40, 0xeb, 0x88, 0xac, 0x4c, + 0x47, 0x92, 0xda, 0x64, 0x81, 0xc5, 0xb1, 0x00, 0xd4, 0xcf, 0xac, 0xd1, 0x19, 0x6d, 0xe9, 0x33, + 0x52, 0x67, 0x39, 0xef, 0x17, 0xd2, 0x9e, 0x51, 0xef, 0x6f, 0xe3, 0x8f, 0xb6, 0x0e, 0x20, 0x52, + 0xce, 0xcc, 0xbb, 0xd3, 0x88, 0xd6, 0x3e, 0xb9, 0x73, 0x23, 0x98, 0x15, 0x52, 0x6b, 0x64, 0x3e, + 0x86, 0x82, 0xe7, 0x4a, 0xa9, 0xd1, 0xd1, 0x9b, 0x56, 0x40, 0xc8, 0x84, 0xa4, 0x02, 0xfd, 0xe4, + 0x9a, 0xd1, 0x8a, 0xfb, 0x9b, 0x76, 0xf9, 0x94, 0x2c, 0x98, 0xc9, 0xff, 0xb5, 0xb7, 0x82, 0xac, + 0x4c, 0xcf, 0x78, 0xd2, 0x67, 0x5d, 0xe9, 0xa3, 0x2f, 0x49, 0x5d, 0x07, 0x47, 0xc3, 0x7d, 0xb7, + 0x34, 0xf0, 0xe3, 0xa2, 0xf9, 0xe8, 0x16, 0x03, 0x3c, 0x80, 0xa8, 0x63, 0xd0, 0xfe, 0xdb, 0xb3, + 0xa1, 0x63, 0x9d, 0x0f, 0x1d, 0xeb, 0xd7, 0xd0, 0xb1, 0xbe, 0x5e, 0x3a, 0xb5, 0xf3, 0x4b, 0xa7, + 0xf6, 0xfd, 0xd2, 0xa9, 0x7d, 0xd8, 0xb9, 0xc2, 0x54, 0xe6, 0x70, 0xdb, 0x84, 0x52, 0x6d, 0xbc, + 0xc1, 0x9e, 0xf7, 0x65, 0xf2, 0x2d, 0x56, 0xbc, 0x61, 0x5d, 0x7d, 0x70, 0x1f, 0xff, 0x0e, 0x00, + 0x00, 0xff, 0xff, 0x10, 0xa2, 0xdf, 0xe8, 0x07, 0x06, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/leverage/types/leverage.pb.go b/x/leverage/types/leverage.pb.go index b30bf62929..fb5c0d9838 100644 --- a/x/leverage/types/leverage.pb.go +++ b/x/leverage/types/leverage.pb.go @@ -26,17 +26,20 @@ const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package // Params defines the parameters for the leverage module. type Params struct { - // The complete_liquidation_threshold determines how far over their borrow limit a borrower - // must be in order for their positions to be liquidated fully in a single event. + // The complete_liquidation_threshold determines how far over their borrow + // limit a borrower must be in order for their positions to be liquidated + // fully in a single event. CompleteLiquidationThreshold github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=complete_liquidation_threshold,json=completeLiquidationThreshold,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"complete_liquidation_threshold" yaml:"complete_liquidation_threshold"` - // The minimum_close_factor determines the portion of a borrower's position that can be - // liquidated in a single event, when the borrower is just barely over their borrow limit. + // The minimum_close_factor determines the portion of a borrower's position + // that can be liquidated in a single event, when the borrower is just barely + // over their borrow limit. MinimumCloseFactor github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=minimum_close_factor,json=minimumCloseFactor,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"minimum_close_factor" yaml:"minimum_close_factor"` - // The oracle_reward_factor determines the portion of interest accrued on borrows that is - // sent to the oracle module to fund its reward pool. + // The oracle_reward_factor determines the portion of interest accrued on + // borrows that is sent to the oracle module to fund its reward pool. OracleRewardFactor github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=oracle_reward_factor,json=oracleRewardFactor,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"oracle_reward_factor" yaml:"oracle_reward_factor"` - // The small_liquidation_size determines the USD value at which a borrow is considered small - // enough to be liquidated in a single transaction, bypassing dynamic close factor. + // The small_liquidation_size determines the USD value at which a borrow is + // considered small enough to be liquidated in a single transaction, bypassing + // dynamic close factor. SmallLiquidationSize github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,5,opt,name=small_liquidation_size,json=smallLiquidationSize,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"small_liquidation_size" yaml:"small_liquidation_size"` } @@ -77,16 +80,16 @@ var xxx_messageInfo_Params proto.InternalMessageInfo type Token struct { // The base_denom defines the denomination of the underlying base token. BaseDenom string `protobuf:"bytes,1,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty" yaml:"base_denom"` - // The reserve factor defines what portion of accrued interest of the asset type - // goes to reserves. + // The reserve factor defines what portion of accrued interest of the asset + // type goes to reserves. ReserveFactor github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,2,opt,name=reserve_factor,json=reserveFactor,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"reserve_factor" yaml:"reserve_factor"` // The collateral_weight defines what amount of the total value of the asset - // can contribute to a users borrowing power. If the collateral_weight is zero, - // using this asset as collateral against borrowing will be disabled. + // can contribute to a users borrowing power. If the collateral_weight is + // zero, using this asset as collateral against borrowing will be disabled. CollateralWeight github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=collateral_weight,json=collateralWeight,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"collateral_weight" yaml:"collateral_weight"` - // The liquidation_threshold defines what amount of the total value of the asset - // can contribute to a user's liquidation threshold (above which they become - // eligible for liquidation). + // The liquidation_threshold defines what amount of the total value of the + // asset can contribute to a user's liquidation threshold (above which they + // become eligible for liquidation). LiquidationThreshold github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,4,opt,name=liquidation_threshold,json=liquidationThreshold,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"liquidation_threshold" yaml:"liquidation_threshold"` // The base_borrow_rate defines the base interest rate for borrowing this // asset. @@ -108,8 +111,9 @@ type Token struct { // list of allowed tokens. SymbolDenom string `protobuf:"bytes,10,opt,name=symbol_denom,json=symbolDenom,proto3" json:"symbol_denom,omitempty" yaml:"symbol_denom"` Exponent uint32 `protobuf:"varint,11,opt,name=exponent,proto3" json:"exponent,omitempty" yaml:"exponent"` - // Allows lending and setting a collateral using this token. Note that withdrawing - // is always enabled. Disabling lending would be one step in phasing out an asset type. + // Allows lending and setting a collateral using this token. Note that + // withdrawing is always enabled. Disabling lending would be one step in + // phasing out an asset type. EnableMsgLend bool `protobuf:"varint,12,opt,name=enable_msg_lend,json=enableMsgLend,proto3" json:"enable_msg_lend,omitempty" yaml:"enable_msg_lend"` // Allows borrowing of this token. Note that repaying is always enabled. // Disabling borrowing would be one step in phasing out an asset type, but diff --git a/x/leverage/types/tx.pb.go b/x/leverage/types/tx.pb.go index bd785151b6..53dbdbd930 100644 --- a/x/leverage/types/tx.pb.go +++ b/x/leverage/types/tx.pb.go @@ -83,9 +83,9 @@ func (m *MsgLendAsset) GetAmount() types.Coin { return types.Coin{} } -// MsgWithdrawAsset represents a lender's request to withdraw a previously loaned -// base asset type from the module. Amount can either be exact uTokens to withdraw -// or equivalent base assets. +// MsgWithdrawAsset represents a lender's request to withdraw a previously +// loaned base asset type from the module. Amount can either be exact uTokens to +// withdraw or equivalent base assets. type MsgWithdrawAsset struct { Lender string `protobuf:"bytes,1,opt,name=lender,proto3" json:"lender,omitempty"` Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"` @@ -254,8 +254,8 @@ func (m *MsgBorrowAsset) GetAmount() types.Coin { return types.Coin{} } -// MsgRepayAsset represents a lender's request to repay a borrowed base asset type -// to the module. +// MsgRepayAsset represents a lender's request to repay a borrowed base asset +// type to the module. type MsgRepayAsset struct { Borrower string `protobuf:"bytes,1,opt,name=borrower,proto3" json:"borrower,omitempty"` Amount types.Coin `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount"` @@ -704,10 +704,11 @@ type MsgClient interface { SetCollateral(ctx context.Context, in *MsgSetCollateral, opts ...grpc.CallOption) (*MsgSetCollateralResponse, error) // BorrowAsset defines a method for borrowing coins from the capital facility. BorrowAsset(ctx context.Context, in *MsgBorrowAsset, opts ...grpc.CallOption) (*MsgBorrowAssetResponse, error) - // RepayAsset defines a method for repaying borrowed coins to the capital facility. + // RepayAsset defines a method for repaying borrowed coins to the capital + // facility. RepayAsset(ctx context.Context, in *MsgRepayAsset, opts ...grpc.CallOption) (*MsgRepayAssetResponse, error) - // Liquidate defines a method for repaying a different user's borrowed coins to - // the capital facility in exchange for some of their collateral. + // Liquidate defines a method for repaying a different user's borrowed coins + // to the capital facility in exchange for some of their collateral. Liquidate(ctx context.Context, in *MsgLiquidate, opts ...grpc.CallOption) (*MsgLiquidateResponse, error) } @@ -785,10 +786,11 @@ type MsgServer interface { SetCollateral(context.Context, *MsgSetCollateral) (*MsgSetCollateralResponse, error) // BorrowAsset defines a method for borrowing coins from the capital facility. BorrowAsset(context.Context, *MsgBorrowAsset) (*MsgBorrowAssetResponse, error) - // RepayAsset defines a method for repaying borrowed coins to the capital facility. + // RepayAsset defines a method for repaying borrowed coins to the capital + // facility. RepayAsset(context.Context, *MsgRepayAsset) (*MsgRepayAssetResponse, error) - // Liquidate defines a method for repaying a different user's borrowed coins to - // the capital facility in exchange for some of their collateral. + // Liquidate defines a method for repaying a different user's borrowed coins + // to the capital facility in exchange for some of their collateral. Liquidate(context.Context, *MsgLiquidate) (*MsgLiquidateResponse, error) } diff --git a/x/oracle/types/genesis.pb.go b/x/oracle/types/genesis.pb.go index b87b2a3354..f7d6240960 100644 --- a/x/oracle/types/genesis.pb.go +++ b/x/oracle/types/genesis.pb.go @@ -5,7 +5,6 @@ package types import ( fmt "fmt" - _ "github.com/cosmos/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" io "io" @@ -227,38 +226,37 @@ func init() { func init() { proto.RegisterFile("umee/oracle/v1/genesis.proto", fileDescriptor_c99b4af40468acc1) } var fileDescriptor_c99b4af40468acc1 = []byte{ - // 496 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x3f, 0x6f, 0xd3, 0x40, - 0x14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0xae, 0x1e, - 0xe9, 0x22, 0xbd, 0x4f, 0x76, 0x73, 0x36, 0x8d, 0x43, 0x26, 0xf9, 0x12, 0xb9, 0xa1, 0x90, 0x3b, - 0x97, 0x0d, 0x03, 0xee, 0x7f, 0x20, 0xcd, 0xd2, 0xa5, 0x5c, 0xcd, 0xb5, 0xae, 0xe6, 0xd2, 0x3b, - 0xa4, 0x55, 0xde, 0x00, 0xe5, 0x51, 0xf7, 0x9a, 0xa5, 0x1b, 0x1d, 0xbd, 0x3a, 0x9b, 0xdb, 0xd6, - 0xf9, 0xdc, 0xb6, 0xfe, 0xcc, 0x6d, 0xeb, 0xfb, 0xc2, 0xae, 0x9d, 0x2f, 0xec, 0xda, 0xcf, 0x85, - 0x5d, 0x7b, 0xef, 0x44, 0xb1, 0x3c, 0x99, 0x8d, 0x9d, 0x80, 0x27, 0x6e, 0x71, 0x6e, 0x87, 0xe6, - 0x10, 0xd5, 0x8f, 0x9b, 0x0f, 0xdd, 0xd3, 0x8b, 0x07, 0x2c, 0x3f, 0x67, 0x80, 0xe3, 0x86, 0x7a, - 0x9d, 0x0f, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0x7f, 0xba, 0xb4, 0x9d, 0x2c, 0x04, 0x00, 0x00, + // 479 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0xcd, 0x6e, 0xd3, 0x40, + 0x10, 0x8e, 0xdb, 0x34, 0x12, 0x9b, 0xa4, 0x6a, 0x57, 0x1c, 0x22, 0x43, 0xdd, 0x10, 0x09, 0x51, + 0x09, 0x6a, 0xab, 0x41, 0x48, 0x1c, 0x69, 0xf8, 0xbd, 0x20, 0x55, 0x06, 0x71, 0x40, 0x42, 0xd6, + 0x36, 0x9e, 0xb8, 0x16, 0xb1, 0xd7, 0xda, 0x59, 0x9b, 0x72, 0xe1, 0xc2, 0x81, 0x2b, 0xcf, 0xc1, + 0x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x77, 0x1a, + 0xef, 0xdd, 0x28, 0x96, 0x27, 0xf9, 0xb1, 0x3b, 0xe6, 0x89, 0x57, 0xbe, 0xdb, 0xbe, 0x79, 0x44, + 0x75, 0xf1, 0x8a, 0xa1, 0x77, 0x7a, 0xf1, 0x41, 0xe5, 0xe7, 0x0c, 0xf0, 0xb8, 0xa5, 0x7e, 0xe7, + 0xc3, 0xbf, 0x01, 0x00, 0x00, 0xff, 0xff, 0xce, 0xf8, 0x36, 0xb4, 0x0c, 0x04, 0x00, 0x00, } func (m *GenesisState) Marshal() (dAtA []byte, err error) { diff --git a/x/oracle/types/oracle.pb.go b/x/oracle/types/oracle.pb.go index 901c69b05c..4b67c4832a 100644 --- a/x/oracle/types/oracle.pb.go +++ b/x/oracle/types/oracle.pb.go @@ -5,7 +5,6 @@ package types import ( fmt "fmt" - _ "github.com/cosmos/cosmos-sdk/types" github_com_cosmos_cosmos_sdk_types "github.com/cosmos/cosmos-sdk/types" _ "github.com/gogo/protobuf/gogoproto" proto "github.com/gogo/protobuf/proto" @@ -267,57 +266,56 @@ func init() { func init() { proto.RegisterFile("umee/oracle/v1/oracle.proto", fileDescriptor_8893c9e0e94ceb54) } var fileDescriptor_8893c9e0e94ceb54 = []byte{ - // 795 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0xbf, 0x6f, 0xc3, 0x44, - 0x14, 0x8e, 0x69, 0x1b, 0x9a, 0x4b, 0x42, 0xa9, 0x9b, 0x82, 0x49, 0x51, 0xdc, 0x1e, 0xa2, 0x74, - 0xa9, 0xad, 0x16, 0x24, 0x44, 0x36, 0xac, 0x50, 0x18, 0x40, 0x8a, 0xac, 0xaa, 0x48, 0x2c, 0xd6, - 0xd9, 0x3e, 0x12, 0x2b, 0xb6, 0x2f, 0x3a, 0x5f, 0x92, 0x76, 0x61, 0x66, 0x64, 0x44, 0x4c, 0x99, - 0xd9, 0x41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, 0x3f, 0x89, 0x98, 0xe7, 0xc7, 0x24, 0x18, 0x09, 0xc1, - 0xcb, 0xd7, 0x5d, 0x42, 0x79, 0xa3, 0x22, 0x74, 0x78, 0xf4, 0x4c, 0xf7, 0x5f, 0x1a, 0x78, 0x6b, - 0xad, 0xee, 0x2b, 0x2e, 0xfa, 0x07, 0x0d, 0xb4, 0xb0, 0xda, 0xf4, 0x28, 0xe2, 0xff, 0x15, 0x93, - 0x71, 0x8c, 0x33, 0x43, 0x13, 0xd3, 0x73, 0xfa, 0x6f, 0xd3, 0x53, 0x26, 0xbb, 0xe4, 0x59, 0xce, - 0x47, 0x6a, 0x92, 0x0e, 0x16, 0xa6, 0xae, 0x12, 0xf3, 0x91, 0xd2, 0x57, 0x32, 0x33, 0x57, 0xc7, - 0x2b, 0x7b, 0xff, 0xd5, 0xac, 0x67, 0x0d, 0xff, 0xac, 0x81, 0xdd, 0x95, 0x02, 0x9c, 0xab, 0xfc, - 0xd4, 0x4a, 0x5c, 0xea, 0xad, 0x48, 0x58, 0x1f, 0x81, 0xe6, 0x92, 0x6c, 0x55, 0xfb, 0xe2, 0xc5, - 0x43, 0xd2, 0x5a, 0xe3, 0x01, 0x74, 0x1b, 0xe5, 0x36, 0x97, 0x85, 0x3b, 0x9f, 0xdd, 0xde, 0x77, - 0xb4, 0xbb, 0xfb, 0x8e, 0xf6, 0xc7, 0x7d, 0x47, 0xfb, 0xee, 0xa1, 0x53, 0xb9, 0x7b, 0xe8, 0x54, - 0x7e, 0x7d, 0xe8, 0x54, 0xbe, 0xb2, 0x4a, 0x55, 0xf9, 0x25, 0x9c, 0xaa, 0x1b, 0x11, 0x81, 0x3d, - 0x3d, 0xb7, 0xaf, 0x17, 0x5f, 0x39, 0xa1, 0xc0, 0xaf, 0x8a, 0x0f, 0xd2, 0xfb, 0x7f, 0x07, 0x00, - 0x00, 0xff, 0xff, 0x30, 0x14, 0x6d, 0x43, 0x01, 0x07, 0x00, 0x00, + // 783 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x55, 0x41, 0x6f, 0xd3, 0x48, + 0x14, 0x8e, 0xb7, 0x6d, 0xb6, 0x99, 0x24, 0xdb, 0xad, 0x9b, 0xee, 0x7a, 0xdb, 0x55, 0xdc, 0x0e, + 0xa2, 0xf4, 0x52, 0x5b, 0x2d, 0x48, 0x88, 0xdc, 0xb0, 0x42, 0xe1, 0x00, 0x52, 0x64, 0x55, 0x45, + 0xe2, 0x62, 0x8d, 0xed, 0x21, 0xb1, 0x62, 0x7b, 0xa2, 0xb1, 0x93, 0xb4, 0x17, 0xce, 0x1c, 0x39, + 0x22, 0x4e, 0x39, 0x73, 0x07, 0xf1, 0x13, 0x7a, 0xec, 0x11, 0x71, 0x30, 0xa8, 0xbd, 0x70, 0xe2, + 0xe0, 0x5f, 0x80, 0x66, 0x3c, 0x69, 0x9d, 0x26, 0x20, 0x2a, 0x4e, 0x99, 0x37, 0xdf, 0xbc, 0xef, + 0x7d, 0xef, 0x9b, 0x79, 0x31, 0x58, 0xef, 0x07, 0x18, 0xeb, 0x84, 0x22, 0xc7, 0xc7, 0xfa, 0x60, + 0x57, 0xac, 0xb4, 0x1e, 0x25, 0x31, 0x91, 0xd7, 0x18, 0x18, 0xe2, 0x78, 0x48, 0x68, 0x57, 0x63, + 0x6b, 0x4d, 0xc0, 0x83, 0xdd, 0xb5, 0x5a, 0x9b, 0xb4, 0x09, 0x3f, 0xa6, 0xb3, 0x55, 0x96, 0x01, + 0x47, 0x45, 0x50, 0x6c, 0x21, 0x8a, 0x82, 0x48, 0xbe, 0x0b, 0xca, 0x03, 0x12, 0x63, 0xab, 0x87, + 0xa9, 0x47, 0x5c, 0x45, 0xda, 0x90, 0xb6, 0xe7, 0x8d, 0x7f, 0xd2, 0x44, 0x95, 0x8f, 0x51, 0xe0, + 0x37, 0x60, 0x0e, 0x84, 0x26, 0x60, 0x51, 0x8b, 0x07, 0x72, 0x08, 0xfe, 0xe2, 0x58, 0xdc, 0xa1, + 0x38, 0xea, 0x10, 0xdf, 0x55, 0xfe, 0xd8, 0x90, 0xb6, 0x4b, 0xc6, 0xc3, 0x93, 0x44, 0x2d, 0x7c, + 0x4a, 0xd4, 0xad, 0xb6, 0x17, 0x77, 0xfa, 0xb6, 0xe6, 0x90, 0x40, 0x77, 0x48, 0x14, 0x90, 0x48, + 0xfc, 0xec, 0x44, 0x6e, 0x57, 0x8f, 0x8f, 0x7b, 0x38, 0xd2, 0x9a, 0xd8, 0x49, 0x13, 0x75, 0x35, + 0x57, 0xe9, 0x82, 0x0d, 0x9a, 0x55, 0xb6, 0x71, 0x30, 0x8e, 0x65, 0x0c, 0xca, 0x14, 0x0f, 0x11, + 0x75, 0x2d, 0x1b, 0x85, 0xae, 0x32, 0xc7, 0x8b, 0x35, 0xaf, 0x5d, 0x4c, 0xb4, 0x95, 0xa3, 0x82, + 0x26, 0xc8, 0x22, 0x03, 0x85, 0xae, 0xec, 0x80, 0x35, 0x81, 0xb9, 0x5e, 0x14, 0x53, 0xcf, 0xee, + 0xc7, 0x1e, 0x09, 0xad, 0xa1, 0x17, 0xba, 0x64, 0xa8, 0xcc, 0x73, 0x7b, 0x6e, 0xa6, 0x89, 0xba, + 0x39, 0xc1, 0x33, 0xe3, 0x2c, 0x34, 0x95, 0x0c, 0x6c, 0xe6, 0xb0, 0xa7, 0x1c, 0x92, 0xbb, 0xa0, + 0x8c, 0x1c, 0x07, 0xf7, 0x62, 0xcb, 0xf7, 0xa2, 0x58, 0x59, 0xd8, 0x98, 0xdb, 0x2e, 0xef, 0x6d, + 0x6a, 0x3f, 0xbe, 0x47, 0xad, 0x89, 0x43, 0x12, 0x18, 0xb7, 0x58, 0xbb, 0x97, 0x4d, 0xe4, 0x38, + 0xe0, 0xdb, 0xcf, 0x6a, 0x89, 0x1f, 0x7a, 0xec, 0x45, 0xb1, 0x09, 0x32, 0x88, 0xad, 0xd9, 0x45, + 0x45, 0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 0xea, 0xd2, 0xab, 0xf3, 0x7a, + 0xe1, 0xf4, 0xbc, 0x5e, 0xf8, 0x78, 0x5e, 0x2f, 0x3c, 0xd3, 0x72, 0x55, 0xd9, 0x25, 0xec, 0x88, + 0x1b, 0xe1, 0x81, 0x3e, 0xd8, 0xd3, 0x8f, 0xc6, 0x5f, 0x31, 0xae, 0xc0, 0x2e, 0xf2, 0x0f, 0xd2, + 0xed, 0xef, 0x01, 0x00, 0x00, 0xff, 0xff, 0xec, 0x77, 0x7a, 0x0e, 0xe1, 0x06, 0x00, 0x00, } func (this *Params) Equal(that interface{}) bool { diff --git a/x/oracle/types/query.pb.go b/x/oracle/types/query.pb.go index 3b12c22cce..e2ce49b83f 100644 --- a/x/oracle/types/query.pb.go +++ b/x/oracle/types/query.pb.go @@ -119,7 +119,8 @@ func (m *QueryExchangeRatesResponse) GetExchangeRates() github_com_cosmos_cosmos return nil } -// QueryActiveExchangeRatesRequest is the request type for the Query/ActiveExchangeRates RPC method. +// QueryActiveExchangeRatesRequest is the request type for the +// Query/ActiveExchangeRates RPC method. type QueryActiveExchangeRatesRequest struct { }