mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-20 16:41:11 +00:00
7143fe80bc
* WIP migrating keymanager api changes * gaz * fixing more tests * fixing unit tests * fixing deepsource * fixing visibility of package * fixing more package visability issues * gaz * fixing test * moving routes to proper location * removing whitespae for linting * Update validator/rpc/handlers_keymanager.go Co-authored-by: Radosław Kapka <rkapka@wp.pl> * radek's comments --------- Co-authored-by: Radosław Kapka <rkapka@wp.pl>
34 lines
703 B
Go
34 lines
703 B
Go
package rpc
|
|
|
|
import (
|
|
"github.com/prysmaticlabs/prysm/v4/beacon-chain/rpc/eth/shared"
|
|
"github.com/prysmaticlabs/prysm/v4/validator/keymanager"
|
|
)
|
|
|
|
type SetVoluntaryExitResponse struct {
|
|
Data *shared.SignedVoluntaryExit `json:"data"`
|
|
}
|
|
|
|
// remote keymanager api
|
|
type ListRemoteKeysResponse struct {
|
|
Data []*RemoteKey `json:"data"`
|
|
}
|
|
|
|
type RemoteKey struct {
|
|
Pubkey string `json:"pubkey"`
|
|
Url string `json:"url"`
|
|
Readonly bool `json:"readonly"`
|
|
}
|
|
|
|
type ImportRemoteKeysRequest struct {
|
|
RemoteKeys []*RemoteKey `json:"remote_keys"`
|
|
}
|
|
|
|
type DeleteRemoteKeysRequest struct {
|
|
Pubkeys []string `json:"pubkeys"`
|
|
}
|
|
|
|
type RemoteKeysResponse struct {
|
|
Data []*keymanager.KeyStatus `json:"data"`
|
|
}
|