From 4f28de42e6ea73a869f2113a7b7b3e0944b546be Mon Sep 17 00:00:00 2001 From: Jack May Date: Tue, 22 Jun 2021 09:59:48 -0700 Subject: [PATCH] Update sysvar docs (#18125) (cherry picked from commit 8a136736ad06d0aa9dd8aa742d22f60f52de093d) --- docs/src/developing/runtime-facilities/sysvars.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/src/developing/runtime-facilities/sysvars.md b/docs/src/developing/runtime-facilities/sysvars.md index 6eb4265fadaef3..a72929a68a45e6 100644 --- a/docs/src/developing/runtime-facilities/sysvars.md +++ b/docs/src/developing/runtime-facilities/sysvars.md @@ -17,6 +17,12 @@ The first is to query the sysvar at runtime via the sysvar's `get()` function: let clock = Clock::get() ``` +The following sysvars support `get`: +- Clock +- EpochSchedule +- Fees +- Rent + The second is to pass the sysvar to the program as an account by including its address as one of the accounts in the `Instruction` and then deserializing the data during execution. Access to sysvars accounts is always _readonly_.