@@ -10,7 +10,7 @@ import (
10
10
// OperationConstraint -
11
11
type OperationConstraint interface {
12
12
AccountActivation | Ballot | Delegation | DoubleBakingEvidence |
13
- DoubleEndorsementEvidence | Endorsement | EndorsementWithSlot |
13
+ DoubleEndorsementEvidence | Endorsement | EndorsementWithSlot | EndorsementWithDal |
14
14
Origination | Proposal | Reveal | SeedNonceRevelation | Transaction |
15
15
RegisterGlobalConstant | DoublePreendorsementEvidence | SetDepositsLimit |
16
16
Preendorsement | Event | VdfRevelation | TxRollupCommit | TxRollupOrigination |
@@ -60,6 +60,8 @@ func (op *Operation) UnmarshalJSON(data []byte) error {
60
60
err = parseOperation [Endorsement ](data , op )
61
61
case KindEndorsementWithSlot :
62
62
err = parseOperation [EndorsementWithSlot ](data , op )
63
+ case KindEndorsementWithDal :
64
+ err = parseOperation [EndorsementWithDal ](data , op )
63
65
case KindOrigination :
64
66
err = parseOperation [Origination ](data , op )
65
67
case KindProposal :
@@ -174,6 +176,17 @@ type EndorsementWithSlot struct {
174
176
Metadata * EndorsementMetadata `json:"metadata,omitempty"`
175
177
}
176
178
179
+ // EndorsementWithDal -
180
+ type EndorsementWithDal struct {
181
+ Kind string `json:"kind"`
182
+ Slot uint64 `json:"slot"`
183
+ Level uint64 `json:"level"`
184
+ Round int64 `json:"round"`
185
+ BlockPayloadHash string `json:"block_payload_hash"`
186
+ DalAttestation string `json:"dal_attestation"`
187
+ Metadata * EndorsementMetadata `json:"metadata"`
188
+ }
189
+
177
190
// Preendorsement -
178
191
type Preendorsement struct {
179
192
Slot uint64 `json:"slot"`
@@ -331,9 +344,11 @@ type OnlyBalanceUpdatesMetadata struct {
331
344
332
345
// EndorsementMetadata -
333
346
type EndorsementMetadata struct {
334
- BalanceUpdates []BalanceUpdate `json:"balance_updates"`
335
- Delegate string `json:"delegate"`
336
- Slots []int `json:"slots"`
347
+ Delegate string `json:"delegate"`
348
+ EndorsementPower int `json:"endorsement_power"`
349
+ ConsensusKey string `json:"consensus_key"`
350
+ BalanceUpdates []BalanceUpdate `json:"balance_updates,omitempty"`
351
+ Slots []int `json:"slots,omitempty"`
337
352
}
338
353
339
354
// OperationResult -
0 commit comments