Documentation ¶
Index ¶
- Constants
- func CollectRentEagerly(slotCtx *sealevel.SlotCtx, rent *sealevel.SysvarRent, ...) []*accounts.Account
- func MaybeSetRentExemptRentEpochMax(slotCtx *sealevel.SlotCtx, rent *sealevel.SysvarRent, f *features.Features, ...)
- func ShouldSetRentExemptRentEpochMax(slotCtx *sealevel.SlotCtx, rent *sealevel.SysvarRent, f *features.Features, ...) bool
- func VerifyRentStateChanges(preStates []*RentStateInfo, postStates []*RentStateInfo, ...) error
- type Partition
- type PubkeyRange
- type RentCollectionCycleParams
- type RentPayingInfo
- type RentStateInfo
Constants ¶
View Source
const ( RentStateUninitialized = iota RentStateRentPaying RentStateRentExempt )
View Source
const ( RentExempt = iota RentNoCollectionNow RentCollectRent )
Variables ¶
This section is empty.
Functions ¶
func CollectRentEagerly ¶
func CollectRentEagerly(slotCtx *sealevel.SlotCtx, rent *sealevel.SysvarRent, epochSchedule *sealevel.SysvarEpochSchedule) []*accounts.Account
func MaybeSetRentExemptRentEpochMax ¶
func MaybeSetRentExemptRentEpochMax(slotCtx *sealevel.SlotCtx, rent *sealevel.SysvarRent, f *features.Features, txAccts *sealevel.TransactionAccounts)
func VerifyRentStateChanges ¶
func VerifyRentStateChanges(preStates []*RentStateInfo, postStates []*RentStateInfo, txCtx *sealevel.TransactionCtx) error
Types ¶
type Partition ¶
pub type Partition = (PartitionIndex, PartitionIndex, PartitionsPerCycle);
func RentCollectionPartitions ¶
func RentCollectionPartitions(startSlot uint64, endSlot uint64, epochSchedule *sealevel.SysvarEpochSchedule) []Partition
startSlot = parent slot endSlot = current slot
type PubkeyRange ¶
type RentPayingInfo ¶
type RentStateInfo ¶
type RentStateInfo struct { RentState uint64 RentPayingInfo RentPayingInfo }
func NewRentStateInfo ¶
func NewRentStateInfo(rent *sealevel.SysvarRent, txCtx *sealevel.TransactionCtx, tx *solana.Transaction) []*RentStateInfo
Click to show internal directories.
Click to hide internal directories.