@project-serum/serum
Advanced tools
Comparing version 0.6.6 to 0.6.7
@@ -46,2 +46,3 @@ /// <reference types="node" /> | ||
makeSettleFundsTransaction(connection: Connection, openOrders: OpenOrders, baseWallet: PublicKey, quoteWallet: PublicKey): Promise<Transaction>; | ||
makeSettleInstruction(openOrders: OpenOrders, baseWallet: PublicKey, quoteWallet: PublicKey, vaultSigner: any): TransactionInstruction; | ||
loadRequestQueue(connection: Connection): Promise<any[]>; | ||
@@ -48,0 +49,0 @@ loadEventQueue(connection: Connection): Promise<import("./queue").Event[]>; |
@@ -248,3 +248,8 @@ "use strict"; | ||
], instructions_1.DEX_PROGRAM_ID); | ||
tx.add(instructions_1.DexInstructions.settleFunds({ | ||
const settleInstruction = this.makeSettleInstruction(openOrders, baseWallet, quoteWallet, vaultSigner); | ||
tx.add(settleInstruction); | ||
return tx; | ||
} | ||
makeSettleInstruction(openOrders, baseWallet, quoteWallet, vaultSigner) { | ||
return instructions_1.DexInstructions.settleFunds({ | ||
market: this.address, | ||
@@ -258,4 +263,3 @@ openOrders: openOrders.address, | ||
vaultSigner, | ||
})); | ||
return tx; | ||
}); | ||
} | ||
@@ -262,0 +266,0 @@ async loadRequestQueue(connection) { |
{ | ||
"name": "@project-serum/serum", | ||
"version": "0.6.6", | ||
"version": "0.6.7", | ||
"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
120381
1556