fix: update outdated module.flow.js
This commit is contained in:
committed by
Michael Vines
parent
a4e7ce3133
commit
30446807b9
@ -10,7 +10,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import BN from 'bn.js';
|
import * as BufferLayout from 'buffer-layout';
|
||||||
|
|
||||||
declare module '@solana/web3.js' {
|
declare module '@solana/web3.js' {
|
||||||
// === src/publickey.js ===
|
// === src/publickey.js ===
|
||||||
@ -56,6 +56,21 @@ declare module '@solana/web3.js' {
|
|||||||
|
|
||||||
declare export type Commitment = 'max' | 'recent';
|
declare export type Commitment = 'max' | 'recent';
|
||||||
|
|
||||||
|
declare export type SignatureStatusResult =
|
||||||
|
| SignatureSuccess
|
||||||
|
| TransactionError
|
||||||
|
| null;
|
||||||
|
|
||||||
|
declare export type BlockhashAndFeeCalculator = {
|
||||||
|
blockhash: Blockhash,
|
||||||
|
feeCalculator: FeeCalculator,
|
||||||
|
};
|
||||||
|
|
||||||
|
declare export type PublicKeyAndAccount = {
|
||||||
|
pubkey: PublicKey,
|
||||||
|
account: AccountInfo,
|
||||||
|
};
|
||||||
|
|
||||||
declare export type AccountInfo = {
|
declare export type AccountInfo = {
|
||||||
executable: boolean,
|
executable: boolean,
|
||||||
owner: PublicKey,
|
owner: PublicKey,
|
||||||
@ -138,6 +153,11 @@ declare module '@solana/web3.js' {
|
|||||||
firstNormalSlot: number,
|
firstNormalSlot: number,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
declare export type VoteAccountStatus = {
|
||||||
|
current: Array<VoteAccountInfo>,
|
||||||
|
delinquent: Array<VoteAccountInfo>,
|
||||||
|
};
|
||||||
|
|
||||||
declare export class Connection {
|
declare export class Connection {
|
||||||
constructor(endpoint: string, commitment: ?Commitment): Connection;
|
constructor(endpoint: string, commitment: ?Commitment): Connection;
|
||||||
getAccountInfoAndContext(
|
getAccountInfoAndContext(
|
||||||
@ -217,6 +237,27 @@ declare module '@solana/web3.js' {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// === src/stake-program.js ===
|
// === src/stake-program.js ===
|
||||||
|
declare export type StakeAuthorizationType = {|
|
||||||
|
index: number,
|
||||||
|
|};
|
||||||
|
|
||||||
|
declare export class Authorized {
|
||||||
|
staker: PublicKey;
|
||||||
|
withdrawer: PublicKey;
|
||||||
|
constructor(staker: PublicKey, withdrawer: PublicKey): Authorized;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare export class Lockup {
|
||||||
|
unixTimestamp: number;
|
||||||
|
epoch: number;
|
||||||
|
custodian: PublicKey;
|
||||||
|
constructor(
|
||||||
|
unixTimestamp: number,
|
||||||
|
epoch: number,
|
||||||
|
custodian: PublicKey,
|
||||||
|
): Lockup;
|
||||||
|
}
|
||||||
|
|
||||||
declare export class StakeProgram {
|
declare export class StakeProgram {
|
||||||
static programId: PublicKey;
|
static programId: PublicKey;
|
||||||
static space: number;
|
static space: number;
|
||||||
@ -444,7 +485,10 @@ declare module '@solana/web3.js' {
|
|||||||
): Promise<TransactionSignature>;
|
): Promise<TransactionSignature>;
|
||||||
|
|
||||||
// === src/util/testnet.js ===
|
// === src/util/testnet.js ===
|
||||||
declare export function testnetChannelEndpoint(channel?: string): string;
|
declare export function testnetChannelEndpoint(
|
||||||
|
channel?: string,
|
||||||
|
tls?: boolean,
|
||||||
|
): string;
|
||||||
|
|
||||||
declare export var LAMPORTS_PER_SOL: number;
|
declare export var LAMPORTS_PER_SOL: number;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user