@@ -14,7 +14,8 @@ type OperationConstraint interface {
1414 Ballot | Proposal | Activation | TransferTicket | TxRollupCommit | TxRollupDispatchTicket |
1515 TxRollupFinalizeCommitment | TxRollupOrigination | TxRollupRejection | TxRollupRemoveCommitment |
1616 TxRollupReturnBond | TxRollupSubmitBatch | NonceRevelation | DoubleBaking | DoubleEndorsing | SetDepositsLimit |
17- Baking | RevelationPenalty | EndorsingReward | VdfRevelation | IncreasePaidStorage
17+ Baking | RevelationPenalty | EndorsingReward | VdfRevelation | IncreasePaidStorage | DrainDelegate |
18+ UpdateConsensusKey
1819}
1920
2021// Operation -
@@ -660,3 +661,40 @@ type IncreasePaidStorage struct {
660661 Contract Account `json:"contract"`
661662 Amount decimal.Decimal `json:"amount"`
662663}
664+
665+ // UpdateConsensusKey -
666+ type UpdateConsensusKey struct {
667+ Type string `json:"type"`
668+ ID uint64 `json:"id"`
669+ Level uint64 `json:"level"`
670+ Timestamp time.Time `json:"timestamp"`
671+ Block string `json:"block"`
672+ Hash string `json:"hash"`
673+ Sender Account `json:"sender"`
674+ Counter uint64 `json:"counter"`
675+ GasLimit uint64 `json:"gasLimit"`
676+ GasUsed uint64 `json:"gasUsed"`
677+ StorageLimit uint64 `json:"storageLimit"`
678+ BakerFee uint64 `json:"bakerFee"`
679+ Status string `json:"status"`
680+ ActivationCycle uint64 `json:"activationCycle"`
681+ PublicKey string `json:"publicKey"`
682+ PublicKeyHash string `json:"publicKeyHash"`
683+ Errors []Error `json:"errors,omitempty"`
684+ Quote * Quote `json:"quote,omitempty"`
685+ }
686+
687+ // DrainDelegate -
688+ type DrainDelegate struct {
689+ Type string `json:"type"`
690+ ID uint64 `json:"id"`
691+ Level uint64 `json:"level"`
692+ Timestamp time.Time `json:"timestamp"`
693+ Block string `json:"block"`
694+ Hash string `json:"hash"`
695+ Delegate Account `json:"delegate"`
696+ Target Account `json:"target"`
697+ Amount uint64 `json:"amount"`
698+ Fee uint64 `json:"fee"`
699+ Quote * Quote `json:"quote,omitempty"`
700+ }
0 commit comments