Socket
Socket
Sign inDemoInstall

@project-serum/serum

Package Overview
Dependencies
Maintainers
2
Versions
135
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@project-serum/serum - npm Package Compare versions

Comparing version 0.6.5 to 0.6.6

1

lib/market.d.ts

@@ -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>;

9

lib/market.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc