Files
sonr/proto/macaroon/v1/tx.proto
T

67 lines
1.9 KiB
Protocol Buffer
Raw Normal View History

2024-09-26 18:01:49 -04:00
syntax = "proto3";
package macaroon.v1;
import "cosmos/msg/v1/msg.proto";
import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto";
import "macaroon/v1/genesis.proto";
2024-09-26 18:01:49 -04:00
option go_package = "github.com/onsonr/sonr/x/macaroon/types";
// Msg defines the Msg service.
service Msg {
option (cosmos.msg.v1.service) = true;
// UpdateParams defines a governance operation for updating the parameters.
rpc UpdateParams(MsgUpdateParams) returns (MsgUpdateParamsResponse);
2024-09-29 14:40:36 -04:00
// IssueMacaroon asserts the given controller is the owner of the given
// address.
2024-09-29 14:40:36 -04:00
rpc IssueMacaroon(MsgIssueMacaroon) returns (MsgIssueMacaroonResponse);
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-10-08 16:43:59 -04: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-10-08 16:43:59 -04: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-29 14:40:36 -04:00
// MsgIssueMacaroon is the message type for the IssueMacaroon RPC.
message MsgIssueMacaroon {
option (cosmos.msg.v1.signer) = "controller";
// Controller is the address of the controller to authenticate.
2024-10-08 16:43:59 -04:00
string controller = 1 [ (cosmos_proto.scalar) = "cosmos.AddressString" ];
// Origin is the origin of the request in wildcard form.
string origin = 2;
// Permissions is the scope of the service.
map<string, string> permissions = 3;
// token is the macron token to authenticate the operation.
string token = 4;
}
2024-09-29 14:40:36 -04:00
// MsgIssueMacaroonResponse is the response type for the IssueMacaroon
// RPC.
message MsgIssueMacaroonResponse {
bool success = 1;
string token = 2;
}