2024-09-26 18:01:49 -04:00
|
|
|
syntax = "proto3";
|
|
|
|
package service.v1;
|
|
|
|
|
|
|
|
import "cosmos/msg/v1/msg.proto";
|
|
|
|
import "cosmos_proto/cosmos.proto";
|
2024-09-27 20:58:05 -04:00
|
|
|
import "gogoproto/gogo.proto";
|
|
|
|
import "service/v1/genesis.proto";
|
2024-09-26 18:01:49 -04:00
|
|
|
|
|
|
|
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);
|
2024-09-27 20:58:05 -04:00
|
|
|
|
|
|
|
// 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);
|
2024-09-26 18:01:49 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// 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.
|
2024-11-18 19:04:10 -05:00
|
|
|
string authority = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
2024-09-26 18:01:49 -04:00
|
|
|
|
|
|
|
// params defines the parameters to update.
|
|
|
|
//
|
|
|
|
// NOTE: All parameters must be supplied.
|
2024-11-18 19:04:10 -05:00
|
|
|
Params params = 2 [(gogoproto.nullable) = false];
|
2024-09-26 18:01:49 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// MsgUpdateParamsResponse defines the response structure for executing a
|
|
|
|
// MsgUpdateParams message.
|
|
|
|
//
|
|
|
|
// Since: cosmos-sdk 0.47
|
|
|
|
message MsgUpdateParamsResponse {}
|
2024-09-27 20:58:05 -04:00
|
|
|
|
|
|
|
// 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.
|
2024-11-18 19:04:10 -05:00
|
|
|
string controller = 1 [(cosmos_proto.scalar) = "cosmos.AddressString"];
|
2024-09-27 20:58:05 -04:00
|
|
|
|
|
|
|
// 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;
|
|
|
|
}
|