-
Notifications
You must be signed in to change notification settings - Fork 21
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
12 changed files
with
159 additions
and
4 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
Netezos.Tests/Forging/operations/_attestation_with_dal/forged.hex
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 @@ | ||
0b7e640e3e07beb8dc10a7582ad323c5788258b90186bd730d24e1962e08296617000f0008b45400000000e7bd5159f624e9d3d2ea82108a37653566ef72a3bc428a667769dabba5448ad400 |
13 changes: 13 additions & 0 deletions
13
Netezos.Tests/Forging/operations/_attestation_with_dal/unsigned.json
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,13 @@ | ||
{ | ||
"branch": "BKoLvj4KKvpYZogKgjARRu6jzcJMqTm8NRUe47dNHKguTYUCmnx", | ||
"contents": [ | ||
{ | ||
"kind": "attestation_with_dal", | ||
"slot": 15, | ||
"level": 570452, | ||
"round": 0, | ||
"block_payload_hash": "vh3SBb7RHo3Dva947myZ9cdNxpGeVE1RfZU2NGHC7Jn9eyVNwhiW", | ||
"dal_attestation": "0" | ||
} | ||
] | ||
} |
1 change: 1 addition & 0 deletions
1
Netezos.Tests/Forging/operations/_dal_publish_commitment/forged.hex
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 @@ | ||
12a89577eaecd1668e68196ba5a61854769f1b347183ddfdd2d4a334810f637be600e1640b293ba2b314f58cbb4c9853f68d01ad3382810402990b000aaf8429a7306f137055ee91cbbf0350048fbb9399bdda3f1290f0f2f80d30da4c6fc3fe7e6a9b4d7965f094bf571db596b989e195c8f3d63eea3c5a1b51b32c853b4c09c124d53d8eac621c2d60c00544b4f11b9546f9fc4b8d4d641d097851c7112b7d539e6cfcf61ae5b17de43320f10ee33ee31e8080aca6660426fd40f02ba41a7da8845514d433f583e5d2872d42 |
18 changes: 18 additions & 0 deletions
18
Netezos.Tests/Forging/operations/_dal_publish_commitment/unsigned.json
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,18 @@ | ||
{ | ||
"branch": "BKrVwdc7fD2Sz6BypYQUNE5YvYBRYSM2mLBW39tss916K2e7eCB", | ||
"contents": [ | ||
{ | ||
"kind": "dal_publish_commitment", | ||
"source": "tz1gBnaS1n7LKqpaRnyBX5MSmamadXXfzNpt", | ||
"fee": "513", | ||
"counter": "2", | ||
"gas_limit": "1433", | ||
"storage_limit": "0", | ||
"slot_header": { | ||
"slot_index": 10, | ||
"commitment": "sh25wJo53VSwWsR3NLHw6s6VhL2kXXb2zXsQgYiWGhVykfYMbFsVgKFXnhd7QrJJNRJz7bAxzT", | ||
"commitment_proof": "b989e195c8f3d63eea3c5a1b51b32c853b4c09c124d53d8eac621c2d60c00544b4f11b9546f9fc4b8d4d641d097851c7112b7d539e6cfcf61ae5b17de43320f10ee33ee31e8080aca6660426fd40f02ba41a7da8845514d433f583e5d2872d42" | ||
} | ||
} | ||
] | ||
} |
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
27 changes: 27 additions & 0 deletions
27
Netezos/Forging/Models/Operations/Content/AttestationWithDalContent.cs
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,27 @@ | ||
using System.Numerics; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Netezos.Forging.Models | ||
{ | ||
public class AttestationWithDalContent : OperationContent | ||
{ | ||
[JsonPropertyName("kind")] | ||
public override string Kind => "attestation_with_dal"; | ||
|
||
[JsonPropertyName("slot")] | ||
public int Slot { get; set; } | ||
|
||
[JsonPropertyName("level")] | ||
public int Level { get; set; } | ||
|
||
[JsonPropertyName("round")] | ||
public int Round { get; set; } | ||
|
||
[JsonPropertyName("block_payload_hash")] | ||
public string PayloadHash { get; set; } = null!; | ||
|
||
[JsonPropertyName("dal_attestation")] | ||
[JsonConverter(typeof(BigIntegerStringConverter))] | ||
public BigInteger DalAttestation { get; set; } | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
Netezos/Forging/Models/Operations/Content/DalPublishCommitmentContent.cs
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,26 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Netezos.Forging.Models | ||
{ | ||
public class DalPublishCommitmentContent : ManagerOperationContent | ||
{ | ||
[JsonPropertyName("kind")] | ||
public override string Kind => "dal_publish_commitment"; | ||
|
||
[JsonPropertyName("slot_header")] | ||
public DalSlotHeader SlotHeader { get; set; } = null!; | ||
} | ||
|
||
public class DalSlotHeader | ||
{ | ||
[JsonPropertyName("slot_index")] | ||
public byte SlotIndex { get; set; } | ||
|
||
[JsonPropertyName("commitment")] | ||
public string Commitment { get; set; } = null!; | ||
|
||
[JsonPropertyName("commitment_proof")] | ||
[JsonConverter(typeof(HexConverter))] | ||
public byte[] CommitmentProof { get; set; } = null!; | ||
} | ||
} |
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
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