Skip to content

Commit

Permalink
Merge pull request #104 from Cerebellum-Network/feature/blockchain-ru…
Browse files Browse the repository at this point in the history
…ntime-v54113-support

Blockchain runtime v54113 support
  • Loading branch information
khssnv committed Aug 12, 2024
2 parents 1a953fd + a57ff1c commit e0bb9e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions blockchain/pallets/ddcnodes.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ type StorageNode struct {
ProviderId types.AccountID
ClusterId types.Option[ClusterId]
Props StorageNodeProps
TotalUsage types.Option[NodeUsage]
}

// TODO: `Host` is not `[MaxHostLen]types.U8` because the original `BoundedVec<_, MaxHostLen>`
Expand Down
7 changes: 7 additions & 0 deletions blockchain/pallets/primitives.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,10 @@ type CustomerUsage struct {
NumberOfPuts types.U64
NumberOfGets types.U64
}

type NodeUsage struct {
TransferredBytes types.U64
StoredBytes types.I64
NumberOfPuts types.U64
NumberOfGets types.U64
}

0 comments on commit e0bb9e5

Please sign in to comment.