2023-09-29 21:42:07 +00:00
|
|
|
package handler
|
|
|
|
|
|
|
|
import (
|
|
|
|
"net/http"
|
|
|
|
|
|
|
|
"github.com/ledgerwatch/erigon/cl/clparams"
|
|
|
|
)
|
|
|
|
|
|
|
|
func (a *ApiHandler) poolVoluntaryExits(r *http.Request) (data any, finalized *bool, version *clparams.StateVersion, httpStatus int, err error) {
|
|
|
|
httpStatus = http.StatusAccepted
|
|
|
|
data = a.operationsPool.VoluntaryExistsPool.Raw()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a *ApiHandler) poolAttesterSlashings(r *http.Request) (data any, finalized *bool, version *clparams.StateVersion, httpStatus int, err error) {
|
|
|
|
httpStatus = http.StatusAccepted
|
|
|
|
data = a.operationsPool.AttesterSlashingsPool.Raw()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a *ApiHandler) poolProposerSlashings(r *http.Request) (data any, finalized *bool, version *clparams.StateVersion, httpStatus int, err error) {
|
|
|
|
httpStatus = http.StatusAccepted
|
|
|
|
data = a.operationsPool.ProposerSlashingsPool.Raw()
|
|
|
|
return
|
|
|
|
}
|
2023-10-01 15:16:55 +00:00
|
|
|
|
|
|
|
func (a *ApiHandler) poolBlsToExecutionChanges(r *http.Request) (data any, finalized *bool, version *clparams.StateVersion, httpStatus int, err error) {
|
|
|
|
httpStatus = http.StatusAccepted
|
|
|
|
data = a.operationsPool.BLSToExecutionChangesPool.Raw()
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
func (a *ApiHandler) poolAttestations(r *http.Request) (data any, finalized *bool, version *clparams.StateVersion, httpStatus int, err error) {
|
|
|
|
httpStatus = http.StatusAccepted
|
|
|
|
data = a.operationsPool.AttestationsPool.Raw()
|
|
|
|
return
|
|
|
|
}
|