Socket
Socket
Sign inDemoInstall

@project-serum/serum

Package Overview
Dependencies
Maintainers
3
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.9.2 to 0.9.3

9

lib/market.js

@@ -100,10 +100,3 @@ "use strict";

filterForOpenOrders(bids, asks, openOrdersAccounts) {
const orders = [...bids, ...asks].filter((order) => openOrdersAccounts.some((openOrders) => order.openOrdersAddress.equals(openOrders.address)));
return orders.map((order) => {
var _a;
return ({
...order,
clientId: (_a = openOrdersAccounts.find((openOrders) => order.openOrdersAddress.equals(openOrders.address))) === null || _a === void 0 ? void 0 : _a.clientIds[order.openOrdersSlot],
});
});
return [...bids, ...asks].filter((order) => openOrdersAccounts.some((openOrders) => order.openOrdersAddress.equals(openOrders.address)));
}

@@ -110,0 +103,0 @@ async findBaseTokenAccountsForOwner(connection, ownerAddress) {

2

package.json
{
"name": "@project-serum/serum",
"version": "0.9.2",
"version": "0.9.3",
"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