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

updates to t3 API protobufs #987

Merged
merged 2 commits into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 2 additions & 0 deletions t3/api/proto/t3/admin/v1/api_key_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ message ApiKey {
int64 created_at_epoch = 6;
int64 updated_at_epoch = 7; // 0 if never updated
int64 deleted_at_epoch = 8; // 0 if key is active

string key_name = 9; // optional name for the api key
}

message AddApiKeyRequest {
Expand Down
12 changes: 12 additions & 0 deletions t3/api/proto/t3/admin/v1/migration_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ option java_multiple_files = true;

service MigrationService {
rpc MigrateBlockTimes(MigrateBlockTimesRequest) returns (MigrateBlockTimesResponse);
rpc MigrateReportedDirection(MigrateReportedDirectionRequest) returns (MigrateReportedDirectionResponse);
}

message MigrateBlockTimesRequest {
Expand All @@ -21,3 +22,14 @@ message MigrateBlockTimesResponse {
map<string, int32> error_counts = 4;
int64 next_offset = 5;
}

message MigrateReportedDirectionRequest { }
message MigrateReportedDirectionResponse {
enum Result {
RESULT_UNSPECIFIED = 0;
RESULT_OK = 1;
}
Result result = 1;
int32 updated_receive = 2;
int32 updated_send = 3;
}
4 changes: 4 additions & 0 deletions t3/api/proto/t3/v1/t3.proto
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,7 @@ message TestErrorResponse {
}

enum KnownInstitution {
// Must update enum file in entities/KnownInstitution.kt
KNOWN_INSTITUTION_UNSPECIFIED = 0;
KNOWN_INSTITUTION_NONE = 1;
KNOWN_INSTITUTION_MIXIN = 2;
Expand All @@ -384,6 +385,9 @@ enum KnownInstitution {
KNOWN_INSTITUTION_XENDBRIDGE = 6;
KNOWN_INSTITUTION_FUSPAY = 7;
KNOWN_INSTITUTION_MUSSUB = 8;
KNOWN_INSTITUTION_XEDERIF = 9;
KNOWN_INSTITUTION_BITMART = 10;
// Must update enum file in entities/KnownInstitution.kt
}

enum ReportedDirection {
Expand Down
Loading