fix: export VOTE_ACCOUNT_KEY (#422)
This commit is contained in:
parent
1bf94c7673
commit
6c32bca04d
|
@ -143,6 +143,7 @@ declare module '@solana/web3.js' {
|
||||||
}
|
}
|
||||||
|
|
||||||
// === src/validator-info.js ===
|
// === src/validator-info.js ===
|
||||||
|
declare export var VALIDATOR_INFO_KEY;
|
||||||
declare export type Info = {|
|
declare export type Info = {|
|
||||||
name: string,
|
name: string,
|
||||||
website?: string,
|
website?: string,
|
||||||
|
@ -159,6 +160,7 @@ declare module '@solana/web3.js' {
|
||||||
}
|
}
|
||||||
|
|
||||||
// === src/vote-account.js ===
|
// === src/vote-account.js ===
|
||||||
|
declare export var VOTE_ACCOUNT_KEY;
|
||||||
declare export type Lockout = {|
|
declare export type Lockout = {|
|
||||||
slot: number,
|
slot: number,
|
||||||
confirmationCount: number,
|
confirmationCount: number,
|
||||||
|
|
|
@ -8,8 +8,8 @@ export {PublicKey} from './publickey';
|
||||||
export {SystemProgram} from './system-program';
|
export {SystemProgram} from './system-program';
|
||||||
export {Token, TokenAmount} from './token-program';
|
export {Token, TokenAmount} from './token-program';
|
||||||
export {Transaction, TransactionInstruction} from './transaction';
|
export {Transaction, TransactionInstruction} from './transaction';
|
||||||
export {ValidatorInfo} from './validator-info';
|
export {VALIDATOR_INFO_KEY, ValidatorInfo} from './validator-info';
|
||||||
export {VoteAccount} from './vote-account';
|
export {VOTE_ACCOUNT_KEY, VoteAccount} from './vote-account';
|
||||||
export {sendAndConfirmTransaction} from './util/send-and-confirm-transaction';
|
export {sendAndConfirmTransaction} from './util/send-and-confirm-transaction';
|
||||||
export {
|
export {
|
||||||
sendAndConfirmRawTransaction,
|
sendAndConfirmRawTransaction,
|
||||||
|
|
|
@ -6,7 +6,7 @@ import * as Layout from './layout';
|
||||||
import * as shortvec from './util/shortvec-encoding';
|
import * as shortvec from './util/shortvec-encoding';
|
||||||
import {PublicKey} from './publickey';
|
import {PublicKey} from './publickey';
|
||||||
|
|
||||||
const VALIDATOR_INFO_KEY = new PublicKey(
|
export const VALIDATOR_INFO_KEY = new PublicKey(
|
||||||
'Va1idator1nfo111111111111111111111111111111',
|
'Va1idator1nfo111111111111111111111111111111',
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,10 @@ import * as BufferLayout from 'buffer-layout';
|
||||||
import * as Layout from './layout';
|
import * as Layout from './layout';
|
||||||
import {PublicKey} from './publickey';
|
import {PublicKey} from './publickey';
|
||||||
|
|
||||||
|
export const VOTE_ACCOUNT_KEY = new PublicKey(
|
||||||
|
'Vote111111111111111111111111111111111111111',
|
||||||
|
);
|
||||||
|
|
||||||
export type Lockout = {|
|
export type Lockout = {|
|
||||||
slot: number,
|
slot: number,
|
||||||
confirmationCount: number,
|
confirmationCount: number,
|
||||||
|
|
Loading…
Reference in New Issue