mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-25 04:47:18 +00:00
4af7d8230a
* This PR is for issue #11155 "Keymanager APIs: gas limit api"'s task "set gas limit". * This PR is for issue #11155 "Keymanager APIs: gas limit api"'s task "set gas limit". * Fixed comment string. * Regenerated key_management proto files. * Addressed code review comment - explitly set BuildConfig.Enabled to false. Co-authored-by: james-prysm <90280386+james-prysm@users.noreply.github.com>
95 lines
2.2 KiB
Go
95 lines
2.2 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 getGasLimitResponseJson struct {
|
|
Data *gasLimitJson `json:"data"`
|
|
}
|
|
|
|
type setGasLimitRequestJson struct {
|
|
GasLimit string `json:"gas_limit"`
|
|
}
|