QueryTraceBlockRequest.deserialize constructor

QueryTraceBlockRequest.deserialize(
  1. List<int> bytes
)

Implementation

factory QueryTraceBlockRequest.deserialize(List<int> bytes) {
  final decode = CosmosProtoMessage.decode(bytes, protoConfigStatic());
  return QueryTraceBlockRequest(
    txs:
        decode
            .getListOfBytes(1)
            .map((b) => cosmos_evm_vm_v1_tx.MsgEthereumTx.deserialize(b))
            .toList(),
    traceConfig: decode.messageTo<cosmos_evm_vm_v1_evm.TraceConfig?>(
      3,
      (b) => cosmos_evm_vm_v1_evm.TraceConfig.deserialize(b),
    ),
    blockNumber: decode.getBigInt<BigInt?>(5),
    blockHash: decode.getString<String?>(6),
    blockTime: decode.messageTo<google_protobuf_timestamp.Timestamp?>(
      7,
      (b) => google_protobuf_timestamp.Timestamp.deserialize(b),
    ),
    proposerAddress: decode.getBytes<List<int>?>(8),
    chainId: decode.getBigInt<BigInt?>(9),
    blockMaxGas: decode.getBigInt<BigInt?>(10),
  );
}