fix: update Pubkey typescript bindings (#11971)

This commit is contained in:
Jack May 2020-09-01 11:14:41 -07:00 committed by GitHub
parent 27050f1ee4
commit e048e08dae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 0 deletions

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

@ -3,6 +3,7 @@ declare module '@solana/web3.js' {
import * as BufferLayout from 'buffer-layout';
// === src/publickey.js ===
export type PublicKeyNonce = [PublicKey, number];
export class PublicKey {
constructor(value: number | string | Buffer | Uint8Array | Array<number>);
static isPublicKey(o: object): boolean;
@ -11,6 +12,14 @@ declare module '@solana/web3.js' {
seed: string,
programId: PublicKey,
): Promise<PublicKey>;
static createProgramAddress(
seeds: Array<Buffer | Uint8Array>,
programId: PublicKey,
): Promise<PublicKey>;
static findProgramAddress(
seeds: Array<Buffer | Uint8Array>,
programId: PublicKey,
): Promise<PublicKeyNonce>;
equals(publickey: PublicKey): boolean;
toBase58(): string;
toBuffer(): Buffer;