2024-09-26 18:01:49 -04:00
|
|
|
syntax = "proto3";
|
|
|
|
package macaroon.v1;
|
|
|
|
|
|
|
|
import "amino/amino.proto";
|
2024-09-27 20:58:05 -04:00
|
|
|
import "gogoproto/gogo.proto";
|
2024-09-26 18:01:49 -04:00
|
|
|
|
|
|
|
option go_package = "github.com/onsonr/sonr/x/macaroon/types";
|
|
|
|
|
|
|
|
// GenesisState defines the module genesis state
|
|
|
|
message GenesisState {
|
|
|
|
// Params defines all the parameters of the module.
|
|
|
|
Params params = 1 [(gogoproto.nullable) = false];
|
|
|
|
}
|
|
|
|
|
|
|
|
// Params defines the set of module parameters.
|
|
|
|
message Params {
|
|
|
|
option (amino.name) = "macaroon/params";
|
|
|
|
option (gogoproto.equal) = true;
|
|
|
|
option (gogoproto.goproto_stringer) = false;
|
|
|
|
|
2024-09-27 20:58:05 -04:00
|
|
|
// The list of methods
|
|
|
|
Methods methods = 1;
|
|
|
|
|
|
|
|
// The list of scopes
|
|
|
|
Scopes scopes = 2;
|
|
|
|
|
|
|
|
// The list of caveats
|
|
|
|
Caveats caveats = 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Methods defines the available DID methods
|
|
|
|
message Methods {
|
|
|
|
option (amino.name) = "macaroon/methods";
|
|
|
|
option (gogoproto.equal) = true;
|
2024-10-02 01:40:49 -04:00
|
|
|
string default = 1;
|
|
|
|
repeated string supported = 2;
|
2024-09-27 20:58:05 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Scopes defines the set of scopes
|
|
|
|
message Scopes {
|
|
|
|
option (amino.name) = "macaroon/scopes";
|
|
|
|
option (gogoproto.equal) = true;
|
2024-10-02 01:40:49 -04:00
|
|
|
string base = 1;
|
|
|
|
repeated string supported = 2;
|
2024-09-27 20:58:05 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Caveats defines the available caveats
|
|
|
|
message Caveats {
|
|
|
|
option (amino.name) = "macaroon/caveat";
|
|
|
|
option (gogoproto.equal) = true;
|
|
|
|
|
2024-10-02 01:40:49 -04:00
|
|
|
repeated string supported_first_party = 1;
|
|
|
|
repeated string supported_third_party = 2;
|
2024-09-27 20:58:05 -04:00
|
|
|
}
|