diff --git a/types/bid.go b/types/bid.go index cf61184..9358cbd 100644 --- a/types/bid.go +++ b/types/bid.go @@ -25,6 +25,8 @@ type ValidatorBid struct { MaximumDelegationAmount uint64 `json:"maximum_delegation_amount"` // Vesting schedule for a genesis validator. `None` if non-genesis validator. VestingSchedule *VestingSchedule `json:"vesting_schedule"` + // Number of slots reserved for specific delegators + ReservedSlots uint8 `json:"reserved_slots"` } // Bid An entry in the validator map. diff --git a/types/prepayment.go b/types/prepayment.go new file mode 100644 index 0000000..9881ec9 --- /dev/null +++ b/types/prepayment.go @@ -0,0 +1,10 @@ +package types + +import "github.com/make-software/casper-go-sdk/v2/types/key" + +// PrepaymentKind Container for bytes recording location, type and data for a gas pre payment +type PrepaymentKind struct { + Receipt key.Hash `json:"receipt"` + PrepaymentData HexBytes `json:"prepayment_data"` + PrepaymentKind uint8 `json:"prepayment_kind"` +} diff --git a/types/reservation.go b/types/reservation.go deleted file mode 100644 index ccb978d..0000000 --- a/types/reservation.go +++ /dev/null @@ -1,10 +0,0 @@ -package types - -import "github.com/make-software/casper-go-sdk/v2/types/key" - -// ReservationKind Container for bytes recording location, type and data for a gas reservation -type ReservationKind struct { - Receipt key.Hash `json:"receipt"` - ReservationData HexBytes `json:"reservation_data"` - ReservationKind uint8 `json:"reservation_kind"` -} diff --git a/types/stored_value.go b/types/stored_value.go index 5ba05e8..cce2e39 100644 --- a/types/stored_value.go +++ b/types/stored_value.go @@ -24,6 +24,6 @@ type StoredValue struct { MessageTopic *MessageTopicSummary `json:"MessageTopic,omitempty"` Message *MessageChecksum `json:"Message,omitempty"` NamedKey *NamedKeyValue `json:"NamedKey,omitempty"` - Reservation *ReservationKind `json:"Reservation,omitempty"` + Prepayment *PrepaymentKind `json:"Prepayment,omitempty"` EntryPoint *EntryPointValue `json:"EntryPoint,omitempty"` }