mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-10 21:09:11 +00:00
40 lines
904 B
Protocol Buffer
40 lines
904 B
Protocol Buffer
syntax = "proto3";
|
|
package macaroon.v1;
|
|
|
|
import "cosmos/orm/v1/orm.proto";
|
|
|
|
option go_package = "github.com/onsonr/sonr/x/macaroon/types";
|
|
|
|
// https://github.com/cosmos/cosmos-sdk/blob/main/orm/README.md
|
|
|
|
// Grant is a Grant message type.
|
|
message Grant {
|
|
option (cosmos.orm.v1.table) = {
|
|
id : 1
|
|
primary_key : {fields : "id" auto_increment : true}
|
|
index : {id : 1 fields : "subject,origin" unique : true}
|
|
};
|
|
|
|
uint64 id = 1;
|
|
string controller = 2;
|
|
string subject = 3;
|
|
string origin = 4;
|
|
int64 expiry_height = 5;
|
|
}
|
|
|
|
// Macaroon is a Macaroon message type.
|
|
message Macaroon {
|
|
option (cosmos.orm.v1.table) = {
|
|
id : 2
|
|
primary_key : {fields : "id" auto_increment : true}
|
|
index : {id : 1 fields : "subject,origin" unique : true}
|
|
};
|
|
|
|
uint64 id = 1;
|
|
string controller = 2;
|
|
string subject = 3;
|
|
string origin = 4;
|
|
int64 expiry_height = 5;
|
|
string macaroon = 6;
|
|
}
|