From 879178be2fe6102d4f9f0e61ae7523a5226d7eee Mon Sep 17 00:00:00 2001 From: HuangYi Date: Thu, 27 Oct 2022 22:19:12 +0800 Subject: [PATCH] add comment to chain id --- docs/api/proto-docs.md | 6 +++--- proto/ethermint/evm/v1/query.proto | 3 +++ x/evm/types/query.pb.go | 9 ++++++--- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/docs/api/proto-docs.md b/docs/api/proto-docs.md index bf3f82e0a7..4a908bef5c 100644 --- a/docs/api/proto-docs.md +++ b/docs/api/proto-docs.md @@ -563,7 +563,7 @@ EthCallRequest defines EthCall request | `args` | [bytes](#bytes) | | same json format as the json rpc api. | | `gas_cap` | [uint64](#uint64) | | the default gas cap to be used | | `proposer_address` | [bytes](#bytes) | | the proposer of the requested block | -| `chain_id` | [string](#string) | | | +| `chain_id` | [string](#string) | | the full chain id in the requested block header | @@ -794,7 +794,7 @@ QueryTraceBlockRequest defines TraceTx request | `block_hash` | [string](#string) | | block hex hash | | `block_time` | [google.protobuf.Timestamp](#google.protobuf.Timestamp) | | block time | | `proposer_address` | [bytes](#bytes) | | the proposer of the requested block | -| `chain_id` | [string](#string) | | | +| `chain_id` | [string](#string) | | the full chain id in the requested block header | @@ -831,7 +831,7 @@ QueryTraceTxRequest defines TraceTx request | `block_hash` | [string](#string) | | block hex hash of requested transaction | | `block_time` | [google.protobuf.Timestamp](#google.protobuf.Timestamp) | | block time of requested transaction | | `proposer_address` | [bytes](#bytes) | | the proposer of the requested block | -| `chain_id` | [string](#string) | | | +| `chain_id` | [string](#string) | | the full chain id in the requested block header | diff --git a/proto/ethermint/evm/v1/query.proto b/proto/ethermint/evm/v1/query.proto index 1659295fe2..02bf825201 100644 --- a/proto/ethermint/evm/v1/query.proto +++ b/proto/ethermint/evm/v1/query.proto @@ -223,6 +223,7 @@ message EthCallRequest { uint64 gas_cap = 2; // the proposer of the requested block bytes proposer_address = 3 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ConsAddress"]; + // the full chain id in the requested block header string chain_id = 4; } @@ -252,6 +253,7 @@ message QueryTraceTxRequest { google.protobuf.Timestamp block_time = 7 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; // the proposer of the requested block bytes proposer_address = 8 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ConsAddress"]; + // the full chain id in the requested block header string chain_id = 9; } @@ -275,6 +277,7 @@ message QueryTraceBlockRequest { google.protobuf.Timestamp block_time = 7 [(gogoproto.nullable) = false, (gogoproto.stdtime) = true]; // the proposer of the requested block bytes proposer_address = 8 [(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.ConsAddress"]; + // the full chain id in the requested block header string chain_id = 9; } diff --git a/x/evm/types/query.pb.go b/x/evm/types/query.pb.go index a5616c40ee..608aac1444 100644 --- a/x/evm/types/query.pb.go +++ b/x/evm/types/query.pb.go @@ -794,7 +794,8 @@ type EthCallRequest struct { GasCap uint64 `protobuf:"varint,2,opt,name=gas_cap,json=gasCap,proto3" json:"gas_cap,omitempty"` // the proposer of the requested block ProposerAddress github_com_cosmos_cosmos_sdk_types.ConsAddress `protobuf:"bytes,3,opt,name=proposer_address,json=proposerAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ConsAddress" json:"proposer_address,omitempty"` - ChainId string `protobuf:"bytes,4,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + // the full chain id in the requested block header + ChainId string `protobuf:"bytes,4,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` } func (m *EthCallRequest) Reset() { *m = EthCallRequest{} } @@ -921,7 +922,8 @@ type QueryTraceTxRequest struct { BlockTime time.Time `protobuf:"bytes,7,opt,name=block_time,json=blockTime,proto3,stdtime" json:"block_time"` // the proposer of the requested block ProposerAddress github_com_cosmos_cosmos_sdk_types.ConsAddress `protobuf:"bytes,8,opt,name=proposer_address,json=proposerAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ConsAddress" json:"proposer_address,omitempty"` - ChainId string `protobuf:"bytes,9,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + // the full chain id in the requested block header + ChainId string `protobuf:"bytes,9,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` } func (m *QueryTraceTxRequest) Reset() { *m = QueryTraceTxRequest{} } @@ -1073,7 +1075,8 @@ type QueryTraceBlockRequest struct { BlockTime time.Time `protobuf:"bytes,7,opt,name=block_time,json=blockTime,proto3,stdtime" json:"block_time"` // the proposer of the requested block ProposerAddress github_com_cosmos_cosmos_sdk_types.ConsAddress `protobuf:"bytes,8,opt,name=proposer_address,json=proposerAddress,proto3,casttype=github.com/cosmos/cosmos-sdk/types.ConsAddress" json:"proposer_address,omitempty"` - ChainId string `protobuf:"bytes,9,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` + // the full chain id in the requested block header + ChainId string `protobuf:"bytes,9,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` } func (m *QueryTraceBlockRequest) Reset() { *m = QueryTraceBlockRequest{} }