Skip to content

Commit

Permalink
feat: setup community VSR instance (solana-labs#1030)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianBor authored Sep 12, 2022
1 parent 1eaac2f commit bff71ce
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VoteStakeRegistry/sdk/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Program, Provider, web3 } from '@project-serum/anchor'
import { IDL, VoterStakeRegistry } from './voter_stake_registry'

export const DEFAULT_VSR_ID = new web3.PublicKey(
'4Q6WW2ouZ6V3iaNm56MTd5n2tnTm4C5fiH8miFHnAFHo'
'vsr2nfGVNHmSY8uxoBGqq8AQbwz3JwaEaHqGbsTPXqQ'
)

export class VsrClient {
Expand Down
3 changes: 2 additions & 1 deletion components/instructions/programs/names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export const GOVERNANCE_PROGRAM_NAMES = {
'Strangemood Foundation Governance Program',
GovHgfDPyQ1GwazJTDY2avSVY8GGcpmCapmmCsymRaGe: 'PSY DO Governance Program',
'7e75Nwsz8i5i4NiDa43CNzKJ4AeQGyRimha46VKTM1Ls': 'spl-governance v3 test',
'MGovW65tDhMMcpEmsegpsdgvzb6zUwGsNjhXFxRAnjd': 'MEAN DAO Governance Program',
MGovW65tDhMMcpEmsegpsdgvzb6zUwGsNjhXFxRAnjd: 'MEAN DAO Governance Program',
}

// Well known program names displayed on the instruction card
Expand All @@ -42,6 +42,7 @@ export const PROGRAM_NAMES = {
SysvarC1ock11111111111111111111111111111111: 'Sysvar: Clock',
'4Q6WW2ouZ6V3iaNm56MTd5n2tnTm4C5fiH8miFHnAFHo':
'Mango Voter Stake Registry Program',
vsr2nfGVNHmSY8uxoBGqq8AQbwz3JwaEaHqGbsTPXqQ: 'Voter Stake Registry Program',
VotEn9AWwTFtJPJSMV5F9jsMY6QwWM5qn3XP9PATGW7:
'PsyDO Voter Stake Registry Program',
[foresightConsts.PROGRAM_ID]: 'Foresight Dex',
Expand Down
3 changes: 3 additions & 0 deletions components/instructions/programs/voteStakeRegistry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,9 @@ export const VOTE_STAKE_REGISTRY_INSTRUCTIONS = {
'4Q6WW2ouZ6V3iaNm56MTd5n2tnTm4C5fiH8miFHnAFHo': common_instructions(
new PublicKey('4Q6WW2ouZ6V3iaNm56MTd5n2tnTm4C5fiH8miFHnAFHo')
),
vsr2nfGVNHmSY8uxoBGqq8AQbwz3JwaEaHqGbsTPXqQ: common_instructions(
new PublicKey('vsr2nfGVNHmSY8uxoBGqq8AQbwz3JwaEaHqGbsTPXqQ')
),
VotEn9AWwTFtJPJSMV5F9jsMY6QwWM5qn3XP9PATGW7: common_instructions(
new PublicKey('VotEn9AWwTFtJPJSMV5F9jsMY6QwWM5qn3XP9PATGW7')
),
Expand Down
1 change: 1 addition & 0 deletions hooks/useVotingPlugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import { NFTWithMeta } from '@utils/uiTypes/VotePlugin'

export const vsrPluginsPks: string[] = [
'4Q6WW2ouZ6V3iaNm56MTd5n2tnTm4C5fiH8miFHnAFHo',
'vsr2nfGVNHmSY8uxoBGqq8AQbwz3JwaEaHqGbsTPXqQ',
'VotEn9AWwTFtJPJSMV5F9jsMY6QwWM5qn3XP9PATGW7',
'MVSRXSGsDxcmKWMFQyufxJh3NWmpmgZmT9YHTr4MioB',
]
Expand Down

0 comments on commit bff71ce

Please sign in to comment.