@daocloud-proto/hydra 0.16.0-dev-8 → 0.16.0-dev-9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,15 @@
5
5
  */
6
6
 
7
7
  import * as fm from "../../../fetch.pb"
8
+ import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
9
+
10
+ export enum GPUCostDepreciationStatus {
11
+ DEPRECIATION_STATUS_UNSPECIFIED = "DEPRECIATION_STATUS_UNSPECIFIED",
12
+ PENDING = "PENDING",
13
+ ACTIVE = "ACTIVE",
14
+ EXPIRED = "EXPIRED",
15
+ }
16
+
8
17
  export type CostMockConfig = {
9
18
  gpus?: GPUCost[]
10
19
  upstreamTokenPrices?: UpstreamTokenPrice[]
@@ -19,6 +28,12 @@ export type GPUCost = {
19
28
  memory?: string
20
29
  price?: number
21
30
  count?: number
31
+ purchasePrice?: number
32
+ depreciationStartTime?: GoogleProtobufTimestamp.Timestamp
33
+ usefulLifeMonths?: number
34
+ residualValue?: number
35
+ depreciationStatus?: GPUCostDepreciationStatus
36
+ hourlyDepreciation?: number
22
37
  }
23
38
 
24
39
  export type UpstreamTokenPrice = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.16.0-dev-8",
3
+ "version": "v0.16.0-dev-9",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"