-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #206 from AssetMantle/mukund/protocopyids
adding proto files for ids
- Loading branch information
Showing
22 changed files
with
217 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
version: v1 | ||
managed: | ||
enabled: true | ||
go_package_prefix: | ||
default: github.com/AssetMantle/modules | ||
except: | ||
- buf.build/googleapis/googleapis | ||
- buf.build/cosmos/gogo-proto | ||
plugins: | ||
- name: gocosmos | ||
out: . | ||
opt: plugins=grpc,Mgoogle/protobuf/duration.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/struct.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types,Mcosmos/orm/v1alpha1/orm.proto=github.com/cosmos/cosmos-sdk/api/cosmos/orm/v1alpha1,paths=source_relative | ||
- name: grpc-gateway | ||
out: . | ||
opt: logtostderr=true,allow_colon_final_segments=true,paths=source_relative |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: v1 | ||
name: buf.build/assetmantle/schema | ||
deps: | ||
- buf.build/cosmos/cosmos-sdk | ||
- buf.build/cosmos/cosmos-proto | ||
- buf.build/cosmos/gogo-proto | ||
- buf.build/googleapis/googleapis | ||
breaking: | ||
use: | ||
- FILE | ||
lint: | ||
use: | ||
- DEFAULT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
syntax = "proto3"; | ||
package data; | ||
|
||
message AccAddressData{ | ||
bytes value = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
syntax = "proto3"; | ||
package data; | ||
|
||
message BooleanData{ | ||
bool value = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
syntax = "proto3"; | ||
package data; | ||
import "schema/data/base/accAddressData.v1.proto"; | ||
import "schema/data/base/booleanData.v1.proto"; | ||
import "schema/data/base/decData.v1.proto"; | ||
import "schema/data/base/heightData.v1.proto"; | ||
import "schema/data/base/idData.v1.proto"; | ||
import "schema/data/base/stringData.v1.proto"; | ||
|
||
|
||
message Data{ | ||
oneof impl{ | ||
AccAddressData accAddressData = 1; | ||
BooleanData booleanData = 2; | ||
DecData decData = 3; | ||
HeightData heightData = 4; | ||
IDData idData = 5; | ||
StringData stringData = 6; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
syntax = "proto3"; | ||
package data; | ||
import "gogoproto/gogo.proto"; | ||
|
||
message DecData{ | ||
string value = 1 [(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", (gogoproto.nullable) = false]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
syntax = "proto3"; | ||
package data; | ||
|
||
import "schema/types/base/height.v1.proto"; | ||
|
||
message HeightData{ | ||
types.Height value = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
syntax = "proto3"; | ||
package data; | ||
|
||
import "schema/ids/base/id.v1.proto"; | ||
|
||
message IDData { | ||
ids.ID value = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
syntax = "proto3"; | ||
package data; | ||
|
||
message StringData{ | ||
string value = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
syntax = "proto3"; | ||
package ids; | ||
|
||
import "schema/ids/base/hashID.v1.proto"; | ||
message AssetID{ | ||
HashID hash_i_d = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
syntax = "proto3"; | ||
package ids; | ||
|
||
import "schema/ids/base/hashID.v1.proto"; | ||
|
||
message ClassificationID { | ||
HashID hash_i_d = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
syntax = "proto3"; | ||
package ids; | ||
|
||
import "schema/ids/base/hashID.v1.proto"; | ||
import "schema/ids/base/stringID.v1.proto"; | ||
|
||
message DataID { | ||
StringID type_i_d = 1; | ||
HashID hash_i_d = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
syntax = "proto3"; | ||
package ids; | ||
|
||
|
||
message HashID { | ||
bytes id_bytes = 1; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
syntax = "proto3"; | ||
package ids; | ||
|
||
import "schema/ids/base/assetID.v1.proto"; | ||
import "schema/ids/base/classificationID.v1.proto"; | ||
import "schema/ids/base/dataID.v1.proto"; | ||
import "schema/ids/base/hashID.v1.proto"; | ||
import "schema/ids/base/identityID.v1.proto"; | ||
import "schema/ids/base/maintainerID.v1.proto"; | ||
import "schema/ids/base/orderID.v1.proto"; | ||
import "schema/ids/base/ownableID.v1.proto"; | ||
import "schema/ids/base/propertyID.v1.proto"; | ||
import "schema/ids/base/splitID.v1.proto"; | ||
import "schema/ids/base/stringID.v1.proto"; | ||
|
||
message ID { | ||
oneof impl { | ||
AssetID AssetID = 1; | ||
ClassificationID ClassificationID = 2; | ||
DataID DataID = 3; | ||
HashID HashID = 4; | ||
IdentityID IdentityID = 5; | ||
MaintainerID MaintainerID = 6; | ||
OrderID OrderID = 7; | ||
OwnableID OwnableID = 8; | ||
PropertyID PropertyID = 9; | ||
SplitID SplitID = 10; | ||
StringID StringID = 11; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
syntax = "proto3"; | ||
package ids; | ||
|
||
import "schema/ids/base/hashID.v1.proto"; | ||
|
||
message IdentityID{ | ||
HashID hash_i_d = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
syntax = "proto3"; | ||
package ids; | ||
|
||
import "schema/ids/base/hashID.v1.proto"; | ||
|
||
message MaintainerID { | ||
HashID hash_i_d = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
syntax = "proto3"; | ||
package ids; | ||
|
||
import "schema/ids/base/hashID.v1.proto"; | ||
|
||
message OrderID { | ||
HashID order_i_d = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
syntax = "proto3"; | ||
package ids; | ||
|
||
import "schema/ids/base/stringID.v1.proto"; | ||
|
||
message OwnableID{ | ||
StringID string_i_d = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
syntax = "proto3"; | ||
package ids; | ||
|
||
import "schema/ids/base/stringID.v1.proto"; | ||
|
||
message PropertyID{ | ||
StringID key_i_d = 1; | ||
StringID type_i_d = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
syntax = "proto3"; | ||
package ids; | ||
|
||
import "schema/ids/base/identityID.v1.proto"; | ||
import "schema/ids/base/ownableID.v1.proto"; | ||
|
||
message SplitID { | ||
IdentityID owner_i_d = 1; | ||
OwnableID ownable_i_d = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
syntax="proto3"; | ||
package ids; | ||
|
||
|
||
message StringID { | ||
string id_string = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
syntax = "proto3"; | ||
package types; | ||
|
||
message Height { | ||
int64 value = 1; | ||
} |