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

Commit

Permalink
fix: export VOTE_ACCOUNT_KEY (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvines committed Jun 15, 2020
1 parent 1bf94c7 commit 6c32bca
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions web3.js/module.flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ declare module '@solana/web3.js' {
}

// === src/validator-info.js ===
declare export var VALIDATOR_INFO_KEY;
declare export type Info = {|
name: string,
website?: string,
Expand All @@ -159,6 +160,7 @@ declare module '@solana/web3.js' {
}

// === src/vote-account.js ===
declare export var VOTE_ACCOUNT_KEY;
declare export type Lockout = {|
slot: number,
confirmationCount: number,
Expand Down
4 changes: 2 additions & 2 deletions web3.js/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export {PublicKey} from './publickey';
export {SystemProgram} from './system-program';
export {Token, TokenAmount} from './token-program';
export {Transaction, TransactionInstruction} from './transaction';
export {ValidatorInfo} from './validator-info';
export {VoteAccount} from './vote-account';
export {VALIDATOR_INFO_KEY, ValidatorInfo} from './validator-info';
export {VOTE_ACCOUNT_KEY, VoteAccount} from './vote-account';
export {sendAndConfirmTransaction} from './util/send-and-confirm-transaction';
export {
sendAndConfirmRawTransaction,
Expand Down
2 changes: 1 addition & 1 deletion web3.js/src/validator-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import * as Layout from './layout';
import * as shortvec from './util/shortvec-encoding';
import {PublicKey} from './publickey';

const VALIDATOR_INFO_KEY = new PublicKey(
export const VALIDATOR_INFO_KEY = new PublicKey(
'Va1idator1nfo111111111111111111111111111111',
);

Expand Down
4 changes: 4 additions & 0 deletions web3.js/src/vote-account.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import * as BufferLayout from 'buffer-layout';
import * as Layout from './layout';
import {PublicKey} from './publickey';

export const VOTE_ACCOUNT_KEY = new PublicKey(
'Vote111111111111111111111111111111111111111',
);

export type Lockout = {|
slot: number,
confirmationCount: number,
Expand Down

0 comments on commit 6c32bca

Please sign in to comment.