fix: add BpfLoader flow definition

This commit is contained in:
Michael Vines 2018-10-30 08:00:11 -07:00
parent 99b18dbfef
commit 4897ed0872
1 changed files with 11 additions and 0 deletions

View File

@ -203,6 +203,17 @@ declare module '@solana/web3.js' {
finalize(program: Account): Promise<void>;
}
// === src/bpf-loader.js ===
declare export class BpfLoader {
static programId: PublicKey;
static load(
connection: Connection,
owner: Account,
elfBytes: Array<number>,
): Promise<PublicKey>;
}
// === src/native-loader.js ===
declare export class NativeLoader {
static programId: PublicKey;