mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
Merge branch 'develop' into feature/1110-implement-dwn-wallet-abstraction
This commit is contained in:
+6
-4
@@ -1,9 +1,9 @@
|
||||
version: v1
|
||||
name: buf.build/onsonr/sonr
|
||||
deps:
|
||||
- buf.build/cosmos/cosmos-sdk:05419252bcc241ea8023acf1ed4cadc5
|
||||
- buf.build/cosmos/cosmos-proto:04467658e59e44bbb22fe568206e1f70
|
||||
- buf.build/cosmos/gogo-proto:88ef6483f90f478fb938c37dde52ece3
|
||||
- buf.build/cosmos/cosmos-sdk
|
||||
- buf.build/cosmos/cosmos-proto
|
||||
- buf.build/cosmos/gogo-proto
|
||||
- buf.build/googleapis/googleapis
|
||||
breaking:
|
||||
use:
|
||||
@@ -14,7 +14,6 @@ lint:
|
||||
- COMMENTS
|
||||
- FILE_LOWER_SNAKE_CASE
|
||||
except:
|
||||
- PACKAGE_NO_IMPORT_CYCLE
|
||||
- UNARY_RPC
|
||||
- COMMENT_FIELD
|
||||
- COMMENT_MESSAGE
|
||||
@@ -31,5 +30,8 @@ lint:
|
||||
- COMMENT_ENUM
|
||||
- ENUM_ZERO_VALUE_SUFFIX
|
||||
ignore:
|
||||
- PACKAGE_NO_IMPORT_CYCLE
|
||||
- IMPORT_USED
|
||||
- tendermint
|
||||
- amino
|
||||
- cosmos
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package did.module.v1;
|
||||
package onsonr.sonr.did.module.v1;
|
||||
|
||||
import "cosmos/app/v1alpha1/module.proto";
|
||||
|
||||
// Module is the app config object of the module.
|
||||
// Learn more: https://docs.cosmos.network/main/building-modules/depinject
|
||||
message Module {
|
||||
option (cosmos.app.v1alpha1.module) = {go_import: "github.com/onsonr/sonr"};
|
||||
option (cosmos.app.v1alpha1.module) = {go_import: "github.com/onsonr/sonr/x/did"};
|
||||
}
|
||||
|
||||
@@ -10,22 +10,22 @@ option go_package = "github.com/onsonr/sonr/x/did/types";
|
||||
service Query {
|
||||
// Params queries all parameters of the module.
|
||||
rpc Params(QueryRequest) returns (QueryParamsResponse) {
|
||||
option (google.api.http).get = "/params";
|
||||
option (google.api.http).get = "/did/v1/params";
|
||||
}
|
||||
|
||||
// Resolve queries the DID document by its id.
|
||||
rpc Resolve(QueryRequest) returns (QueryResolveResponse) {
|
||||
option (google.api.http).get = "/did/{did}";
|
||||
option (google.api.http).get = "/did/v1/{did}";
|
||||
}
|
||||
|
||||
// Sign signs a message with the DID document
|
||||
rpc Sign(QuerySignRequest) returns (QuerySignResponse) {
|
||||
option (google.api.http).post = "/did/{did}/sign";
|
||||
option (google.api.http).post = "/did/v1/{did}/sign";
|
||||
}
|
||||
|
||||
// Verify verifies a message with the DID document
|
||||
rpc Verify(QueryVerifyRequest) returns (QueryVerifyResponse) {
|
||||
option (google.api.http).post = "/did/{did}/verify";
|
||||
option (google.api.http).post = "/did/v1/{did}/verify";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package macaroon.module.v1;
|
||||
package onsonr.sonr.macaroon.module.v1;
|
||||
|
||||
import "cosmos/app/v1alpha1/module.proto";
|
||||
|
||||
// Module is the app config object of the module.
|
||||
// Learn more: https://docs.cosmos.network/main/building-modules/depinject
|
||||
message Module {
|
||||
option (cosmos.app.v1alpha1.module) = {
|
||||
go_import : "github.com/onsonr/sonr"
|
||||
};
|
||||
}
|
||||
option (cosmos.app.v1alpha1.module) = {go_import: "github.com/onsonr/sonr/x/macaroon"};
|
||||
}
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package service.module.v1;
|
||||
package onsonr.sonr.service.module.v1;
|
||||
|
||||
import "cosmos/app/v1alpha1/module.proto";
|
||||
|
||||
// Module is the app config object of the module.
|
||||
// Learn more: https://docs.cosmos.network/main/building-modules/depinject
|
||||
message Module {
|
||||
option (cosmos.app.v1alpha1.module) = {
|
||||
go_import : "github.com/onsonr/sonr"
|
||||
};
|
||||
}
|
||||
option (cosmos.app.v1alpha1.module) = {go_import: "github.com/onsonr/sonr/x/service"};
|
||||
}
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
syntax = "proto3";
|
||||
|
||||
package vault.module.v1;
|
||||
package onsonr.sonr.vault.module.v1;
|
||||
|
||||
import "cosmos/app/v1alpha1/module.proto";
|
||||
|
||||
// Module is the app config object of the module.
|
||||
// Learn more: https://docs.cosmos.network/main/building-modules/depinject
|
||||
message Module {
|
||||
option (cosmos.app.v1alpha1.module) = {
|
||||
go_import : "github.com/onsonr/sonr"
|
||||
};
|
||||
}
|
||||
option (cosmos.app.v1alpha1.module) = {go_import: "github.com/onsonr/sonr/x/vault"};
|
||||
}
|
||||
|
||||
+17
-12
@@ -6,6 +6,10 @@ import "vault/v1/genesis.proto";
|
||||
|
||||
option go_package = "github.com/onsonr/sonr/x/vault/types";
|
||||
|
||||
// ╭─────────────────────────────────────────────────────────╮
|
||||
// │ RPC Query Service │
|
||||
// ╰─────────────────────────────────────────────────────────╯
|
||||
|
||||
// Query provides defines the gRPC querier service.
|
||||
service Query {
|
||||
// Params queries all parameters of the module.
|
||||
@@ -21,17 +25,21 @@ service Query {
|
||||
|
||||
// Allocate initializes a Target Vault available for claims with a compatible
|
||||
// Authentication mechanism. The default authentication mechanism is WebAuthn.
|
||||
rpc Allocate(AllocateRequest) returns (AllocateResponse) {
|
||||
option (google.api.http).get = "/vault/v1/allocate/{origin}/{subject}";
|
||||
rpc Allocate(QueryAllocateRequest) returns (QueryAllocateResponse) {
|
||||
option (google.api.http).get = "/vault/v1/allocate";
|
||||
}
|
||||
|
||||
// Sync queries the DID document by its id. And returns the required PKL
|
||||
// information
|
||||
rpc Sync(SyncRequest) returns (SyncResponse) {
|
||||
option (google.api.http).post = "/vault/v1/sync-initial";
|
||||
rpc Sync(QuerySyncRequest) returns (QuerySyncResponse) {
|
||||
option (google.api.http).get = "/vault/v1/sync-initial";
|
||||
}
|
||||
}
|
||||
|
||||
// ╭──────────────────────────────────────────────────────────╮
|
||||
// │ RPC Query Messages │
|
||||
// ╰──────────────────────────────────────────────────────────╯
|
||||
|
||||
// QueryParamsRequest is the request type for the Query/Params RPC method.
|
||||
message QueryParamsRequest {}
|
||||
|
||||
@@ -50,14 +58,11 @@ message QuerySchemaResponse {
|
||||
Schema schema = 1;
|
||||
}
|
||||
|
||||
// AllocateRequest is the request type for the Allocate RPC method.
|
||||
message AllocateRequest {
|
||||
string origin = 1;
|
||||
string subject = 2;
|
||||
}
|
||||
// QueryAllocateRequest is the request type for the Allocate RPC method.
|
||||
message QueryAllocateRequest {}
|
||||
|
||||
// AllocateResponse is the response type for the Allocate RPC method.
|
||||
message AllocateResponse {
|
||||
message QueryAllocateResponse {
|
||||
bool success = 1;
|
||||
string cid = 2;
|
||||
string macaroon = 3;
|
||||
@@ -66,12 +71,12 @@ message AllocateResponse {
|
||||
}
|
||||
|
||||
// SyncRequest is the request type for the Sync RPC method.
|
||||
message SyncRequest {
|
||||
message QuerySyncRequest {
|
||||
string did = 1;
|
||||
}
|
||||
|
||||
// SyncResponse is the response type for the Sync RPC method.
|
||||
message SyncResponse {
|
||||
message QuerySyncResponse {
|
||||
bool success = 1;
|
||||
|
||||
// Schema is the DID document.
|
||||
|
||||
Reference in New Issue
Block a user