@openbook-dex/openbook-v2
Advanced tools
Comparing version 0.0.18 to 0.0.19
@@ -44,3 +44,3 @@ /// <reference types="bn.js" /> | ||
sendAndConfirmTransaction(ixs: TransactionInstruction[], opts?: any): Promise<string>; | ||
createProgramAccount(authority: PublicKey, size: number): Promise<PublicKey>; | ||
createProgramAccount(authority: Keypair, size: number): Promise<PublicKey>; | ||
createProgramAccountIx(authority: PublicKey, size: number): Promise<[TransactionInstruction, Signer]>; | ||
@@ -47,0 +47,0 @@ getMarketAccount(publicKey: PublicKey): Promise<MarketAccount | null>; |
@@ -64,3 +64,3 @@ "use strict"; | ||
const tx = new web3_js_1.Transaction().add(web3_js_1.SystemProgram.createAccount({ | ||
fromPubkey: authority, | ||
fromPubkey: authority.publicKey, | ||
newAccountPubkey: address.publicKey, | ||
@@ -72,3 +72,3 @@ lamports, | ||
await this.sendAndConfirmTransaction(tx, { | ||
additionalSigners: [address], | ||
additionalSigners: [authority, address], | ||
}); | ||
@@ -75,0 +75,0 @@ return address.publicKey; |
@@ -60,3 +60,3 @@ import { BN, Program, } from '@coral-xyz/anchor'; | ||
const tx = new Transaction().add(SystemProgram.createAccount({ | ||
fromPubkey: authority, | ||
fromPubkey: authority.publicKey, | ||
newAccountPubkey: address.publicKey, | ||
@@ -68,3 +68,3 @@ lamports, | ||
await this.sendAndConfirmTransaction(tx, { | ||
additionalSigners: [address], | ||
additionalSigners: [authority, address], | ||
}); | ||
@@ -71,0 +71,0 @@ return address.publicKey; |
@@ -44,3 +44,3 @@ /// <reference types="bn.js" /> | ||
sendAndConfirmTransaction(ixs: TransactionInstruction[], opts?: any): Promise<string>; | ||
createProgramAccount(authority: PublicKey, size: number): Promise<PublicKey>; | ||
createProgramAccount(authority: Keypair, size: number): Promise<PublicKey>; | ||
createProgramAccountIx(authority: PublicKey, size: number): Promise<[TransactionInstruction, Signer]>; | ||
@@ -47,0 +47,0 @@ getMarketAccount(publicKey: PublicKey): Promise<MarketAccount | null>; |
{ | ||
"name": "@openbook-dex/openbook-v2", | ||
"version": "0.0.18", | ||
"version": "0.0.19", | ||
"description": "Typescript Client for openbook-v2 program.", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/openbook-dex/openbook-v2/", |
Sorry, the diff of this file is not supported yet
630398