Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Commit

Permalink
single-pool: update id (#5489)
Browse files Browse the repository at this point in the history
  • Loading branch information
2501babe authored Oct 13, 2023
1 parent c37c193 commit 8537aad
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 2 additions & 2 deletions single-pool/js/packages/classic/tests/transactions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,8 +421,8 @@ test('get vote account address', async (t) => {

test('default account address', async (t) => {
const voteAccountAddress = new PublicKey(voteAccount.pubkey);
const owner = new PublicKey('3No4rmsu36AGb9bitRNFFnMzXZmproBKEWvQr1FuBvR8');
const expectedDefault = new PublicKey('AcQyHnPczCxFj3EoyyapubjjsLy9bX9kYkcRNerreKvA');
const owner = new PublicKey('GtaYCtXWCrciizttN5mx9P38niTQPGWpfu6DnSgAr3Cj');
const expectedDefault = new PublicKey('BbfrNeJrd82cSFsULXT9zG8SvLLB8WsTc1gQsDFy3Sed');

const actualDefault = await findDefaultDepositAccountAddress(
await findPoolAddress(SinglePoolProgram.programId, voteAccountAddress),
Expand Down
2 changes: 1 addition & 1 deletion single-pool/js/packages/modern/src/addresses.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
import { MPL_METADATA_PROGRAM_ID } from './internal';
import { STAKE_PROGRAM_ID } from './quarantine';

export const SINGLE_POOL_PROGRAM_ID = address('3cqnsMsT6LE96pxv7GR4di5rLqHDZZbR3FbeSUeRLFqY');
export const SINGLE_POOL_PROGRAM_ID = address('SVSPxpvHdN29nkVg9rPapPNDddN5DipNLRUFhyjFThE');

export type VoteAccountAddress<TAddress extends string = string> =
Base58EncodedAddress<TAddress> & {
Expand Down
2 changes: 1 addition & 1 deletion single-pool/program/program-id.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3cqnsMsT6LE96pxv7GR4di5rLqHDZZbR3FbeSUeRLFqY
SVSPxpvHdN29nkVg9rPapPNDddN5DipNLRUFhyjFThE
4 changes: 1 addition & 3 deletions single-pool/program/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ pub mod entrypoint;
pub use solana_program;
use solana_program::{pubkey::Pubkey, stake};

// XXX TODO FIXME change this
// (XXX ask how do we as a company handle privkeys for our onchain programs?)
solana_program::declare_id!("3cqnsMsT6LE96pxv7GR4di5rLqHDZZbR3FbeSUeRLFqY");
solana_program::declare_id!("SVSPxpvHdN29nkVg9rPapPNDddN5DipNLRUFhyjFThE");

const POOL_PREFIX: &[u8] = b"pool";
const POOL_STAKE_PREFIX: &[u8] = b"stake";
Expand Down

0 comments on commit 8537aad

Please sign in to comment.