From f5587877d9a8a75cd4970a409825812b432fd7d2 Mon Sep 17 00:00:00 2001 From: "Alisher A. Khassanov" Date: Tue, 19 Nov 2024 15:21:09 +0500 Subject: [PATCH 1/2] Rename cluster `validated` era to `paid` --- blockchain/pallets/ddcclusters.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 { From 4056a03467364672a1302814db148eb3283a02d7 Mon Sep 17 00:00:00 2001 From: "Alisher A. Khassanov" Date: Tue, 19 Nov 2024 15:24:05 +0500 Subject: [PATCH 2/2] Rename `CustomerUsage` to `BucketUsage` --- blockchain/pallets/ddccustomers.go | 2 +- blockchain/pallets/primitives.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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