fix: catch up to recent upstream changes

This commit is contained in:
Michael Vines
2018-10-17 09:35:24 -07:00
parent 972f68b16e
commit 011a2abd0c
10 changed files with 245 additions and 70 deletions

View File

@ -34,8 +34,10 @@ declare module '@solana/web3.js' {
// === src/connection.js ===
declare export type AccountInfo = {
tokens: number,
executable: boolean;
loaderProgramId: PublicKey,
programId: PublicKey,
tokens: number,
userdata: Buffer,
}
@ -67,7 +69,6 @@ declare module '@solana/web3.js' {
): Transaction;
static move(from: PublicKey, to: PublicKey, amount: number): Transaction;
static assign(from: PublicKey, programId: PublicKey): Transaction;
static load(from: PublicKey, programId: PublicKey, name: string): Transaction;
}
// === src/transaction.js ===
@ -152,4 +153,20 @@ declare module '@solana/web3.js' {
): Promise<void>;
}
// === src/loader.js ===
declare export class Loader {
constructor(connection: Connection, programId: PublicKey) : Loader;
load(program: Account, offset: number, bytes: Array<number>): Promise<void>;
finalize(program: Account): Promise<void>;
}
// === src/native-loader.js ===
declare export class NativeLoader {
static programId: PublicKey;
static load(
connection: Connection,
owner: Account,
programName: string,
): Promise<PublicKey>;
}
}