2021-12-07 20:26:21 +00:00
|
|
|
package apimiddleware
|
|
|
|
|
|
|
|
type listKeystoresResponseJson struct {
|
2022-02-08 19:13:36 +00:00
|
|
|
Keystores []*keystoreJson `json:"data"`
|
2021-12-07 20:26:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type keystoreJson struct {
|
|
|
|
ValidatingPubkey string `json:"validating_pubkey" hex:"true"`
|
|
|
|
DerivationPath string `json:"derivation_path"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type importKeystoresRequestJson struct {
|
|
|
|
Keystores []string `json:"keystores"`
|
|
|
|
Passwords []string `json:"passwords"`
|
|
|
|
SlashingProtection string `json:"slashing_protection"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type importKeystoresResponseJson struct {
|
2022-02-08 19:13:36 +00:00
|
|
|
Statuses []*statusJson `json:"data"`
|
2021-12-07 20:26:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type deleteKeystoresRequestJson struct {
|
2022-02-08 19:13:36 +00:00
|
|
|
PublicKeys []string `json:"pubkeys" hex:"true"`
|
2021-12-07 20:26:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type statusJson struct {
|
|
|
|
Status string `json:"status"`
|
|
|
|
Message string `json:"message"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type deleteKeystoresResponseJson struct {
|
2022-02-08 19:13:36 +00:00
|
|
|
Statuses []*statusJson `json:"data"`
|
2021-12-07 20:26:21 +00:00
|
|
|
SlashingProtection string `json:"slashing_protection"`
|
|
|
|
}
|