New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@openbook-dex/common

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openbook-dex/common - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

20

dist/lib/index.js

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

const spl_token_1 = require("@solana/spl-token");
const serum_1 = require("@project-serum/serum");
const openbook_1 = require("@openbook-dex/openbook");
__exportStar(require("./provider"), exports);

@@ -59,5 +59,5 @@ exports.token = __importStar(require("./token"));

lamports: await provider.connection.getMinimumBalanceForRentExemption(82),
programId: serum_1.TokenInstructions.TOKEN_PROGRAM_ID,
programId: openbook_1.TokenInstructions.TOKEN_PROGRAM_ID,
}),
serum_1.TokenInstructions.initializeMint({
openbook_1.TokenInstructions.initializeMint({
mint,

@@ -83,4 +83,4 @@ decimals: decimals !== null && decimals !== void 0 ? decimals : 0,

lamports: await provider.connection.getMinimumBalanceForRentExemption(82),
programId: serum_1.TokenInstructions.TOKEN_PROGRAM_ID,
}), serum_1.TokenInstructions.initializeMint({
programId: openbook_1.TokenInstructions.TOKEN_PROGRAM_ID,
}), openbook_1.TokenInstructions.initializeMint({
mint: mint.publicKey,

@@ -94,8 +94,8 @@ decimals: decimals !== null && decimals !== void 0 ? decimals : 0,

lamports: await provider.connection.getMinimumBalanceForRentExemption(165),
programId: serum_1.TokenInstructions.TOKEN_PROGRAM_ID,
}), serum_1.TokenInstructions.initializeAccount({
programId: openbook_1.TokenInstructions.TOKEN_PROGRAM_ID,
}), openbook_1.TokenInstructions.initializeAccount({
account: vault.publicKey,
mint: mint.publicKey,
owner,
}), serum_1.TokenInstructions.mintTo({
}), openbook_1.TokenInstructions.mintTo({
mint: mint.publicKey,

@@ -128,5 +128,5 @@ destination: vault.publicKey,

lamports,
programId: serum_1.TokenInstructions.TOKEN_PROGRAM_ID,
programId: openbook_1.TokenInstructions.TOKEN_PROGRAM_ID,
}),
serum_1.TokenInstructions.initializeAccount({
openbook_1.TokenInstructions.initializeAccount({
account: newAccountPubkey,

@@ -133,0 +133,0 @@ mint,

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

const web3_js_1 = require("@solana/web3.js");
const serum_1 = require("@project-serum/serum");
const openbook_1 = require("@openbook-dex/openbook");
const bs58 = __importStar(require("bs58"));

@@ -36,3 +36,3 @@ const BufferLayout = __importStar(require("buffer-layout"));

const resp = await connection._rpcRequest('getProgramAccounts', [
serum_1.TokenInstructions.TOKEN_PROGRAM_ID.toBase58(),
openbook_1.TokenInstructions.TOKEN_PROGRAM_ID.toBase58(),
{

@@ -39,0 +39,0 @@ commitment: connection.commitment,

{
"name": "@openbook-dex/common",
"version": "0.0.1",
"version": "0.0.2",
"description": "Openbook common utilities",

@@ -25,3 +25,3 @@ "main": "dist/lib/index.js",

"dependencies": {
"@project-serum/serum": "^0.13.21",
"@openbook-dex/openbook": "0.0.2",
"bn.js": "^5.1.2",

@@ -28,0 +28,0 @@ "superstruct": "0.8.3"

Sorry, the diff of this file is not supported yet

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