Move API structs to api module (#13577)

This commit is contained in:
Radosław Kapka
2024-02-03 12:57:01 +01:00
committed by GitHub
parent 9d1189b222
commit e3ce1bde45
173 changed files with 2596 additions and 2646 deletions

View File

@@ -26,6 +26,7 @@ go_library(
"//api/grpc:go_default_library",
"//api/pagination:go_default_library",
"//api/server:go_default_library",
"//api/server/structs:go_default_library",
"//async/event:go_default_library",
"//beacon-chain/rpc/eth/shared:go_default_library",
"//cmd:go_default_library",

View File

@@ -11,6 +11,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/pkg/errors"
"github.com/prysmaticlabs/prysm/v4/api/server/structs"
"github.com/prysmaticlabs/prysm/v4/beacon-chain/rpc/eth/shared"
fieldparams "github.com/prysmaticlabs/prysm/v4/config/fieldparams"
"github.com/prysmaticlabs/prysm/v4/config/params"
@@ -371,8 +372,8 @@ func (s *Server) SetVoluntaryExit(w http.ResponseWriter, r *http.Request) {
}
response := &SetVoluntaryExitResponse{
Data: &shared.SignedVoluntaryExit{
Message: &shared.VoluntaryExit{
Data: &structs.SignedVoluntaryExit{
Message: &structs.VoluntaryExit{
Epoch: fmt.Sprintf("%d", sve.Exit.Epoch),
ValidatorIndex: fmt.Sprintf("%d", sve.Exit.ValidatorIndex),
},

View File

@@ -6,7 +6,7 @@ import (
"github.com/ethereum/go-ethereum/common/hexutil"
"github.com/prysmaticlabs/prysm/v4/api/server"
"github.com/prysmaticlabs/prysm/v4/beacon-chain/rpc/eth/shared"
"github.com/prysmaticlabs/prysm/v4/api/server/structs"
fieldparams "github.com/prysmaticlabs/prysm/v4/config/fieldparams"
"github.com/prysmaticlabs/prysm/v4/consensus-types/primitives"
"github.com/prysmaticlabs/prysm/v4/encoding/bytesutil"
@@ -45,7 +45,7 @@ type DeleteKeystoresResponse struct {
// voluntary exit keymanager api
type SetVoluntaryExitResponse struct {
Data *shared.SignedVoluntaryExit `json:"data"`
Data *structs.SignedVoluntaryExit `json:"data"`
}
// gas limit keymanager api