@@ -21,8 +21,10 @@ service Query {
21
21
22
22
// ValidatorAccount queries an Ethereum account's from a validator consensus
23
23
// Address.
24
- rpc ValidatorAccount (QueryValidatorAccountRequest ) returns (QueryValidatorAccountResponse ) {
25
- option (google.api.http ).get = "/nibiru/evm/v1/validator_account/{cons_address}" ;
24
+ rpc ValidatorAccount (QueryValidatorAccountRequest )
25
+ returns (QueryValidatorAccountResponse ) {
26
+ option (google.api.http ).get =
27
+ "/nibiru/evm/v1/validator_account/{cons_address}" ;
26
28
}
27
29
28
30
// Balance queries the balance of a the EVM denomination for a single
@@ -61,7 +63,8 @@ service Query {
61
63
option (google.api.http ).get = "/nibiru/evm/v1/trace_tx" ;
62
64
}
63
65
64
- // TraceBlock implements the `debug_traceBlockByNumber` and `debug_traceBlockByHash` rpc api
66
+ // TraceBlock implements the `debug_traceBlockByNumber` and
67
+ // `debug_traceBlockByHash` rpc api
65
68
rpc TraceBlock (QueryTraceBlockRequest ) returns (QueryTraceBlockResponse ) {
66
69
option (google.api.http ).get = "/nibiru/evm/v1/trace_block" ;
67
70
}
@@ -77,7 +80,8 @@ service Query {
77
80
option (google.api.http ).get = "/nibiru/evm/v1/base_fee" ;
78
81
}
79
82
80
- rpc FunTokenMapping (QueryFunTokenMappingRequest ) returns (QueryFunTokenMappingResponse ) {
83
+ rpc FunTokenMapping (QueryFunTokenMappingRequest )
84
+ returns (QueryFunTokenMappingResponse ) {
81
85
option (google.api.http ).get = "/nibiru/evm/v1/funtoken/{token}" ;
82
86
}
83
87
}
@@ -87,11 +91,13 @@ message QueryEthAccountRequest {
87
91
option (gogoproto.equal ) = false ;
88
92
option (gogoproto.goproto_getters ) = false ;
89
93
90
- // address is the Ethereum hex address or nibi Bech32 address to query the account for.
94
+ // address is the Ethereum hex address or nibi Bech32 address to query the
95
+ // account for.
91
96
string address = 1 ;
92
97
}
93
98
94
- // QueryEthAccountResponse is the response type for the Query/EthAccount RPC method.
99
+ // QueryEthAccountResponse is the response type for the Query/EthAccount RPC
100
+ // method.
95
101
message QueryEthAccountResponse {
96
102
// balance is the balance of unibi (micronibi).
97
103
string balance = 1 ;
@@ -102,8 +108,8 @@ message QueryEthAccountResponse {
102
108
// nonce is the account's sequence number.
103
109
uint64 nonce = 4 ;
104
110
105
- // eth_address: The hexadecimal-encoded string representing the 20 byte address
106
- // of a Nibiru EVM account.
111
+ // eth_address: The hexadecimal-encoded string representing the 20 byte
112
+ // address of a Nibiru EVM account.
107
113
string eth_address = 5 ;
108
114
109
115
// bech32_address is the nibi-prefixed address of the account that can receive
@@ -209,7 +215,7 @@ message QueryParamsRequest {}
209
215
// QueryParamsResponse defines the response type for querying x/evm parameters.
210
216
message QueryParamsResponse {
211
217
// params define the evm module parameters.
212
- Params params = 1 [(gogoproto.nullable ) = false ];
218
+ Params params = 1 [ (gogoproto.nullable ) = false ];
213
219
}
214
220
215
221
// EthCallRequest defines EthCall request
@@ -219,7 +225,8 @@ message EthCallRequest {
219
225
// gas_cap defines the default gas cap to be used
220
226
uint64 gas_cap = 2 ;
221
227
// proposer_address of the requested block in hex format
222
- bytes proposer_address = 3 [(gogoproto.casttype ) = "github.com/cosmos/cosmos-sdk/types.ConsAddress" ];
228
+ bytes proposer_address = 3
229
+ [ (gogoproto.casttype ) = "cosmossdk.io/types.ConsAddress" ];
223
230
// chain_id is the eip155 chain id parsed from the requested block header
224
231
int64 chain_id = 4 ;
225
232
}
@@ -247,9 +254,11 @@ message QueryTraceTxRequest {
247
254
// block_hash of requested transaction
248
255
string block_hash = 6 ;
249
256
// block_time of requested transaction
250
- google.protobuf.Timestamp block_time = 7 [(gogoproto.nullable ) = false , (gogoproto.stdtime ) = true ];
257
+ google.protobuf.Timestamp block_time = 7
258
+ [ (gogoproto.nullable ) = false , (gogoproto.stdtime ) = true ];
251
259
// proposer_address is the proposer of the requested block
252
- bytes proposer_address = 8 [(gogoproto.casttype ) = "github.com/cosmos/cosmos-sdk/types.ConsAddress" ];
260
+ bytes proposer_address = 8
261
+ [ (gogoproto.casttype ) = "cosmossdk.io/types.ConsAddress" ];
253
262
// chain_id is the the eip155 chain id parsed from the requested block header
254
263
int64 chain_id = 9 ;
255
264
// block_max_gas of the block of the requested transaction
@@ -273,9 +282,11 @@ message QueryTraceBlockRequest {
273
282
// block_hash (hex) of the traced block
274
283
string block_hash = 6 ;
275
284
// block_time of the traced block
276
- google.protobuf.Timestamp block_time = 7 [(gogoproto.nullable ) = false , (gogoproto.stdtime ) = true ];
285
+ google.protobuf.Timestamp block_time = 7
286
+ [ (gogoproto.nullable ) = false , (gogoproto.stdtime ) = true ];
277
287
// proposer_address is the address of the requested block
278
- bytes proposer_address = 8 [(gogoproto.casttype ) = "github.com/cosmos/cosmos-sdk/types.ConsAddress" ];
288
+ bytes proposer_address = 8
289
+ [ (gogoproto.casttype ) = "cosmossdk.io/types.ConsAddress" ];
279
290
// chain_id is the eip155 chain id parsed from the requested block header
280
291
int64 chain_id = 9 ;
281
292
// block_max_gas of the traced block
@@ -293,26 +304,28 @@ message QueryTraceBlockResponse {
293
304
message QueryBaseFeeRequest {}
294
305
295
306
// QueryBaseFeeResponse returns the EIP1559 base fee.
296
- // See https://github.com/ethereum/EIPs/blob/ba6c342c23164072adb500c3136e3ae6eabff306/EIPS/eip-1559.md.
307
+ // See
308
+ // https://github.com/ethereum/EIPs/blob/ba6c342c23164072adb500c3136e3ae6eabff306/EIPS/eip-1559.md.
297
309
message QueryBaseFeeResponse {
298
310
// base_fee is the EIP1559 base fee in units of wei.
299
- string base_fee = 1 [(gogoproto.customtype ) = "cosmossdk.io/math.Int" ];
311
+ string base_fee = 1 [ (gogoproto.customtype ) = "cosmossdk.io/math.Int" ];
300
312
// base_fee is the EIP1559 base fee in units of micronibi ("unibi").
301
- string base_fee_unibi = 2 [(gogoproto.customtype ) = "cosmossdk.io/math.Int" ];
313
+ string base_fee_unibi = 2
314
+ [ (gogoproto.customtype ) = "cosmossdk.io/math.Int" ];
302
315
}
303
316
304
317
message QueryFunTokenMappingRequest {
305
318
option (gogoproto.equal ) = false ;
306
319
option (gogoproto.goproto_getters ) = false ;
307
320
308
- // Either the hexadecimal-encoded ERC20 contract address or denomination of the
309
- // Bank Coin.
321
+ // Either the hexadecimal-encoded ERC20 contract address or denomination of
322
+ // the Bank Coin.
310
323
string token = 1 ;
311
324
}
312
325
313
326
message QueryFunTokenMappingResponse {
314
327
option (gogoproto.equal ) = false ;
315
- option (gogoproto.goproto_getters ) = false ;
328
+ option (gogoproto.goproto_getters ) = false ;
316
329
317
330
// fun_token is a mapping between the Bank Coin and the ERC20 contract address
318
331
eth.evm.v1.FunToken fun_token = 1 ;
0 commit comments