Skip to content

Commit 8978a3d

Browse files
authored
js-legacy: Use devnet deployment of stake pool program (#177)
* js-legacy: Use devnet deployment of stake pool program #### Problem There's a new devnet deployment of the stake pool program, but the JS library can't use it. #### Summary of changes Add the new constant, and properly parametrize all types to take in a program id as applicable. * Unbreak by making program id optional
1 parent c17fce6 commit 8978a3d

File tree

5 files changed

+147
-56
lines changed

5 files changed

+147
-56
lines changed

clients/js-legacy/src/constants.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ export const METADATA_MAX_URI_LENGTH = 200;
1010
// Public key that identifies the SPL Stake Pool program.
1111
export const STAKE_POOL_PROGRAM_ID = new PublicKey('SPoo1Ku8WFXoNDMHPsrGSTSG1Y47rzgn41SLUNakuHy');
1212

13+
// Public key that identifies the SPL Stake Pool program deployed to devnet.
14+
export const DEVNET_STAKE_POOL_PROGRAM_ID = new PublicKey(
15+
'DPoo15wWDqpPJJtS2MUZ49aRxqz5ZaaJCJP4z8bLuib',
16+
);
17+
1318
// Maximum number of validators to update during UpdateValidatorListBalance.
1419
export const MAX_VALIDATORS_TO_UPDATE = 5;
1520

0 commit comments

Comments
 (0)