diff --git a/blockchain/pallets/ddcclusters.go b/blockchain/pallets/ddcclusters.go index 777e033..04bb26a 100644 --- a/blockchain/pallets/ddcclusters.go +++ b/blockchain/pallets/ddcclusters.go @@ -9,12 +9,12 @@ import ( ) type Cluster struct { - ClusterId ClusterId - ManagerId types.AccountID - ReserveId types.AccountID - Props ClusterProps - Status ClusterStatus - LastValidatedEraId DdcEra + ClusterId ClusterId + ManagerId types.AccountID + ReserveId types.AccountID + Props ClusterProps + Status ClusterStatus + LastPaidEra DdcEra } type ClusterProps struct { diff --git a/blockchain/pallets/ddccustomers.go b/blockchain/pallets/ddccustomers.go index 21831a3..c44ec6d 100644 --- a/blockchain/pallets/ddccustomers.go +++ b/blockchain/pallets/ddccustomers.go @@ -19,7 +19,7 @@ type Bucket struct { ClusterId ClusterId IsPublic types.Bool IsRemoved types.Bool - TotalCustomersUsage types.Option[CustomerUsage] + TotalCustomersUsage types.Option[BucketUsage] } type UnlockChunk struct { diff --git a/blockchain/pallets/primitives.go b/blockchain/pallets/primitives.go index 735b093..8e4b250 100644 --- a/blockchain/pallets/primitives.go +++ b/blockchain/pallets/primitives.go @@ -175,7 +175,7 @@ func (m ClusterStatus) Encode(encoder scale.Encoder) error { return nil } -type CustomerUsage struct { +type BucketUsage struct { TransferredBytes types.U64 StoredBytes types.I64 NumberOfPuts types.U64