mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +00:00
* feat(database): create schema for hway and motr * fix(gateway): correct naming inconsistencies in handlers * build: update schema file to be compatible with postgresql syntax * fix: update schema to be compatible with PostgreSQL syntax * chore: update query_hway.sql to follow sqlc syntax * ```text refactor: update query_hway.sql for PostgreSQL and sqlc ``` * feat: add vaults table to store encrypted data * refactor: Update vaults table schema for sqlc compatibility * chore(deps): Upgrade dependencies and add pgx/v5 * refactor(Makefile): move sqlc generate to internal/models * docs(foundations): remove outdated pages * chore(build): add Taskfile for build tasks * refactor(embed): move embed files to internal package * docs: add documentation for Cosmos SDK ORM
53 lines
2.1 KiB
Protocol Buffer
53 lines
2.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
package dwn.v1;
|
|
|
|
import "google/api/annotations.proto";
|
|
import "dwn/v1/genesis.proto";
|
|
|
|
option go_package = "github.com/onsonr/sonr/x/dwn/types";
|
|
|
|
// ╭─────────────────────────────────────────────────────────╮
|
|
// │ RPC Query Service │
|
|
// ╰─────────────────────────────────────────────────────────╯
|
|
|
|
// Query provides defines the gRPC querier service.
|
|
service Query {
|
|
// Params queries all parameters of the module.
|
|
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
|
|
option (google.api.http).get = "/vault/v1/params";
|
|
}
|
|
|
|
|
|
// Allocate initializes a Target Vault available for claims with a compatible
|
|
// Authentication mechanism. The default authentication mechanism is WebAuthn.
|
|
rpc Allocate(QueryAllocateRequest) returns (QueryAllocateResponse) {
|
|
option (google.api.http).get = "/vault/v1/allocate";
|
|
}
|
|
}
|
|
|
|
// ╭──────────────────────────────────────────────────────────╮
|
|
// │ RPC Query Messages │
|
|
// ╰──────────────────────────────────────────────────────────╯
|
|
|
|
// QueryParamsRequest is the request type for the Query/Params RPC method.
|
|
message QueryParamsRequest {}
|
|
|
|
// QueryParamsResponse is the response type for the Query/Params RPC method.
|
|
message QueryParamsResponse {
|
|
// params defines the parameters of the module.
|
|
Params params = 1;
|
|
}
|
|
|
|
// QueryAllocateRequest is the request type for the Allocate RPC method.
|
|
message QueryAllocateRequest {}
|
|
|
|
// AllocateResponse is the response type for the Allocate RPC method.
|
|
message QueryAllocateResponse {
|
|
bool success = 1;
|
|
string cid = 2;
|
|
string macaroon = 3;
|
|
string public_uri = 4;
|
|
int64 expiry_block = 5;
|
|
}
|
|
|