-
Notifications
You must be signed in to change notification settings - Fork 477
/
Copy pathGethTraceOptions.cs
40 lines (28 loc) · 1.07 KB
/
GethTraceOptions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// SPDX-FileCopyrightText: 2022 Demerzel Solutions Limited
// SPDX-License-Identifier: LGPL-3.0-only
using System;
using System.Text.Json;
using System.Text.Json.Serialization;
using Nethermind.Core.Crypto;
namespace Nethermind.Evm.Tracing.GethStyle;
public record GethTraceOptions
{
[JsonPropertyName("disableMemory")]
[Obsolete("Use EnableMemory instead.")]
public bool DisableMemory { get => !EnableMemory; init => EnableMemory = !value; }
[JsonPropertyName("disableStorage")]
public bool DisableStorage { get; init; }
[JsonPropertyName("enableMemory")]
public bool EnableMemory { get; init; }
[JsonPropertyName("disableStack")]
public bool DisableStack { get; init; }
[JsonPropertyName("timeout")]
public string Timeout { get; init; }
[JsonPropertyName("tracer")]
public string Tracer { get; init; }
[JsonPropertyName("txHash")]
public Hash256? TxHash { get; init; }
[JsonPropertyName("tracerConfig")]
public JsonElement? TracerConfig { get; init; }
public static GethTraceOptions Default { get; } = new();
}