feat: attribute typing (#40)

* marshal and unmarshal

* attributes proto

* fix

* process attributes and create secondary mappings

* get records from attributes

* fix

* fix lint errors

* fix gosec

* lower case

* go mod tidy

* Fix tests

* "add search test"

* req attributes

* grpc tests

* fix tests

* register interface

* fix tests

* Remove git diff from test workflows

* fix workflow file

* fix simulations

* fix names and add checks for attributes in tests

* Add comment for attribute prefix
This commit was merged in pull request #40.
This commit is contained in:
Murali Krishna Komatireddy
2022-11-15 11:51:14 +05:30
committed by GitHub
parent 72ec75a857
commit 6b04c0ee5e
35 changed files with 2187 additions and 601 deletions
+80 -1
View File
@@ -160,6 +160,11 @@
- [Msg](#vulcanize.bond.v1beta1.Msg)
- [vulcanize/nameservice/v1beta1/attributes.proto](#vulcanize/nameservice/v1beta1/attributes.proto)
- [ServiceProviderRegistration](#vulcanize.nameservice.v1beta1.ServiceProviderRegistration)
- [WebsiteRegistrationRecord](#vulcanize.nameservice.v1beta1.WebsiteRegistrationRecord)
- [X500](#vulcanize.nameservice.v1beta1.X500)
- [vulcanize/nameservice/v1beta1/nameservice.proto](#vulcanize/nameservice/v1beta1/nameservice.proto)
- [AuctionBidInfo](#vulcanize.nameservice.v1beta1.AuctionBidInfo)
- [AuthorityEntry](#vulcanize.nameservice.v1beta1.AuthorityEntry)
@@ -2310,6 +2315,79 @@ Msg defines the bond Msg service.
<a name="vulcanize/nameservice/v1beta1/attributes.proto"></a>
<p align="right"><a href="#top">Top</a></p>
## vulcanize/nameservice/v1beta1/attributes.proto
<a name="vulcanize.nameservice.v1beta1.ServiceProviderRegistration"></a>
### ServiceProviderRegistration
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `bond_id` | [string](#string) | | |
| `laconic_id` | [string](#string) | | |
| `x500` | [X500](#vulcanize.nameservice.v1beta1.X500) | | |
| `type` | [string](#string) | | |
<a name="vulcanize.nameservice.v1beta1.WebsiteRegistrationRecord"></a>
### WebsiteRegistrationRecord
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `url` | [string](#string) | | |
| `repo_registration_record_cid` | [string](#string) | | |
| `build_artifact_cid` | [string](#string) | | |
| `tls_cert_cid` | [string](#string) | | |
| `type` | [string](#string) | | |
<a name="vulcanize.nameservice.v1beta1.X500"></a>
### X500
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `common_name` | [string](#string) | | |
| `organization_unit` | [string](#string) | | |
| `organization_name` | [string](#string) | | |
| `locality_name` | [string](#string) | | |
| `state_name` | [string](#string) | | |
| `country` | [string](#string) | | |
<!-- end messages -->
<!-- end enums -->
<!-- end HasExtensions -->
<!-- end services -->
<a name="vulcanize/nameservice/v1beta1/nameservice.proto"></a>
<p align="right"><a href="#top">Top</a></p>
@@ -2477,8 +2555,9 @@ Params defines the nameservice module records
| `expiry_time` | [string](#string) | | |
| `deleted` | [bool](#bool) | | |
| `owners` | [string](#string) | repeated | |
| `attributes` | [string](#string) | | |
| `attributes` | [google.protobuf.Any](#google.protobuf.Any) | | |
| `names` | [string](#string) | repeated | |
| `type` | [string](#string) | | |