2021-08-26 10:08:11 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package ethermint.feemarket.v1;
|
|
|
|
|
|
|
|
import "gogoproto/gogo.proto";
|
|
|
|
// import "cosmos/base/query/v1beta1/pagination.proto";
|
|
|
|
import "google/api/annotations.proto";
|
|
|
|
import "ethermint/feemarket/v1/feemarket.proto";
|
|
|
|
|
2022-10-13 06:16:53 +00:00
|
|
|
option go_package = "github.com/cerc-io/laconicd/x/feemarket/types";
|
2021-08-26 10:08:11 +00:00
|
|
|
|
|
|
|
// Query defines the gRPC querier service.
|
|
|
|
service Query {
|
|
|
|
// Params queries the parameters of x/feemarket module.
|
|
|
|
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
|
2022-10-10 10:38:33 +00:00
|
|
|
option (google.api.http).get = "/ethermint/feemarket/v1/params";
|
2021-08-26 10:08:11 +00:00
|
|
|
}
|
2021-10-07 11:02:31 +00:00
|
|
|
|
2021-08-26 10:08:11 +00:00
|
|
|
// BaseFee queries the base fee of the parent block of the current block.
|
|
|
|
rpc BaseFee(QueryBaseFeeRequest) returns (QueryBaseFeeResponse) {
|
2022-10-10 10:38:33 +00:00
|
|
|
option (google.api.http).get = "/ethermint/feemarket/v1/base_fee";
|
2021-08-26 10:08:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// BlockGas queries the gas used at a given block height
|
|
|
|
rpc BlockGas(QueryBlockGasRequest) returns (QueryBlockGasResponse) {
|
2022-10-10 10:38:33 +00:00
|
|
|
option (google.api.http).get = "/ethermint/feemarket/v1/block_gas";
|
2021-08-26 10:08:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// QueryParamsRequest defines the request type for querying x/evm parameters.
|
|
|
|
message QueryParamsRequest {}
|
|
|
|
|
|
|
|
// QueryParamsResponse defines the response type for querying x/evm parameters.
|
|
|
|
message QueryParamsResponse {
|
|
|
|
// params define the evm module parameters.
|
2022-10-10 10:38:33 +00:00
|
|
|
Params params = 1 [(gogoproto.nullable) = false];
|
2021-08-26 10:08:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// QueryBaseFeeRequest defines the request type for querying the EIP1559 base
|
|
|
|
// fee.
|
|
|
|
message QueryBaseFeeRequest {}
|
|
|
|
|
|
|
|
// BaseFeeResponse returns the EIP1559 base fee.
|
|
|
|
message QueryBaseFeeResponse {
|
2022-10-10 10:38:33 +00:00
|
|
|
string base_fee = 1 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"];
|
2021-08-26 10:08:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// QueryBlockGasRequest defines the request type for querying the EIP1559 base
|
|
|
|
// fee.
|
|
|
|
message QueryBlockGasRequest {}
|
|
|
|
|
|
|
|
// QueryBlockGasResponse returns block gas used for a given height.
|
2022-10-10 10:38:33 +00:00
|
|
|
message QueryBlockGasResponse {
|
|
|
|
int64 gas = 1;
|
|
|
|
}
|