-
Notifications
You must be signed in to change notification settings - Fork 1
/
system_var.go
54 lines (42 loc) · 2.86 KB
/
system_var.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
package base
import "github.com/cielu/go-solana/common"
var (
// The Clock sysvar contains data on cluster time,
// including the current slot, epoch, and estimated wall-clock Unix timestamp.
// It is updated every slot.
SysVarClockPubkey = common.StrToAddress("SysvarC1ock11111111111111111111111111111111")
// 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)
SysVarEpochSchedulePubkey = common.StrToAddress("SysvarEpochSchedu1e111111111111111111111111")
// The Fees sysvar contains the fee calculator for the current slot.
// It is updated every slot, based on the fee-rate governor.
SysVarFeesPubkey = common.StrToAddress("SysvarFees111111111111111111111111111111111")
// 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.
SysVarInstructionsPubkey = common.StrToAddress("Sysvar1nstructions1111111111111111111111111")
// The RecentBlockhashes sysvar contains the active recent blockhashes as well as their associated fee calculators.
// It is updated every slot.
// Entries are ordered by descending block height,
// so the first entry holds the most recent block hash,
// and the last entry holds an old block hash.
SysVarRecentBlockHashesPubkey = common.StrToAddress("SysvarRecentB1ockHashes11111111111111111111")
// The Rent sysvar contains the rental rate.
// Currently, the rate is static and set in genesis.
// The Rent burn percentage is modified by manual feature activation.
SysVarRentPubkey = common.StrToAddress("SysvarRent111111111111111111111111111111111")
//
SysVarRewardsPubkey = common.StrToAddress("SysvarRewards111111111111111111111111111111")
// The SlotHashes sysvar contains the most recent hashes of the slot's parent banks.
// It is updated every slot.
SysVarSlotHashesPubkey = common.StrToAddress("SysvarS1otHashes111111111111111111111111111")
// The SlotHistory sysvar contains a bitvector of slots present over the last epoch. It is updated every slot.
SysVarSlotHistoryPubkey = common.StrToAddress("SysvarS1otHistory11111111111111111111111111")
// The StakeHistory sysvar contains the history of cluster-wide stake activations and de-activations per epoch.
// It is updated at the start of every epoch.
SysVarStakeHistoryPubkey = common.StrToAddress("SysvarStakeHistory1111111111111111111111111")
SysVarPubkey = common.StrToAddress("Sysvar1111111111111111111111111111111111111")
SysVarRecentBlockhashsPubkey = common.StrToAddress("SysvarRecentB1ockHashes11111111111111111111")
StakeConfigPubkey = common.StrToAddress("StakeConfig11111111111111111111111111111111")
)