Skip to content

Commit

Permalink
CSDK/rename_stored_value_type (#125)
Browse files Browse the repository at this point in the history
Rename StoredValue Reservation type RC5
  • Loading branch information
ZhmakAS authored Dec 19, 2024
1 parent eb3b640 commit 6ab70e8
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 11 deletions.
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"`
}

0 comments on commit 6ab70e8

Please sign in to comment.