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