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"`
|
|
|
|
}
|
2022-04-11 20:05:40 +00:00
|
|
|
|
|
|
|
//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"`
|
|
|
|
}
|
2022-06-16 15:10:23 +00:00
|
|
|
|
|
|
|
type feeRecipientJson struct {
|
|
|
|
Pubkey string `json:"pubkey" hex:"true"`
|
|
|
|
Ethaddress string `json:"ethaddress" address:"true"`
|
|
|
|
}
|
|
|
|
|
2022-08-08 17:52:18 +00:00
|
|
|
type gasLimitJson struct {
|
|
|
|
Pubkey string `json:"pubkey" hex:"true"`
|
|
|
|
GasLimit string `json:"gas_limit"`
|
|
|
|
}
|
|
|
|
|
2022-06-16 15:10:23 +00:00
|
|
|
type getFeeRecipientByPubkeyResponseJson struct {
|
|
|
|
Data *feeRecipientJson `json:"data"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type setFeeRecipientByPubkeyRequestJson struct {
|
|
|
|
Ethaddress string `json:"ethaddress" hex:"true"`
|
|
|
|
}
|
2022-08-08 17:52:18 +00:00
|
|
|
|
|
|
|
type getGasLimitResponseJson struct {
|
|
|
|
Data *gasLimitJson `json:"data"`
|
|
|
|
}
|