fix: use bpf-loader-deprecated explicitly (#11818)

This commit is contained in:
Jack May
2020-08-25 09:05:33 -07:00
committed by GitHub
parent 4593c3a172
commit 2395e57f45
6 changed files with 36 additions and 37 deletions

View File

@ -708,7 +708,7 @@ declare module '@solana/web3.js' {
stakePubkey: PublicKey,
authorityBase: PublicKey,
authoritySeed: string,
authorityOwner: PublicKey;
authorityOwner: PublicKey,
newAuthorizedPubkey: PublicKey,
stakeAuthorizationType: StakeAuthorizationType,
|};
@ -953,18 +953,21 @@ declare module '@solana/web3.js' {
}
// === src/bpf-loader.js ===
declare export var BPF_LOADER_PROGRAM_ID;
declare export class BpfLoader {
static programId(version: ?number): PublicKey;
static getMinNumSignatures(dataLength: number): number;
static load(
connection: Connection,
payer: Account,
program: Account,
elfBytes: Buffer | Uint8Array | Array<number>,
version: ?number,
loaderProgramId: PublicKey,
): Promise<PublicKey>;
}
// === src/bpf-loader-deprecated.js ===
declare export var BPF_LOADER_DEPRECATED_PROGRAM_ID;
// === src/util/send-and-confirm-transaction.js ===
declare export function sendAndConfirmTransaction(
connection: Connection,