Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
excludelist+=" $(find ./ -type f -name '*.pb.go')"
excludelist+=" $(find ./ -type f -name '*.pb.gw.go')"
excludelist+=" $(find ./ -type f -path './tests/mocks/*.go')"
excludelist+=" $(find ./ -type f -path './x/interchainquery/*.go')"
excludelist+=" $(find ./ -type f -path './x/oracle/*.go')"
for filename in ${excludelist}; do
filename=$(echo $filename | sed 's/^./github.com\/persistenceOne\/persistence-sdk/g')
echo "Excluding ${filename} from coverage report..."
Expand Down
6 changes: 6 additions & 0 deletions proto/persistence/interchainquery/v1beta1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import "gogoproto/gogo.proto";
option go_package = "github.com/persistenceOne/persistence-sdk/v3/x/interchainquery/types";

message Query {
option deprecated = true;

string id = 1;
string connection_id = 2;
string chain_id = 3;
Expand All @@ -29,6 +31,8 @@ message Query {
}

message DataPoint {
option deprecated = true;

string id = 1;
// change these to uint64 in v0.5.0
string remote_height = 2 [
Expand All @@ -44,5 +48,7 @@ message DataPoint {

// GenesisState defines the epochs module's genesis state.
message GenesisState {
option deprecated = true;

repeated Query queries = 1 [ (gogoproto.nullable) = false ];
}
7 changes: 6 additions & 1 deletion proto/persistence/interchainquery/v1beta1/messages.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ option go_package = "github.com/persistenceOne/persistence-sdk/v3/x/interchainqu

// Msg defines the interchainquery Msg service.
service Msg {
option deprecated = true;

// SubmitQueryResponse defines a method for submit query responses.
rpc SubmitQueryResponse(MsgSubmitQueryResponse)
returns (MsgSubmitQueryResponseResponse) {
Expand All @@ -21,6 +23,7 @@ service Msg {

// MsgSubmitQueryResponse represents a message type to fulfil a query request.
message MsgSubmitQueryResponse {
option deprecated = true;
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
option (gogoproto.goproto_stringer) = true;
Expand All @@ -36,4 +39,6 @@ message MsgSubmitQueryResponse {

// MsgSubmitQueryResponseResponse defines the MsgSubmitQueryResponse response
// type.
message MsgSubmitQueryResponseResponse {}
message MsgSubmitQueryResponseResponse {
option deprecated = true;
}
5 changes: 5 additions & 0 deletions proto/persistence/interchainquery/v1beta1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ option go_package = "github.com/persistenceOne/persistence-sdk/v3/x/interchainqu

// Query provides defines the gRPC querier service.
service QuerySrvr {
option deprecated = true;

// Params returns the total set of minting parameters.
rpc Queries(QueryRequestsRequest) returns (QueryRequestsResponse) {
option (google.api.http).get =
Expand All @@ -23,12 +25,14 @@ service QuerySrvr {

// QueryParamsRequest is the request type for the Query/Params RPC method.
message QueryRequestsRequest {
option deprecated = true;
cosmos.base.query.v1beta1.PageRequest pagination = 1;
string chain_id = 2;
}

// QueryParamsResponse is the response type for the Query/Params RPC method.
message QueryRequestsResponse {
option deprecated = true;
// params defines the parameters of the module.
repeated persistence.interchainquery.v1beta1.Query queries = 1
[(gogoproto.nullable) = false];
Expand All @@ -37,6 +41,7 @@ message QueryRequestsResponse {

// GetTxResponse is the response type for the Service.GetTx method.
message GetTxWithProofResponse {
option deprecated = true;
// tx is the queried transaction.
cosmos.tx.v1beta1.Tx tx = 1;
// tx_response is the queried TxResponses.
Expand Down
6 changes: 6 additions & 0 deletions proto/persistence/oracle/v1beta1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ option go_package = "github.com/persistenceOne/persistence-sdk/v3/x/oracle/types

// GenesisState defines the oracle module's genesis state.
message GenesisState {
option deprecated = true;

Params params = 1 [(gogoproto.nullable) = false];
repeated FeederDelegation feeder_delegations = 2 [(gogoproto.nullable) = false];
repeated ExchangeRateTuple exchange_rates = 3
Expand All @@ -22,6 +24,8 @@ message GenesisState {
// delegated to. By default this struct is only used at genesis to feed in
// default feeder addresses.
message FeederDelegation {
option deprecated = true;

string feeder_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string validator_address = 2 [(cosmos_proto.scalar) = "cosmos.AddressString"];
}
Expand All @@ -30,6 +34,8 @@ message FeederDelegation {
// oracle module's genesis state. It stores the number of vote periods missed by a validator
// in a slash window.
message MissCounter {
option deprecated = true;

string validator_address = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
uint64 miss_counter = 2;
}
6 changes: 6 additions & 0 deletions proto/persistence/oracle/v1beta1/oracle.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ option go_package = "github.com/persistenceOne/persistence-sdk/v3/x/oracle/types
// Params defines the parameters for the oracle module.
// https://classic-docs.terra.money/docs/develop/module-specifications/spec-oracle.html#parameters
message Params {
option deprecated = true;

option (gogoproto.equal) = true;
option (gogoproto.goproto_stringer) = false;

Expand Down Expand Up @@ -44,6 +46,7 @@ message Params {

// Denom - the object to hold configurations of each denom
message Denom {
option deprecated = true;
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
option (gogoproto.goproto_stringer) = false;
Expand All @@ -59,6 +62,7 @@ message Denom {
// which is formatted as hex string in SHA256("{salt}:{exchange
// rate}{denom},...,{exchange rate}{denom}:{voter}")
message AggregateExchangeRatePrevote {
option deprecated = true;
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
option (gogoproto.goproto_stringer) = false;
Expand All @@ -74,6 +78,7 @@ message AggregateExchangeRatePrevote {
// AggregateExchangeRateVote - struct for voting on
// the exchange rates of USD denominated in various assets.
message AggregateExchangeRateVote {
option deprecated = true;
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
option (gogoproto.goproto_stringer) = false;
Expand All @@ -92,6 +97,7 @@ message AggregateExchangeRateVote {

// ExchangeRateTuple - struct to store interpreted exchange rates data to store
message ExchangeRateTuple {
option deprecated = true;
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
option (gogoproto.goproto_stringer) = false;
Expand Down
41 changes: 35 additions & 6 deletions proto/persistence/oracle/v1beta1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ option go_package = "github.com/persistenceOne/persistence-sdk/v3/x/oracle/types

// Query defines the gRPC querier service.
service Query {
option deprecated = true;
// ExchangeRates returns exchange rates of all denoms.
rpc AllExchangeRates(QueryAllExchangeRatesRequest) returns (QueryAllExchangeRatesResponse) {
option (google.api.http).get = "/persistence/oracle/v1beta1/denoms/all_exchange_rates";
Expand Down Expand Up @@ -70,6 +71,7 @@ service Query {
// QueryExchangeRateRequest is the request type for the Query/ExchangeRate RPC
// method.
message QueryExchangeRateRequest {
option deprecated = true;
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

Expand All @@ -80,6 +82,7 @@ message QueryExchangeRateRequest {
// QueryExchangeRateResponse is the request type for the Query/ExchangeRate RPC
// method.
message QueryExchangeRateResponse {
option deprecated = true;
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

Expand All @@ -89,23 +92,29 @@ message QueryExchangeRateResponse {

// QueryAllExchangeRatesRequest is the request type for the Query/ExchangeRate RPC
// method.
message QueryAllExchangeRatesRequest {}
message QueryAllExchangeRatesRequest {
option deprecated = true;
}

// QueryAllExchangeRatesResponse is response type for the
// Query/ExchangeRates RPC method.
message QueryAllExchangeRatesResponse {
option deprecated = true;
// 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];
}

// QueryActiveExchangeRatesRequest is the request type for the Query/ActiveExchangeRates RPC method.
message QueryActiveExchangeRatesRequest {}
message QueryActiveExchangeRatesRequest {
option deprecated = true;
}

// QueryActiveExchangeRatesResponse is response type for the
// Query/ActiveExchangeRates RPC method.
message QueryActiveExchangeRatesResponse {
option deprecated = true;
// activeRates defines a list of the denomination which oracle prices aggreed
// upon.
repeated string active_rates = 1;
Expand All @@ -115,6 +124,7 @@ message QueryActiveExchangeRatesResponse {
// QueryFeederDelegationRequest is the request type for the
// Query/FeederDelegation RPC method.
message QueryFeederDelegationRequest {
option deprecated = true;
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

Expand All @@ -125,13 +135,15 @@ message QueryFeederDelegationRequest {
// QueryFeederDelegationResponse is response type for the
// Query/FeederDelegation RPC method.
message QueryFeederDelegationResponse {
option deprecated = true;
// feeder_addr defines the feeder delegation of a validator
string feeder_addr = 1;
}

// QueryMissCounterRequest is the request type for the Query/MissCounter RPC
// method.
message QueryMissCounterRequest {
option deprecated = true;
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

Expand All @@ -142,13 +154,15 @@ message QueryMissCounterRequest {
// QueryMissCounterResponse is response type for the
// Query/MissCounter RPC method.
message QueryMissCounterResponse {
option deprecated = true;
// miss_counter defines the oracle miss counter of a validator
uint64 miss_counter = 1;
}

// QueryAggregatePrevoteRequest is the request type for the
// Query/AggregatePrevote RPC method.
message QueryAggregatePrevoteRequest {
option deprecated = true;
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

Expand All @@ -159,6 +173,7 @@ message QueryAggregatePrevoteRequest {
// QueryAggregatePrevoteResponse is response type for the
// Query/AggregatePrevote RPC method.
message QueryAggregatePrevoteResponse {
option deprecated = true;
// aggregate_prevote defines oracle aggregate prevote submitted by a validator
// in the current vote period
AggregateExchangeRatePrevote aggregate_prevote = 1 [(gogoproto.nullable) = false];
Expand All @@ -167,11 +182,14 @@ message QueryAggregatePrevoteResponse {

// QueryAggregatePrevotesRequest is the request type for the
// Query/AggregatePrevotes RPC method.
message QueryAggregatePrevotesRequest {}
message QueryAggregatePrevotesRequest {
option deprecated = true;
}

// QueryAggregatePrevotesResponse is response type for the
// Query/AggregatePrevotes RPC method.
message QueryAggregatePrevotesResponse {
option deprecated = true;
// aggregate_prevotes defines all oracle aggregate prevotes submitted in the
// current vote period
repeated AggregateExchangeRatePrevote aggregate_prevotes = 1 [(gogoproto.nullable) = false];
Expand All @@ -180,6 +198,7 @@ message QueryAggregatePrevotesResponse {
// QueryAggregateVoteRequest is the request type for the Query/AggregateVote RPC
// method.
message QueryAggregateVoteRequest {
option deprecated = true;
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;

Expand All @@ -190,35 +209,45 @@ message QueryAggregateVoteRequest {
// QueryAggregateVoteResponse is response type for the
// Query/AggregateVote RPC method.
message QueryAggregateVoteResponse {
option deprecated = true;
// aggregate_vote defines oracle aggregate vote submitted by a validator in
// the current vote period
AggregateExchangeRateVote aggregate_vote = 1 [(gogoproto.nullable) = false];
}

// QueryAggregateVotesRequest is the request type for the Query/AggregateVotes
// RPC method.
message QueryAggregateVotesRequest {}
message QueryAggregateVotesRequest {
option deprecated = true;
}

// QueryAggregateVotesResponse is response type for the
// Query/AggregateVotes RPC method.
message QueryAggregateVotesResponse {
option deprecated = true;
// aggregate_votes defines all oracle aggregate votes submitted in the current
// vote period
repeated AggregateExchangeRateVote aggregate_votes = 1 [(gogoproto.nullable) = false];
}

// QueryParamsRequest is the request type for the Query/Params RPC method.
message QueryParamsRequest {}
message QueryParamsRequest {
option deprecated = true;
}

// QueryParamsResponse is the response type for the Query/Params RPC method.
message QueryParamsResponse {
option deprecated = true;
// params defines the parameters of the module.
Params params = 1 [(gogoproto.nullable) = false];
}

message QueryRewardPoolBalanceRequest {}
message QueryRewardPoolBalanceRequest {
option deprecated = true;
}

message QueryRewardPoolBalanceResponse {
option deprecated = true;
// funds left in the reward pool
repeated cosmos.base.v1beta1.Coin remaining_funds = 1 [
(gogoproto.nullable) = false,
Expand Down
Loading
Loading