8
8
using Nethermind . Core . Crypto ;
9
9
using Nethermind . Evm . TransactionProcessing ;
10
10
using Nethermind . Int256 ;
11
+ using Nethermind . State ;
11
12
12
13
namespace Nethermind . Evm . Tracing ;
13
14
@@ -44,11 +45,14 @@ public static AlwaysCancelTxTracer Instance
44
45
public bool IsTracingFees => true ;
45
46
public bool IsTracingLogs => true ;
46
47
47
- public void MarkAsSuccess ( Address recipient , GasConsumed gasSpent , byte [ ] output , LogEntry [ ] logs , Hash256 ? stateRoot = null ) => throw new OperationCanceledException ( ErrorMessage ) ;
48
+ public void MarkAsSuccess ( Address recipient , GasConsumed gasSpent , byte [ ] output , LogEntry [ ] logs ,
49
+ Hash256 ? stateRoot = null ) => throw new OperationCanceledException ( ErrorMessage ) ;
48
50
49
- public void MarkAsFailed ( Address recipient , GasConsumed gasSpent , byte [ ] output , string ? error , Hash256 ? stateRoot = null ) => throw new OperationCanceledException ( ErrorMessage ) ;
51
+ public void MarkAsFailed ( Address recipient , GasConsumed gasSpent , byte [ ] output , string ? error ,
52
+ Hash256 ? stateRoot = null ) => throw new OperationCanceledException ( ErrorMessage ) ;
50
53
51
- public void StartOperation ( int pc , Instruction opcode , long gas , in ExecutionEnvironment env ) => throw new OperationCanceledException ( ErrorMessage ) ;
54
+ public void StartOperation ( int pc , Instruction opcode , long gas , in ExecutionEnvironment env ) =>
55
+ throw new OperationCanceledException ( ErrorMessage ) ;
52
56
53
57
public void ReportOperationError ( EvmExceptionType error ) => throw new OperationCanceledException ( ErrorMessage ) ;
54
58
@@ -58,47 +62,73 @@ public static AlwaysCancelTxTracer Instance
58
62
59
63
public void SetOperationMemorySize ( ulong newSize ) => throw new OperationCanceledException ( ErrorMessage ) ;
60
64
61
- public void ReportMemoryChange ( long offset , in ReadOnlySpan < byte > data ) => throw new OperationCanceledException ( ErrorMessage ) ;
62
- public void ReportStorageChange ( in ReadOnlySpan < byte > key , in ReadOnlySpan < byte > value ) => throw new OperationCanceledException ( ErrorMessage ) ;
65
+ public void ReportMemoryChange ( long offset , in ReadOnlySpan < byte > data ) =>
66
+ throw new OperationCanceledException ( ErrorMessage ) ;
67
+
68
+ public void ReportStorageChange ( in ReadOnlySpan < byte > key , in StorageValue value ) =>
69
+ throw new OperationCanceledException ( ErrorMessage ) ;
63
70
64
71
public void SetOperationStack ( TraceStack stack ) => throw new OperationCanceledException ( ErrorMessage ) ;
65
72
66
73
public void ReportStackPush ( in ReadOnlySpan < byte > stackItem ) => throw new OperationCanceledException ( ErrorMessage ) ;
67
74
68
75
public void SetOperationMemory ( TraceMemory memoryTrace ) => throw new OperationCanceledException ( ErrorMessage ) ;
69
76
70
- public void SetOperationStorage ( Address address , UInt256 storageIndex , ReadOnlySpan < byte > newValue , ReadOnlySpan < byte > currentValue ) => throw new OperationCanceledException ( ErrorMessage ) ;
77
+ public void SetOperationStorage ( Address address , UInt256 storageIndex , in StorageValue newValue ,
78
+ in StorageValue currentValue ) => throw new OperationCanceledException ( ErrorMessage ) ;
71
79
72
- public void LoadOperationStorage ( Address address , UInt256 storageIndex , ReadOnlySpan < byte > value ) => throw new OperationCanceledException ( ErrorMessage ) ;
80
+ public void LoadOperationStorage ( Address address , UInt256 storageIndex , in StorageValue value ) =>
81
+ throw new OperationCanceledException ( ErrorMessage ) ;
73
82
74
- public void ReportSelfDestruct ( Address address , UInt256 balance , Address refundAddress ) => throw new OperationCanceledException ( ErrorMessage ) ;
83
+ public void ReportSelfDestruct ( Address address , UInt256 balance , Address refundAddress ) =>
84
+ throw new OperationCanceledException ( ErrorMessage ) ;
75
85
76
- public void ReportBalanceChange ( Address address , UInt256 ? before , UInt256 ? after ) => throw new OperationCanceledException ( ErrorMessage ) ;
86
+ public void ReportBalanceChange ( Address address , UInt256 ? before , UInt256 ? after ) =>
87
+ throw new OperationCanceledException ( ErrorMessage ) ;
77
88
78
- public void ReportCodeChange ( Address address , byte [ ] before , byte [ ] after ) => throw new OperationCanceledException ( ErrorMessage ) ;
89
+ public void ReportCodeChange ( Address address , byte [ ] before , byte [ ] after ) =>
90
+ throw new OperationCanceledException ( ErrorMessage ) ;
79
91
80
- public void ReportNonceChange ( Address address , UInt256 ? before , UInt256 ? after ) => throw new OperationCanceledException ( ErrorMessage ) ;
92
+ public void ReportNonceChange ( Address address , UInt256 ? before , UInt256 ? after ) =>
93
+ throw new OperationCanceledException ( ErrorMessage ) ;
81
94
82
95
public void ReportAccountRead ( Address address ) => throw new OperationCanceledException ( ErrorMessage ) ;
83
96
84
- public void ReportStorageChange ( in StorageCell storageCell , byte [ ] before , byte [ ] after ) => throw new OperationCanceledException ( ErrorMessage ) ;
97
+ public void ReportStorageChange ( in StorageCell storageCell , in StorageValue before , in StorageValue after ) =>
98
+ throw new OperationCanceledException ( ErrorMessage ) ;
85
99
86
100
public void ReportStorageRead ( in StorageCell storageCell ) => throw new OperationCanceledException ( ErrorMessage ) ;
87
101
88
- public void ReportAction ( long gas , UInt256 value , Address from , Address to , ReadOnlyMemory < byte > input , ExecutionType callType , bool isPrecompileCall = false ) => throw new OperationCanceledException ( ErrorMessage ) ;
102
+ public void ReportAction ( long gas , UInt256 value , Address from , Address to , ReadOnlyMemory < byte > input ,
103
+ ExecutionType callType , bool isPrecompileCall = false ) => throw new OperationCanceledException ( ErrorMessage ) ;
104
+
105
+ public void ReportActionEnd ( long gas , ReadOnlyMemory < byte > output ) =>
106
+ throw new OperationCanceledException ( ErrorMessage ) ;
89
107
90
- public void ReportActionEnd ( long gas , ReadOnlyMemory < byte > output ) => throw new OperationCanceledException ( ErrorMessage ) ;
91
108
public void ReportActionError ( EvmExceptionType exceptionType ) => throw new OperationCanceledException ( ErrorMessage ) ;
92
- public void ReportActionRevert ( long gas , ReadOnlyMemory < byte > output ) => throw new OperationCanceledException ( ErrorMessage ) ;
93
109
94
- public void ReportActionEnd ( long gas , Address deploymentAddress , ReadOnlyMemory < byte > deployedCode ) => throw new OperationCanceledException ( ErrorMessage ) ;
110
+ public void ReportActionRevert ( long gas , ReadOnlyMemory < byte > output ) =>
111
+ throw new OperationCanceledException ( ErrorMessage ) ;
112
+
113
+ public void ReportActionEnd ( long gas , Address deploymentAddress , ReadOnlyMemory < byte > deployedCode ) =>
114
+ throw new OperationCanceledException ( ErrorMessage ) ;
115
+
95
116
public void ReportBlockHash ( Hash256 blockHash ) => throw new OperationCanceledException ( ErrorMessage ) ;
96
117
97
118
public void ReportByteCode ( ReadOnlyMemory < byte > byteCode ) => throw new OperationCanceledException ( ErrorMessage ) ;
98
- public void ReportGasUpdateForVmTrace ( long refund , long gasAvailable ) => throw new OperationCanceledException ( ErrorMessage ) ;
119
+
120
+ public void ReportGasUpdateForVmTrace ( long refund , long gasAvailable ) =>
121
+ throw new OperationCanceledException ( ErrorMessage ) ;
122
+
99
123
public void ReportRefund ( long refund ) => throw new OperationCanceledException ( ErrorMessage ) ;
100
124
public void ReportExtraGasPressure ( long extraGasPressure ) => throw new OperationCanceledException ( ErrorMessage ) ;
101
- public void ReportAccess ( IReadOnlySet < Address > accessedAddresses , IReadOnlySet < StorageCell > accessedStorageCells ) => throw new OperationCanceledException ( ErrorMessage ) ;
125
+
126
+ public void ReportAccess ( IReadOnlySet < Address > accessedAddresses , IReadOnlySet < StorageCell > accessedStorageCells ) =>
127
+ throw new OperationCanceledException ( ErrorMessage ) ;
128
+
102
129
public void ReportFees ( UInt256 fees , UInt256 burntFees ) => throw new OperationCanceledException ( ErrorMessage ) ;
103
- public void Dispose ( ) { }
130
+
131
+ public void Dispose ( )
132
+ {
133
+ }
104
134
}
0 commit comments