Skip to content

Commit

Permalink
fix: support EventBucketFlowRateLimitStatus (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
BarryTong65 authored Mar 28, 2024
1 parent d49d49e commit 7143f2d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions types/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,12 @@ type BucketMetaWithVGF struct {
UpdateTime int64 `xml:"UpdateTime"`
// Vgf serve as a means of grouping global virtual groups.
Vgf *GlobalVirtualGroupFamily `xml:"Vgf"`
// OffChainStatus represents the status of a bucket in the off-chain storage.
// It is used to track the current state of the bucket with respect to off-chain operations,
// 1 means 0001 -> OffChainStatusIsLimited is true
// 0 means 0000 -> OffChainStatusIsLimited is false
// For an explanation of the different OffChainStatus values, please visit:https://github.com/bnb-chain/greenfield-storage-provider/blob/9d7048ad33cf51a2f7eb347e2113c5d0cc45f970/modular/blocksyncer/modules/bucket/bucket_handle.go#L40
OffChainStatus int32 `xml:"OffChainStatus"`
}

// BucketMeta is the structure for metadata service user bucket
Expand All @@ -254,6 +260,12 @@ type BucketMeta struct {
UpdateAt int64 `xml:"UpdateAt"`
// UpdateTime defines the block number when the bucket updated
UpdateTime int64 `xml:"UpdateTime"`
// OffChainStatus represents the status of a bucket in the off-chain storage.
// It is used to track the current state of the bucket with respect to off-chain operations,
// 1 means 0001 -> OffChainStatusIsLimited is true
// 0 means 0000 -> OffChainStatusIsLimited is false
// For an explanation of the different OffChainStatus values, please visit:https://github.com/bnb-chain/greenfield-storage-provider/blob/9d7048ad33cf51a2f7eb347e2113c5d0cc45f970/modular/blocksyncer/modules/bucket/bucket_handle.go#L40
OffChainStatus int32 `xml:"OffChainStatus"`
}

// ListBucketsByBucketIDResponse is response type for the ListBucketsByBucketID
Expand Down

0 comments on commit 7143f2d

Please sign in to comment.