mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
feat: add PubKey fast reflection
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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; }
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user