Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

geofence check endpoint #42

Merged
merged 4 commits into from
Dec 11, 2023
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion proto/valorem/trade/v1/auth.proto
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ service Auth {
// Used to check if a given connection is authenticated, returns the address which is authenticated for a nonce cookie
rpc Authenticate (Empty) returns (H160);

// Used to check if a given connection is geofenced. If access is restricted, returns true, otherwise false.
rpc Geofenced (Empty) returns (BoolResponse);

// Returns the SIWE Session for the request's sessionId
rpc Session (Empty) returns (SiweSession);

Expand All @@ -40,4 +43,4 @@ message VerifyText {
message SiweSession {
H160 address = 1;
H256 chain_id = 2;
}
}
5 changes: 5 additions & 0 deletions proto/valorem/trade/v1/types.proto
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,10 @@ message EthSignature {
bytes v = 3;
}

// BoolResponse message contains a single field of type bool.
message BoolResponse {
bool value = 1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just return bool?

}

// The empty message
message Empty {}
Loading