~/bend-docscommunity

sysvar.bend relies on unsafe/foreign

raw source on the hub · import 0x38c59765d1dfcdb7e4b4aa026bafb649/sysvar.bend as Sysvar

2 imports
import Base
import ./types.bend as Ty

Definitions

def Clock.slot source · line 13 · raw

0x38c59765d1dfcdb7e4b4aa026bafb649/types.u64

def Clock.epoch_start_timestamp source · line 16 · raw

0x38c59765d1dfcdb7e4b4aa026bafb649/types.u64

def Clock.epoch source · line 19 · raw

0x38c59765d1dfcdb7e4b4aa026bafb649/types.u64

def Clock.leader_schedule_epoch source · line 22 · raw

0x38c59765d1dfcdb7e4b4aa026bafb649/types.u64

def Clock.unix_timestamp source · line 25 · raw

0x38c59765d1dfcdb7e4b4aa026bafb649/types.u64

def EpochSchedule.slots_per_epoch source · line 29 · raw

0x38c59765d1dfcdb7e4b4aa026bafb649/types.u64

EpochSchedule bincode: two u64s, a bool, then two u64s (33 bytes).

def EpochSchedule.leader_schedule_slot_offset source · line 32 · raw

0x38c59765d1dfcdb7e4b4aa026bafb649/types.u64

def EpochSchedule.warmup source · line 35 · raw

U32

def EpochSchedule.first_normal_epoch source · line 38 · raw

0x38c59765d1dfcdb7e4b4aa026bafb649/types.u64

def EpochSchedule.first_normal_slot source · line 41 · raw

0x38c59765d1dfcdb7e4b4aa026bafb649/types.u64

def LastRestartSlot.slot source · line 44 · raw

0x38c59765d1dfcdb7e4b4aa026bafb649/types.u64

def EpochRewards.distribution_starting_block_height source · line 49 · raw

0x38c59765d1dfcdb7e4b4aa026bafb649/types.u64

EpochRewards. The parent blockhash and total points sit between partitions and total_rewards; those two are not read.

def EpochRewards.num_partitions source · line 52 · raw

0x38c59765d1dfcdb7e4b4aa026bafb649/types.u64

def EpochRewards.total_rewards source · line 55 · raw

0x38c59765d1dfcdb7e4b4aa026bafb649/types.u64

def EpochRewards.distributed_rewards source · line 58 · raw

0x38c59765d1dfcdb7e4b4aa026bafb649/types.u64

def EpochRewards.active source · line 61 · raw

U32

def Rent.lamports_per_byte_year source · line 65 · raw

0x38c59765d1dfcdb7e4b4aa026bafb649/types.u64

Rent.lamports_per_byte_year. rent_exempt in sol.bend applies the threshold.

def SlotHashes.len source · line 69 · raw

0x38c59765d1dfcdb7e4b4aa026bafb649/types.u64

SlotHashes: u64 count, then entries of slot u64 + 32-byte hash, newest first.

def SlotHashes.slot source · line 72 · raw

@+i:0x38c59765d1dfcdb7e4b4aa026bafb649/types.u64 -> 0x38c59765d1dfcdb7e4b4aa026bafb649/types.u64

def newest_go source · line 77 · raw

@empty:Bool -> 0x38c59765d1dfcdb7e4b4aa026bafb649/types.u64

def SlotHashes.newest source · line 85 · raw

0x38c59765d1dfcdb7e4b4aa026bafb649/types.u64

Slot of the newest hash, or 0 when the sysvar is empty.

def Instructions.id source · line 89 · raw

0x38c59765d1dfcdb7e4b4aa026bafb649/types.Pubkey

Sysvar1nstructions1111111111111111111111111

def Instructions.len source · line 102 · raw

@+a:0x38c59765d1dfcdb7e4b4aa026bafb649/types.Account -> U32

u16 count at byte 0 of the instructions account.

def Instructions.index source · line 108 · raw

@+a:0x38c59765d1dfcdb7e4b4aa026bafb649/types.Account -> U32

Current instruction index: the last u16 of that account.