Skip to content

Commit

Permalink
Validator RPC Accounts Voluntary Exit (#8776)
Browse files Browse the repository at this point in the history
* begin voluntary exits RPC

* added in exit logic

* complete exit func

* revert

* capitalize

* revert

* import

* rpc voluntary exit test

* fmt
  • Loading branch information
rauljordan authored Apr 16, 2021
1 parent a4ff97d commit 02a8ae7
Show file tree
Hide file tree
Showing 14 changed files with 1,426 additions and 623 deletions.
7 changes: 3 additions & 4 deletions proto/validator/accounts/v2/keymanager.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

733 changes: 571 additions & 162 deletions proto/validator/accounts/v2/web_api.pb.go

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions proto/validator/accounts/v2/web_api.proto
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ service Accounts {
body: "*"
};
}
rpc VoluntaryExit(VoluntaryExitRequest) returns (VoluntaryExitResponse) {
option (google.api.http) = {
post: "/v2/validator/accounts/voluntary-exit",
body: "*"
};
}
}

service Beacon {
Expand Down Expand Up @@ -365,6 +371,16 @@ message BeaconStatusResponse {
ethereum.eth.v1alpha1.ChainHead chain_head = 6;
}

message VoluntaryExitRequest {
// List of public keys to voluntarily exit.
repeated bytes public_keys = 1;
}

message VoluntaryExitResponse {
// List of keys that successfully exited.
repeated bytes exited_keys = 1;
}

message BackupAccountsRequest {
// List of public keys to backup.
repeated bytes public_keys = 1;
Expand All @@ -386,6 +402,7 @@ message DeleteAccountsResponse {
// List of public keys successfully deleted.
repeated bytes deleted_keys = 1;
}

message ExportSlashingProtectionResponse {
// JSON representation of the slash protection
string file = 1;
Expand Down
5 changes: 2 additions & 3 deletions proto/validator/accounts/v2_gateway/keymanager.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 02a8ae7

Please sign in to comment.