forked from restaking-cloud/native-delegation-for-plus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
29 lines (23 loc) · 864 Bytes
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package balanceverifier
import (
"github.com/attestantio/go-eth2-client/spec/phase0"
k2Common "github.com/bswap-eng/native-delegation-for-plus/common"
)
type ReportEffectiveBalanceResponse struct {
Responses []ReportEffectiveBalanceResponseItem `json:"responses"`
}
type ReportEffectiveBalanceResponseItem struct {
Report EffectiveBalanceReport `json:"report"`
DesignatedVerifierSignature k2Common.EcdsaSignature `json:"designatedVerifierSignature"`
}
type EffectiveBalanceReport struct {
BLSPubKey phase0.BLSPubKey `json:"blsKey"`
EffectiveBalance uint64 `json:"effectiveBalance"`
}
type Info struct {
ChainID uint64 `json:"CHAIN_ID,string"`
}
type ReportEffectiveBalancePayload struct {
BLSPubKeys []phase0.BLSPubKey `json:"blsKeys"`
EffectiveBalances []uint64 `json:"effectiveBalances"`
}