Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@openbook-dex/openbook

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openbook-dex/openbook - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

56

lib/market-proxy/middleware.js

@@ -15,17 +15,3 @@ "use strict";

const openOrdersStr = Buffer.from([
111,
112,
101,
110,
45,
111,
114,
100,
101,
114,
115,
45,
105,
110,
105,
111, 112, 101, 110, 45, 111, 114, 100, 101, 114, 115, 45, 105, 110, 105,
116,

@@ -39,13 +25,3 @@ ]);

const openOrdersStr = Buffer.from([
111,
112,
101,
110,
45,
111,
114,
100,
101,
114,
115,
111, 112, 101, 110, 45, 111, 114, 100, 101, 114, 115,
]);

@@ -65,31 +41,7 @@ const [addr] = await web3_js_1.PublicKey.findProgramAddress([

const openOrdersSeed = Buffer.from([
111,
112,
101,
110,
45,
111,
114,
100,
101,
114,
115,
111, 112, 101, 110, 45, 111, 114, 100, 101, 114, 115,
]);
// b"open-orders-init"
const openOrdersInitSeed = Buffer.from([
111,
112,
101,
110,
45,
111,
114,
100,
101,
114,
115,
45,
105,
110,
105,
111, 112, 101, 110, 45, 111, 114, 100, 101, 114, 115, 45, 105, 110, 105,
116,

@@ -96,0 +48,0 @@ ]);

2

lib/tokens_and_markets.js

@@ -9,3 +9,3 @@ "use strict";

const markets_json_1 = __importDefault(require("./markets.json"));
const mainnet_beta_json_1 = __importDefault(require("@project-serum/tokens/src/mainnet-beta.json"));
const mainnet_beta_json_1 = __importDefault(require("@openbook-dex/tokens/src/mainnet-beta.json"));
exports.PROGRAM_LAYOUT_VERSIONS = {

@@ -12,0 +12,0 @@ '4ckmDgGdxQoPDLUkDT3vHgSAkzA3QRdNq5ywwY4sUSJn': 1,

{
"name": "@openbook-dex/openbook",
"version": "0.0.1",
"version": "0.0.2",
"description": "Library for interacting with the openbook dex",

@@ -28,3 +28,3 @@ "license": "MIT",

"devDependencies": {
"@project-serum/tokens": "file:../tokens",
"@openbook-dex/tokens": "0.0.2",
"@tsconfig/node12": "^1.0.7",

@@ -31,0 +31,0 @@ "@types/bn.js": "^4.11.6",

@@ -26,7 +26,7 @@ [![npm (scoped)](https://img.shields.io/npm/v/@project-serum/serum)](https://www.npmjs.com/package/@project-serum/serum)

import { Account, Connection, PublicKey } from '@solana/web3.js';
import { Market } from '@project-serum/serum';
import { Market } from '@openbook-dex/openbook';
let connection = new Connection('https://testnet.solana.com');
let marketAddress = new PublicKey('...');
let programAddress = new PublicKey("...");
let programAddress = new PublicKey('...');
let market = await Market.load(connection, marketAddress, {}, programAddress);

@@ -33,0 +33,0 @@

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