Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename stored_value type RC5 #125

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions types/bid.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
10 changes: 10 additions & 0 deletions types/prepayment.go
Original file line number Diff line number Diff line change
@@ -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"`
}
10 changes: 0 additions & 10 deletions types/reservation.go

This file was deleted.

2 changes: 1 addition & 1 deletion types/stored_value.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Loading