1
1
// This file is @generated by prost-build.
2
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
3
2
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
4
3
pub struct Block {
5
4
#[ prost( int32, tag = "1" ) ]
@@ -32,7 +31,6 @@ pub struct Block {
32
31
///
33
32
/// WARN: this is a client-side optimization pattern and should be moved in the
34
33
/// consuming code.
35
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
36
34
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
37
35
pub struct HeaderOnlyBlock {
38
36
#[ prost( message, optional, tag = "5" ) ]
@@ -41,7 +39,6 @@ pub struct HeaderOnlyBlock {
41
39
/// BlockWithRefs is a lightweight block, with traces and transactions
42
40
/// purged from the `block` within, and only. It is used in transports
43
41
/// to pass block data around.
44
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
45
42
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
46
43
pub struct BlockWithRefs {
47
44
#[ prost( string, tag = "1" ) ]
@@ -53,27 +50,23 @@ pub struct BlockWithRefs {
53
50
#[ prost( bool , tag = "4" ) ]
54
51
pub irreversible : bool ,
55
52
}
56
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
57
53
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
58
54
pub struct TransactionRefs {
59
55
#[ prost( bytes = "vec" , repeated, tag = "1" ) ]
60
56
pub hashes : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: vec:: Vec < u8 > > ,
61
57
}
62
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
63
58
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
64
59
pub struct UnclesHeaders {
65
60
#[ prost( message, repeated, tag = "1" ) ]
66
61
pub uncles : :: prost:: alloc:: vec:: Vec < BlockHeader > ,
67
62
}
68
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
69
63
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
70
64
pub struct BlockRef {
71
65
#[ prost( bytes = "vec" , tag = "1" ) ]
72
66
pub hash : :: prost:: alloc:: vec:: Vec < u8 > ,
73
67
#[ prost( uint64, tag = "2" ) ]
74
68
pub number : u64 ,
75
69
}
76
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
77
70
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
78
71
pub struct BlockHeader {
79
72
#[ prost( bytes = "vec" , tag = "1" ) ]
@@ -163,13 +156,11 @@ pub struct BlockHeader {
163
156
#[ prost( message, optional, tag = "18" ) ]
164
157
pub base_fee_per_gas : :: core:: option:: Option < BigInt > ,
165
158
}
166
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
167
159
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
168
160
pub struct BigInt {
169
161
#[ prost( bytes = "vec" , tag = "1" ) ]
170
162
pub bytes : :: prost:: alloc:: vec:: Vec < u8 > ,
171
163
}
172
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
173
164
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
174
165
pub struct TransactionTrace {
175
166
/// consensus
@@ -290,9 +281,9 @@ pub mod transaction_trace {
290
281
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
291
282
pub fn as_str_name ( & self ) -> & ' static str {
292
283
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" ,
296
287
}
297
288
}
298
289
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -308,7 +299,6 @@ pub mod transaction_trace {
308
299
}
309
300
/// AccessTuple represents a list of storage keys for a given contract's address and is used
310
301
/// for AccessList construction.
311
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
312
302
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
313
303
pub struct AccessTuple {
314
304
#[ prost( bytes = "vec" , tag = "1" ) ]
@@ -317,15 +307,13 @@ pub struct AccessTuple {
317
307
pub storage_keys : :: prost:: alloc:: vec:: Vec < :: prost:: alloc:: vec:: Vec < u8 > > ,
318
308
}
319
309
/// TransactionTraceWithBlockRef
320
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
321
310
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
322
311
pub struct TransactionTraceWithBlockRef {
323
312
#[ prost( message, optional, tag = "1" ) ]
324
313
pub trace : :: core:: option:: Option < TransactionTrace > ,
325
314
#[ prost( message, optional, tag = "2" ) ]
326
315
pub block_ref : :: core:: option:: Option < BlockRef > ,
327
316
}
328
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
329
317
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
330
318
pub struct TransactionReceipt {
331
319
/// State root is an intermediate state_root hash, computed in-between transactions to make
@@ -350,7 +338,6 @@ pub struct TransactionReceipt {
350
338
#[ prost( message, repeated, tag = "4" ) ]
351
339
pub logs : :: prost:: alloc:: vec:: Vec < Log > ,
352
340
}
353
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
354
341
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
355
342
pub struct Log {
356
343
#[ prost( bytes = "vec" , tag = "1" ) ]
@@ -384,7 +371,6 @@ pub struct Log {
384
371
#[ prost( uint64, tag = "7" ) ]
385
372
pub ordinal : u64 ,
386
373
}
387
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
388
374
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
389
375
pub struct Call {
390
376
#[ prost( uint32, tag = "1" ) ]
@@ -477,7 +463,6 @@ pub struct Call {
477
463
#[ prost( message, repeated, tag = "33" ) ]
478
464
pub account_creations : :: prost:: alloc:: vec:: Vec < AccountCreation > ,
479
465
}
480
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
481
466
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
482
467
pub struct StorageChange {
483
468
#[ prost( bytes = "vec" , tag = "1" ) ]
@@ -491,7 +476,6 @@ pub struct StorageChange {
491
476
#[ prost( uint64, tag = "5" ) ]
492
477
pub ordinal : u64 ,
493
478
}
494
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
495
479
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
496
480
pub struct BalanceChange {
497
481
#[ prost( bytes = "vec" , tag = "1" ) ]
@@ -550,22 +534,22 @@ pub mod balance_change {
550
534
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
551
535
pub fn as_str_name ( & self ) -> & ' static str {
552
536
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" ,
569
553
}
570
554
}
571
555
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -592,7 +576,6 @@ pub mod balance_change {
592
576
}
593
577
}
594
578
}
595
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
596
579
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
597
580
pub struct NonceChange {
598
581
#[ prost( bytes = "vec" , tag = "1" ) ]
@@ -604,15 +587,13 @@ pub struct NonceChange {
604
587
#[ prost( uint64, tag = "4" ) ]
605
588
pub ordinal : u64 ,
606
589
}
607
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
608
590
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
609
591
pub struct AccountCreation {
610
592
#[ prost( bytes = "vec" , tag = "1" ) ]
611
593
pub account : :: prost:: alloc:: vec:: Vec < u8 > ,
612
594
#[ prost( uint64, tag = "2" ) ]
613
595
pub ordinal : u64 ,
614
596
}
615
- #[ allow( clippy:: derive_partial_eq_without_eq) ]
616
597
#[ derive( Clone , PartialEq , :: prost:: Message ) ]
617
598
pub struct CodeChange {
618
599
#[ prost( bytes = "vec" , tag = "1" ) ]
@@ -634,8 +615,7 @@ pub struct CodeChange {
634
615
///
635
616
/// Hence, we only index some of them, those that are costly like all the calls
636
617
/// 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 ) ]
639
619
pub struct GasChange {
640
620
#[ prost( uint64, tag = "1" ) ]
641
621
pub old_value : u64 ,
@@ -696,27 +676,27 @@ pub mod gas_change {
696
676
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
697
677
pub fn as_str_name ( & self ) -> & ' static str {
698
678
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" ,
720
700
}
721
701
}
722
702
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -763,10 +743,10 @@ impl TransactionTraceStatus {
763
743
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
764
744
pub fn as_str_name ( & self ) -> & ' static str {
765
745
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" ,
770
750
}
771
751
}
772
752
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -799,12 +779,12 @@ impl CallType {
799
779
/// (if the ProtoBuf definition does not change) and safe for programmatic use.
800
780
pub fn as_str_name ( & self ) -> & ' static str {
801
781
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" ,
808
788
}
809
789
}
810
790
/// Creates an enum from field names used in the ProtoBuf definition.
0 commit comments