feat: add PubKey fast reflection

This commit is contained in:
Prad Nukala
2024-10-08 16:43:59 -04:00
parent c3e8fcc3d3
commit f6879f1c12
31 changed files with 4605 additions and 14444 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ option go_package = "github.com/onsonr/sonr/x/vault/types";
// GenesisState defines the module genesis state
message GenesisState {
// Params defines all the parameters of the module.
Params params = 1 [(gogoproto.nullable) = false];
Params params = 1 [ (gogoproto.nullable) = false ];
}
// Params defines the set of module parameters.
+2 -33
View File
@@ -13,11 +13,6 @@ service Query {
option (google.api.http).get = "/vault/v1/params";
}
// BuildTx builds an unsigned transaction message for the given PKL.
rpc BuildTx(BuildTxRequest) returns (BuildTxResponse) {
option (google.api.http).post = "/vault/v1/buildtx";
}
// Schema queries the DID document by its id. And returns the required PKL
// information
rpc Schema(QuerySchemaRequest) returns (QuerySchemaResponse) {
@@ -39,16 +34,6 @@ message QueryParamsResponse {
// params defines the parameters of the module.
Params params = 1;
}
// QueryIPFSRequest is the request type for the Query/IPFS RPC method.
message QueryIPFSRequest {}
// QueryIPFSResponse is the response type for the Query/IPFS RPC method.
message QueryIPFSResponse {
// IPFS is the IPFS client status.
bool ipfs = 1;
}
// QuerySchemaRequest is the request type for the Query/Schema RPC method.
message QuerySchemaRequest {}
@@ -59,23 +44,7 @@ message QuerySchemaResponse {
}
// SyncRequest is the request type for the Sync RPC method.
message SyncRequest {
string did = 1;
}
message SyncRequest { string did = 1; }
// SyncResponse is the response type for the Sync RPC method.
message SyncResponse {
bool success = 1;
}
// BuildTxRequest is the request type for the BuildTx RPC method.
message BuildTxRequest {
string did = 1;
string pkl = 2;
}
// BuildTxResponse is the response type for the BuildTx RPC method.
message BuildTxResponse {
bool success = 1;
string tx = 2;
}
message SyncResponse { bool success = 1; }
+4 -15
View File
@@ -9,21 +9,10 @@ option go_package = "github.com/onsonr/sonr/x/vault/types";
message DWN {
option (cosmos.orm.v1.table) = {
id: 1
primary_key: {
fields: "id"
auto_increment: true
}
index: {
id: 1
fields: "alias"
unique: true
}
index: {
id: 2
fields: "cid"
unique: true
}
id : 1
primary_key : {fields : "id" auto_increment : true}
index : {id : 1 fields : "alias" unique : true}
index : {id : 2 fields : "cid" unique : true}
};
uint64 id = 1;
string alias = 2;
+3 -3
View File
@@ -32,12 +32,12 @@ message MsgUpdateParams {
option (cosmos.msg.v1.signer) = "authority";
// authority is the address of the governance account.
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
// params defines the parameters to update.
//
// NOTE: All parameters must be supplied.
Params params = 2 [(gogoproto.nullable) = false];
Params params = 2 [ (gogoproto.nullable) = false ];
}
// MsgUpdateParamsResponse defines the response structure for executing a
@@ -51,7 +51,7 @@ message MsgAllocateVault {
option (cosmos.msg.v1.signer) = "authority";
// authority is the address of the service account.
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
string authority = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
// subject is a unique human-defined identifier to associate with the vault.
string subject = 2;