-
Notifications
You must be signed in to change notification settings - Fork 624
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
2,098 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,47 @@ | ||
syntax = "proto3"; | ||
package osmosis.txfees.v1beta1; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "google/api/annotations.proto"; | ||
import "cosmos/base/query/v1beta1/pagination.proto"; | ||
// this line is used by starport scaffolding # 1 | ||
import "google/protobuf/duration.proto"; | ||
|
||
import "osmosis/txfees/v1beta1/feetoken.proto"; | ||
|
||
option go_package = "github.com/osmosis-labs/osmosis/x/txfees/types"; | ||
|
||
// Query defines the gRPC querier service. | ||
service Query { | ||
// this line is used by starport scaffolding # 2 | ||
// GaugeIds takes the pool id and returns the matching gauge ids and durations | ||
rpc FeeTokens(QueryFeeTokensRequest) returns (QueryFeeTokensResponse) { | ||
option (google.api.http).get = "/osmosis/txfees/v1beta1/fee_tokens"; | ||
} | ||
|
||
rpc DenomPoolId(QueryDenomPoolIdRequest) returns (QueryDenomPoolIdResponse) { | ||
option (google.api.http).get = | ||
"/osmosis/txfees/v1beta1/denon_pool_id/{denom}"; | ||
} | ||
|
||
rpc BaseDenom(QueryBaseDenomRequest) returns (QueryBaseDenomResponse) { | ||
option (google.api.http).get = "/osmosis/txfees/v1beta1/base_denom"; | ||
} | ||
} | ||
|
||
message QueryFeeTokensRequest {} | ||
message QueryFeeTokensResponse { | ||
|
||
repeated FeeToken fee_tokens = 1 [ | ||
(gogoproto.moretags) = "yaml:\"fee_tokens\"", | ||
(gogoproto.nullable) = false | ||
]; | ||
} | ||
|
||
// this line is used by starport scaffolding # 3 | ||
message QueryDenomPoolIdRequest { | ||
string denom = 1 [ (gogoproto.moretags) = "yaml:\"denom\"" ]; | ||
} | ||
message QueryDenomPoolIdResponse { | ||
uint64 poolID = 1 [ (gogoproto.moretags) = "yaml:\"pool_id\"" ]; | ||
} | ||
|
||
message QueryBaseDenomRequest {} | ||
message QueryBaseDenomResponse { | ||
string base_denom = 1 [ (gogoproto.moretags) = "yaml:\"base_denom\"" ]; | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.