Skip to content

Commit 0a98f41

Browse files
TzKT kathmandu
1 parent 459022f commit 0a98f41

File tree

3 files changed

+52
-1
lines changed

3 files changed

+52
-1
lines changed

tzkt/api/operations.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,3 +191,15 @@ func (tzkt *API) GetDoublePreendorsings(ctx context.Context, filters map[string]
191191
err = tzkt.json(ctx, "/v1/operations/double_preendorsing", filters, false, &operations)
192192
return
193193
}
194+
195+
// GetVdfRevelations -
196+
func (tzkt *API) GetVdfRevelations(ctx context.Context, filters map[string]string) (operations []data.VdfRevelation, err error) {
197+
err = tzkt.json(ctx, "/v1/operations/vdf_revelations", filters, false, &operations)
198+
return
199+
}
200+
201+
// GetIncreasePaidStorage -
202+
func (tzkt *API) GetIncreasePaidStorage(ctx context.Context, filters map[string]string) (operations []data.IncreasePaidStorage, err error) {
203+
err = tzkt.json(ctx, "/v1/operations/increase_paid_storage", filters, false, &operations)
204+
return
205+
}

tzkt/data/consts.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ const (
3030
KindRevelationPenalty = "revelation_penalty"
3131
KindBaking = "baking"
3232
KindEndorsingReward = "endorsing_reward"
33+
KindVdfRevelation = "vdf_revelation"
34+
KindIncreasePaidStorage = "increase_paid_storage"
3335
)
3436

3537
// urls

tzkt/data/operations.go

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ 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
17+
Baking | RevelationPenalty | EndorsingReward | VdfRevelation | IncreasePaidStorage
1818
}
1919

2020
// Operation -
@@ -623,3 +623,40 @@ type DoublePreendorsing struct {
623623
OffenderLostRewards int64 `json:"offenderLostRewards,omitempty"`
624624
OffenderLostFees int64 `json:"offenderLostFees,omitempty"`
625625
}
626+
627+
// VdfRevelation -
628+
type VdfRevelation struct {
629+
Type string `json:"type"`
630+
ID uint64 `json:"id"`
631+
Level uint64 `json:"level"`
632+
Timestamp time.Time `json:"timestamp"`
633+
Block string `json:"block"`
634+
Hash string `json:"hash"`
635+
Baker *Account `json:"baker"`
636+
Cycle uint64 `json:"cycle"`
637+
Solution string `json:"solution"`
638+
Proof string `json:"proof"`
639+
Reward uint64 `json:"reward"`
640+
Quote *Quote `json:"quote,omitempty"`
641+
}
642+
643+
// IncreasePaidStorage -
644+
type IncreasePaidStorage struct {
645+
Type string `json:"type"`
646+
ID uint64 `json:"id"`
647+
Level uint64 `json:"level"`
648+
Timestamp time.Time `json:"timestamp"`
649+
Block string `json:"block"`
650+
Hash string `json:"hash"`
651+
Sender Account `json:"sender"`
652+
Counter uint64 `json:"counter"`
653+
GasLimit uint64 `json:"gasLimit"`
654+
GasUsed uint64 `json:"gasUsed"`
655+
StorageLimit uint64 `json:"storageLimit"`
656+
StorageUsed uint64 `json:"storageUsed"`
657+
BakerFee uint64 `json:"bakerFee"`
658+
StorageFee uint64 `json:"storageFee"`
659+
Status string `json:"status"`
660+
Contract Account `json:"contract"`
661+
Amount decimal.Decimal `json:"amount"`
662+
}

0 commit comments

Comments
 (0)