Skip to content

Commit

Permalink
fix: add Sysvar PubKeys
Browse files Browse the repository at this point in the history
* web3.js: Add Sysvar PubKeys

* remove fees sysvar
  • Loading branch information
fanatid authored Dec 29, 2021
1 parent f14928a commit 9727309
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions web3.js/src/sysvar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ export const SYSVAR_CLOCK_PUBKEY = new PublicKey(
'SysvarC1ock11111111111111111111111111111111',
);

export const SYSVAR_EPOCH_SCHEDULE_PUBKEY = new PublicKey(
'SysvarEpochSchedu1e111111111111111111111111',
);

export const SYSVAR_INSTRUCTIONS_PUBKEY = new PublicKey(
'Sysvar1nstructions1111111111111111111111111',
);

export const SYSVAR_RECENT_BLOCKHASHES_PUBKEY = new PublicKey(
'SysvarRecentB1ockHashes11111111111111111111',
);
Expand All @@ -16,10 +24,14 @@ export const SYSVAR_REWARDS_PUBKEY = new PublicKey(
'SysvarRewards111111111111111111111111111111',
);

export const SYSVAR_STAKE_HISTORY_PUBKEY = new PublicKey(
'SysvarStakeHistory1111111111111111111111111',
export const SYSVAR_SLOT_HASHES_PUBKEY = new PublicKey(
'SysvarS1otHashes111111111111111111111111111',
);

export const SYSVAR_INSTRUCTIONS_PUBKEY = new PublicKey(
'Sysvar1nstructions1111111111111111111111111',
export const SYSVAR_SLOT_HISTORY_PUBKEY = new PublicKey(
'SysvarS1otHistory11111111111111111111111111',
);

export const SYSVAR_STAKE_HISTORY_PUBKEY = new PublicKey(
'SysvarStakeHistory1111111111111111111111111',
);

0 comments on commit 9727309

Please sign in to comment.