Skip to content

Commit

Permalink
Update GPU and CPU proto specs
Browse files Browse the repository at this point in the history
  • Loading branch information
chainzero authored and chainzero committed Oct 24, 2023
1 parent 823d3b0 commit f46400e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 25 deletions.
17 changes: 8 additions & 9 deletions proto/provider/akash/inventory/v1/cpu.proto
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,24 @@ import "akash/inventory/v1/resourcepair.proto";
option go_package = "github.com/akash-network/akash-api/go/inventory/v1";

message CPU {
ResourcePair quantity = 1 [
(gogoproto.customname) = "Quantity",
(gogoproto.jsontag) = "quantity",
(gogoproto.moretags) = "yaml:\"quantity\""
];

string id = 2 [
string id = 1 [
(gogoproto.customname) = "ID",
(gogoproto.jsontag) = "id",
(gogoproto.moretags) = "yaml:\"id\""
];
string vendor = 3 [
string vendor = 2 [
(gogoproto.customname) = "Vendor",
(gogoproto.jsontag) = "vendor",
(gogoproto.moretags) = "yaml:\"vendor\""
];
string model = 4 [
string model = 3 [
(gogoproto.customname) = "Model",
(gogoproto.jsontag) = "model",
(gogoproto.moretags) = "yaml:\"model\""
];
uint32 vcores = 4 [
(gogoproto.customname) = "Vcores",
(gogoproto.jsontag) = "vcores",
(gogoproto.moretags) = "yaml:\"vcores\""
];
}
32 changes: 16 additions & 16 deletions proto/provider/akash/inventory/v1/gpu.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,24 +9,24 @@ import "akash/inventory/v1/resourcepair.proto";
option go_package = "github.com/akash-network/akash-api/go/inventory/v1";

message GPU {
ResourcePair quantity = 1 [
(gogoproto.customname) = "Quantity",
(gogoproto.jsontag) = "quantity",
(gogoproto.moretags) = "yaml:\"quantity\""
string name = 1 [
(gogoproto.customname) = "Name",
(gogoproto.jsontag) = "name",
(gogoproto.moretags) = "yaml:\"name\""
];
string id = 2 [
(gogoproto.customname) = "ID",
(gogoproto.jsontag) = "id",
(gogoproto.moretags) = "yaml:\"id\""
string modelid = 2 [
(gogoproto.customname) = "ModelID",
(gogoproto.jsontag) = "modelid",
(gogoproto.moretags) = "yaml:\"modelid\""
];
string vendor = 3 [
(gogoproto.customname) = "Vendor",
(gogoproto.jsontag) = "vendor",
(gogoproto.moretags) = "yaml:\"vendor\""
string interface = 3 [
(gogoproto.customname) = "Interface",
(gogoproto.jsontag) = "interface",
(gogoproto.moretags) = "yaml:\"interface\""
];
string model = 4 [
(gogoproto.customname) = "Model",
(gogoproto.jsontag) = "model",
(gogoproto.moretags) = "yaml:\"model\""
string memory = 4 [
(gogoproto.customname) = "Memory",
(gogoproto.jsontag) = "memory",
(gogoproto.moretags) = "yaml:\"memory\""
];
}

0 comments on commit f46400e

Please sign in to comment.