@@ -13,7 +13,8 @@ type OperationConstraint interface {
1313 Transaction | Origination | Delegation | Reveal | RegisterConstant | Endorsement | Preendorsement |
1414 Ballot | Proposal | Activation | TransferTicket | TxRollupCommit | TxRollupDispatchTicket |
1515 TxRollupFinalizeCommitment | TxRollupOrigination | TxRollupRejection | TxRollupRemoveCommitment |
16- TxRollupReturnBond | TxRollupSubmitBatch | NonceRevelation | DoubleBaking | DoubleEndorsing | SetDepositsLimit
16+ TxRollupReturnBond | TxRollupSubmitBatch | NonceRevelation | DoubleBaking | DoubleEndorsing | SetDepositsLimit |
17+ Baking | RevelationPenalty | EndorsingReward
1718}
1819
1920// Operation -
@@ -307,7 +308,7 @@ type TxRollupCommit struct {
307308 StorageLimit uint64 `json:"storageLimit"`
308309 StorageUsed uint64 `json:"storageUsed"`
309310 BakerFee uint64 `json:"bakerFee"`
310- Bond int64 `json:"bond"`
311+ Bond uint64 `json:"bond"`
311312 Sender Address `json:"sender"`
312313 Rollup Address `json:"rollup"`
313314 Errors []Error `json:"errors,omitempty"`
@@ -393,8 +394,8 @@ type TxRollupRejection struct {
393394 StorageLimit uint64 `json:"storageLimit"`
394395 StorageUsed uint64 `json:"storageUsed"`
395396 BakerFee uint64 `json:"bakerFee"`
396- Reward int64 `json:"reward"`
397- Loss int64 `json:"loss"`
397+ Reward uint64 `json:"reward"`
398+ Loss uint64 `json:"loss"`
398399 Rollup Address `json:"rollup"`
399400 Sender Address `json:"sender"`
400401 Committer Address `json:"committer"`
@@ -438,7 +439,7 @@ type TxRollupReturnBond struct {
438439 StorageLimit uint64 `json:"storageLimit"`
439440 StorageUsed uint64 `json:"storageUsed"`
440441 BakerFee uint64 `json:"bakerFee"`
441- Bond int64 `json:"bond"`
442+ Bond uint64 `json:"bond"`
442443 Timestamp time.Time `json:"timestamp"`
443444 Rollup Address `json:"rollup"`
444445 Sender Address `json:"sender"`
@@ -556,3 +557,69 @@ type Quote struct {
556557type Error struct {
557558 Type string `json:"type"`
558559}
560+
561+ // Baking -
562+ type Baking struct {
563+ Type string `json:"type"`
564+ ID uint64 `json:"id"`
565+ Level uint64 `json:"level"`
566+ Timestamp time.Time `json:"timestamp"`
567+ Block string `json:"block"`
568+ Proposer * Account `json:"proposer"`
569+ Producer * Account `json:"producer"`
570+ PayloadRound int `json:"payloadRound"`
571+ BlockRound int `json:"blockRound"`
572+ Deposit int64 `json:"deposit"`
573+ Reward int64 `json:"reward"`
574+ Bonus int64 `json:"bonus"`
575+ Fees int64 `json:"fees"`
576+ Baker Account `json:"baker"`
577+ Priority int `json:"priority"`
578+ Quote * Quote `json:"quote,omitempty"`
579+ }
580+
581+ // EndorsingReward -
582+ type EndorsingReward struct {
583+ Type string `json:"type"`
584+ ID uint64 `json:"id"`
585+ Level uint64 `json:"level"`
586+ Timestamp time.Time `json:"timestamp"`
587+ Block string `json:"block"`
588+ Baker * Account `json:"baker"`
589+ Expected int64 `json:"expected"`
590+ Received int64 `json:"received"`
591+ Quote * Quote `json:"quote,omitempty"`
592+ }
593+
594+ // RevelationPenalty -
595+ type RevelationPenalty struct {
596+ Type string `json:"type"`
597+ ID uint64 `json:"id"`
598+ Level uint64 `json:"level"`
599+ Timestamp time.Time `json:"timestamp"`
600+ Block string `json:"block"`
601+ Baker * Account `json:"baker"`
602+ MissedLevel int64 `json:"missedLevel"`
603+ Loss int64 `json:"loss"`
604+ Quote * Quote `json:"quote,omitempty"`
605+ }
606+
607+ // DoublePreendorsing -
608+ type DoublePreendorsing struct {
609+ Type string `json:"type"`
610+ ID uint64 `json:"id"`
611+ Level uint64 `json:"level"`
612+ Timestamp time.Time `json:"timestamp"`
613+ Block string `json:"block"`
614+ Hash string `json:"hash"`
615+ AccusedLevel uint64 `json:"accusedLevel"`
616+ Accuser * Account `json:"accuser"`
617+ AccuserReward int64 `json:"accuserReward"`
618+ Offender * Account `json:"offender"`
619+ OffenderLoss int64 `json:"offenderLoss"`
620+ Quote * Quote `json:"quote,omitempty"`
621+ AccuserRewards int64 `json:"accuserRewards,omitempty"`
622+ OffenderLostDeposits int64 `json:"offenderLostDeposits,omitempty"`
623+ OffenderLostRewards int64 `json:"offenderLostRewards,omitempty"`
624+ OffenderLostFees int64 `json:"offenderLostFees,omitempty"`
625+ }
0 commit comments