11// This file is @generated by prost-build.
2- #[ allow( clippy:: derive_partial_eq_without_eq) ]
32#[ derive( Clone , PartialEq , :: prost:: Message ) ]
43pub struct Block {
54 #[ prost( int32, tag = "1" ) ]
@@ -32,7 +31,6 @@ pub struct Block {
3231///
3332/// WARN: this is a client-side optimization pattern and should be moved in the
3433/// consuming code.
35- #[ allow( clippy:: derive_partial_eq_without_eq) ]
3634#[ derive( Clone , PartialEq , :: prost:: Message ) ]
3735pub struct HeaderOnlyBlock {
3836 #[ prost( message, optional, tag = "5" ) ]
@@ -41,7 +39,6 @@ pub struct HeaderOnlyBlock {
4139/// BlockWithRefs is a lightweight block, with traces and transactions
4240/// purged from the `block` within, and only. It is used in transports
4341/// to pass block data around.
44- #[ allow( clippy:: derive_partial_eq_without_eq) ]
4542#[ derive( Clone , PartialEq , :: prost:: Message ) ]
4643pub struct BlockWithRefs {
4744 #[ prost( string, tag = "1" ) ]
@@ -53,27 +50,23 @@ pub struct BlockWithRefs {
5350 #[ prost( bool , tag = "4" ) ]
5451 pub irreversible : bool ,
5552}
56- #[ allow( clippy:: derive_partial_eq_without_eq) ]
5753#[ derive( Clone , PartialEq , :: prost:: Message ) ]
5854pub struct TransactionRefs {
5955 #[ prost( bytes = "vec" , repeated, tag = "1" ) ]
6056 pub hashes : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: vec:: Vec < u8 > > ,
6157}
62- #[ allow( clippy:: derive_partial_eq_without_eq) ]
6358#[ derive( Clone , PartialEq , :: prost:: Message ) ]
6459pub struct UnclesHeaders {
6560 #[ prost( message, repeated, tag = "1" ) ]
6661 pub uncles : :: prost:: alloc:: vec:: Vec < BlockHeader > ,
6762}
68- #[ allow( clippy:: derive_partial_eq_without_eq) ]
6963#[ derive( Clone , PartialEq , :: prost:: Message ) ]
7064pub struct BlockRef {
7165 #[ prost( bytes = "vec" , tag = "1" ) ]
7266 pub hash : :: prost:: alloc:: vec:: Vec < u8 > ,
7367 #[ prost( uint64, tag = "2" ) ]
7468 pub number : u64 ,
7569}
76- #[ allow( clippy:: derive_partial_eq_without_eq) ]
7770#[ derive( Clone , PartialEq , :: prost:: Message ) ]
7871pub struct BlockHeader {
7972 #[ prost( bytes = "vec" , tag = "1" ) ]
@@ -163,13 +156,11 @@ pub struct BlockHeader {
163156 #[ prost( message, optional, tag = "18" ) ]
164157 pub base_fee_per_gas : :: core:: option:: Option < BigInt > ,
165158}
166- #[ allow( clippy:: derive_partial_eq_without_eq) ]
167159#[ derive( Clone , PartialEq , :: prost:: Message ) ]
168160pub struct BigInt {
169161 #[ prost( bytes = "vec" , tag = "1" ) ]
170162 pub bytes : :: prost:: alloc:: vec:: Vec < u8 > ,
171163}
172- #[ allow( clippy:: derive_partial_eq_without_eq) ]
173164#[ derive( Clone , PartialEq , :: prost:: Message ) ]
174165pub struct TransactionTrace {
175166 /// consensus
@@ -290,9 +281,9 @@ pub mod transaction_trace {
290281 /// (if the ProtoBuf definition does not change) and safe for programmatic use.
291282 pub fn as_str_name ( & self ) -> & ' static str {
292283 match self {
293- Type :: TrxTypeLegacy => "TRX_TYPE_LEGACY" ,
294- Type :: TrxTypeAccessList => "TRX_TYPE_ACCESS_LIST" ,
295- Type :: TrxTypeDynamicFee => "TRX_TYPE_DYNAMIC_FEE" ,
284+ Self :: TrxTypeLegacy => "TRX_TYPE_LEGACY" ,
285+ Self :: TrxTypeAccessList => "TRX_TYPE_ACCESS_LIST" ,
286+ Self :: TrxTypeDynamicFee => "TRX_TYPE_DYNAMIC_FEE" ,
296287 }
297288 }
298289 /// Creates an enum from field names used in the ProtoBuf definition.
@@ -308,7 +299,6 @@ pub mod transaction_trace {
308299}
309300/// AccessTuple represents a list of storage keys for a given contract's address and is used
310301/// for AccessList construction.
311- #[ allow( clippy:: derive_partial_eq_without_eq) ]
312302#[ derive( Clone , PartialEq , :: prost:: Message ) ]
313303pub struct AccessTuple {
314304 #[ prost( bytes = "vec" , tag = "1" ) ]
@@ -317,15 +307,13 @@ pub struct AccessTuple {
317307 pub storage_keys : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: vec:: Vec < u8 > > ,
318308}
319309/// TransactionTraceWithBlockRef
320- #[ allow( clippy:: derive_partial_eq_without_eq) ]
321310#[ derive( Clone , PartialEq , :: prost:: Message ) ]
322311pub struct TransactionTraceWithBlockRef {
323312 #[ prost( message, optional, tag = "1" ) ]
324313 pub trace : :: core:: option:: Option < TransactionTrace > ,
325314 #[ prost( message, optional, tag = "2" ) ]
326315 pub block_ref : :: core:: option:: Option < BlockRef > ,
327316}
328- #[ allow( clippy:: derive_partial_eq_without_eq) ]
329317#[ derive( Clone , PartialEq , :: prost:: Message ) ]
330318pub struct TransactionReceipt {
331319 /// State root is an intermediate state_root hash, computed in-between transactions to make
@@ -350,7 +338,6 @@ pub struct TransactionReceipt {
350338 #[ prost( message, repeated, tag = "4" ) ]
351339 pub logs : :: prost:: alloc:: vec:: Vec < Log > ,
352340}
353- #[ allow( clippy:: derive_partial_eq_without_eq) ]
354341#[ derive( Clone , PartialEq , :: prost:: Message ) ]
355342pub struct Log {
356343 #[ prost( bytes = "vec" , tag = "1" ) ]
@@ -384,7 +371,6 @@ pub struct Log {
384371 #[ prost( uint64, tag = "7" ) ]
385372 pub ordinal : u64 ,
386373}
387- #[ allow( clippy:: derive_partial_eq_without_eq) ]
388374#[ derive( Clone , PartialEq , :: prost:: Message ) ]
389375pub struct Call {
390376 #[ prost( uint32, tag = "1" ) ]
@@ -477,7 +463,6 @@ pub struct Call {
477463 #[ prost( message, repeated, tag = "33" ) ]
478464 pub account_creations : :: prost:: alloc:: vec:: Vec < AccountCreation > ,
479465}
480- #[ allow( clippy:: derive_partial_eq_without_eq) ]
481466#[ derive( Clone , PartialEq , :: prost:: Message ) ]
482467pub struct StorageChange {
483468 #[ prost( bytes = "vec" , tag = "1" ) ]
@@ -491,7 +476,6 @@ pub struct StorageChange {
491476 #[ prost( uint64, tag = "5" ) ]
492477 pub ordinal : u64 ,
493478}
494- #[ allow( clippy:: derive_partial_eq_without_eq) ]
495479#[ derive( Clone , PartialEq , :: prost:: Message ) ]
496480pub struct BalanceChange {
497481 #[ prost( bytes = "vec" , tag = "1" ) ]
@@ -550,22 +534,22 @@ pub mod balance_change {
550534 /// (if the ProtoBuf definition does not change) and safe for programmatic use.
551535 pub fn as_str_name ( & self ) -> & ' static str {
552536 match self {
553- Reason :: Unknown => "REASON_UNKNOWN" ,
554- Reason :: RewardMineUncle => "REASON_REWARD_MINE_UNCLE" ,
555- Reason :: RewardMineBlock => "REASON_REWARD_MINE_BLOCK" ,
556- Reason :: DaoRefundContract => "REASON_DAO_REFUND_CONTRACT" ,
557- Reason :: DaoAdjustBalance => "REASON_DAO_ADJUST_BALANCE" ,
558- Reason :: Transfer => "REASON_TRANSFER" ,
559- Reason :: GenesisBalance => "REASON_GENESIS_BALANCE" ,
560- Reason :: GasBuy => "REASON_GAS_BUY" ,
561- Reason :: RewardTransactionFee => "REASON_REWARD_TRANSACTION_FEE" ,
562- Reason :: RewardFeeReset => "REASON_REWARD_FEE_RESET" ,
563- Reason :: GasRefund => "REASON_GAS_REFUND" ,
564- Reason :: TouchAccount => "REASON_TOUCH_ACCOUNT" ,
565- Reason :: SuicideRefund => "REASON_SUICIDE_REFUND" ,
566- Reason :: SuicideWithdraw => "REASON_SUICIDE_WITHDRAW" ,
567- Reason :: CallBalanceOverride => "REASON_CALL_BALANCE_OVERRIDE" ,
568- Reason :: Burn => "REASON_BURN" ,
537+ Self :: Unknown => "REASON_UNKNOWN" ,
538+ Self :: RewardMineUncle => "REASON_REWARD_MINE_UNCLE" ,
539+ Self :: RewardMineBlock => "REASON_REWARD_MINE_BLOCK" ,
540+ Self :: DaoRefundContract => "REASON_DAO_REFUND_CONTRACT" ,
541+ Self :: DaoAdjustBalance => "REASON_DAO_ADJUST_BALANCE" ,
542+ Self :: Transfer => "REASON_TRANSFER" ,
543+ Self :: GenesisBalance => "REASON_GENESIS_BALANCE" ,
544+ Self :: GasBuy => "REASON_GAS_BUY" ,
545+ Self :: RewardTransactionFee => "REASON_REWARD_TRANSACTION_FEE" ,
546+ Self :: RewardFeeReset => "REASON_REWARD_FEE_RESET" ,
547+ Self :: GasRefund => "REASON_GAS_REFUND" ,
548+ Self :: TouchAccount => "REASON_TOUCH_ACCOUNT" ,
549+ Self :: SuicideRefund => "REASON_SUICIDE_REFUND" ,
550+ Self :: SuicideWithdraw => "REASON_SUICIDE_WITHDRAW" ,
551+ Self :: CallBalanceOverride => "REASON_CALL_BALANCE_OVERRIDE" ,
552+ Self :: Burn => "REASON_BURN" ,
569553 }
570554 }
571555 /// Creates an enum from field names used in the ProtoBuf definition.
@@ -592,7 +576,6 @@ pub mod balance_change {
592576 }
593577 }
594578}
595- #[ allow( clippy:: derive_partial_eq_without_eq) ]
596579#[ derive( Clone , PartialEq , :: prost:: Message ) ]
597580pub struct NonceChange {
598581 #[ prost( bytes = "vec" , tag = "1" ) ]
@@ -604,15 +587,13 @@ pub struct NonceChange {
604587 #[ prost( uint64, tag = "4" ) ]
605588 pub ordinal : u64 ,
606589}
607- #[ allow( clippy:: derive_partial_eq_without_eq) ]
608590#[ derive( Clone , PartialEq , :: prost:: Message ) ]
609591pub struct AccountCreation {
610592 #[ prost( bytes = "vec" , tag = "1" ) ]
611593 pub account : :: prost:: alloc:: vec:: Vec < u8 > ,
612594 #[ prost( uint64, tag = "2" ) ]
613595 pub ordinal : u64 ,
614596}
615- #[ allow( clippy:: derive_partial_eq_without_eq) ]
616597#[ derive( Clone , PartialEq , :: prost:: Message ) ]
617598pub struct CodeChange {
618599 #[ prost( bytes = "vec" , tag = "1" ) ]
@@ -634,8 +615,7 @@ pub struct CodeChange {
634615///
635616/// Hence, we only index some of them, those that are costly like all the calls
636617/// one, log events, return data, etc.
637- #[ allow( clippy:: derive_partial_eq_without_eq) ]
638- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
618+ #[ derive( Clone , Copy , PartialEq , :: prost:: Message ) ]
639619pub struct GasChange {
640620 #[ prost( uint64, tag = "1" ) ]
641621 pub old_value : u64 ,
@@ -696,27 +676,27 @@ pub mod gas_change {
696676 /// (if the ProtoBuf definition does not change) and safe for programmatic use.
697677 pub fn as_str_name ( & self ) -> & ' static str {
698678 match self {
699- Reason :: Unknown => "REASON_UNKNOWN" ,
700- Reason :: Call => "REASON_CALL" ,
701- Reason :: CallCode => "REASON_CALL_CODE" ,
702- Reason :: CallDataCopy => "REASON_CALL_DATA_COPY" ,
703- Reason :: CodeCopy => "REASON_CODE_COPY" ,
704- Reason :: CodeStorage => "REASON_CODE_STORAGE" ,
705- Reason :: ContractCreation => "REASON_CONTRACT_CREATION" ,
706- Reason :: ContractCreation2 => "REASON_CONTRACT_CREATION2" ,
707- Reason :: DelegateCall => "REASON_DELEGATE_CALL" ,
708- Reason :: EventLog => "REASON_EVENT_LOG" ,
709- Reason :: ExtCodeCopy => "REASON_EXT_CODE_COPY" ,
710- Reason :: FailedExecution => "REASON_FAILED_EXECUTION" ,
711- Reason :: IntrinsicGas => "REASON_INTRINSIC_GAS" ,
712- Reason :: PrecompiledContract => "REASON_PRECOMPILED_CONTRACT" ,
713- Reason :: RefundAfterExecution => "REASON_REFUND_AFTER_EXECUTION" ,
714- Reason :: Return => "REASON_RETURN" ,
715- Reason :: ReturnDataCopy => "REASON_RETURN_DATA_COPY" ,
716- Reason :: Revert => "REASON_REVERT" ,
717- Reason :: SelfDestruct => "REASON_SELF_DESTRUCT" ,
718- Reason :: StaticCall => "REASON_STATIC_CALL" ,
719- Reason :: StateColdAccess => "REASON_STATE_COLD_ACCESS" ,
679+ Self :: Unknown => "REASON_UNKNOWN" ,
680+ Self :: Call => "REASON_CALL" ,
681+ Self :: CallCode => "REASON_CALL_CODE" ,
682+ Self :: CallDataCopy => "REASON_CALL_DATA_COPY" ,
683+ Self :: CodeCopy => "REASON_CODE_COPY" ,
684+ Self :: CodeStorage => "REASON_CODE_STORAGE" ,
685+ Self :: ContractCreation => "REASON_CONTRACT_CREATION" ,
686+ Self :: ContractCreation2 => "REASON_CONTRACT_CREATION2" ,
687+ Self :: DelegateCall => "REASON_DELEGATE_CALL" ,
688+ Self :: EventLog => "REASON_EVENT_LOG" ,
689+ Self :: ExtCodeCopy => "REASON_EXT_CODE_COPY" ,
690+ Self :: FailedExecution => "REASON_FAILED_EXECUTION" ,
691+ Self :: IntrinsicGas => "REASON_INTRINSIC_GAS" ,
692+ Self :: PrecompiledContract => "REASON_PRECOMPILED_CONTRACT" ,
693+ Self :: RefundAfterExecution => "REASON_REFUND_AFTER_EXECUTION" ,
694+ Self :: Return => "REASON_RETURN" ,
695+ Self :: ReturnDataCopy => "REASON_RETURN_DATA_COPY" ,
696+ Self :: Revert => "REASON_REVERT" ,
697+ Self :: SelfDestruct => "REASON_SELF_DESTRUCT" ,
698+ Self :: StaticCall => "REASON_STATIC_CALL" ,
699+ Self :: StateColdAccess => "REASON_STATE_COLD_ACCESS" ,
720700 }
721701 }
722702 /// Creates an enum from field names used in the ProtoBuf definition.
@@ -763,10 +743,10 @@ impl TransactionTraceStatus {
763743 /// (if the ProtoBuf definition does not change) and safe for programmatic use.
764744 pub fn as_str_name ( & self ) -> & ' static str {
765745 match self {
766- TransactionTraceStatus :: Unknown => "UNKNOWN" ,
767- TransactionTraceStatus :: Succeeded => "SUCCEEDED" ,
768- TransactionTraceStatus :: Failed => "FAILED" ,
769- TransactionTraceStatus :: Reverted => "REVERTED" ,
746+ Self :: Unknown => "UNKNOWN" ,
747+ Self :: Succeeded => "SUCCEEDED" ,
748+ Self :: Failed => "FAILED" ,
749+ Self :: Reverted => "REVERTED" ,
770750 }
771751 }
772752 /// Creates an enum from field names used in the ProtoBuf definition.
@@ -799,12 +779,12 @@ impl CallType {
799779 /// (if the ProtoBuf definition does not change) and safe for programmatic use.
800780 pub fn as_str_name ( & self ) -> & ' static str {
801781 match self {
802- CallType :: Unspecified => "UNSPECIFIED" ,
803- CallType :: Call => "CALL" ,
804- CallType :: Callcode => "CALLCODE" ,
805- CallType :: Delegate => "DELEGATE" ,
806- CallType :: Static => "STATIC" ,
807- CallType :: Create => "CREATE" ,
782+ Self :: Unspecified => "UNSPECIFIED" ,
783+ Self :: Call => "CALL" ,
784+ Self :: Callcode => "CALLCODE" ,
785+ Self :: Delegate => "DELEGATE" ,
786+ Self :: Static => "STATIC" ,
787+ Self :: Create => "CREATE" ,
808788 }
809789 }
810790 /// Creates an enum from field names used in the ProtoBuf definition.
0 commit comments