build: update makefile proto (#647)

* build: update makefile proto

* updates

* revert swagger-gen
This commit is contained in:
Federico Kunze Küllmer
2021-10-07 13:02:31 +02:00
committed by GitHub
parent 360e08265c
commit be7a711f66
12 changed files with 64 additions and 30 deletions
+5 -3
View File
@@ -198,16 +198,18 @@ message AccessTuple {
// TraceConfig holds extra parameters to trace functions.
message TraceConfig {
// DEPRECATED: DisableMemory and DisableReturnData have been renamed to Enable*.
// DEPRECATED: DisableMemory and DisableReturnData have been renamed to
// Enable*.
reserved 4, 7;
reserved "disable_memory", "disable_return_data";
// custom javascript tracer
string tracer = 1;
// overrides the default timeout of 5 seconds for JavaScript-based tracing calls
// overrides the default timeout of 5 seconds for JavaScript-based tracing
// calls
string timeout = 2;
// number of blocks the tracer is willing to go back
uint64 reexec = 3;
uint64 reexec = 3;
// disable stack capture
bool disable_stack = 5 [ (gogoproto.jsontag) = "disableStack" ];
// disable storage capture
+1 -1
View File
@@ -11,7 +11,7 @@ message GenesisState {
// accounts is an array containing the ethereum genesis accounts.
repeated GenesisAccount accounts = 1 [ (gogoproto.nullable) = false ];
// params defines all the paramaters of the module.
Params params = 2 [(gogoproto.nullable) = false];
Params params = 2 [ (gogoproto.nullable) = false ];
}
// GenesisAccount defines an account to be initialized in the genesis state.
+5 -8
View File
@@ -19,8 +19,7 @@ service Query {
// CosmosAccount queries an Ethereum account's Cosmos Address.
rpc CosmosAccount(QueryCosmosAccountRequest)
returns (QueryCosmosAccountResponse) {
option (google.api.http).get =
"/ethermint/evm/v1/cosmos_account/{address}";
option (google.api.http).get = "/ethermint/evm/v1/cosmos_account/{address}";
}
// ValidatorAccount queries an Ethereum account's from a validator consensus
@@ -39,8 +38,7 @@ service Query {
// Storage queries the balance of all coins for a single account.
rpc Storage(QueryStorageRequest) returns (QueryStorageResponse) {
option (google.api.http).get =
"/ethermint/evm/v1/storage/{address}/{key}";
option (google.api.http).get = "/ethermint/evm/v1/storage/{address}/{key}";
}
// Code queries the balance of all coins for a single account.
@@ -52,7 +50,7 @@ service Query {
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
option (google.api.http).get = "/ethermint/evm/v1/params";
}
// EthCall implements the `eth_call` rpc api
rpc EthCall(EthCallRequest) returns (MsgEthereumTxResponse) {
option (google.api.http).get = "/ethermint/evm/v1/eth_call";
@@ -215,9 +213,8 @@ message EthCallRequest {
// the default gas cap to be used
uint64 gas_cap = 2;
// header base fee used to generate the transaction
string base_fee = 3 [
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"
];
string base_fee = 3
[ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int" ];
}
// EstimateGasResponse defines EstimateGas response
+4 -2
View File
@@ -7,9 +7,11 @@ option go_package = "github.com/tharsis/ethermint/x/feemarket/types";
message Params {
// no base fee forces the EIP-1559 base fee to 0 (needed for 0 price calls)
bool no_base_fee = 1;
// base fee change denominator bounds the amount the base fee can change between blocks.
// base fee change denominator bounds the amount the base fee can change
// between blocks.
uint32 base_fee_change_denominator = 2;
// elasticity multiplier bounds the maximum gas limit an EIP-1559 block may have.
// elasticity multiplier bounds the maximum gas limit an EIP-1559 block may
// have.
uint32 elasticity_multiplier = 3;
// initial base fee for EIP-1559 blocks.
int64 initial_base_fee = 4;
+1 -1
View File
@@ -9,7 +9,7 @@ option go_package = "github.com/tharsis/ethermint/x/feemarket/types";
// GenesisState defines the feemarket module's genesis state.
message GenesisState {
// params defines all the paramaters of the module.
Params params = 1 [(gogoproto.nullable) = false];
Params params = 1 [ (gogoproto.nullable) = false ];
// base fee is the exported value from previous software version.
// Zero by default.
string base_fee = 2 [
+4 -8
View File
@@ -14,7 +14,7 @@ service Query {
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
option (google.api.http).get = "/feemarket/evm/v1/params";
}
// BaseFee queries the base fee of the parent block of the current block.
rpc BaseFee(QueryBaseFeeRequest) returns (QueryBaseFeeResponse) {
option (google.api.http).get = "/feemarket/evm/v1/base_fee";
@@ -41,17 +41,13 @@ message QueryBaseFeeRequest {}
// BaseFeeResponse returns the EIP1559 base fee.
message QueryBaseFeeResponse {
string base_fee = 1 [
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int"
];
string base_fee = 1
[ (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Int" ];
}
// QueryBlockGasRequest defines the request type for querying the EIP1559 base
// fee.
message QueryBlockGasRequest {}
// QueryBlockGasResponse returns block gas used for a given height.
message QueryBlockGasResponse {
int64 gas = 1;
}
message QueryBlockGasResponse { int64 gas = 1; }
+2 -2
View File
@@ -17,9 +17,9 @@ message ExtensionOptionsWeb3Tx {
// fee payer is an account address for the fee payer. It will be validated
// during EIP712 signature checking.
string fee_payer = 2 [(gogoproto.jsontag) = "feePayer,omitempty"];
string fee_payer = 2 [ (gogoproto.jsontag) = "feePayer,omitempty" ];
// fee payer sig is a signature data from the fee paying account,
// allows to perform fee delegation when using EIP712 Domain.
bytes fee_payer_sig = 3 [(gogoproto.jsontag) = "feePayerSig,omitempty"];
bytes fee_payer_sig = 3 [ (gogoproto.jsontag) = "feePayerSig,omitempty" ];
}