mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-02 17:31:39 +00:00
- **refactor: refactor DID module types and move to controller package** - **refactor: move controller creation and resolution logic to keeper** - **refactor: update imports to reflect controller package move** - **refactor: update protobuf definitions for DID module** - **docs: update proto README to reflect changes** - **refactor: move hway to gateway, update node modules, and refactor pkl generation** - **build: update pkl-gen task to use new pkl file paths** - **refactor: refactor DWN WASM build and deployment process** - **refactor: refactor DID controller implementation to use account-based storage** - **refactor: move DID controller interface to base file and update implementation** - **chore: migrate to google protobuf** - **feat: Add v0.52.0 Interfaces for Acc Abstraction** - **refactor: replace public_key with public_key_hex in Assertion message** - **refactor: remove unused PubKey, JSONWebKey, and RawKey message types and related code**
63 lines
1.9 KiB
Protocol Buffer
63 lines
1.9 KiB
Protocol Buffer
syntax = "proto3";
|
|
package service.v1;
|
|
|
|
import "cosmos/msg/v1/msg.proto";
|
|
import "cosmos_proto/cosmos.proto";
|
|
import "gogoproto/gogo.proto";
|
|
import "service/v1/genesis.proto";
|
|
|
|
option go_package = "github.com/onsonr/sonr/x/service/types";
|
|
|
|
// Msg defines the Msg service.
|
|
service Msg {
|
|
option (cosmos.msg.v1.service) = true;
|
|
|
|
// UpdateParams defines a governance operation for updating the parameters.
|
|
//
|
|
// Since: cosmos-sdk 0.47
|
|
rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse);
|
|
|
|
// RegisterService initializes a Service with a given permission scope and
|
|
// URI. The domain must have a valid TXT record containing the public key.
|
|
rpc RegisterService(MsgRegisterService) returns (MsgRegisterServiceResponse);
|
|
}
|
|
|
|
// MsgUpdateParams is the Msg/UpdateParams request type.
|
|
//
|
|
// Since: cosmos-sdk 0.47
|
|
message MsgUpdateParams {
|
|
option (cosmos.msg.v1.signer) = "authority";
|
|
|
|
// authority is the address of the governance account.
|
|
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];
|
|
}
|
|
|
|
// MsgUpdateParamsResponse defines the response structure for executing a
|
|
// MsgUpdateParams message.
|
|
//
|
|
// Since: cosmos-sdk 0.47
|
|
message MsgUpdateParamsResponse {}
|
|
|
|
// MsgRegisterService is the message type for the RegisterService RPC.
|
|
message MsgRegisterService {
|
|
option (cosmos.msg.v1.signer) = "controller";
|
|
|
|
// authority is the address of the governance account.
|
|
string controller = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
|
|
|
// origin is the origin of the request in wildcard form. Requires valid TXT
|
|
// record in DNS.
|
|
Service service = 2;
|
|
}
|
|
|
|
// MsgRegisterServiceResponse is the response type for the RegisterService RPC.
|
|
message MsgRegisterServiceResponse {
|
|
bool success = 1;
|
|
string did = 2;
|
|
}
|