fix: update Pubkey typescript bindings (#11971)
This commit is contained in:
parent
27050f1ee4
commit
e048e08dae
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue