tokencrawler/.venv/lib/python3.9/site-packages/solana/sysvar.py
2022-03-17 22:16:30 +01:00

34 lines
2 KiB
Python

"""Synthetic accounts that allow programs to access certain network states."""
from solana.publickey import PublicKey
SYSVAR_CLOCK_PUBKEY: PublicKey = PublicKey("SysvarC1ock11111111111111111111111111111111")
"""Public key of the synthetic account that serves the current network time."""
SYSVAR_RECENT_BLOCKHASHES_PUBKEY: PublicKey = PublicKey("SysvarRecentB1ockHashes11111111111111111111")
"""Public key of the synthetic account that serves recent blockhashes."""
SYSVAR_RENT_PUBKEY: PublicKey = PublicKey("SysvarRent111111111111111111111111111111111")
"""Public key of the synthetic account that serves the network fee resource consumption."""
SYSVAR_REWARDS_PUBKEY: PublicKey = PublicKey("SysvarRewards111111111111111111111111111111")
"""Public key of the synthetic account that serves the network rewards."""
SYSVAR_STAKE_HISTORY_PUBKEY: PublicKey = PublicKey("SysvarStakeHistory1111111111111111111111111")
"""Public key of the synthetic account that serves the stake history."""
SYSVAR_EPOCH_SCHEDULE_PUBKEY: PublicKey = PublicKey("SysvarEpochSchedu1e111111111111111111111111")
"""The EpochSchedule sysvar contains epoch scheduling constants that are set in genesis, and enables calculating the
number of slots in a given epoch, the epoch for a given slot, etc. (Note: the epoch schedule is distinct from the
`leader schedule <https://docs.solana.com/terminology#leader-schedule>`_).
"""
SYSVAR_INSTRUCTIONS_PUBKEY: PublicKey = PublicKey("Sysvar1nstructions1111111111111111111111111")
"""
The Instructions sysvar contains the serialized instructions in a Message while that Message is being processed.
This allows program instructions to reference other instructions in the same transaction.
Read more information on `instruction introspection
<https://docs.solana.com/implemented-proposals/instruction_introspection>`_.
"""
SYSVAR_SLOT_HASHES_PUBKEY: PublicKey = PublicKey("SysvarS1otHashes111111111111111111111111111")
"""The SlotHashes sysvar contains the most recent hashes of the slot's parent banks. It is updated every slot."""