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

@openbook-dex/pool

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openbook-dex/pool - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

dist/lib/admin-controlled-pool.d.ts

@@ -1,2 +0,2 @@

import { Layout } from '@project-serum/borsh';
import { Layout } from '@openbook-dex/borsh';
import { PublicKey, TransactionInstruction } from '@solana/web3.js';

@@ -3,0 +3,0 @@ import BN from 'bn.js';

@@ -8,6 +8,6 @@ "use strict";

const buffer_layout_1 = require("buffer-layout");
const borsh_1 = require("@project-serum/borsh");
const borsh_1 = require("@openbook-dex/borsh");
const web3_js_1 = require("@solana/web3.js");
const bn_js_1 = __importDefault(require("bn.js"));
const token_1 = require("@project-serum/token");
const token_1 = require("@openbook-dex/token");
exports.ADMIN_INSTRUCTION_TAG = new bn_js_1.default('31e6452361a17878', 'hex');

@@ -14,0 +14,0 @@ exports.AdminRequest = (0, borsh_1.tagged)(exports.ADMIN_INSTRUCTION_TAG, (0, borsh_1.rustEnum)([

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

const schema_1 = require("./schema");
const token_1 = require("@project-serum/token");
const token_1 = require("@openbook-dex/token");
exports.RETBUF_PROGRAM_ID = new web3_js_1.PublicKey(

@@ -9,0 +9,0 @@ // TODO: switch to shmem4EWT2sPdVGvTZCzXXRAURL9G5vpPxNwSeKhHUL once that exists on mainnet

/// <reference types="node" />
import { Layout } from '@project-serum/borsh';
import { Layout } from '@openbook-dex/borsh';
import { PublicKey } from '@solana/web3.js';

@@ -4,0 +4,0 @@ import BN from 'bn.js';

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

const buffer_layout_1 = require("buffer-layout");
const borsh_1 = require("@project-serum/borsh");
const borsh_1 = require("@openbook-dex/borsh");
const bn_js_1 = __importDefault(require("bn.js"));

@@ -11,0 +11,0 @@ exports.AssetInfo = (0, buffer_layout_1.struct)([

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

const web3_js_1 = require("@solana/web3.js");
const token_1 = require("@project-serum/token");
const token_1 = require("@openbook-dex/token");
const util_1 = require("util");

@@ -15,3 +15,3 @@ const os_1 = require("os");

const index_1 = require("../index");
const associated_token_1 = require("@project-serum/associated-token");
const associated_token_1 = require("@openbook-dex/associated-token");
const POOL_PROGRAM_ID = new web3_js_1.PublicKey('ERvQUuLLY89DcwiUYemUgogdt2TFh7CG7cNW1fEFzeMJ');

@@ -25,3 +25,3 @@ async function doStuff() {

const [mint2, vault2] = await createMint(connection, payer);
const [poolAddress, transactions,] = await transactions_1.PoolTransactions.initializeSimplePool({
const [poolAddress, transactions] = await transactions_1.PoolTransactions.initializeSimplePool({
connection,

@@ -28,0 +28,0 @@ assetMints: [mint1, mint2],

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

const web3_js_1 = require("@solana/web3.js");
const token_1 = require("@project-serum/token");
const token_1 = require("@openbook-dex/token");
const bn_js_1 = __importDefault(require("bn.js"));
const associated_token_1 = require("@project-serum/associated-token");
const associated_token_1 = require("@openbook-dex/associated-token");
/**

@@ -14,0 +14,0 @@ * High-level API for constructing transactions to interact with pools.

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

@@ -32,5 +32,5 @@ "repository": "openbook-dex/openbook-ts",

"dependencies": {
"@project-serum/associated-token": "https://gitpkg.now.sh/trezm/serum-ts/packages/associated-token?bug/fix_the_dang_import",
"@project-serum/borsh": "https://gitpkg.now.sh/trezm/serum-ts/packages/borsh?bug/fix_the_dang_import",
"@project-serum/token": "https://gitpkg.now.sh/trezm/serum-ts/packages/token?bug/fix_the_dang_import",
"@openbook-dex/associated-token": "0.0.1",
"@openbook-dex/borsh": "0.0.2",
"@openbook-dex/token": "0.0.2",
"bn.js": "^5.1.2",

@@ -37,0 +37,0 @@ "buffer-layout": "^1.2.0"

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

import { Connection, PublicKey } from '@solana/web3.js';
import { loadPoolInfo, PoolTransactions } from '@project-serum/pool';
import { loadPoolInfo, PoolTransactions } from '@openbook-dex/pool';

@@ -51,3 +51,3 @@ let connection = new Connection('...');

```js
import { decodePoolState } from '@project-serum/pool';
import { decodePoolState } from '@openbook-dex/pool';

@@ -72,3 +72,3 @@ // Pool state account data, e.g. from Connection.getAccountInfo or Connection.onAccountChange

import { Connection, PublicKey } from '@solana/web3.js';
import { loadPoolInfo, getPoolBasket } from '@project-serum/pool';
import { loadPoolInfo, getPoolBasket } from '@openbook-dex/pool';
import BN from 'bn.js';

@@ -98,3 +98,3 @@

import { Account, Connection, PublicKey } from '@solana/web3.js';
import { loadPoolInfo, PoolTransactions } from '@project-serum/pool';
import { loadPoolInfo, PoolTransactions } from '@openbook-dex/pool';
import BN from 'bn.js';

@@ -135,3 +135,3 @@

import { Account, Connection, PublicKey } from '@solana/web3.js';
import { loadPoolInfo, PoolTransactions } from '@project-serum/pool';
import { loadPoolInfo, PoolTransactions } from '@openbook-dex/pool';
import BN from 'bn.js';

@@ -138,0 +138,0 @@

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

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

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