@project-serum/serum
Advanced tools
Comparing version 0.6.5 to 0.6.6
@@ -43,2 +43,3 @@ /// <reference types="node" /> | ||
makeCancelOrderTransaction(connection: Connection, owner: PublicKey, order: Order): Promise<Transaction>; | ||
makeCanceOrderInstruction(connection: Connection, owner: PublicKey, order: Order): TransactionInstruction; | ||
settleFunds(connection: Connection, owner: Account, openOrders: OpenOrders, baseWallet: PublicKey, quoteWallet: PublicKey): Promise<string>; | ||
@@ -45,0 +46,0 @@ makeSettleFundsTransaction(connection: Connection, openOrders: OpenOrders, baseWallet: PublicKey, quoteWallet: PublicKey): Promise<Transaction>; |
@@ -220,3 +220,7 @@ "use strict"; | ||
const transaction = new web3_js_1.Transaction(); | ||
transaction.add(instructions_1.DexInstructions.cancelOrder({ | ||
transaction.add(this.makeCanceOrderInstruction(connection, owner, order)); | ||
return transaction; | ||
} | ||
makeCanceOrderInstruction(connection, owner, order) { | ||
return instructions_1.DexInstructions.cancelOrder({ | ||
market: this.address, | ||
@@ -229,4 +233,3 @@ owner, | ||
openOrdersSlot: order.openOrdersSlot, | ||
})); | ||
return transaction; | ||
}); | ||
} | ||
@@ -233,0 +236,0 @@ async settleFunds(connection, owner, openOrders, baseWallet, quoteWallet) { |
{ | ||
"name": "@project-serum/serum", | ||
"version": "0.6.5", | ||
"version": "0.6.6", | ||
"description": "Library for interacting with the serum dex", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
119718
1551