hash reference

This commit is contained in:
0xmuralik 2023-01-17 11:55:08 +05:30
parent d44ab22d87
commit 420042b9de

View File

@ -5,6 +5,10 @@ import "gogoproto/gogo.proto";
option go_package = "github.com/cerc-io/laconicd/x/registry/types"; option go_package = "github.com/cerc-io/laconicd/x/registry/types";
message HashReference {
map<string,string> hash_reference=1;
}
message ServiceProviderRecord { message ServiceProviderRecord {
string bond_id = 1 [(gogoproto.moretags) = "json:\"bondId\" yaml:\"bondId\""]; string bond_id = 1 [(gogoproto.moretags) = "json:\"bondId\" yaml:\"bondId\""];
string laconic_id = 2 [(gogoproto.moretags) = "json:\"laconicId\" yaml:\"laconicId\""]; string laconic_id = 2 [(gogoproto.moretags) = "json:\"laconicId\" yaml:\"laconicId\""];
@ -42,37 +46,36 @@ message GitRepository{
} }
message Binary{ message Binary{
string raw_multicodec=1; HashReference hash_reference=1;
string raw_binary=2; string targeted_arch=2;
string targeted_arch=3; string runtime_version=3;
string runtime_version=4; HashReference repo_hash_reference=4;
string repo_reference=5; string version=5;
string version=6; string type=6;
string type=7;
} }
message DockerImage{ message DockerImage{
string image_id=1; string image_id=1;
string image_binary=2; HashReference binary_hash_reference=2;
string reference_repo=3; HashReference repo_hash_reference=3;
string version=4; string version=4;
string type=5; string type=5;
} }
message WatcherRegistrationRecord{ message WatcherRegistrationRecord{
WatcherMetadata metadata =1; WatcherMetadata metadata =1;
string repo_reference=2; HashReference repo_hash_reference=2;
WASMBinary wasm=3; WASMBinary wasm=3;
string version=4; string version=4;
string type=5; string type=5;
message WatcherMetadata{ message WatcherMetadata{
string version=1; string version=1;
string chain_reference=2; HashReference chain_hash_reference=2;
} }
message WASMBinary{ message WASMBinary{
string reference=1; HashReference hash_reference=1;
WASMBinaryMetadata metadata=2; WASMBinaryMetadata metadata=2;
} }
@ -83,18 +86,19 @@ message WatcherRegistrationRecord{
} }
message ResponderContract{ message ResponderContract{
string service_provider_ref=1; HashReference service_provider_hash_ref=1;
string auction_ref=2; HashReference auction_hash_ref=2;
string watcher_ref=3; HashReference watcher_hash_ref=3;
string version=4; string version=4;
string type=5; string type=5;
} }
message NPMPackage{ message JSPackage{
string repo_reference=1; HashReference repo_hash_reference=1;
string npm_package_ref=2; HashReference js_package_hash_ref=2;
string version=3; string version=3;
string type=4; string type=4;
string name =5;
} }
message ChainRegistrationRecord{ message ChainRegistrationRecord{
@ -102,6 +106,9 @@ message ChainRegistrationRecord{
repeated string ipld_types=2; repeated string ipld_types=2;
string type=3; string type=3;
string version=4; string version=4;
string chain_id=5;
string netwrok_id=6;
string genesis_hash=7;
} }
message AppRecord{ message AppRecord{