mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-04 10:21:40 +00:00
refactor: remove unused code related to whitelisted assets
This commit is contained in:
@@ -12,6 +12,16 @@ service Query {
|
||||
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
|
||||
option (google.api.http).get = "/macaroon/v1/params";
|
||||
}
|
||||
|
||||
// RefreshToken refreshes a macaroon token as post authentication.
|
||||
rpc RefreshToken(QueryRefreshTokenRequest) returns (QueryRefreshTokenResponse) {
|
||||
option (google.api.http).post = "/macaroon/v1/refresh";
|
||||
}
|
||||
|
||||
// ValidateToken validates a macaroon token as pre authentication.
|
||||
rpc ValidateToken(QueryValidateTokenRequest) returns (QueryValidateTokenResponse) {
|
||||
option (google.api.http).post = "/macaroon/v1/validate";
|
||||
}
|
||||
}
|
||||
|
||||
// QueryParamsRequest is the request type for the Query/Params RPC method.
|
||||
@@ -22,3 +32,31 @@ message QueryParamsResponse {
|
||||
// params defines the parameters of the module.
|
||||
Params params = 1;
|
||||
}
|
||||
|
||||
// QueryRefreshTokenRequest is the request type for the Query/RefreshToken RPC
|
||||
// method.
|
||||
message QueryRefreshTokenRequest {
|
||||
// The macaroon token to refresh
|
||||
string token = 1;
|
||||
}
|
||||
|
||||
// QueryRefreshTokenResponse is the response type for the Query/RefreshToken
|
||||
// RPC method.
|
||||
message QueryRefreshTokenResponse {
|
||||
// The macaroon token
|
||||
string token = 1;
|
||||
}
|
||||
|
||||
// QueryValidateTokenRequest is the request type for the Query/ValidateToken
|
||||
// RPC method.
|
||||
message QueryValidateTokenRequest {
|
||||
// The macaroon token to validate
|
||||
string token = 1;
|
||||
}
|
||||
|
||||
// QueryValidateTokenResponse is the response type for the Query/ValidateToken
|
||||
// RPC method.
|
||||
message QueryValidateTokenResponse {
|
||||
// The macaroon token
|
||||
bool valid = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user