-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
46 changed files
with
13,858 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ namespace Etherna.BeeNet.Clients.DebugApi | |
public enum DebugApiVersion | ||
{ | ||
v1_2_0, | ||
v1_2_1 | ||
v1_2_1, | ||
v2_0_0 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
namespace Etherna.BeeNet.Clients.DebugApi.DtoFixer | ||
{ | ||
public class PostageBatchDto | ||
{ | ||
/// <summary> | ||
/// Internal debugging property. It indicates if the batch is expired. | ||
/// </summary> | ||
[System.Text.Json.Serialization.JsonPropertyName("exists")] | ||
public bool Exists { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// The time (in seconds) remaining until the batch expires; -1 signals that the batch never expires; 0 signals that the batch has already expired. | ||
/// </summary> | ||
|
||
[System.Text.Json.Serialization.JsonPropertyName("batchTTL")] | ||
public int BatchTTL { get; set; } = default!; | ||
|
||
[System.Text.Json.Serialization.JsonPropertyName("batchID")] | ||
public string BatchID { get; set; } = default!; | ||
|
||
[System.Text.Json.Serialization.JsonPropertyName("utilization")] | ||
public int Utilization { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// Indicate that the batch was discovered by the Bee node, but it awaits enough on-chain confirmations before declaring the batch as usable. | ||
/// </summary> | ||
|
||
[System.Text.Json.Serialization.JsonPropertyName("usable")] | ||
public bool Usable { get; set; } = default!; | ||
|
||
[System.Text.Json.Serialization.JsonPropertyName("label")] | ||
public string Label { get; set; } = default!; | ||
|
||
[System.Text.Json.Serialization.JsonPropertyName("depth")] | ||
public int Depth { get; set; } = default!; | ||
|
||
/// <summary> | ||
/// Numeric string that represents integer which might exceeds `Number.MAX_SAFE_INTEGER` limit (2^53-1) | ||
/// </summary> | ||
|
||
[System.Text.Json.Serialization.JsonPropertyName("amount")] | ||
public string Amount { get; set; } = default!; | ||
|
||
[System.Text.Json.Serialization.JsonPropertyName("bucketDepth")] | ||
public int BucketDepth { get; set; } = default!; | ||
|
||
[System.Text.Json.Serialization.JsonPropertyName("blockNumber")] | ||
public int BlockNumber { get; set; } = default!; | ||
|
||
[System.Text.Json.Serialization.JsonPropertyName("immutableFlag")] | ||
public bool ImmutableFlag { get; set; } = default!; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7,317 changes: 7,317 additions & 0 deletions
7,317
src/BeeNet/Clients/DebugApi/V2_0_0/BeeDebugClient_2_0_0.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ namespace Etherna.BeeNet.Clients.GatewayApi | |
{ | ||
public enum GatewayApiVersion | ||
{ | ||
v2_0_0 | ||
v2_0_0, | ||
v3_0_0 | ||
} | ||
} |
Oops, something went wrong.