From 78ff598e53c2646384b0e09dbf434c7ea17dfbdc Mon Sep 17 00:00:00 2001 From: Aaron Craelius Date: Wed, 29 Nov 2023 13:27:12 -0500 Subject: [PATCH 1/6] docs(x/data): document IPFS resolver support --- proto/regen/data/v1/tx.proto | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/proto/regen/data/v1/tx.proto b/proto/regen/data/v1/tx.proto index 88334638dd..1427e7b556 100644 --- a/proto/regen/data/v1/tx.proto +++ b/proto/regen/data/v1/tx.proto @@ -114,11 +114,18 @@ message MsgDefineResolver { // the manager should make use of cosmos.authz. string manager = 1; - // resolver_url is a resolver URL which should refer to an HTTP service - // which will respond to a GET request with the IRI of a ContentHash + // resolver_url is a resolver URL. + // + // If it refers to an HTTP URL, that HTTP service should + // respond to a GET request with the IRI of a ContentHash as the path parameter // and return the content if it exists or a 404. For graph data, resolvers // should use the HTTP Accept header to negotiate the RDF serialization // format. + // + // To use IPFS, the resolver_url ipfs: should be defined and u + // resolver for any data hosted on IPFS. Content hashes must be + // adapted to IPFS's CID format. Only content hashes which have + // an equivalent CID representation can be used with IPFS. string resolver_url = 2; } From db0a7f31e7e1ad9da8d40417d542c96f5535ea76 Mon Sep 17 00:00:00 2001 From: Aaron Craelius Date: Thu, 30 Nov 2023 14:08:22 -0500 Subject: [PATCH 2/6] update IPFS docs --- proto/regen/data/v1/tx.proto | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/proto/regen/data/v1/tx.proto b/proto/regen/data/v1/tx.proto index 1427e7b556..df929197a2 100644 --- a/proto/regen/data/v1/tx.proto +++ b/proto/regen/data/v1/tx.proto @@ -122,10 +122,13 @@ message MsgDefineResolver { // should use the HTTP Accept header to negotiate the RDF serialization // format. // - // To use IPFS, the resolver_url ipfs: should be defined and u + // To use IPFS, the resolver_url ipfs: should be defined and used as the // resolver for any data hosted on IPFS. Content hashes must be - // adapted to IPFS's CID format. Only content hashes which have - // an equivalent CID representation can be used with IPFS. + // adapted to IPFS's CID format. The multicodec raw (0x55) should + // be used for all raw content hashes and the multicodec rdfc-1 (0xb403) + // should be used for all graph content hashes (unless new canonicalization + // or merkle tree algorithms are used which may or may not be supported + // by IPFS). string resolver_url = 2; } From f35e6f6de4f8e49b58000f74b5968e270dfc6eea Mon Sep 17 00:00:00 2001 From: Aaron Craelius Date: Tue, 5 Mar 2024 17:27:34 -0500 Subject: [PATCH 3/6] list caveats --- api/regen/data/v1/query.pulsar.go | 94 ++++---- api/regen/data/v1/tx.pulsar.go | 16 +- api/regen/data/v2/query.pulsar.go | 94 ++++---- api/regen/ecocredit/basket/v1/query.pulsar.go | 48 ++-- .../ecocredit/marketplace/v1/query.pulsar.go | 42 ++-- api/regen/ecocredit/v1/query.pulsar.go | 211 +++++++++--------- proto/regen/data/v1/tx.proto | 4 +- 7 files changed, 262 insertions(+), 247 deletions(-) diff --git a/api/regen/data/v1/query.pulsar.go b/api/regen/data/v1/query.pulsar.go index b106f7cd99..a0287b6c26 100644 --- a/api/regen/data/v1/query.pulsar.go +++ b/api/regen/data/v1/query.pulsar.go @@ -13729,11 +13729,11 @@ var file_regen_data_v1_query_proto_rawDesc = []byte{ 0x6f, 0x72, 0x42, 0x79, 0x49, 0x52, 0x49, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x42, 0x79, 0x49, 0x52, 0x49, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x48, 0x12, - 0x22, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, - 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2d, 0x62, 0x79, 0x2d, 0x69, 0x72, 0x69, 0x2f, 0x7b, 0x69, - 0x72, 0x69, 0x7d, 0x5a, 0x22, 0x12, 0x20, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, - 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x73, 0x2f, 0x69, 0x72, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x48, 0x5a, + 0x22, 0x12, 0x20, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, + 0x31, 0x2f, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x73, 0x2f, 0x69, 0x72, 0x69, 0x2f, 0x7b, 0x69, + 0x72, 0x69, 0x7d, 0x12, 0x22, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, + 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2d, 0x62, 0x79, 0x2d, 0x69, 0x72, 0x69, 0x2f, 0x7b, 0x69, 0x72, 0x69, 0x7d, 0x12, 0xad, 0x01, 0x0a, 0x0c, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6e, @@ -13741,11 +13741,11 @@ var file_regen_data_v1_query_proto_rawDesc = []byte{ 0x74, 0x1a, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4a, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x44, 0x22, 0x1d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, - 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2d, 0x62, 0x79, 0x2d, 0x68, 0x61, - 0x73, 0x68, 0x3a, 0x01, 0x2a, 0x5a, 0x20, 0x22, 0x1b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, - 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x73, 0x2f, - 0x68, 0x61, 0x73, 0x68, 0x3a, 0x01, 0x2a, 0x12, 0xee, 0x01, 0x0a, 0x16, 0x41, 0x74, 0x74, 0x65, + 0x93, 0x02, 0x44, 0x3a, 0x01, 0x2a, 0x5a, 0x20, 0x3a, 0x01, 0x2a, 0x22, 0x1b, 0x2f, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6e, 0x63, 0x68, + 0x6f, 0x72, 0x73, 0x2f, 0x68, 0x61, 0x73, 0x68, 0x22, 0x1d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2d, + 0x62, 0x79, 0x2d, 0x68, 0x61, 0x73, 0x68, 0x12, 0xee, 0x01, 0x0a, 0x16, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x12, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, @@ -13754,12 +13754,12 @@ var file_regen_data_v1_query_proto_rawDesc = []byte{ 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6d, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x67, 0x12, 0x32, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, - 0x31, 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2d, 0x62, - 0x79, 0x2d, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x2f, 0x7b, 0x61, 0x74, 0x74, 0x65, - 0x73, 0x74, 0x6f, 0x72, 0x7d, 0x5a, 0x31, 0x12, 0x2f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, - 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x2f, 0x7b, 0x61, + 0x67, 0x5a, 0x31, 0x12, 0x2f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, + 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x2f, 0x7b, 0x61, 0x74, 0x74, 0x65, 0x73, + 0x74, 0x6f, 0x72, 0x7d, 0x12, 0x32, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, + 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x2f, 0x7b, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x7d, 0x12, 0xcb, 0x01, 0x0a, 0x11, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x49, 0x52, 0x49, 0x12, 0x2c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, @@ -13768,11 +13768,11 @@ var file_regen_data_v1_query_proto_rawDesc = []byte{ 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x49, 0x52, 0x49, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x59, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x53, 0x12, 0x28, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, - 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2d, 0x62, 0x79, 0x2d, 0x69, 0x72, 0x69, 0x2f, 0x7b, 0x69, 0x72, 0x69, 0x7d, 0x5a, 0x27, 0x12, - 0x25, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, - 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x69, 0x72, 0x69, + 0x93, 0x02, 0x53, 0x5a, 0x27, 0x12, 0x25, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, + 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x69, 0x72, 0x69, 0x2f, 0x7b, 0x69, 0x72, 0x69, 0x7d, 0x12, 0x28, 0x2f, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x74, 0x74, + 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x69, 0x72, 0x69, 0x2f, 0x7b, 0x69, 0x72, 0x69, 0x7d, 0x12, 0xca, 0x01, 0x0a, 0x12, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x12, 0x2d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, @@ -13781,21 +13781,21 @@ var file_regen_data_v1_query_proto_rawDesc = []byte{ 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x55, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x4f, 0x22, 0x23, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, - 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x68, 0x61, 0x73, 0x68, 0x3a, 0x01, 0x2a, 0x5a, 0x25, 0x22, 0x20, + 0xe4, 0x93, 0x02, 0x4f, 0x3a, 0x01, 0x2a, 0x5a, 0x25, 0x3a, 0x01, 0x2a, 0x22, 0x20, 0x2f, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x74, 0x74, + 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x68, 0x61, 0x73, 0x68, 0x22, 0x23, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x61, - 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x68, 0x61, 0x73, 0x68, - 0x3a, 0x01, 0x2a, 0x12, 0x9c, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, + 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x68, + 0x61, 0x73, 0x68, 0x12, 0x9c, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x12, 0x23, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x45, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x3f, 0x12, 0x1c, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, - 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2f, 0x7b, 0x69, 0x64, - 0x7d, 0x5a, 0x1f, 0x12, 0x1d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, - 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x69, + 0x93, 0x02, 0x3f, 0x5a, 0x1f, 0x12, 0x1d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, + 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x2f, + 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x1c, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, + 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0xbc, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x42, 0x79, 0x49, 0x52, 0x49, 0x12, 0x29, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, @@ -13803,11 +13803,11 @@ var file_regen_data_v1_query_proto_rawDesc = []byte{ 0x1a, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x42, 0x79, 0x49, 0x52, 0x49, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x53, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x4d, 0x12, 0x25, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, - 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x2d, 0x62, - 0x79, 0x2d, 0x69, 0x72, 0x69, 0x2f, 0x7b, 0x69, 0x72, 0x69, 0x7d, 0x5a, 0x24, 0x12, 0x22, 0x2f, - 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, - 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x2f, 0x69, 0x72, 0x69, 0x2f, 0x7b, 0x69, 0x72, 0x69, + 0xe4, 0x93, 0x02, 0x4d, 0x5a, 0x24, 0x12, 0x22, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, + 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, + 0x2f, 0x69, 0x72, 0x69, 0x2f, 0x7b, 0x69, 0x72, 0x69, 0x7d, 0x12, 0x25, 0x2f, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, + 0x76, 0x65, 0x72, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x69, 0x72, 0x69, 0x2f, 0x7b, 0x69, 0x72, 0x69, 0x7d, 0x12, 0xbb, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x12, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, @@ -13815,11 +13815,11 @@ var file_regen_data_v1_query_proto_rawDesc = []byte{ 0x74, 0x1a, 0x2b, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4f, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x22, 0x20, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, - 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, - 0x2d, 0x62, 0x79, 0x2d, 0x68, 0x61, 0x73, 0x68, 0x3a, 0x01, 0x2a, 0x5a, 0x22, 0x22, 0x1d, 0x2f, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x3a, 0x01, 0x2a, 0x5a, 0x22, 0x3a, 0x01, 0x2a, 0x22, 0x1d, + 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x72, + 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x2f, 0x68, 0x61, 0x73, 0x68, 0x22, 0x20, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, - 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x2f, 0x68, 0x61, 0x73, 0x68, 0x3a, 0x01, 0x2a, 0x12, + 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x68, 0x61, 0x73, 0x68, 0x12, 0xb6, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x42, 0x79, 0x55, 0x52, 0x4c, 0x12, 0x29, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, @@ -13827,11 +13827,11 @@ var file_regen_data_v1_query_proto_rawDesc = []byte{ 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x42, 0x79, 0x55, 0x52, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4d, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x47, 0x22, 0x1f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, - 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x75, - 0x72, 0x6c, 0x3a, 0x01, 0x2a, 0x5a, 0x21, 0x22, 0x1c, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, + 0x47, 0x3a, 0x01, 0x2a, 0x5a, 0x21, 0x3a, 0x01, 0x2a, 0x22, 0x1c, 0x2f, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, + 0x65, 0x72, 0x73, 0x2f, 0x75, 0x72, 0x6c, 0x22, 0x1f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, - 0x73, 0x2f, 0x75, 0x72, 0x6c, 0x3a, 0x01, 0x2a, 0x12, 0x95, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6e, + 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x75, 0x72, 0x6c, 0x12, 0x95, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x49, 0x52, 0x49, 0x54, 0x6f, 0x48, 0x61, 0x73, 0x68, 0x12, 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x49, 0x52, 0x49, 0x54, 0x6f, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, @@ -13847,10 +13847,10 @@ var file_regen_data_v1_query_proto_rawDesc = []byte{ 0x68, 0x54, 0x6f, 0x49, 0x52, 0x49, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x48, 0x61, 0x73, 0x68, 0x54, 0x6f, 0x49, 0x52, 0x49, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x22, 0x22, - 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x31, 0x2f, 0x63, - 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x2d, 0x68, 0x61, 0x73, 0x68, 0x2d, 0x74, 0x6f, 0x2d, 0x69, - 0x72, 0x69, 0x3a, 0x01, 0x2a, 0x42, 0xb5, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x3a, 0x01, + 0x2a, 0x22, 0x22, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, + 0x31, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x2d, 0x68, 0x61, 0x73, 0x68, 0x2d, 0x74, + 0x6f, 0x2d, 0x69, 0x72, 0x69, 0x42, 0xb5, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, 0x77, diff --git a/api/regen/data/v1/tx.pulsar.go b/api/regen/data/v1/tx.pulsar.go index fa96574dc2..987c028aa4 100644 --- a/api/regen/data/v1/tx.pulsar.go +++ b/api/regen/data/v1/tx.pulsar.go @@ -4196,11 +4196,23 @@ type MsgDefineResolver struct { // Msg/RegisterResolver. To authorize other accounts to register resolvers, // the manager should make use of cosmos.authz. Manager string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,omitempty"` - // resolver_url is a resolver URL which should refer to an HTTP service - // which will respond to a GET request with the IRI of a ContentHash + // resolver_url is a resolver URL. + // + // If it refers to an HTTP URL, that HTTP service should + // respond to a GET request with the IRI of a ContentHash as the path parameter // and return the content if it exists or a 404. For graph data, resolvers // should use the HTTP Accept header to negotiate the RDF serialization // format. + // + // To use IPFS, the resolver_url ipfs: should be defined and used as the + // resolver for any data hosted on IPFS. Content hashes must be + // adapted to IPFS's CID format. The multicodec raw (0x55) should + // be used for all raw content hashes and the multicodec rdfc-1 (0xb403) + // should be used for all graph content hashes (unless new canonicalization + // or merkle tree algorithms are used which may or may not be supported + // by IPFS). Note that IPFS's tools currently do not support creating or + // resolving RDFC-1 content hashes so upstream work will be needed for + // that integration to be fully supported. ResolverUrl string `protobuf:"bytes,2,opt,name=resolver_url,json=resolverUrl,proto3" json:"resolver_url,omitempty"` } diff --git a/api/regen/data/v2/query.pulsar.go b/api/regen/data/v2/query.pulsar.go index bf23e4dab2..c26cad98bb 100644 --- a/api/regen/data/v2/query.pulsar.go +++ b/api/regen/data/v2/query.pulsar.go @@ -13729,11 +13729,11 @@ var file_regen_data_v2_query_proto_rawDesc = []byte{ 0x6f, 0x72, 0x42, 0x79, 0x49, 0x52, 0x49, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x42, 0x79, 0x49, 0x52, 0x49, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x48, 0x12, - 0x22, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x32, 0x2f, - 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2d, 0x62, 0x79, 0x2d, 0x69, 0x72, 0x69, 0x2f, 0x7b, 0x69, - 0x72, 0x69, 0x7d, 0x5a, 0x22, 0x12, 0x20, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, - 0x74, 0x61, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x73, 0x2f, 0x69, 0x72, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4e, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x48, 0x5a, + 0x22, 0x12, 0x20, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, + 0x32, 0x2f, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x73, 0x2f, 0x69, 0x72, 0x69, 0x2f, 0x7b, 0x69, + 0x72, 0x69, 0x7d, 0x12, 0x22, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, + 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2d, 0x62, 0x79, 0x2d, 0x69, 0x72, 0x69, 0x2f, 0x7b, 0x69, 0x72, 0x69, 0x7d, 0x12, 0xad, 0x01, 0x0a, 0x0c, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6e, @@ -13741,11 +13741,11 @@ var file_regen_data_v2_query_proto_rawDesc = []byte{ 0x74, 0x1a, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4a, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x44, 0x22, 0x1d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, - 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2d, 0x62, 0x79, 0x2d, 0x68, 0x61, - 0x73, 0x68, 0x3a, 0x01, 0x2a, 0x5a, 0x20, 0x22, 0x1b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, - 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x73, 0x2f, - 0x68, 0x61, 0x73, 0x68, 0x3a, 0x01, 0x2a, 0x12, 0xee, 0x01, 0x0a, 0x16, 0x41, 0x74, 0x74, 0x65, + 0x93, 0x02, 0x44, 0x3a, 0x01, 0x2a, 0x5a, 0x20, 0x3a, 0x01, 0x2a, 0x22, 0x1b, 0x2f, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x6e, 0x63, 0x68, + 0x6f, 0x72, 0x73, 0x2f, 0x68, 0x61, 0x73, 0x68, 0x22, 0x1d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x2d, + 0x62, 0x79, 0x2d, 0x68, 0x61, 0x73, 0x68, 0x12, 0xee, 0x01, 0x0a, 0x16, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x12, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, @@ -13754,12 +13754,12 @@ var file_regen_data_v2_query_proto_rawDesc = []byte{ 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6d, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x67, 0x12, 0x32, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, - 0x32, 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2d, 0x62, - 0x79, 0x2d, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x2f, 0x7b, 0x61, 0x74, 0x74, 0x65, - 0x73, 0x74, 0x6f, 0x72, 0x7d, 0x5a, 0x31, 0x12, 0x2f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, - 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x2f, 0x7b, 0x61, + 0x67, 0x5a, 0x31, 0x12, 0x2f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, + 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, + 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x2f, 0x7b, 0x61, 0x74, 0x74, 0x65, 0x73, + 0x74, 0x6f, 0x72, 0x7d, 0x12, 0x32, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, + 0x61, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x2f, 0x7b, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x6f, 0x72, 0x7d, 0x12, 0xcb, 0x01, 0x0a, 0x11, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x49, 0x52, 0x49, 0x12, 0x2c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x51, @@ -13768,11 +13768,11 @@ var file_regen_data_v2_query_proto_rawDesc = []byte{ 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x49, 0x52, 0x49, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x59, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x53, 0x12, 0x28, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, - 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x2d, 0x62, 0x79, 0x2d, 0x69, 0x72, 0x69, 0x2f, 0x7b, 0x69, 0x72, 0x69, 0x7d, 0x5a, 0x27, 0x12, - 0x25, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x32, 0x2f, - 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x69, 0x72, 0x69, + 0x93, 0x02, 0x53, 0x5a, 0x27, 0x12, 0x25, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, + 0x74, 0x61, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x2f, 0x69, 0x72, 0x69, 0x2f, 0x7b, 0x69, 0x72, 0x69, 0x7d, 0x12, 0x28, 0x2f, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x74, 0x74, + 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x69, 0x72, 0x69, 0x2f, 0x7b, 0x69, 0x72, 0x69, 0x7d, 0x12, 0xca, 0x01, 0x0a, 0x12, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x12, 0x2d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, @@ -13781,21 +13781,21 @@ var file_regen_data_v2_query_proto_rawDesc = []byte{ 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x55, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x4f, 0x22, 0x23, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, - 0x61, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x68, 0x61, 0x73, 0x68, 0x3a, 0x01, 0x2a, 0x5a, 0x25, 0x22, 0x20, + 0xe4, 0x93, 0x02, 0x4f, 0x3a, 0x01, 0x2a, 0x5a, 0x25, 0x3a, 0x01, 0x2a, 0x22, 0x20, 0x2f, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x32, 0x2f, 0x61, 0x74, 0x74, + 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x68, 0x61, 0x73, 0x68, 0x22, 0x23, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x32, 0x2f, 0x61, - 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x68, 0x61, 0x73, 0x68, - 0x3a, 0x01, 0x2a, 0x12, 0x9c, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, + 0x74, 0x74, 0x65, 0x73, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x68, + 0x61, 0x73, 0x68, 0x12, 0x9c, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x12, 0x23, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x45, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x3f, 0x12, 0x1c, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, - 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2f, 0x7b, 0x69, 0x64, - 0x7d, 0x5a, 0x1f, 0x12, 0x1d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, - 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x69, + 0x93, 0x02, 0x3f, 0x5a, 0x1f, 0x12, 0x1d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, + 0x74, 0x61, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x2f, + 0x7b, 0x69, 0x64, 0x7d, 0x12, 0x1c, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, + 0x61, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x2f, 0x7b, 0x69, 0x64, 0x7d, 0x12, 0xbc, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x42, 0x79, 0x49, 0x52, 0x49, 0x12, 0x29, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, @@ -13803,11 +13803,11 @@ var file_regen_data_v2_query_proto_rawDesc = []byte{ 0x1a, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x42, 0x79, 0x49, 0x52, 0x49, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x53, 0x82, 0xd3, - 0xe4, 0x93, 0x02, 0x4d, 0x12, 0x25, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, - 0x61, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x2d, 0x62, - 0x79, 0x2d, 0x69, 0x72, 0x69, 0x2f, 0x7b, 0x69, 0x72, 0x69, 0x7d, 0x5a, 0x24, 0x12, 0x22, 0x2f, - 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, - 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x2f, 0x69, 0x72, 0x69, 0x2f, 0x7b, 0x69, 0x72, 0x69, + 0xe4, 0x93, 0x02, 0x4d, 0x5a, 0x24, 0x12, 0x22, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, + 0x61, 0x74, 0x61, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, + 0x2f, 0x69, 0x72, 0x69, 0x2f, 0x7b, 0x69, 0x72, 0x69, 0x7d, 0x12, 0x25, 0x2f, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, + 0x76, 0x65, 0x72, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x69, 0x72, 0x69, 0x2f, 0x7b, 0x69, 0x72, 0x69, 0x7d, 0x12, 0xbb, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x12, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, @@ -13815,11 +13815,11 @@ var file_regen_data_v2_query_proto_rawDesc = []byte{ 0x74, 0x1a, 0x2b, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x42, 0x79, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4f, - 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x22, 0x20, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, - 0x61, 0x74, 0x61, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, - 0x2d, 0x62, 0x79, 0x2d, 0x68, 0x61, 0x73, 0x68, 0x3a, 0x01, 0x2a, 0x5a, 0x22, 0x22, 0x1d, 0x2f, + 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x49, 0x3a, 0x01, 0x2a, 0x5a, 0x22, 0x3a, 0x01, 0x2a, 0x22, 0x1d, + 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x32, 0x2f, 0x72, + 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x2f, 0x68, 0x61, 0x73, 0x68, 0x22, 0x20, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, - 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x2f, 0x68, 0x61, 0x73, 0x68, 0x3a, 0x01, 0x2a, 0x12, + 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x68, 0x61, 0x73, 0x68, 0x12, 0xb6, 0x01, 0x0a, 0x0e, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x42, 0x79, 0x55, 0x52, 0x4c, 0x12, 0x29, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, @@ -13827,11 +13827,11 @@ var file_regen_data_v2_query_proto_rawDesc = []byte{ 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x42, 0x79, 0x55, 0x52, 0x4c, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4d, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x47, 0x22, 0x1f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, - 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x75, - 0x72, 0x6c, 0x3a, 0x01, 0x2a, 0x5a, 0x21, 0x22, 0x1c, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, + 0x47, 0x3a, 0x01, 0x2a, 0x5a, 0x21, 0x3a, 0x01, 0x2a, 0x22, 0x1c, 0x2f, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, + 0x65, 0x72, 0x73, 0x2f, 0x75, 0x72, 0x6c, 0x22, 0x1f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x32, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, - 0x73, 0x2f, 0x75, 0x72, 0x6c, 0x3a, 0x01, 0x2a, 0x12, 0x95, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6e, + 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x75, 0x72, 0x6c, 0x12, 0x95, 0x01, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x49, 0x52, 0x49, 0x54, 0x6f, 0x48, 0x61, 0x73, 0x68, 0x12, 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x49, 0x52, 0x49, 0x54, 0x6f, 0x48, 0x61, 0x73, 0x68, 0x52, 0x65, @@ -13847,10 +13847,10 @@ var file_regen_data_v2_query_proto_rawDesc = []byte{ 0x68, 0x54, 0x6f, 0x49, 0x52, 0x49, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x48, 0x61, 0x73, 0x68, 0x54, 0x6f, 0x49, 0x52, 0x49, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x22, 0x22, - 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x32, 0x2f, 0x63, - 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x2d, 0x68, 0x61, 0x73, 0x68, 0x2d, 0x74, 0x6f, 0x2d, 0x69, - 0x72, 0x69, 0x3a, 0x01, 0x2a, 0x42, 0xb5, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x2d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x27, 0x3a, 0x01, + 0x2a, 0x22, 0x22, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, + 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x74, 0x2d, 0x68, 0x61, 0x73, 0x68, 0x2d, 0x74, + 0x6f, 0x2d, 0x69, 0x72, 0x69, 0x42, 0xb5, 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x42, 0x0a, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, 0x77, diff --git a/api/regen/ecocredit/basket/v1/query.pulsar.go b/api/regen/ecocredit/basket/v1/query.pulsar.go index dbc4d63fa6..baca20c0b8 100644 --- a/api/regen/ecocredit/basket/v1/query.pulsar.go +++ b/api/regen/ecocredit/basket/v1/query.pulsar.go @@ -7146,12 +7146,12 @@ var file_regen_ecocredit_basket_v1_query_proto_rawDesc = []byte{ 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x6d, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x67, 0x12, 0x30, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2f, 0x76, - 0x31, 0x2f, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2f, 0x7b, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, - 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x5a, 0x33, 0x12, 0x31, 0x2f, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x62, 0x61, 0x73, 0x6b, - 0x65, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x73, 0x2f, 0x7b, 0x62, + 0xd3, 0xe4, 0x93, 0x02, 0x67, 0x5a, 0x33, 0x12, 0x31, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, + 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, + 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x73, + 0x6b, 0x65, 0x74, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x12, 0x30, 0x2f, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x62, 0x61, 0x73, + 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2f, 0x7b, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x12, 0x96, 0x01, 0x0a, 0x07, 0x42, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x73, 0x12, 0x2e, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x73, 0x6b, 0x65, @@ -7170,15 +7170,15 @@ var file_regen_ecocredit_basket_v1_query_proto_rawDesc = []byte{ 0x36, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x79, 0x12, - 0x39, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x2f, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x73, 0x6b, - 0x65, 0x74, 0x2d, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x73, - 0x6b, 0x65, 0x74, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x5a, 0x3c, 0x12, 0x3a, 0x2f, 0x72, - 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x62, - 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x73, - 0x2f, 0x7b, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x2f, - 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x9a, 0x02, 0x0a, 0x0d, 0x42, 0x61, 0x73, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x7f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x79, 0x5a, + 0x3c, 0x12, 0x3a, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2f, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, + 0x73, 0x6b, 0x65, 0x74, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x5f, 0x64, 0x65, + 0x6e, 0x6f, 0x6d, 0x7d, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x39, 0x2f, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, + 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, + 0x2d, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x73, 0x6b, 0x65, + 0x74, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x12, 0x9a, 0x02, 0x0a, 0x0d, 0x42, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x34, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x73, 0x6b, @@ -7187,15 +7187,15 @@ var file_regen_ecocredit_basket_v1_query_proto_rawDesc = []byte{ 0x69, 0x74, 0x2e, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9b, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x94, - 0x01, 0x12, 0x46, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x2f, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, - 0x73, 0x6b, 0x65, 0x74, 0x2d, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x7b, 0x62, 0x61, - 0x73, 0x6b, 0x65, 0x74, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x2f, 0x7b, 0x62, 0x61, 0x74, - 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x5a, 0x4a, 0x12, 0x48, 0x2f, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x62, 0x61, - 0x73, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x73, 0x2f, - 0x7b, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x2f, 0x62, - 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, + 0x01, 0x5a, 0x4a, 0x12, 0x48, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x2f, + 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x5f, + 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, + 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x12, 0x46, 0x2f, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, + 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, + 0x2d, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x7b, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, + 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x12, 0x9f, 0x01, 0x0a, 0x09, 0x42, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x46, 0x65, 0x65, 0x12, 0x30, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x62, 0x61, 0x73, 0x6b, 0x65, 0x74, 0x2e, 0x76, 0x31, 0x2e, diff --git a/api/regen/ecocredit/marketplace/v1/query.pulsar.go b/api/regen/ecocredit/marketplace/v1/query.pulsar.go index f0e7e3862d..b23abb8206 100644 --- a/api/regen/ecocredit/marketplace/v1/query.pulsar.go +++ b/api/regen/ecocredit/marketplace/v1/query.pulsar.go @@ -6548,14 +6548,14 @@ var file_regen_ecocredit_marketplace_v1_query_proto_rawDesc = []byte{ 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x81, - 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x7b, 0x12, 0x3a, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, - 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, - 0x70, 0x6c, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x6c, 0x6c, 0x2d, 0x6f, 0x72, - 0x64, 0x65, 0x72, 0x2f, 0x7b, 0x73, 0x65, 0x6c, 0x6c, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, - 0x69, 0x64, 0x7d, 0x5a, 0x3d, 0x12, 0x3b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x70, 0x6c, - 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x6c, 0x6c, 0x2d, 0x6f, 0x72, 0x64, 0x65, - 0x72, 0x73, 0x2f, 0x7b, 0x73, 0x65, 0x6c, 0x6c, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x69, + 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x7b, 0x5a, 0x3d, 0x12, 0x3b, 0x2f, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x6c, 0x6c, 0x2d, + 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x73, 0x65, 0x6c, 0x6c, 0x5f, 0x6f, 0x72, 0x64, + 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x3a, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, + 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x70, + 0x6c, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x6c, 0x6c, 0x2d, 0x6f, 0x72, 0x64, + 0x65, 0x72, 0x2f, 0x7b, 0x73, 0x65, 0x6c, 0x6c, 0x5f, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xb2, 0x01, 0x0a, 0x0a, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x12, 0x36, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x2e, @@ -6577,14 +6577,14 @@ var file_regen_ecocredit_marketplace_v1_query_proto_rawDesc = []byte{ 0x61, 0x72, 0x6b, 0x65, 0x74, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x42, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x8e, 0x01, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x87, 0x01, 0x12, 0x42, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, - 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x70, - 0x6c, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x6c, 0x6c, 0x2d, 0x6f, 0x72, 0x64, - 0x65, 0x72, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2f, 0x7b, 0x62, 0x61, - 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x5a, 0x41, 0x12, 0x3f, 0x2f, 0x72, - 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x6d, - 0x61, 0x72, 0x6b, 0x65, 0x74, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, - 0x6c, 0x6c, 0x2d, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2f, + 0xd3, 0xe4, 0x93, 0x02, 0x87, 0x01, 0x5a, 0x41, 0x12, 0x3f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, + 0x74, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x6c, 0x6c, 0x2d, 0x6f, + 0x72, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2f, 0x7b, 0x62, 0x61, 0x74, + 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x12, 0x42, 0x2f, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, + 0x65, 0x74, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x6c, 0x6c, 0x2d, + 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x12, 0x9d, 0x02, 0x0a, 0x12, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x42, 0x79, 0x53, 0x65, 0x6c, 0x6c, 0x65, 0x72, 0x12, 0x3e, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, @@ -6595,14 +6595,14 @@ var file_regen_ecocredit_marketplace_v1_query_proto_rawDesc = []byte{ 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x65, 0x6c, 0x6c, 0x4f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x42, 0x79, 0x53, 0x65, 0x6c, 0x6c, 0x65, 0x72, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x85, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x7f, 0x12, 0x3e, - 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, - 0x73, 0x65, 0x6c, 0x6c, 0x2d, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x73, - 0x65, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x7b, 0x73, 0x65, 0x6c, 0x6c, 0x65, 0x72, 0x7d, 0x5a, 0x3d, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x85, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x7f, 0x5a, 0x3d, 0x12, 0x3b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x65, 0x6c, 0x6c, 0x2d, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x2f, 0x73, 0x65, + 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x7b, 0x73, 0x65, 0x6c, 0x6c, 0x65, 0x72, 0x7d, 0x12, 0x3e, 0x2f, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, + 0x6d, 0x61, 0x72, 0x6b, 0x65, 0x74, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x73, + 0x65, 0x6c, 0x6c, 0x2d, 0x6f, 0x72, 0x64, 0x65, 0x72, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x73, 0x65, 0x6c, 0x6c, 0x65, 0x72, 0x2f, 0x7b, 0x73, 0x65, 0x6c, 0x6c, 0x65, 0x72, 0x7d, 0x12, 0xbe, 0x01, 0x0a, 0x0d, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x65, 0x64, 0x44, 0x65, 0x6e, 0x6f, 0x6d, 0x73, 0x12, 0x39, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, diff --git a/api/regen/ecocredit/v1/query.pulsar.go b/api/regen/ecocredit/v1/query.pulsar.go index b552a26042..30d5d73ff3 100644 --- a/api/regen/ecocredit/v1/query.pulsar.go +++ b/api/regen/ecocredit/v1/query.pulsar.go @@ -3,6 +3,10 @@ package ecocreditv1 import ( fmt "fmt" + io "io" + reflect "reflect" + sync "sync" + runtime "github.com/cosmos/cosmos-proto/runtime" v1beta1 "github.com/cosmos/cosmos-sdk/api/cosmos/base/query/v1beta1" v1beta11 "github.com/cosmos/cosmos-sdk/api/cosmos/base/v1beta1" @@ -11,9 +15,6 @@ import ( protoiface "google.golang.org/protobuf/runtime/protoiface" protoimpl "google.golang.org/protobuf/runtime/protoimpl" timestamppb "google.golang.org/protobuf/types/known/timestamppb" - io "io" - reflect "reflect" - sync "sync" ) var ( @@ -33178,23 +33179,23 @@ var file_regen_ecocredit_v1_query_proto_rawDesc = []byte{ 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x61, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x5b, 0x12, 0x2c, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, - 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x7b, 0x61, 0x64, 0x6d, - 0x69, 0x6e, 0x7d, 0x5a, 0x2b, 0x12, 0x29, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, - 0x65, 0x73, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x7b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x7d, + 0xd3, 0xe4, 0x93, 0x02, 0x5b, 0x5a, 0x2b, 0x12, 0x29, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, + 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, + 0x73, 0x73, 0x65, 0x73, 0x2f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x7b, 0x61, 0x64, 0x6d, 0x69, + 0x6e, 0x7d, 0x12, 0x2c, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x2d, + 0x62, 0x79, 0x2d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x7b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x7d, 0x12, 0xae, 0x01, 0x0a, 0x05, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x25, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x56, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x50, 0x12, 0x24, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, 0x63, 0x6c, - 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x28, 0x12, 0x26, 0x2f, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, - 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, + 0x50, 0x5a, 0x28, 0x12, 0x26, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, + 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x24, 0x2f, 0x72, 0x65, + 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, + 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xd3, 0x01, 0x0a, 0x0c, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x12, 0x2c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, @@ -33202,13 +33203,13 @@ var file_regen_ecocredit_v1_query_proto_rawDesc = []byte{ 0x1a, 0x2d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x66, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x60, 0x12, 0x2c, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, - 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, - 0x73, 0x73, 0x2d, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, - 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x30, 0x12, 0x2e, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, - 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, - 0x73, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x2f, - 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x12, 0x85, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x6a, + 0x66, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x60, 0x5a, 0x30, 0x12, 0x2e, 0x2f, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, + 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, + 0x7d, 0x2f, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x12, 0x2c, 0x2f, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, + 0x6c, 0x61, 0x73, 0x73, 0x2d, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x73, 0x2f, 0x7b, 0x63, 0x6c, + 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x85, 0x01, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, @@ -33225,16 +33226,16 @@ var file_regen_ecocredit_v1_query_proto_rawDesc = []byte{ 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x9d, 0x01, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x96, 0x01, - 0x12, 0x30, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, - 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2d, 0x62, - 0x79, 0x2d, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, - 0x64, 0x7d, 0x5a, 0x2f, 0x12, 0x2d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, + 0x5a, 0x2f, 0x12, 0x2d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, + 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, + 0x7d, 0x5a, 0x31, 0x12, 0x2f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, + 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x6a, + 0x65, 0x63, 0x74, 0x73, 0x12, 0x30, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, - 0x74, 0x73, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, - 0x69, 0x64, 0x7d, 0x5a, 0x31, 0x12, 0x2f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, - 0x65, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x2f, 0x70, 0x72, - 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x12, 0x87, 0x02, 0x0a, 0x15, 0x50, 0x72, 0x6f, 0x6a, 0x65, + 0x74, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, + 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x87, 0x02, 0x0a, 0x15, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x12, 0x35, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, @@ -33243,13 +33244,13 @@ var file_regen_ecocredit_v1_query_proto_rawDesc = []byte{ 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x52, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x49, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x7f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x79, 0x12, 0x3b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, - 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, - 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, - 0x63, 0x65, 0x2d, 0x69, 0x64, 0x2f, 0x7b, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, - 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x3a, 0x12, 0x38, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, - 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x73, 0x2f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2d, 0x69, + 0x7f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x79, 0x5a, 0x3a, 0x12, 0x38, 0x2f, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, + 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, + 0x65, 0x2d, 0x69, 0x64, 0x2f, 0x7b, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, + 0x69, 0x64, 0x7d, 0x12, 0x3b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, + 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, + 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x2d, 0x69, 0x64, 0x2f, 0x7b, 0x72, 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xd9, 0x01, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, @@ -33258,12 +33259,12 @@ var file_regen_ecocredit_v1_query_proto_rawDesc = []byte{ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x42, 0x79, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5d, 0x12, - 0x2d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2d, 0x62, 0x79, - 0x2d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x7b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x7d, 0x5a, 0x2c, - 0x12, 0x2a, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, - 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x61, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x63, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5d, 0x5a, + 0x2c, 0x12, 0x2a, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, + 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x7b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x7d, 0x12, 0x2d, 0x2f, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, + 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2f, 0x7b, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x7d, 0x12, 0xbb, 0x01, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, @@ -33271,11 +33272,11 @@ var file_regen_ecocredit_v1_query_proto_rawDesc = []byte{ 0x74, 0x1a, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5d, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0x57, 0x12, 0x28, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, - 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, - 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x2b, 0x12, - 0x29, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, - 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, + 0x93, 0x02, 0x57, 0x5a, 0x2b, 0x12, 0x29, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, + 0x12, 0x28, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, + 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x81, 0x01, 0x0a, 0x07, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, @@ -33292,12 +33293,12 @@ var file_regen_ecocredit_v1_query_proto_rawDesc = []byte{ 0x65, 0x73, 0x74, 0x1a, 0x30, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5f, 0x12, 0x2e, 0x2f, - 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, - 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x69, 0x73, - 0x73, 0x75, 0x65, 0x72, 0x2f, 0x7b, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x7d, 0x5a, 0x2d, 0x12, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5f, 0x5a, 0x2d, 0x12, 0x2b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x69, 0x73, 0x73, + 0x75, 0x65, 0x72, 0x2f, 0x7b, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x7d, 0x12, 0x2e, 0x2f, 0x72, + 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, + 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x2f, 0x7b, 0x69, 0x73, 0x73, 0x75, 0x65, 0x72, 0x7d, 0x12, 0xda, 0x01, 0x0a, 0x0e, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x2e, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, @@ -33306,12 +33307,12 @@ var file_regen_ecocredit_v1_query_proto_rawDesc = []byte{ 0x2f, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x67, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x61, 0x12, 0x2f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x22, 0x67, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x61, 0x5a, 0x2e, 0x12, 0x2c, 0x2f, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, + 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, 0x63, + 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0x2f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, - 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x5a, 0x2e, 0x12, 0x2c, 0x2f, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, - 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x2f, 0x7b, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xe8, 0x01, 0x0a, 0x10, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x12, 0x30, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, @@ -33320,12 +33321,12 @@ var file_regen_ecocredit_v1_query_proto_rawDesc = []byte{ 0x1a, 0x31, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x42, 0x79, 0x50, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x6f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x69, 0x12, 0x33, 0x2f, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, - 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x70, 0x72, 0x6f, 0x6a, - 0x65, 0x63, 0x74, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, - 0x5a, 0x32, 0x12, 0x30, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, - 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, + 0x6e, 0x73, 0x65, 0x22, 0x6f, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x69, 0x5a, 0x32, 0x12, 0x30, 0x2f, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, + 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x70, 0x72, 0x6f, 0x6a, 0x65, + 0x63, 0x74, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x12, + 0x33, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x5f, 0x69, 0x64, 0x7d, 0x12, 0xb4, 0x01, 0x0a, 0x05, 0x42, 0x61, 0x74, 0x63, 0x68, 0x12, 0x25, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, @@ -33333,11 +33334,11 @@ var file_regen_ecocredit_v1_query_proto_rawDesc = []byte{ 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x5c, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x56, 0x12, 0x27, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, - 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x5a, 0x2b, - 0x12, 0x29, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, - 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x7b, 0x62, + 0xd3, 0xe4, 0x93, 0x02, 0x56, 0x5a, 0x2b, 0x12, 0x29, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, + 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, + 0x63, 0x68, 0x65, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, + 0x6d, 0x7d, 0x12, 0x27, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x12, 0x98, 0x02, 0x0a, 0x07, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, @@ -33345,18 +33346,18 @@ var file_regen_ecocredit_v1_query_proto_rawDesc = []byte{ 0x1a, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xb9, 0x01, 0x82, 0xd3, 0xe4, - 0x93, 0x02, 0xb2, 0x01, 0x12, 0x33, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, - 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, - 0x65, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x2f, - 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x5a, 0x3d, 0x12, 0x3b, 0x2f, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, - 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, - 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x7b, - 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x5a, 0x3c, 0x12, 0x3a, 0x2f, 0x72, 0x65, 0x67, - 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, - 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, - 0x73, 0x7d, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, - 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x12, 0x8f, 0x01, 0x0a, 0x08, 0x42, 0x61, 0x6c, 0x61, 0x6e, + 0x93, 0x02, 0xb2, 0x01, 0x5a, 0x3d, 0x12, 0x3b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, + 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, + 0x68, 0x65, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, + 0x7d, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, + 0x73, 0x73, 0x7d, 0x5a, 0x3c, 0x12, 0x3a, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, + 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, + 0x63, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x2f, 0x62, 0x61, + 0x74, 0x63, 0x68, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, + 0x7d, 0x12, 0x33, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, + 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x2f, 0x7b, + 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x2f, 0x7b, 0x61, 0x64, + 0x64, 0x72, 0x65, 0x73, 0x73, 0x7d, 0x12, 0x8f, 0x01, 0x0a, 0x08, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x29, 0x2e, @@ -33373,37 +33374,37 @@ var file_regen_ecocredit_v1_query_proto_rawDesc = []byte{ 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x42, 0x79, 0x42, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, - 0x71, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x6b, 0x12, 0x33, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, - 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x6c, - 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x62, 0x61, 0x74, 0x63, 0x68, 0x2f, 0x7b, - 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x5a, 0x34, 0x12, 0x32, - 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, - 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x74, - 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, - 0x65, 0x73, 0x12, 0xb2, 0x01, 0x0a, 0x0b, 0x41, 0x6c, 0x6c, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, + 0x71, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x6b, 0x5a, 0x34, 0x12, 0x32, 0x2f, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, + 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, + 0x6e, 0x6f, 0x6d, 0x7d, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x33, 0x2f, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, + 0x76, 0x31, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x2d, 0x62, 0x79, 0x2d, 0x62, + 0x61, 0x74, 0x63, 0x68, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, + 0x6d, 0x7d, 0x12, 0xb2, 0x01, 0x0a, 0x0b, 0x41, 0x6c, 0x6c, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x2b, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2c, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x41, 0x6c, 0x6c, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x48, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x12, 0x20, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, + 0xd3, 0xe4, 0x93, 0x02, 0x42, 0x5a, 0x1e, 0x12, 0x1c, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, + 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x6c, + 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x20, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x6c, 0x6c, 0x2d, 0x62, - 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x5a, 0x1e, 0x12, 0x1c, 0x2f, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x73, 0x12, 0xbf, 0x01, 0x0a, 0x06, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x26, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x53, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x22, 0x64, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5e, 0x12, 0x28, 0x2f, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, - 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, - 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x5a, 0x32, 0x12, 0x30, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, - 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, - 0x63, 0x68, 0x65, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, - 0x6d, 0x7d, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, 0x92, 0x01, 0x0a, 0x0b, 0x43, 0x72, + 0x6e, 0x73, 0x65, 0x22, 0x64, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x5e, 0x5a, 0x32, 0x12, 0x30, 0x2f, + 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, + 0x76, 0x31, 0x2f, 0x62, 0x61, 0x74, 0x63, 0x68, 0x65, 0x73, 0x2f, 0x7b, 0x62, 0x61, 0x74, 0x63, + 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x12, + 0x28, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, + 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x73, 0x75, 0x70, 0x70, 0x6c, 0x79, 0x2f, 0x7b, 0x62, 0x61, 0x74, + 0x63, 0x68, 0x5f, 0x64, 0x65, 0x6e, 0x6f, 0x6d, 0x7d, 0x12, 0x92, 0x01, 0x0a, 0x0b, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x12, 0x2b, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x73, 0x52, @@ -33418,22 +33419,22 @@ var file_regen_ecocredit_v1_query_proto_rawDesc = []byte{ 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x27, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x50, 0x61, 0x72, 0x61, - 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x88, 0x02, 0x01, 0x82, - 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, - 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, - 0x73, 0x12, 0xd0, 0x01, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, + 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x1c, 0x12, 0x1a, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, + 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x88, 0x02, + 0x01, 0x12, 0xd0, 0x01, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2b, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x43, 0x72, 0x65, 0x64, 0x69, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x69, 0x82, 0xd3, 0xe4, 0x93, 0x02, - 0x63, 0x12, 0x2e, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, - 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2d, 0x74, 0x79, - 0x70, 0x65, 0x2f, 0x7b, 0x61, 0x62, 0x62, 0x72, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x7d, 0x5a, 0x31, 0x12, 0x2f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, + 0x63, 0x5a, 0x31, 0x12, 0x2f, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x7b, 0x61, 0x62, 0x62, 0x72, 0x65, 0x76, 0x69, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x7d, 0x12, 0x2e, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x65, 0x63, 0x6f, + 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, + 0x2d, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x7b, 0x61, 0x62, 0x62, 0x72, 0x65, 0x76, 0x69, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x12, 0xbb, 0x01, 0x0a, 0x15, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x43, 0x72, 0x65, 0x61, 0x74, 0x6f, 0x72, 0x41, 0x6c, 0x6c, 0x6f, 0x77, 0x6c, 0x69, 0x73, 0x74, 0x12, 0x35, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x65, 0x63, 0x6f, 0x63, 0x72, 0x65, 0x64, 0x69, 0x74, diff --git a/proto/regen/data/v1/tx.proto b/proto/regen/data/v1/tx.proto index a1c7478fbc..2a1a140b5e 100644 --- a/proto/regen/data/v1/tx.proto +++ b/proto/regen/data/v1/tx.proto @@ -126,7 +126,9 @@ message MsgDefineResolver { // be used for all raw content hashes and the multicodec rdfc-1 (0xb403) // should be used for all graph content hashes (unless new canonicalization // or merkle tree algorithms are used which may or may not be supported - // by IPFS). + // by IPFS). Note that IPFS's tools currently do not support creating or + // resolving RDFC-1 content hashes so upstream work will be needed for + // that integration to be fully supported. string resolver_url = 2; } From bf550a375164667281492fbbabf062f28d1baad5 Mon Sep 17 00:00:00 2001 From: Aaron Craelius Date: Wed, 6 Mar 2024 15:21:47 -0500 Subject: [PATCH 4/6] add public field --- api/regen/data/v1/tx.pulsar.go | 16 +- api/regen/data/v2/query.pulsar.go | 1 + api/regen/data/v2/state.pulsar.go | 4 +- api/regen/data/v2/tx.pulsar.go | 309 +++++++++++------- proto/regen/data/v1/tx.proto | 16 +- proto/regen/data/v2/query.proto | 1 + proto/regen/data/v2/state.proto | 4 +- proto/regen/data/v2/tx.proto | 44 ++- x/data/client/tx.go | 4 +- x/data/features/msg_define_resolver.feature | 16 +- x/data/features/msg_register_resolver.feature | 18 +- x/data/msg_define_resolver.go | 4 +- x/data/msg_register_resolver.go | 4 +- x/data/query.pb.go | 1 + x/data/server/msg_define_resolver.go | 8 +- x/data/server/msg_define_resolver_test.go | 4 +- x/data/server/msg_register_resolver.go | 9 +- x/data/server/msg_register_resolver_test.go | 12 +- x/data/server/testsuite/suite.go | 6 +- x/data/simulation/operations.go | 4 +- x/data/state.pb.go | 4 +- x/data/tx.pb.go | 190 +++++++---- 22 files changed, 414 insertions(+), 265 deletions(-) diff --git a/api/regen/data/v1/tx.pulsar.go b/api/regen/data/v1/tx.pulsar.go index 987c028aa4..fa96574dc2 100644 --- a/api/regen/data/v1/tx.pulsar.go +++ b/api/regen/data/v1/tx.pulsar.go @@ -4196,23 +4196,11 @@ type MsgDefineResolver struct { // Msg/RegisterResolver. To authorize other accounts to register resolvers, // the manager should make use of cosmos.authz. Manager string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,omitempty"` - // resolver_url is a resolver URL. - // - // If it refers to an HTTP URL, that HTTP service should - // respond to a GET request with the IRI of a ContentHash as the path parameter + // resolver_url is a resolver URL which should refer to an HTTP service + // which will respond to a GET request with the IRI of a ContentHash // and return the content if it exists or a 404. For graph data, resolvers // should use the HTTP Accept header to negotiate the RDF serialization // format. - // - // To use IPFS, the resolver_url ipfs: should be defined and used as the - // resolver for any data hosted on IPFS. Content hashes must be - // adapted to IPFS's CID format. The multicodec raw (0x55) should - // be used for all raw content hashes and the multicodec rdfc-1 (0xb403) - // should be used for all graph content hashes (unless new canonicalization - // or merkle tree algorithms are used which may or may not be supported - // by IPFS). Note that IPFS's tools currently do not support creating or - // resolving RDFC-1 content hashes so upstream work will be needed for - // that integration to be fully supported. ResolverUrl string `protobuf:"bytes,2,opt,name=resolver_url,json=resolverUrl,proto3" json:"resolver_url,omitempty"` } diff --git a/api/regen/data/v2/query.pulsar.go b/api/regen/data/v2/query.pulsar.go index c26cad98bb..c577b12f2e 100644 --- a/api/regen/data/v2/query.pulsar.go +++ b/api/regen/data/v2/query.pulsar.go @@ -13483,6 +13483,7 @@ type ResolverInfo struct { // url is the URL of the resolver. Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // manager is the address of the account that manages the resolver. + // This will be empty if the resolver is public. Manager string `protobuf:"bytes,3,opt,name=manager,proto3" json:"manager,omitempty"` } diff --git a/api/regen/data/v2/state.pulsar.go b/api/regen/data/v2/state.pulsar.go index f15defaf27..a42e41fa65 100644 --- a/api/regen/data/v2/state.pulsar.go +++ b/api/regen/data/v2/state.pulsar.go @@ -2743,8 +2743,8 @@ type Resolver struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // url is the URL of the resolver. Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` - // manager is the bytes address of the resolver manager who is allowed - // to make calls to Msg/RegisterResolver for this resolver. + // manager is the bytes address of the resolver manager who defined + // this resolver. If the resolver is public, then this field is empty. Manager []byte `protobuf:"bytes,3,opt,name=manager,proto3" json:"manager,omitempty"` } diff --git a/api/regen/data/v2/tx.pulsar.go b/api/regen/data/v2/tx.pulsar.go index ccf53c696d..57a0f03533 100644 --- a/api/regen/data/v2/tx.pulsar.go +++ b/api/regen/data/v2/tx.pulsar.go @@ -2131,15 +2131,17 @@ func (x *fastReflection_MsgAttestResponse) ProtoMethods() *protoiface.Methods { var ( md_MsgDefineResolver protoreflect.MessageDescriptor - fd_MsgDefineResolver_manager protoreflect.FieldDescriptor + fd_MsgDefineResolver_definer protoreflect.FieldDescriptor fd_MsgDefineResolver_resolver_url protoreflect.FieldDescriptor + fd_MsgDefineResolver_public protoreflect.FieldDescriptor ) func init() { file_regen_data_v2_tx_proto_init() md_MsgDefineResolver = File_regen_data_v2_tx_proto.Messages().ByName("MsgDefineResolver") - fd_MsgDefineResolver_manager = md_MsgDefineResolver.Fields().ByName("manager") + fd_MsgDefineResolver_definer = md_MsgDefineResolver.Fields().ByName("definer") fd_MsgDefineResolver_resolver_url = md_MsgDefineResolver.Fields().ByName("resolver_url") + fd_MsgDefineResolver_public = md_MsgDefineResolver.Fields().ByName("public") } var _ protoreflect.Message = (*fastReflection_MsgDefineResolver)(nil) @@ -2207,9 +2209,9 @@ func (x *fastReflection_MsgDefineResolver) Interface() protoreflect.ProtoMessage // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_MsgDefineResolver) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Manager != "" { - value := protoreflect.ValueOfString(x.Manager) - if !f(fd_MsgDefineResolver_manager, value) { + if x.Definer != "" { + value := protoreflect.ValueOfString(x.Definer) + if !f(fd_MsgDefineResolver_definer, value) { return } } @@ -2219,6 +2221,12 @@ func (x *fastReflection_MsgDefineResolver) Range(f func(protoreflect.FieldDescri return } } + if x.Public != false { + value := protoreflect.ValueOfBool(x.Public) + if !f(fd_MsgDefineResolver_public, value) { + return + } + } } // Has reports whether a field is populated. @@ -2234,10 +2242,12 @@ func (x *fastReflection_MsgDefineResolver) Range(f func(protoreflect.FieldDescri // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgDefineResolver) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.data.v2.MsgDefineResolver.manager": - return x.Manager != "" + case "regen.data.v2.MsgDefineResolver.definer": + return x.Definer != "" case "regen.data.v2.MsgDefineResolver.resolver_url": return x.ResolverUrl != "" + case "regen.data.v2.MsgDefineResolver.public": + return x.Public != false default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v2.MsgDefineResolver")) @@ -2254,10 +2264,12 @@ func (x *fastReflection_MsgDefineResolver) Has(fd protoreflect.FieldDescriptor) // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgDefineResolver) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.data.v2.MsgDefineResolver.manager": - x.Manager = "" + case "regen.data.v2.MsgDefineResolver.definer": + x.Definer = "" case "regen.data.v2.MsgDefineResolver.resolver_url": x.ResolverUrl = "" + case "regen.data.v2.MsgDefineResolver.public": + x.Public = false default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v2.MsgDefineResolver")) @@ -2274,12 +2286,15 @@ func (x *fastReflection_MsgDefineResolver) Clear(fd protoreflect.FieldDescriptor // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgDefineResolver) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.data.v2.MsgDefineResolver.manager": - value := x.Manager + case "regen.data.v2.MsgDefineResolver.definer": + value := x.Definer return protoreflect.ValueOfString(value) case "regen.data.v2.MsgDefineResolver.resolver_url": value := x.ResolverUrl return protoreflect.ValueOfString(value) + case "regen.data.v2.MsgDefineResolver.public": + value := x.Public + return protoreflect.ValueOfBool(value) default: if descriptor.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v2.MsgDefineResolver")) @@ -2300,10 +2315,12 @@ func (x *fastReflection_MsgDefineResolver) Get(descriptor protoreflect.FieldDesc // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgDefineResolver) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.data.v2.MsgDefineResolver.manager": - x.Manager = value.Interface().(string) + case "regen.data.v2.MsgDefineResolver.definer": + x.Definer = value.Interface().(string) case "regen.data.v2.MsgDefineResolver.resolver_url": x.ResolverUrl = value.Interface().(string) + case "regen.data.v2.MsgDefineResolver.public": + x.Public = value.Bool() default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v2.MsgDefineResolver")) @@ -2324,10 +2341,12 @@ func (x *fastReflection_MsgDefineResolver) Set(fd protoreflect.FieldDescriptor, // Mutable is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgDefineResolver) Mutable(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.data.v2.MsgDefineResolver.manager": - panic(fmt.Errorf("field manager of message regen.data.v2.MsgDefineResolver is not mutable")) + case "regen.data.v2.MsgDefineResolver.definer": + panic(fmt.Errorf("field definer of message regen.data.v2.MsgDefineResolver is not mutable")) case "regen.data.v2.MsgDefineResolver.resolver_url": panic(fmt.Errorf("field resolver_url of message regen.data.v2.MsgDefineResolver is not mutable")) + case "regen.data.v2.MsgDefineResolver.public": + panic(fmt.Errorf("field public of message regen.data.v2.MsgDefineResolver is not mutable")) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v2.MsgDefineResolver")) @@ -2341,10 +2360,12 @@ func (x *fastReflection_MsgDefineResolver) Mutable(fd protoreflect.FieldDescript // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgDefineResolver) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.data.v2.MsgDefineResolver.manager": + case "regen.data.v2.MsgDefineResolver.definer": return protoreflect.ValueOfString("") case "regen.data.v2.MsgDefineResolver.resolver_url": return protoreflect.ValueOfString("") + case "regen.data.v2.MsgDefineResolver.public": + return protoreflect.ValueOfBool(false) default: if fd.IsExtension() { panic(fmt.Errorf("proto3 declared messages do not support extensions: regen.data.v2.MsgDefineResolver")) @@ -2414,7 +2435,7 @@ func (x *fastReflection_MsgDefineResolver) ProtoMethods() *protoiface.Methods { var n int var l int _ = l - l = len(x.Manager) + l = len(x.Definer) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -2422,6 +2443,9 @@ func (x *fastReflection_MsgDefineResolver) ProtoMethods() *protoiface.Methods { if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } + if x.Public { + n += 2 + } if x.unknownFields != nil { n += len(x.unknownFields) } @@ -2451,6 +2475,16 @@ func (x *fastReflection_MsgDefineResolver) ProtoMethods() *protoiface.Methods { i -= len(x.unknownFields) copy(dAtA[i:], x.unknownFields) } + if x.Public { + i-- + if x.Public { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } if len(x.ResolverUrl) > 0 { i -= len(x.ResolverUrl) copy(dAtA[i:], x.ResolverUrl) @@ -2458,10 +2492,10 @@ func (x *fastReflection_MsgDefineResolver) ProtoMethods() *protoiface.Methods { i-- dAtA[i] = 0x12 } - if len(x.Manager) > 0 { - i -= len(x.Manager) - copy(dAtA[i:], x.Manager) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Manager))) + if len(x.Definer) > 0 { + i -= len(x.Definer) + copy(dAtA[i:], x.Definer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Definer))) i-- dAtA[i] = 0xa } @@ -2516,7 +2550,7 @@ func (x *fastReflection_MsgDefineResolver) ProtoMethods() *protoiface.Methods { switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Manager", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Definer", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -2544,7 +2578,7 @@ func (x *fastReflection_MsgDefineResolver) ProtoMethods() *protoiface.Methods { if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Manager = string(dAtA[iNdEx:postIndex]) + x.Definer = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -2578,6 +2612,26 @@ func (x *fastReflection_MsgDefineResolver) ProtoMethods() *protoiface.Methods { } x.ResolverUrl = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 3: + if wireType != 0 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Public", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, runtime.ErrIntOverflow + } + if iNdEx >= l { + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + x.Public = bool(v != 0) default: iNdEx = preIndex skippy, err := runtime.Skip(dAtA[iNdEx:]) @@ -3070,7 +3124,7 @@ func (x *_MsgRegisterResolver_3_list) IsValid() bool { var ( md_MsgRegisterResolver protoreflect.MessageDescriptor - fd_MsgRegisterResolver_manager protoreflect.FieldDescriptor + fd_MsgRegisterResolver_signer protoreflect.FieldDescriptor fd_MsgRegisterResolver_resolver_id protoreflect.FieldDescriptor fd_MsgRegisterResolver_content_hashes protoreflect.FieldDescriptor ) @@ -3078,7 +3132,7 @@ var ( func init() { file_regen_data_v2_tx_proto_init() md_MsgRegisterResolver = File_regen_data_v2_tx_proto.Messages().ByName("MsgRegisterResolver") - fd_MsgRegisterResolver_manager = md_MsgRegisterResolver.Fields().ByName("manager") + fd_MsgRegisterResolver_signer = md_MsgRegisterResolver.Fields().ByName("signer") fd_MsgRegisterResolver_resolver_id = md_MsgRegisterResolver.Fields().ByName("resolver_id") fd_MsgRegisterResolver_content_hashes = md_MsgRegisterResolver.Fields().ByName("content_hashes") } @@ -3148,9 +3202,9 @@ func (x *fastReflection_MsgRegisterResolver) Interface() protoreflect.ProtoMessa // While iterating, mutating operations may only be performed // on the current field descriptor. func (x *fastReflection_MsgRegisterResolver) Range(f func(protoreflect.FieldDescriptor, protoreflect.Value) bool) { - if x.Manager != "" { - value := protoreflect.ValueOfString(x.Manager) - if !f(fd_MsgRegisterResolver_manager, value) { + if x.Signer != "" { + value := protoreflect.ValueOfString(x.Signer) + if !f(fd_MsgRegisterResolver_signer, value) { return } } @@ -3181,8 +3235,8 @@ func (x *fastReflection_MsgRegisterResolver) Range(f func(protoreflect.FieldDesc // a repeated field is populated if it is non-empty. func (x *fastReflection_MsgRegisterResolver) Has(fd protoreflect.FieldDescriptor) bool { switch fd.FullName() { - case "regen.data.v2.MsgRegisterResolver.manager": - return x.Manager != "" + case "regen.data.v2.MsgRegisterResolver.signer": + return x.Signer != "" case "regen.data.v2.MsgRegisterResolver.resolver_id": return x.ResolverId != uint64(0) case "regen.data.v2.MsgRegisterResolver.content_hashes": @@ -3203,8 +3257,8 @@ func (x *fastReflection_MsgRegisterResolver) Has(fd protoreflect.FieldDescriptor // Clear is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRegisterResolver) Clear(fd protoreflect.FieldDescriptor) { switch fd.FullName() { - case "regen.data.v2.MsgRegisterResolver.manager": - x.Manager = "" + case "regen.data.v2.MsgRegisterResolver.signer": + x.Signer = "" case "regen.data.v2.MsgRegisterResolver.resolver_id": x.ResolverId = uint64(0) case "regen.data.v2.MsgRegisterResolver.content_hashes": @@ -3225,8 +3279,8 @@ func (x *fastReflection_MsgRegisterResolver) Clear(fd protoreflect.FieldDescript // of the value; to obtain a mutable reference, use Mutable. func (x *fastReflection_MsgRegisterResolver) Get(descriptor protoreflect.FieldDescriptor) protoreflect.Value { switch descriptor.FullName() { - case "regen.data.v2.MsgRegisterResolver.manager": - value := x.Manager + case "regen.data.v2.MsgRegisterResolver.signer": + value := x.Signer return protoreflect.ValueOfString(value) case "regen.data.v2.MsgRegisterResolver.resolver_id": value := x.ResolverId @@ -3257,8 +3311,8 @@ func (x *fastReflection_MsgRegisterResolver) Get(descriptor protoreflect.FieldDe // Set is a mutating operation and unsafe for concurrent use. func (x *fastReflection_MsgRegisterResolver) Set(fd protoreflect.FieldDescriptor, value protoreflect.Value) { switch fd.FullName() { - case "regen.data.v2.MsgRegisterResolver.manager": - x.Manager = value.Interface().(string) + case "regen.data.v2.MsgRegisterResolver.signer": + x.Signer = value.Interface().(string) case "regen.data.v2.MsgRegisterResolver.resolver_id": x.ResolverId = value.Uint() case "regen.data.v2.MsgRegisterResolver.content_hashes": @@ -3291,8 +3345,8 @@ func (x *fastReflection_MsgRegisterResolver) Mutable(fd protoreflect.FieldDescri } value := &_MsgRegisterResolver_3_list{list: &x.ContentHashes} return protoreflect.ValueOfList(value) - case "regen.data.v2.MsgRegisterResolver.manager": - panic(fmt.Errorf("field manager of message regen.data.v2.MsgRegisterResolver is not mutable")) + case "regen.data.v2.MsgRegisterResolver.signer": + panic(fmt.Errorf("field signer of message regen.data.v2.MsgRegisterResolver is not mutable")) case "regen.data.v2.MsgRegisterResolver.resolver_id": panic(fmt.Errorf("field resolver_id of message regen.data.v2.MsgRegisterResolver is not mutable")) default: @@ -3308,7 +3362,7 @@ func (x *fastReflection_MsgRegisterResolver) Mutable(fd protoreflect.FieldDescri // For lists, maps, and messages, this returns a new, empty, mutable value. func (x *fastReflection_MsgRegisterResolver) NewField(fd protoreflect.FieldDescriptor) protoreflect.Value { switch fd.FullName() { - case "regen.data.v2.MsgRegisterResolver.manager": + case "regen.data.v2.MsgRegisterResolver.signer": return protoreflect.ValueOfString("") case "regen.data.v2.MsgRegisterResolver.resolver_id": return protoreflect.ValueOfUint64(uint64(0)) @@ -3384,7 +3438,7 @@ func (x *fastReflection_MsgRegisterResolver) ProtoMethods() *protoiface.Methods var n int var l int _ = l - l = len(x.Manager) + l = len(x.Signer) if l > 0 { n += 1 + l + runtime.Sov(uint64(l)) } @@ -3447,10 +3501,10 @@ func (x *fastReflection_MsgRegisterResolver) ProtoMethods() *protoiface.Methods i-- dAtA[i] = 0x10 } - if len(x.Manager) > 0 { - i -= len(x.Manager) - copy(dAtA[i:], x.Manager) - i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Manager))) + if len(x.Signer) > 0 { + i -= len(x.Signer) + copy(dAtA[i:], x.Signer) + i = runtime.EncodeVarint(dAtA, i, uint64(len(x.Signer))) i-- dAtA[i] = 0xa } @@ -3505,7 +3559,7 @@ func (x *fastReflection_MsgRegisterResolver) ProtoMethods() *protoiface.Methods switch fieldNum { case 1: if wireType != 2 { - return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Manager", wireType) + return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -3533,7 +3587,7 @@ func (x *fastReflection_MsgRegisterResolver) ProtoMethods() *protoiface.Methods if postIndex > l { return protoiface.UnmarshalOutput{NoUnkeyedLiterals: input.NoUnkeyedLiterals, Flags: input.Flags}, io.ErrUnexpectedEOF } - x.Manager = string(dAtA[iNdEx:postIndex]) + x.Signer = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { @@ -4191,17 +4245,35 @@ type MsgDefineResolver struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // manager is the address of the resolver manager. The manager is able - // to make future calls using the ID returned by this operation with - // Msg/RegisterResolver. To authorize other accounts to register resolvers, - // the manager should make use of cosmos.authz. - Manager string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,omitempty"` - // resolver_url is a resolver URL which should refer to an HTTP service - // which will respond to a GET request with the IRI of a ContentHash + // definer is the address of the account defining the resolver. If + // the boolean public is set to true, then any user can register + // data with this resolver. If the boolean public is set to false, + // then only the definer can register data with this resolver and + // must use a feature such as cosmos.authz to authorize other accounts + // to register data with this resolver. + Definer string `protobuf:"bytes,1,opt,name=definer,proto3" json:"definer,omitempty"` + // resolver_url is a resolver URL. + // + // If it refers to an HTTP URL, that HTTP service should + // respond to a GET request with the IRI of a ContentHash as the path parameter // and return the content if it exists or a 404. For graph data, resolvers // should use the HTTP Accept header to negotiate the RDF serialization // format. + // + // To use IPFS, the resolver_url ipfs: should be defined with public set to true + // and used as the resolver for any data hosted on IPFS. Content hashes must be + // adapted to IPFS's CID format. The multicodec raw (0x55) should + // be used for all raw content hashes and the multicodec rdfc-1 (0xb403) + // should be used for all graph content hashes (unless new canonicalization + // or merkle tree algorithms are used which may or may not be supported + // by IPFS). Note that IPFS's tools currently do not support creating or + // resolving RDFC-1 content hashes so upstream work will be needed for + // that integration to be fully supported. ResolverUrl string `protobuf:"bytes,2,opt,name=resolver_url,json=resolverUrl,proto3" json:"resolver_url,omitempty"` + // public is a boolean indicating whether the resolver is public or not. + // If public is false then only the definer can register data with this + // resolver. + Public bool `protobuf:"varint,3,opt,name=public,proto3" json:"public,omitempty"` } func (x *MsgDefineResolver) Reset() { @@ -4224,9 +4296,9 @@ func (*MsgDefineResolver) Descriptor() ([]byte, []int) { return file_regen_data_v2_tx_proto_rawDescGZIP(), []int{4} } -func (x *MsgDefineResolver) GetManager() string { +func (x *MsgDefineResolver) GetDefiner() string { if x != nil { - return x.Manager + return x.Definer } return "" } @@ -4238,6 +4310,13 @@ func (x *MsgDefineResolver) GetResolverUrl() string { return "" } +func (x *MsgDefineResolver) GetPublic() bool { + if x != nil { + return x.Public + } + return false +} + // MsgDefineResolverResponse is the Msg/DefineResolver response type. type MsgDefineResolverResponse struct { state protoimpl.MessageState @@ -4282,9 +4361,10 @@ type MsgRegisterResolver struct { sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // manager is the address of the resolver manager who registered this - // resolver with Msg/DefinedResolver. - Manager string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,omitempty"` + // signer is the address registering data with the resolver. If + // the resolver is not public then the signer must be the definer + // of the resolver. + Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` // resolver_id is the ID of a resolver defined with Msg/DefineResolver. ResolverId uint64 `protobuf:"varint,2,opt,name=resolver_id,json=resolverId,proto3" json:"resolver_id,omitempty"` // content_hashes is a list of content hashes which the resolver claims to @@ -4312,9 +4392,9 @@ func (*MsgRegisterResolver) Descriptor() ([]byte, []int) { return file_regen_data_v2_tx_proto_rawDescGZIP(), []int{6} } -func (x *MsgRegisterResolver) GetManager() string { +func (x *MsgRegisterResolver) GetSigner() string { if x != nil { - return x.Manager + return x.Signer } return "" } @@ -4398,62 +4478,63 @@ var file_regen_data_v2_tx_proto_rawDesc = []byte{ 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, - 0x6d, 0x70, 0x22, 0x5e, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x52, - 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, + 0x6d, 0x70, 0x22, 0x76, 0x0a, 0x11, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x52, + 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x64, 0x65, 0x66, 0x69, 0x6e, + 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x72, 0x12, 0x21, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x5f, 0x75, 0x72, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, - 0x72, 0x55, 0x72, 0x6c, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x72, 0x22, 0x3c, 0x0a, 0x19, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x52, - 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x49, 0x64, - 0x22, 0xa1, 0x01, 0x0a, 0x13, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, - 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x61, 0x6e, 0x61, - 0x67, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x61, 0x6e, 0x61, 0x67, - 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x5f, 0x69, - 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, - 0x72, 0x49, 0x64, 0x12, 0x41, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x68, - 0x61, 0x73, 0x68, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x74, - 0x65, 0x6e, 0x74, 0x48, 0x61, 0x73, 0x68, 0x52, 0x0d, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, - 0x48, 0x61, 0x73, 0x68, 0x65, 0x73, 0x3a, 0x0c, 0x82, 0xe7, 0xb0, 0x2a, 0x07, 0x6d, 0x61, 0x6e, - 0x61, 0x67, 0x65, 0x72, 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, - 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x32, 0xd3, 0x02, 0x0a, 0x03, 0x4d, 0x73, 0x67, 0x12, 0x44, 0x0a, 0x06, 0x41, - 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x12, 0x18, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x1a, - 0x20, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, - 0x4d, 0x73, 0x67, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x44, 0x0a, 0x06, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x12, 0x18, 0x2e, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x41, - 0x74, 0x74, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, - 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x52, - 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x0e, 0x44, 0x65, 0x66, 0x69, 0x6e, - 0x65, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x12, 0x20, 0x2e, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x66, - 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x1a, 0x28, 0x2e, 0x72, 0x65, - 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x44, - 0x65, 0x66, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x10, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, - 0x72, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x12, 0x22, 0x2e, 0x72, 0x65, 0x67, 0x65, - 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, - 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x1a, 0x2a, 0x2e, - 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, - 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, - 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xb2, 0x01, 0x0a, 0x11, 0x63, 0x6f, - 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x42, - 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x68, - 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6e, 0x65, 0x74, - 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, 0x6c, 0x65, 0x64, 0x67, 0x65, - 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, - 0x2f, 0x76, 0x32, 0x3b, 0x64, 0x61, 0x74, 0x61, 0x76, 0x32, 0xa2, 0x02, 0x03, 0x52, 0x44, 0x58, - 0xaa, 0x02, 0x0d, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x44, 0x61, 0x74, 0x61, 0x2e, 0x56, 0x32, - 0xca, 0x02, 0x0d, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x5c, 0x56, 0x32, - 0xe2, 0x02, 0x19, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, 0x61, 0x74, 0x61, 0x5c, 0x56, 0x32, - 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0f, 0x52, - 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x44, 0x61, 0x74, 0x61, 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x06, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x72, 0x55, 0x72, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x3a, 0x0c, 0x82, 0xe7, + 0xb0, 0x2a, 0x07, 0x64, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x72, 0x22, 0x3c, 0x0a, 0x19, 0x4d, 0x73, + 0x67, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, 0x6c, + 0x76, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x72, 0x65, + 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x49, 0x64, 0x22, 0x9e, 0x01, 0x0a, 0x13, 0x4d, 0x73, 0x67, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, + 0x12, 0x16, 0x0a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x72, 0x65, 0x73, 0x6f, + 0x6c, 0x76, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x0a, 0x72, + 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x49, 0x64, 0x12, 0x41, 0x0a, 0x0e, 0x63, 0x6f, 0x6e, + 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, + 0x32, 0x2e, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x48, 0x61, 0x73, 0x68, 0x52, 0x0d, 0x63, + 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x48, 0x61, 0x73, 0x68, 0x65, 0x73, 0x3a, 0x0b, 0x82, 0xe7, + 0xb0, 0x2a, 0x06, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x72, 0x22, 0x1d, 0x0a, 0x1b, 0x4d, 0x73, 0x67, + 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0xd3, 0x02, 0x0a, 0x03, 0x4d, 0x73, 0x67, + 0x12, 0x44, 0x0a, 0x06, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x12, 0x18, 0x2e, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x6e, + 0x63, 0x68, 0x6f, 0x72, 0x1a, 0x20, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x6e, 0x63, 0x68, 0x6f, 0x72, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x06, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, + 0x12, 0x18, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, + 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x74, 0x74, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x72, 0x65, 0x67, + 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x41, 0x74, + 0x74, 0x65, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x5c, 0x0a, 0x0e, + 0x44, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x12, 0x20, + 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x4d, + 0x73, 0x67, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, + 0x1a, 0x28, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, + 0x2e, 0x4d, 0x73, 0x67, 0x44, 0x65, 0x66, 0x69, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, + 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x62, 0x0a, 0x10, 0x52, 0x65, + 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x12, 0x22, + 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x76, 0x32, 0x2e, 0x4d, + 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x6f, 0x6c, 0x76, + 0x65, 0x72, 0x1a, 0x2a, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, + 0x76, 0x32, 0x2e, 0x4d, 0x73, 0x67, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x52, 0x65, + 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0xb2, + 0x01, 0x0a, 0x11, 0x63, 0x6f, 0x6d, 0x2e, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x64, 0x61, 0x74, + 0x61, 0x2e, 0x76, 0x32, 0x42, 0x07, 0x54, 0x78, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, + 0x3e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x72, 0x65, 0x67, 0x65, + 0x6e, 0x2d, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, 0x2d, + 0x6c, 0x65, 0x64, 0x67, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x67, 0x65, 0x6e, + 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x76, 0x32, 0x3b, 0x64, 0x61, 0x74, 0x61, 0x76, 0x32, 0xa2, + 0x02, 0x03, 0x52, 0x44, 0x58, 0xaa, 0x02, 0x0d, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x2e, 0x44, 0x61, + 0x74, 0x61, 0x2e, 0x56, 0x32, 0xca, 0x02, 0x0d, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, 0x61, + 0x74, 0x61, 0x5c, 0x56, 0x32, 0xe2, 0x02, 0x19, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x5c, 0x44, 0x61, + 0x74, 0x61, 0x5c, 0x56, 0x32, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x0f, 0x52, 0x65, 0x67, 0x65, 0x6e, 0x3a, 0x3a, 0x44, 0x61, 0x74, 0x61, 0x3a, + 0x3a, 0x56, 0x32, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( diff --git a/proto/regen/data/v1/tx.proto b/proto/regen/data/v1/tx.proto index 2a1a140b5e..6ca096ae1e 100644 --- a/proto/regen/data/v1/tx.proto +++ b/proto/regen/data/v1/tx.proto @@ -112,23 +112,11 @@ message MsgDefineResolver { // the manager should make use of cosmos.authz. string manager = 1; - // resolver_url is a resolver URL. - // - // If it refers to an HTTP URL, that HTTP service should - // respond to a GET request with the IRI of a ContentHash as the path parameter + // resolver_url is a resolver URL which should refer to an HTTP service + // which will respond to a GET request with the IRI of a ContentHash // and return the content if it exists or a 404. For graph data, resolvers // should use the HTTP Accept header to negotiate the RDF serialization // format. - // - // To use IPFS, the resolver_url ipfs: should be defined and used as the - // resolver for any data hosted on IPFS. Content hashes must be - // adapted to IPFS's CID format. The multicodec raw (0x55) should - // be used for all raw content hashes and the multicodec rdfc-1 (0xb403) - // should be used for all graph content hashes (unless new canonicalization - // or merkle tree algorithms are used which may or may not be supported - // by IPFS). Note that IPFS's tools currently do not support creating or - // resolving RDFC-1 content hashes so upstream work will be needed for - // that integration to be fully supported. string resolver_url = 2; } diff --git a/proto/regen/data/v2/query.proto b/proto/regen/data/v2/query.proto index 8c7e82abc5..3561d421f6 100644 --- a/proto/regen/data/v2/query.proto +++ b/proto/regen/data/v2/query.proto @@ -353,5 +353,6 @@ message ResolverInfo { string url = 2; // manager is the address of the account that manages the resolver. + // This will be empty if the resolver is public. string manager = 3; } diff --git a/proto/regen/data/v2/state.proto b/proto/regen/data/v2/state.proto index a3dc5894dd..d0fc45a15e 100644 --- a/proto/regen/data/v2/state.proto +++ b/proto/regen/data/v2/state.proto @@ -70,8 +70,8 @@ message Resolver { // url is the URL of the resolver. string url = 2; - // manager is the bytes address of the resolver manager who is allowed - // to make calls to Msg/RegisterResolver for this resolver. + // manager is the bytes address of the resolver manager who defined + // this resolver. If the resolver is public, then this field is empty. bytes manager = 3; } diff --git a/proto/regen/data/v2/tx.proto b/proto/regen/data/v2/tx.proto index 87a23b9348..de50ecb969 100644 --- a/proto/regen/data/v2/tx.proto +++ b/proto/regen/data/v2/tx.proto @@ -106,20 +106,39 @@ message MsgAttestResponse { // MsgDefineResolver is the Msg/DefineResolver request type. message MsgDefineResolver { - option (cosmos.msg.v1.signer) = "manager"; + option (cosmos.msg.v1.signer) = "definer"; - // manager is the address of the resolver manager. The manager is able - // to make future calls using the ID returned by this operation with - // Msg/RegisterResolver. To authorize other accounts to register resolvers, - // the manager should make use of cosmos.authz. - string manager = 1; + // definer is the address of the account defining the resolver. If + // the boolean public is set to true, then any user can register + // data with this resolver. If the boolean public is set to false, + // then only the definer can register data with this resolver and + // must use a feature such as cosmos.authz to authorize other accounts + // to register data with this resolver. + string definer = 1; - // resolver_url is a resolver URL which should refer to an HTTP service - // which will respond to a GET request with the IRI of a ContentHash + // resolver_url is a resolver URL. + // + // If it refers to an HTTP URL, that HTTP service should + // respond to a GET request with the IRI of a ContentHash as the path parameter // and return the content if it exists or a 404. For graph data, resolvers // should use the HTTP Accept header to negotiate the RDF serialization // format. + // + // To use IPFS, the resolver_url ipfs: should be defined with public set to true + // and used as the resolver for any data hosted on IPFS. Content hashes must be + // adapted to IPFS's CID format. The multicodec raw (0x55) should + // be used for all raw content hashes and the multicodec rdfc-1 (0xb403) + // should be used for all graph content hashes (unless new canonicalization + // or merkle tree algorithms are used which may or may not be supported + // by IPFS). Note that IPFS's tools currently do not support creating or + // resolving RDFC-1 content hashes so upstream work will be needed for + // that integration to be fully supported. string resolver_url = 2; + + // public is a boolean indicating whether the resolver is public or not. + // If public is false then only the definer can register data with this + // resolver. + bool public = 3; } // MsgDefineResolverResponse is the Msg/DefineResolver response type. @@ -132,11 +151,12 @@ message MsgDefineResolverResponse { // MsgRegisterResolver is the Msg/RegisterResolver request type. message MsgRegisterResolver { - option (cosmos.msg.v1.signer) = "manager"; + option (cosmos.msg.v1.signer) = "signer"; - // manager is the address of the resolver manager who registered this - // resolver with Msg/DefinedResolver. - string manager = 1; + // signer is the address registering data with the resolver. If + // the resolver is not public then the signer must be the definer + // of the resolver. + string signer = 1; // resolver_id is the ID of a resolver defined with Msg/DefineResolver. uint64 resolver_id = 2; diff --git a/x/data/client/tx.go b/x/data/client/tx.go index 2f62167de5..1fc1e77499 100644 --- a/x/data/client/tx.go +++ b/x/data/client/tx.go @@ -151,7 +151,7 @@ Flags: } msg := data.MsgDefineResolver{ - Manager: clientCtx.GetFromAddress().String(), + Definer: clientCtx.GetFromAddress().String(), ResolverUrl: resolverURL, } return tx.GenerateOrBroadcastTxCLI(clientCtx, cmd.Flags(), &msg) @@ -210,7 +210,7 @@ Flags: } msg := data.MsgRegisterResolver{ - Manager: clientCtx.GetFromAddress().String(), + Signer: clientCtx.GetFromAddress().String(), ResolverId: resolverID, ContentHashes: contentHashes, } diff --git a/x/data/features/msg_define_resolver.feature b/x/data/features/msg_define_resolver.feature index 57f280f6fb..4530fd66a9 100644 --- a/x/data/features/msg_define_resolver.feature +++ b/x/data/features/msg_define_resolver.feature @@ -4,14 +4,14 @@ Feature: MsgDefineResolver Given the message """ { - "manager": "regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6", + "definer": "regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6", "resolver_url": "https://foo.bar" } """ When the message is validated Then expect no error - Scenario: an error is returned if manager is empty + Scenario: an error is returned if definer is empty Given the message """ {} @@ -19,11 +19,11 @@ Feature: MsgDefineResolver When the message is validated Then expect the error "empty address string is not allowed: invalid address" - Scenario: an error is returned if manager is not a bech32 address + Scenario: an error is returned if definer is not a bech32 address Given the message """ { - "manager": "foo" + "definer": "foo" } """ When the message is validated @@ -33,7 +33,7 @@ Feature: MsgDefineResolver Given the message """ { - "manager": "regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6" + "definer": "regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6" } """ When the message is validated @@ -43,7 +43,7 @@ Feature: MsgDefineResolver Given the message """ { - "manager": "regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6", + "definer": "regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6", "resolver_url": "foo.bar" } """ @@ -54,7 +54,7 @@ Feature: MsgDefineResolver Given the message """ { - "manager": "regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6", + "definer": "regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6", "resolver_url": "https://foo.bar" } """ @@ -64,7 +64,7 @@ Feature: MsgDefineResolver { "type": "regen-ledger/MsgDefineResolver", "value": { - "manager": "regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6", + "definer": "regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6", "resolver_url": "https://foo.bar" } } diff --git a/x/data/features/msg_register_resolver.feature b/x/data/features/msg_register_resolver.feature index b25058e93d..7d5ee4b086 100644 --- a/x/data/features/msg_register_resolver.feature +++ b/x/data/features/msg_register_resolver.feature @@ -4,7 +4,7 @@ Feature: MsgRegisterResolver Given the message """ { - "manager": "regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6", + "signer": "regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6", "resolver_id": 1, "content_hashes": [ { @@ -20,7 +20,7 @@ Feature: MsgRegisterResolver When the message is validated Then expect no error - Scenario: an error is returned if manager is empty + Scenario: an error is returned if signer is empty Given the message """ {} @@ -28,11 +28,11 @@ Feature: MsgRegisterResolver When the message is validated Then expect the error "empty address string is not allowed: invalid address" - Scenario: an error is returned if manager is not a bech32 address + Scenario: an error is returned if signer is not a bech32 address Given the message """ { - "manager": "foo" + "signer": "foo" } """ When the message is validated @@ -42,7 +42,7 @@ Feature: MsgRegisterResolver Given the message """ { - "manager": "regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6" + "signer": "regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6" } """ When the message is validated @@ -52,7 +52,7 @@ Feature: MsgRegisterResolver Given the message """ { - "manager": "regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6", + "signer": "regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6", "resolver_id": 1 } """ @@ -63,7 +63,7 @@ Feature: MsgRegisterResolver Given the message """ { - "manager": "regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6", + "signer": "regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6", "resolver_id": 1, "content_hashes": [ { @@ -89,8 +89,8 @@ Feature: MsgRegisterResolver } } ], - "manager": "regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6", - "resolver_id": "1" + "resolver_id": "1", + "signer": "regen1depk54cuajgkzea6zpgkq36tnjwdzv4ak663u6" } } """ diff --git a/x/data/msg_define_resolver.go b/x/data/msg_define_resolver.go index 65f62f26cc..078e37d2f0 100644 --- a/x/data/msg_define_resolver.go +++ b/x/data/msg_define_resolver.go @@ -12,7 +12,7 @@ var _ legacytx.LegacyMsg = &MsgDefineResolver{} // ValidateBasic does a sanity check on the provided data. func (m *MsgDefineResolver) ValidateBasic() error { - if _, err := sdk.AccAddressFromBech32(m.Manager); err != nil { + if _, err := sdk.AccAddressFromBech32(m.Definer); err != nil { return sdkerrors.ErrInvalidAddress.Wrap(err.Error()) } @@ -25,7 +25,7 @@ func (m *MsgDefineResolver) ValidateBasic() error { // GetSigners returns the expected signers for MsgDefineResolver. func (m *MsgDefineResolver) GetSigners() []sdk.AccAddress { - addr, _ := sdk.AccAddressFromBech32(m.Manager) + addr, _ := sdk.AccAddressFromBech32(m.Definer) return []sdk.AccAddress{addr} } diff --git a/x/data/msg_register_resolver.go b/x/data/msg_register_resolver.go index 0c229d627a..bd921af4e9 100644 --- a/x/data/msg_register_resolver.go +++ b/x/data/msg_register_resolver.go @@ -10,7 +10,7 @@ var _ legacytx.LegacyMsg = &MsgRegisterResolver{} // ValidateBasic does a sanity check on the provided data. func (m *MsgRegisterResolver) ValidateBasic() error { - if _, err := sdk.AccAddressFromBech32(m.Manager); err != nil { + if _, err := sdk.AccAddressFromBech32(m.Signer); err != nil { return sdkerrors.ErrInvalidAddress.Wrap(err.Error()) } @@ -33,7 +33,7 @@ func (m *MsgRegisterResolver) ValidateBasic() error { // GetSigners returns the expected signers for MsgRegisterResolver. func (m *MsgRegisterResolver) GetSigners() []sdk.AccAddress { - addr, _ := sdk.AccAddressFromBech32(m.Manager) + addr, _ := sdk.AccAddressFromBech32(m.Signer) return []sdk.AccAddress{addr} } diff --git a/x/data/query.pb.go b/x/data/query.pb.go index c5a7d381ab..41b15ef4db 100644 --- a/x/data/query.pb.go +++ b/x/data/query.pb.go @@ -1288,6 +1288,7 @@ type ResolverInfo struct { // url is the URL of the resolver. Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` // manager is the address of the account that manages the resolver. + // This will be empty if the resolver is public. Manager string `protobuf:"bytes,3,opt,name=manager,proto3" json:"manager,omitempty"` } diff --git a/x/data/server/msg_define_resolver.go b/x/data/server/msg_define_resolver.go index 34cba9161b..cb0f5d1e08 100644 --- a/x/data/server/msg_define_resolver.go +++ b/x/data/server/msg_define_resolver.go @@ -5,17 +5,23 @@ import ( "github.com/cosmos/cosmos-sdk/orm/types/ormerrors" sdk "github.com/cosmos/cosmos-sdk/types" + api "github.com/regen-network/regen-ledger/api/v2/regen/data/v1" "github.com/regen-network/regen-ledger/x/data/v3" ) // DefineResolver defines a resolver URL and assigns it a new integer ID that can be used in calls to RegisterResolver. func (s serverImpl) DefineResolver(ctx context.Context, msg *data.MsgDefineResolver) (*data.MsgDefineResolverResponse, error) { - manager, err := sdk.AccAddressFromBech32(msg.Manager) + definer, err := sdk.AccAddressFromBech32(msg.Definer) if err != nil { return nil, err } + manager := definer + if msg.Public { + manager = nil + } + id, err := s.stateStore.ResolverTable().InsertReturningID(ctx, &api.Resolver{ Url: msg.ResolverUrl, Manager: manager, diff --git a/x/data/server/msg_define_resolver_test.go b/x/data/server/msg_define_resolver_test.go index aef585d801..5071404f77 100644 --- a/x/data/server/msg_define_resolver_test.go +++ b/x/data/server/msg_define_resolver_test.go @@ -43,14 +43,14 @@ func (s *defineResolverSuite) AliceHasDefinedAResolverWithUrl(a string) { func (s *defineResolverSuite) AliceAttemptsToDefineAResolverWithUrl(a string) { _, s.err = s.server.DefineResolver(s.ctx, &data.MsgDefineResolver{ - Manager: s.alice.String(), + Definer: s.alice.String(), ResolverUrl: a, }) } func (s *defineResolverSuite) BobAttemptsToDefineAResolverWithUrl(a string) { _, s.err = s.server.DefineResolver(s.ctx, &data.MsgDefineResolver{ - Manager: s.bob.String(), + Definer: s.bob.String(), ResolverUrl: a, }) } diff --git a/x/data/server/msg_register_resolver.go b/x/data/server/msg_register_resolver.go index a80c0ba9a3..b585e66bbe 100644 --- a/x/data/server/msg_register_resolver.go +++ b/x/data/server/msg_register_resolver.go @@ -18,13 +18,16 @@ func (s serverImpl) RegisterResolver(ctx context.Context, msg *data.MsgRegisterR return nil, sdkerrors.ErrNotFound.Wrapf("resolver with id %d does not exist", msg.ResolverId) } - manager, err := sdk.AccAddressFromBech32(msg.Manager) + signer, err := sdk.AccAddressFromBech32(msg.Signer) if err != nil { return nil, err } - if !bytes.Equal(resolver.Manager, manager) { - return nil, data.ErrUnauthorizedResolverManager + // if resolver isn't public, the signer must be the manager + if resolver.Manager != nil { + if !bytes.Equal(resolver.Manager, signer) { + return nil, data.ErrUnauthorizedResolverManager + } } sdkCtx := sdk.UnwrapSDKContext(ctx) diff --git a/x/data/server/msg_register_resolver_test.go b/x/data/server/msg_register_resolver_test.go index a2aaec6eb0..089bf95d18 100644 --- a/x/data/server/msg_register_resolver_test.go +++ b/x/data/server/msg_register_resolver_test.go @@ -44,7 +44,7 @@ func (s *registerResolverSuite) TheContentHash(a gocuke.DocString) { func (s *registerResolverSuite) AliceHasDefinedTheResolverWithUrl(a string) { res, err := s.server.DefineResolver(s.ctx, &data.MsgDefineResolver{ - Manager: s.alice.String(), + Definer: s.alice.String(), ResolverUrl: a, }) require.NoError(s.t, err) @@ -66,7 +66,7 @@ func (s *registerResolverSuite) AliceHasAnchoredTheDataAtBlockTime(a string) { func (s *registerResolverSuite) AliceHasRegisteredTheDataToTheResolver() { _, s.err = s.server.RegisterResolver(s.ctx, &data.MsgRegisterResolver{ - Manager: s.alice.String(), + Signer: s.alice.String(), ResolverId: s.id, ContentHashes: []*data.ContentHash{s.ch}, }) @@ -74,7 +74,7 @@ func (s *registerResolverSuite) AliceHasRegisteredTheDataToTheResolver() { func (s *registerResolverSuite) AliceAttemptsToRegisterTheDataToTheResolver() { _, s.err = s.server.RegisterResolver(s.ctx, &data.MsgRegisterResolver{ - Manager: s.alice.String(), + Signer: s.alice.String(), ResolverId: s.id, ContentHashes: []*data.ContentHash{s.ch}, }) @@ -85,7 +85,7 @@ func (s *registerResolverSuite) AliceAttemptsToRegisterTheDataToAResolverWithId( require.NoError(s.t, err) _, s.err = s.server.RegisterResolver(s.ctx, &data.MsgRegisterResolver{ - Manager: s.alice.String(), + Signer: s.alice.String(), ResolverId: id, ContentHashes: []*data.ContentHash{s.ch}, }) @@ -98,7 +98,7 @@ func (s *registerResolverSuite) AliceAttemptsToRegisterTheDataToTheResolverAtBlo s.ctx = sdk.WrapSDKContext(s.sdkCtx.WithBlockTime(blockTime)) _, s.err = s.server.RegisterResolver(s.ctx, &data.MsgRegisterResolver{ - Manager: s.alice.String(), + Signer: s.alice.String(), ResolverId: s.id, ContentHashes: []*data.ContentHash{s.ch}, }) @@ -106,7 +106,7 @@ func (s *registerResolverSuite) AliceAttemptsToRegisterTheDataToTheResolverAtBlo func (s *registerResolverSuite) BobAttemptsToRegisterTheDataToTheResolver() { _, s.err = s.server.RegisterResolver(s.ctx, &data.MsgRegisterResolver{ - Manager: s.bob.String(), + Signer: s.bob.String(), ResolverId: s.id, ContentHashes: []*data.ContentHash{s.ch}, }) diff --git a/x/data/server/testsuite/suite.go b/x/data/server/testsuite/suite.go index 2bb0fbdb79..4a3783c93b 100644 --- a/x/data/server/testsuite/suite.go +++ b/x/data/server/testsuite/suite.go @@ -174,14 +174,14 @@ func (s *IntegrationTestSuite) TestResolver() { // can define a resolver defineResolver, err := s.msgClient.DefineResolver(s.ctx, &data.MsgDefineResolver{ - Manager: s.addr1.String(), + Definer: s.addr1.String(), ResolverUrl: testURL, }) require.NoError(err) // can register content to a resolver _, err = s.msgClient.RegisterResolver(s.ctx, &data.MsgRegisterResolver{ - Manager: s.addr1.String(), + Signer: s.addr1.String(), ResolverId: defineResolver.ResolverId, ContentHashes: hashes, }) @@ -189,7 +189,7 @@ func (s *IntegrationTestSuite) TestResolver() { // registering same data twice is a no-op _, err = s.msgClient.RegisterResolver(s.ctx, &data.MsgRegisterResolver{ - Manager: s.addr1.String(), + Signer: s.addr1.String(), ResolverId: defineResolver.ResolverId, ContentHashes: hashes, }) diff --git a/x/data/simulation/operations.go b/x/data/simulation/operations.go index 278073da25..151abce6ab 100644 --- a/x/data/simulation/operations.go +++ b/x/data/simulation/operations.go @@ -230,7 +230,7 @@ func SimulateMsgDefineResolver(ak data.AccountKeeper, bk data.BankKeeper, qryCli } msg := &data.MsgDefineResolver{ - Manager: manager.Address.String(), + Definer: manager.Address.String(), ResolverUrl: resolverURL, } @@ -301,7 +301,7 @@ func SimulateMsgRegisterResolver(ak data.AccountKeeper, bk data.BankKeeper, return simtypes.NoOpMsg(data.ModuleName, TypeMsgRegisterResolver, err.Error()), nil, err } msg := &data.MsgRegisterResolver{ - Manager: manager.String(), + Signer: manager.String(), ResolverId: resolverID, ContentHashes: []*data.ContentHash{contentHash}, } diff --git a/x/data/state.pb.go b/x/data/state.pb.go index fdcbaba832..6d3246b200 100644 --- a/x/data/state.pb.go +++ b/x/data/state.pb.go @@ -205,8 +205,8 @@ type Resolver struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // url is the URL of the resolver. Url string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"` - // manager is the bytes address of the resolver manager who is allowed - // to make calls to Msg/RegisterResolver for this resolver. + // manager is the bytes address of the resolver manager who defined + // this resolver. If the resolver is public, then this field is empty. Manager []byte `protobuf:"bytes,3,opt,name=manager,proto3" json:"manager,omitempty"` } diff --git a/x/data/tx.pb.go b/x/data/tx.pb.go index 7433cbf84e..e2648da701 100644 --- a/x/data/tx.pb.go +++ b/x/data/tx.pb.go @@ -260,17 +260,35 @@ func (m *MsgAttestResponse) GetTimestamp() *types.Timestamp { // MsgDefineResolver is the Msg/DefineResolver request type. type MsgDefineResolver struct { - // manager is the address of the resolver manager. The manager is able - // to make future calls using the ID returned by this operation with - // Msg/RegisterResolver. To authorize other accounts to register resolvers, - // the manager should make use of cosmos.authz. - Manager string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,omitempty"` - // resolver_url is a resolver URL which should refer to an HTTP service - // which will respond to a GET request with the IRI of a ContentHash + // definer is the address of the account defining the resolver. If + // the boolean public is set to true, then any user can register + // data with this resolver. If the boolean public is set to false, + // then only the definer can register data with this resolver and + // must use a feature such as cosmos.authz to authorize other accounts + // to register data with this resolver. + Definer string `protobuf:"bytes,1,opt,name=definer,proto3" json:"definer,omitempty"` + // resolver_url is a resolver URL. + // + // If it refers to an HTTP URL, that HTTP service should + // respond to a GET request with the IRI of a ContentHash as the path parameter // and return the content if it exists or a 404. For graph data, resolvers // should use the HTTP Accept header to negotiate the RDF serialization // format. + // + // To use IPFS, the resolver_url ipfs: should be defined with public set to true + // and used as the resolver for any data hosted on IPFS. Content hashes must be + // adapted to IPFS's CID format. The multicodec raw (0x55) should + // be used for all raw content hashes and the multicodec rdfc-1 (0xb403) + // should be used for all graph content hashes (unless new canonicalization + // or merkle tree algorithms are used which may or may not be supported + // by IPFS). Note that IPFS's tools currently do not support creating or + // resolving RDFC-1 content hashes so upstream work will be needed for + // that integration to be fully supported. ResolverUrl string `protobuf:"bytes,2,opt,name=resolver_url,json=resolverUrl,proto3" json:"resolver_url,omitempty"` + // public is a boolean indicating whether the resolver is public or not. + // If public is false then only the definer can register data with this + // resolver. + Public bool `protobuf:"varint,3,opt,name=public,proto3" json:"public,omitempty"` } func (m *MsgDefineResolver) Reset() { *m = MsgDefineResolver{} } @@ -306,9 +324,9 @@ func (m *MsgDefineResolver) XXX_DiscardUnknown() { var xxx_messageInfo_MsgDefineResolver proto.InternalMessageInfo -func (m *MsgDefineResolver) GetManager() string { +func (m *MsgDefineResolver) GetDefiner() string { if m != nil { - return m.Manager + return m.Definer } return "" } @@ -320,6 +338,13 @@ func (m *MsgDefineResolver) GetResolverUrl() string { return "" } +func (m *MsgDefineResolver) GetPublic() bool { + if m != nil { + return m.Public + } + return false +} + // MsgDefineResolverResponse is the Msg/DefineResolver response type. type MsgDefineResolverResponse struct { // resolver_id is the integer ID of the resolver to be used in @@ -369,9 +394,10 @@ func (m *MsgDefineResolverResponse) GetResolverId() uint64 { // MsgRegisterResolver is the Msg/RegisterResolver request type. type MsgRegisterResolver struct { - // manager is the address of the resolver manager who registered this - // resolver with Msg/DefinedResolver. - Manager string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,omitempty"` + // signer is the address registering data with the resolver. If + // the resolver is not public then the signer must be the definer + // of the resolver. + Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"` // resolver_id is the ID of a resolver defined with Msg/DefineResolver. ResolverId uint64 `protobuf:"varint,2,opt,name=resolver_id,json=resolverId,proto3" json:"resolver_id,omitempty"` // content_hashes is a list of content hashes which the resolver claims to @@ -412,9 +438,9 @@ func (m *MsgRegisterResolver) XXX_DiscardUnknown() { var xxx_messageInfo_MsgRegisterResolver proto.InternalMessageInfo -func (m *MsgRegisterResolver) GetManager() string { +func (m *MsgRegisterResolver) GetSigner() string { if m != nil { - return m.Manager + return m.Signer } return "" } @@ -484,43 +510,44 @@ func init() { func init() { proto.RegisterFile("regen/data/v2/tx.proto", fileDescriptor_322407e7af703c0f) } var fileDescriptor_322407e7af703c0f = []byte{ - // 569 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x94, 0xc1, 0x6e, 0xd3, 0x4c, - 0x14, 0x85, 0xe3, 0xa4, 0xca, 0xff, 0xe7, 0x26, 0xa9, 0xca, 0x20, 0x15, 0xd7, 0x08, 0xd7, 0x78, - 0x15, 0x55, 0x60, 0x8b, 0xb0, 0x41, 0x11, 0x2c, 0x0a, 0x15, 0x85, 0x45, 0x36, 0x16, 0x6c, 0x10, - 0x22, 0x72, 0x92, 0x5b, 0xdb, 0x22, 0xf6, 0x44, 0x33, 0x93, 0x50, 0x56, 0x48, 0x3c, 0x01, 0xaf, - 0xc0, 0x1b, 0xf0, 0x18, 0x2c, 0x2b, 0xb1, 0x61, 0x89, 0x92, 0x05, 0xaf, 0x81, 0x3c, 0xb6, 0xa7, - 0x8d, 0x93, 0x92, 0x05, 0xab, 0xce, 0x9d, 0x39, 0xf7, 0x9c, 0xf9, 0x7a, 0xc7, 0x81, 0x7d, 0x86, - 0x01, 0x26, 0xee, 0xd8, 0x17, 0xbe, 0x3b, 0xef, 0xba, 0xe2, 0xdc, 0x99, 0x32, 0x2a, 0x28, 0x69, - 0xcb, 0x7d, 0x27, 0xdd, 0x77, 0xe6, 0x5d, 0xe3, 0xd6, 0x88, 0xf2, 0x98, 0x72, 0x37, 0xe6, 0x81, - 0x3b, 0x7f, 0x90, 0xfe, 0xc9, 0x74, 0xc6, 0x61, 0x40, 0x69, 0x30, 0x41, 0x57, 0x56, 0xc3, 0xd9, - 0x99, 0x2b, 0xa2, 0x18, 0xb9, 0xf0, 0xe3, 0x69, 0x2e, 0x38, 0x28, 0x05, 0x7c, 0x9c, 0x22, 0xcf, - 0x8e, 0x6c, 0x0a, 0x8d, 0x3e, 0x0f, 0x8e, 0x93, 0x51, 0x48, 0x19, 0xd9, 0x87, 0x3a, 0xc7, 0x64, - 0x8c, 0x4c, 0xd7, 0x2c, 0xad, 0xd3, 0xf0, 0xf2, 0x8a, 0x3c, 0x81, 0xd6, 0x88, 0x26, 0x02, 0x13, - 0x31, 0x08, 0x7d, 0x1e, 0xea, 0x55, 0x4b, 0xeb, 0x34, 0xbb, 0x86, 0xb3, 0x72, 0x3f, 0xe7, 0x59, - 0x26, 0x79, 0xe1, 0xf3, 0xd0, 0x6b, 0x8e, 0x2e, 0x8b, 0x5e, 0xf3, 0xf3, 0xef, 0x6f, 0x47, 0xb9, - 0x97, 0x3d, 0x80, 0x1b, 0x2a, 0xd0, 0x43, 0x3e, 0xa5, 0x09, 0x47, 0xb2, 0x07, 0xb5, 0x88, 0x45, - 0x79, 0x6a, 0xba, 0x24, 0x8f, 0xa0, 0xa1, 0x28, 0x54, 0x5e, 0xc6, 0xe9, 0x14, 0x9c, 0xce, 0xab, - 0x42, 0xe1, 0x5d, 0x8a, 0xed, 0x4f, 0x19, 0x91, 0x10, 0xc8, 0x05, 0x31, 0xe0, 0x7f, 0x5f, 0xae, - 0x68, 0xc1, 0xa4, 0x6a, 0x72, 0x0a, 0xbb, 0x57, 0xa9, 0x90, 0xeb, 0x55, 0xab, 0xd6, 0x69, 0x76, - 0xad, 0xeb, 0xb9, 0x9c, 0x53, 0xe6, 0x4f, 0x43, 0xaf, 0x7d, 0x85, 0x0e, 0x79, 0xaf, 0x9d, 0xf2, - 0x29, 0x5f, 0xdb, 0xcf, 0x08, 0x65, 0xa9, 0x08, 0x09, 0xec, 0x44, 0x2c, 0xe2, 0xba, 0x66, 0xd5, - 0x3a, 0x0d, 0x4f, 0xae, 0xff, 0x81, 0xf1, 0x9d, 0x8c, 0x38, 0xc1, 0xb3, 0x28, 0x41, 0x0f, 0x39, - 0x9d, 0xcc, 0x91, 0x11, 0x1d, 0xfe, 0x8b, 0xfd, 0xc4, 0x0f, 0xd4, 0xf8, 0x8a, 0x92, 0xdc, 0x85, - 0x16, 0xcb, 0x55, 0x83, 0x19, 0x9b, 0xc8, 0xac, 0x86, 0xd7, 0x2c, 0xf6, 0x5e, 0xb3, 0x49, 0xaf, - 0x95, 0x32, 0x14, 0x0d, 0xf6, 0x63, 0x38, 0x58, 0xf3, 0x57, 0x28, 0x87, 0xa0, 0x3a, 0x07, 0xd1, - 0x58, 0x66, 0xed, 0x78, 0x50, 0x6c, 0xbd, 0x1c, 0xdb, 0x5f, 0x35, 0xb8, 0xd9, 0xe7, 0x81, 0x87, - 0x41, 0xc4, 0x85, 0x6c, 0xdc, 0x76, 0xc1, 0x92, 0x65, 0xb5, 0x6c, 0x49, 0x8e, 0xd7, 0x66, 0x55, - 0x93, 0xb3, 0xfa, 0xdb, 0x1b, 0x2c, 0x4d, 0x69, 0x95, 0xf0, 0x0e, 0xdc, 0xde, 0x70, 0xc5, 0x82, - 0xb1, 0xfb, 0xa3, 0x0a, 0xb5, 0x3e, 0x0f, 0xc8, 0x09, 0xd4, 0xf3, 0x6f, 0x43, 0x2f, 0x25, 0xa9, - 0x47, 0x6c, 0x58, 0xd7, 0x9d, 0xa8, 0xff, 0x58, 0xea, 0x92, 0xbd, 0xc7, 0x4d, 0x2e, 0xf2, 0x64, - 0xa3, 0xcb, 0xea, 0x13, 0x7a, 0x0b, 0xbb, 0xa5, 0x89, 0x6f, 0xe8, 0x59, 0x55, 0x18, 0x9d, 0x6d, - 0x0a, 0xe5, 0x3e, 0x84, 0xbd, 0xb5, 0x81, 0xd9, 0xeb, 0xdd, 0x65, 0x8d, 0x71, 0xb4, 0x5d, 0x53, - 0x64, 0x3c, 0x7d, 0xfe, 0x7d, 0x61, 0x6a, 0x17, 0x0b, 0x53, 0xfb, 0xb5, 0x30, 0xb5, 0x2f, 0x4b, - 0xb3, 0x72, 0xb1, 0x34, 0x2b, 0x3f, 0x97, 0x66, 0xe5, 0xcd, 0xbd, 0x20, 0x12, 0xe1, 0x6c, 0xe8, - 0x8c, 0x68, 0xec, 0x4a, 0xbf, 0xfb, 0x09, 0x8a, 0x0f, 0x94, 0xbd, 0xcf, 0xab, 0x09, 0x8e, 0x03, - 0x64, 0xee, 0xb9, 0xfc, 0x0d, 0x1b, 0xd6, 0xe5, 0xd7, 0xf1, 0xf0, 0x4f, 0x00, 0x00, 0x00, 0xff, - 0xff, 0x50, 0x95, 0x9c, 0x37, 0x39, 0x05, 0x00, 0x00, + // 590 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0xc1, 0x6e, 0xd3, 0x3e, + 0x1c, 0x5e, 0x9a, 0x69, 0xff, 0xd5, 0x6d, 0xa7, 0xfd, 0x8d, 0x34, 0xb2, 0x20, 0xb2, 0x90, 0x53, + 0x34, 0x41, 0x22, 0xca, 0x05, 0x55, 0x70, 0x18, 0x4c, 0x0c, 0x0e, 0xbd, 0x44, 0x70, 0x41, 0x48, + 0x55, 0x9a, 0x78, 0x8e, 0x45, 0x1a, 0x47, 0xb6, 0x5b, 0xc6, 0x09, 0x89, 0x27, 0xe0, 0x09, 0x78, + 0x06, 0x1e, 0x83, 0xe3, 0x24, 0x2e, 0x1c, 0x51, 0x7b, 0xe0, 0x35, 0x50, 0x9c, 0xc4, 0x6b, 0xd3, + 0x8e, 0x1d, 0x38, 0xd5, 0xdf, 0xcf, 0x9f, 0xbf, 0xcf, 0x5f, 0x7f, 0x3f, 0x07, 0x1c, 0x30, 0x84, + 0x51, 0xe6, 0xc7, 0xa1, 0x08, 0xfd, 0x59, 0xdf, 0x17, 0x17, 0x5e, 0xce, 0xa8, 0xa0, 0xb0, 0x27, + 0xeb, 0x5e, 0x51, 0xf7, 0x66, 0x7d, 0xf3, 0x76, 0x44, 0xf9, 0x84, 0x72, 0x7f, 0xc2, 0xb1, 0x3f, + 0x7b, 0x58, 0xfc, 0x94, 0x3c, 0xf3, 0x08, 0x53, 0x8a, 0x53, 0xe4, 0x4b, 0x34, 0x9e, 0x9e, 0xfb, + 0x82, 0x4c, 0x10, 0x17, 0xe1, 0x24, 0xaf, 0x08, 0x87, 0x0d, 0x83, 0x8f, 0x39, 0xe2, 0xe5, 0x96, + 0x43, 0x41, 0x7b, 0xc8, 0xf1, 0x49, 0x16, 0x25, 0x94, 0xc1, 0x03, 0xb0, 0xc3, 0x51, 0x16, 0x23, + 0x66, 0x68, 0xb6, 0xe6, 0xb6, 0x83, 0x0a, 0xc1, 0xa7, 0xa0, 0x1b, 0xd1, 0x4c, 0xa0, 0x4c, 0x8c, + 0x92, 0x90, 0x27, 0x46, 0xcb, 0xd6, 0xdc, 0x4e, 0xdf, 0xf4, 0x56, 0xee, 0xe7, 0x3d, 0x2f, 0x29, + 0x2f, 0x43, 0x9e, 0x04, 0x9d, 0xe8, 0x0a, 0x0c, 0x3a, 0x9f, 0x7f, 0x7f, 0x3b, 0xae, 0xb4, 0x9c, + 0x11, 0xf8, 0x5f, 0x19, 0x06, 0x88, 0xe7, 0x34, 0xe3, 0x08, 0xee, 0x03, 0x9d, 0x30, 0x52, 0xb9, + 0x16, 0x4b, 0xf8, 0x18, 0xb4, 0x55, 0x0a, 0xe5, 0x57, 0xe6, 0xf4, 0xea, 0x9c, 0xde, 0xeb, 0x9a, + 0x11, 0x5c, 0x91, 0x9d, 0x4f, 0x65, 0x22, 0x21, 0x10, 0x17, 0xd0, 0x04, 0xbb, 0xa1, 0x5c, 0xd1, + 0x3a, 0x93, 0xc2, 0xf0, 0x0c, 0xec, 0x2d, 0xa7, 0x42, 0xdc, 0x68, 0xd9, 0xba, 0xdb, 0xe9, 0xdb, + 0xd7, 0xe7, 0xf2, 0xce, 0x58, 0x98, 0x27, 0x41, 0x6f, 0x29, 0x1d, 0xe2, 0x83, 0x5e, 0x91, 0x4f, + 0xe9, 0x3a, 0x61, 0x99, 0x50, 0x42, 0x95, 0x10, 0x82, 0x6d, 0xc2, 0x08, 0x37, 0x34, 0x5b, 0x77, + 0xdb, 0x81, 0x5c, 0xff, 0x43, 0xc6, 0x99, 0xb4, 0x38, 0x45, 0xe7, 0x24, 0x43, 0x01, 0xe2, 0x34, + 0x9d, 0x21, 0x06, 0x0d, 0xf0, 0x5f, 0x2c, 0x2b, 0x75, 0xd4, 0x1a, 0xc2, 0x7b, 0xa0, 0xcb, 0x2a, + 0xd6, 0x68, 0xca, 0x52, 0xe9, 0xd5, 0x0e, 0x3a, 0x75, 0xed, 0x0d, 0x4b, 0x8b, 0xd6, 0xe7, 0xd3, + 0x71, 0x4a, 0x22, 0x43, 0xb7, 0x35, 0x77, 0x37, 0xa8, 0xd0, 0xa0, 0x5b, 0x64, 0xab, 0x85, 0x9c, + 0x27, 0xe0, 0x70, 0xcd, 0x57, 0x45, 0x3c, 0x02, 0x4a, 0x71, 0x44, 0x62, 0x79, 0x87, 0xed, 0x00, + 0xd4, 0xa5, 0x57, 0xb1, 0xf3, 0x55, 0x03, 0xb7, 0x86, 0x1c, 0x07, 0x08, 0x13, 0x2e, 0xe4, 0xc1, + 0xf2, 0xe2, 0xc5, 0xd8, 0x11, 0x9c, 0x2d, 0x8d, 0x9d, 0x44, 0x4d, 0xc1, 0x56, 0x53, 0x10, 0x9e, + 0xac, 0x75, 0x50, 0x97, 0x1d, 0xfc, 0xdb, 0x64, 0x36, 0x7a, 0x57, 0xcd, 0xa6, 0x34, 0x74, 0xee, + 0x82, 0x3b, 0x1b, 0xee, 0x57, 0x07, 0xec, 0xff, 0x68, 0x01, 0x7d, 0xc8, 0x31, 0x3c, 0x05, 0x3b, + 0xd5, 0x83, 0x31, 0x1a, 0x46, 0x6a, 0xb2, 0x4d, 0xfb, 0xba, 0x1d, 0xf5, 0x77, 0x15, 0x2a, 0xe5, + 0x90, 0x6e, 0x52, 0x91, 0x3b, 0x1b, 0x55, 0x56, 0xe7, 0xea, 0x1d, 0xd8, 0x6b, 0x8c, 0xc1, 0x86, + 0x33, 0xab, 0x0c, 0xd3, 0xbd, 0x89, 0xa1, 0xd4, 0xc7, 0x60, 0x7f, 0xad, 0x5b, 0xce, 0xfa, 0xe9, + 0x26, 0xc7, 0x3c, 0xbe, 0x99, 0x53, 0x7b, 0x3c, 0x7b, 0xf1, 0x7d, 0x6e, 0x69, 0x97, 0x73, 0x4b, + 0xfb, 0x35, 0xb7, 0xb4, 0x2f, 0x0b, 0x6b, 0xeb, 0x72, 0x61, 0x6d, 0xfd, 0x5c, 0x58, 0x5b, 0x6f, + 0xef, 0x63, 0x22, 0x92, 0xe9, 0xd8, 0x8b, 0xe8, 0xc4, 0x97, 0x7a, 0x0f, 0x32, 0x24, 0x3e, 0x50, + 0xf6, 0xbe, 0x42, 0x29, 0x8a, 0x31, 0x62, 0xfe, 0x85, 0xfc, 0xb0, 0x8d, 0x77, 0xe4, 0x93, 0x79, + 0xf4, 0x27, 0x00, 0x00, 0xff, 0xff, 0x0b, 0x7a, 0xd4, 0x26, 0x4e, 0x05, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. @@ -967,6 +994,16 @@ func (m *MsgDefineResolver) MarshalToSizedBuffer(dAtA []byte) (int, error) { _ = i var l int _ = l + if m.Public { + i-- + if m.Public { + dAtA[i] = 1 + } else { + dAtA[i] = 0 + } + i-- + dAtA[i] = 0x18 + } if len(m.ResolverUrl) > 0 { i -= len(m.ResolverUrl) copy(dAtA[i:], m.ResolverUrl) @@ -974,10 +1011,10 @@ func (m *MsgDefineResolver) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x12 } - if len(m.Manager) > 0 { - i -= len(m.Manager) - copy(dAtA[i:], m.Manager) - i = encodeVarintTx(dAtA, i, uint64(len(m.Manager))) + if len(m.Definer) > 0 { + i -= len(m.Definer) + copy(dAtA[i:], m.Definer) + i = encodeVarintTx(dAtA, i, uint64(len(m.Definer))) i-- dAtA[i] = 0xa } @@ -1051,10 +1088,10 @@ func (m *MsgRegisterResolver) MarshalToSizedBuffer(dAtA []byte) (int, error) { i-- dAtA[i] = 0x10 } - if len(m.Manager) > 0 { - i -= len(m.Manager) - copy(dAtA[i:], m.Manager) - i = encodeVarintTx(dAtA, i, uint64(len(m.Manager))) + if len(m.Signer) > 0 { + i -= len(m.Signer) + copy(dAtA[i:], m.Signer) + i = encodeVarintTx(dAtA, i, uint64(len(m.Signer))) i-- dAtA[i] = 0xa } @@ -1173,7 +1210,7 @@ func (m *MsgDefineResolver) Size() (n int) { } var l int _ = l - l = len(m.Manager) + l = len(m.Definer) if l > 0 { n += 1 + l + sovTx(uint64(l)) } @@ -1181,6 +1218,9 @@ func (m *MsgDefineResolver) Size() (n int) { if l > 0 { n += 1 + l + sovTx(uint64(l)) } + if m.Public { + n += 2 + } return n } @@ -1202,7 +1242,7 @@ func (m *MsgRegisterResolver) Size() (n int) { } var l int _ = l - l = len(m.Manager) + l = len(m.Signer) if l > 0 { n += 1 + l + sovTx(uint64(l)) } @@ -1734,7 +1774,7 @@ func (m *MsgDefineResolver) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Manager", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Definer", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1762,7 +1802,7 @@ func (m *MsgDefineResolver) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Manager = string(dAtA[iNdEx:postIndex]) + m.Definer = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 2 { @@ -1796,6 +1836,26 @@ func (m *MsgDefineResolver) Unmarshal(dAtA []byte) error { } m.ResolverUrl = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex + case 3: + if wireType != 0 { + return fmt.Errorf("proto: wrong wireType = %d for field Public", wireType) + } + var v int + for shift := uint(0); ; shift += 7 { + if shift >= 64 { + return ErrIntOverflowTx + } + if iNdEx >= l { + return io.ErrUnexpectedEOF + } + b := dAtA[iNdEx] + iNdEx++ + v |= int(b&0x7F) << shift + if b < 0x80 { + break + } + } + m.Public = bool(v != 0) default: iNdEx = preIndex skippy, err := skipTx(dAtA[iNdEx:]) @@ -1917,7 +1977,7 @@ func (m *MsgRegisterResolver) Unmarshal(dAtA []byte) error { switch fieldNum { case 1: if wireType != 2 { - return fmt.Errorf("proto: wrong wireType = %d for field Manager", wireType) + return fmt.Errorf("proto: wrong wireType = %d for field Signer", wireType) } var stringLen uint64 for shift := uint(0); ; shift += 7 { @@ -1945,7 +2005,7 @@ func (m *MsgRegisterResolver) Unmarshal(dAtA []byte) error { if postIndex > l { return io.ErrUnexpectedEOF } - m.Manager = string(dAtA[iNdEx:postIndex]) + m.Signer = string(dAtA[iNdEx:postIndex]) iNdEx = postIndex case 2: if wireType != 0 { From c67eb10f1b6e9209a39676509f4965cfae5f74c9 Mon Sep 17 00:00:00 2001 From: Aaron Craelius Date: Wed, 6 Mar 2024 15:25:11 -0500 Subject: [PATCH 5/6] test case --- x/data/server/features/msg_register_resolver.feature | 9 ++++++++- x/data/server/msg_register_resolver_test.go | 10 ++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/x/data/server/features/msg_register_resolver.feature b/x/data/server/features/msg_register_resolver.feature index a1b2206758..341a1cc589 100644 --- a/x/data/server/features/msg_register_resolver.feature +++ b/x/data/server/features/msg_register_resolver.feature @@ -76,4 +76,11 @@ Feature: Msg/RegisterResolver "id": 1, "iri": "regen:112wkBET2rRgE8pahuaczxKbmv7ciehqsne57F9gtzf1PVhwuFTX.bin" } - """ \ No newline at end of file + """ + + Rule: public resolvers allow anyone to register data + + Scenario: register data to public resolver + Given alice has defined a public resolver with url "ipfs:" + When bob attempts to register the data to the resolver + Then the data resolver entry exists diff --git a/x/data/server/msg_register_resolver_test.go b/x/data/server/msg_register_resolver_test.go index 089bf95d18..4f839c3701 100644 --- a/x/data/server/msg_register_resolver_test.go +++ b/x/data/server/msg_register_resolver_test.go @@ -51,6 +51,16 @@ func (s *registerResolverSuite) AliceHasDefinedTheResolverWithUrl(a string) { s.id = res.ResolverId } +func (s *registerResolverSuite) AliceHasDefinedAPublicResolverWithUrl(a string) { + res, err := s.server.DefineResolver(s.ctx, &data.MsgDefineResolver{ + Definer: s.alice.String(), + ResolverUrl: a, + Public: true, + }) + require.NoError(s.t, err) + + s.id = res.ResolverId +} func (s *registerResolverSuite) AliceHasAnchoredTheDataAtBlockTime(a string) { blockTime, err := types.ParseDate("block time", a) From be0f559be2d370594f81486e19dc2d3f6eef71be Mon Sep 17 00:00:00 2001 From: Aaron Craelius Date: Thu, 7 Mar 2024 14:44:56 -0500 Subject: [PATCH 6/6] add test to ensure public resolvers can only be defined once per URL --- .../server/features/msg_define_resolver.feature | 5 +++++ x/data/server/msg_define_resolver_test.go | 16 ++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/x/data/server/features/msg_define_resolver.feature b/x/data/server/features/msg_define_resolver.feature index 3a38cc16ec..0d57812871 100644 --- a/x/data/server/features/msg_define_resolver.feature +++ b/x/data/server/features/msg_define_resolver.feature @@ -15,6 +15,11 @@ Feature: Msg/DefineResolver When alice attempts to define a resolver with url "https://foo.bar" Then expect the error "a resolver with the same URL and manager already exists: unique key violation" + Scenario: public resolvers can only be defined once per URL + Given a public resolver is defined for the url "ipfs:" + When alice attempts to define a public resolver with url "ipfs:" + Then expect the error "a resolver with the same URL and manager already exists: unique key violation" + Rule: Event is emitted Scenario: EventDefineResolver is emitted diff --git a/x/data/server/msg_define_resolver_test.go b/x/data/server/msg_define_resolver_test.go index 5071404f77..423b37e450 100644 --- a/x/data/server/msg_define_resolver_test.go +++ b/x/data/server/msg_define_resolver_test.go @@ -41,6 +41,14 @@ func (s *defineResolverSuite) AliceHasDefinedAResolverWithUrl(a string) { require.NoError(s.t, err) } +func (s *defineResolverSuite) APublicResolverIsDefinedForTheUrl(a string) { + err := s.server.stateStore.ResolverTable().Insert(s.ctx, &api.Resolver{ + Url: a, + Manager: nil, + }) + require.NoError(s.t, err) +} + func (s *defineResolverSuite) AliceAttemptsToDefineAResolverWithUrl(a string) { _, s.err = s.server.DefineResolver(s.ctx, &data.MsgDefineResolver{ Definer: s.alice.String(), @@ -48,6 +56,14 @@ func (s *defineResolverSuite) AliceAttemptsToDefineAResolverWithUrl(a string) { }) } +func (s *defineResolverSuite) AliceAttemptsToDefineAPublicResolverWithUrl(a string) { + _, s.err = s.server.DefineResolver(s.ctx, &data.MsgDefineResolver{ + Definer: s.alice.String(), + ResolverUrl: a, + Public: true, + }) +} + func (s *defineResolverSuite) BobAttemptsToDefineAResolverWithUrl(a string) { _, s.err = s.server.DefineResolver(s.ctx, &data.MsgDefineResolver{ Definer: s.bob.String(),