mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 04:47:18 +00:00
20f4d21b83
* Initial setup * Fix + Cleanup * Add query * Fix * Add epoch * James' review part 1 * James' review part 2 * James' review part 3 * Radek' review * Gazelle * Fix cycle * Start unit test * fixing part of the test * Mostly fix test * Fix tests * Cleanup * Handle error * Remove times * Fix all tests * Fix accidental deletion * Unmarshal epoch * Add custom_type * Small fix * Fix epoch * Lint fix * Add test + fix empty query panic * Add comment * Fix regex * Add correct error message * Change current epoch to use slot * Return error if incorrect epoch passed * Remove redundant type conversion * Fix tests * gaz * Remove nodeClient + pass slot * Remove slot from parameters * Fix tests * Fix test attempt 2 * Fix test attempt 2 * Remove nodeClient from ProposeExit * Fix * Fix tests --------- Co-authored-by: james-prysm <james@prysmaticlabs.com> Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
122 lines
2.8 KiB
Go
122 lines
2.8 KiB
Go
package apimiddleware
|
|
|
|
type ListKeystoresResponseJson struct {
|
|
Keystores []*KeystoreJson `json:"data"`
|
|
}
|
|
|
|
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 {
|
|
Statuses []*StatusJson `json:"data"`
|
|
}
|
|
|
|
type DeleteKeystoresRequestJson struct {
|
|
PublicKeys []string `json:"pubkeys" hex:"true"`
|
|
}
|
|
|
|
type StatusJson struct {
|
|
Status string `json:"status" enum:"true"`
|
|
Message string `json:"message"`
|
|
}
|
|
|
|
type DeleteKeystoresResponseJson struct {
|
|
Statuses []*StatusJson `json:"data"`
|
|
SlashingProtection string `json:"slashing_protection"`
|
|
}
|
|
|
|
//remote keymanager api
|
|
|
|
type ListRemoteKeysResponseJson struct {
|
|
Keystores []*RemoteKeysListJson `json:"data"`
|
|
}
|
|
|
|
type RemoteKeysListJson struct {
|
|
Pubkey string `json:"pubkey" hex:"true"`
|
|
Url string `json:"url"`
|
|
Readonly bool `json:"readonly"`
|
|
}
|
|
|
|
type RemoteKeysJson struct {
|
|
Pubkey string `json:"pubkey" hex:"true"`
|
|
Url string `json:"url"`
|
|
Readonly bool `json:"readonly"`
|
|
}
|
|
|
|
type ImportRemoteKeysRequestJson struct {
|
|
Keystores []*RemoteKeysJson `json:"remote_keys"`
|
|
}
|
|
|
|
type ImportRemoteKeysResponseJson struct {
|
|
Statuses []*StatusJson `json:"data"`
|
|
}
|
|
|
|
type DeleteRemoteKeysRequestJson struct {
|
|
PublicKeys []string `json:"pubkeys" hex:"true"`
|
|
}
|
|
|
|
type DeleteRemoteKeysResponseJson struct {
|
|
Statuses []*StatusJson `json:"data"`
|
|
}
|
|
|
|
type FeeRecipientJson struct {
|
|
Pubkey string `json:"pubkey" hex:"true"`
|
|
Ethaddress string `json:"ethaddress" address:"true"`
|
|
}
|
|
|
|
type GasLimitJson struct {
|
|
Pubkey string `json:"pubkey" hex:"true"`
|
|
GasLimit string `json:"gas_limit"`
|
|
}
|
|
|
|
type GetFeeRecipientByPubkeyResponseJson struct {
|
|
Data *FeeRecipientJson `json:"data"`
|
|
}
|
|
|
|
type SetFeeRecipientByPubkeyRequestJson struct {
|
|
Ethaddress string `json:"ethaddress" hex:"true"`
|
|
}
|
|
|
|
type DeleteFeeRecipientByPubkeyRequestJson struct {
|
|
Pubkey string `json:"pubkey" hex:"true"`
|
|
}
|
|
|
|
type GetGasLimitResponseJson struct {
|
|
Data *GasLimitJson `json:"data"`
|
|
}
|
|
|
|
type SetGasLimitRequestJson struct {
|
|
GasLimit string `json:"gas_limit"`
|
|
}
|
|
|
|
type DeleteGasLimitRequestJson struct {
|
|
Pubkey string `json:"pubkey" hex:"true"`
|
|
}
|
|
|
|
type SetVoluntaryExitRequestJson struct {
|
|
Pubkey string `json:"pubkey" hex:"true"`
|
|
Epoch string `json:"epoch"`
|
|
}
|
|
|
|
type SetVoluntaryExitResponseJson struct {
|
|
SignedVoluntaryExit *SignedVoluntaryExitJson `json:"data"`
|
|
}
|
|
|
|
type SignedVoluntaryExitJson struct {
|
|
VoluntaryExit *VoluntaryExitJson `json:"message"`
|
|
Signature string `json:"signature" hex:"true"`
|
|
}
|
|
|
|
type VoluntaryExitJson struct {
|
|
Epoch string `json:"epoch"`
|
|
ValidatorIndex string `json:"validator_index"`
|
|
}
|