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

7
web3.js/module.d.ts vendored
View File

@ -938,18 +938,21 @@ declare module '@solana/web3.js' {
}
// === src/bpf-loader.js ===
export const BPF_LOADER_PROGRAM_ID: PublicKey;
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 ===
export const BPF_LOADER_DEPRECATED_PROGRAM_ID: PublicKey;
// === src/util/send-and-confirm-transaction.js ===
export function sendAndConfirmTransaction(
connection: Connection,