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

@openbook-dex/openbook-v2

Package Overview
Dependencies
Maintainers
3
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openbook-dex/openbook-v2 - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

4

dist/cjs/client.d.ts

@@ -8,3 +8,5 @@ /// <reference types="bn.js" />

export type PlaceOrderArgs = IdlTypes<OpenbookV2>['PlaceOrderArgs'];
export type PlaceOrderType = IdlTypes<OpenbookV2>['PlaceOrderType'];
export type PlaceOrderPeggedArgs = IdlTypes<OpenbookV2>['PlaceOrderPeggedArgs'];
export type PlaceMultipleOrdersArgs = IdlTypes<OpenbookV2>['PlaceMultipleOrdersArgs'];
export type OracleConfigParams = IdlTypes<OpenbookV2>['OracleConfigParams'];

@@ -70,3 +72,3 @@ export type OracleConfig = IdlTypes<OpenbookV2>['OracleConfig'];

placeTakeOrderIx(marketPublicKey: PublicKey, market: MarketAccount, userBaseAccount: PublicKey, userQuoteAccount: PublicKey, openOrdersAdmin: PublicKey | null, args: PlaceOrderArgs, referrerAccount: PublicKey | null, remainingAccounts: PublicKey[], openOrdersDelegate?: Keypair): Promise<[TransactionInstruction, Signer[]]>;
cancelAndPlaceOrdersIx(openOrdersPublicKey: PublicKey, marketPublicKey: PublicKey, market: MarketAccount, userBaseAccount: PublicKey, userQuoteAccount: PublicKey, openOrdersAdmin: PublicKey | null, cancelClientOrdersIds: BN[], placeOrders: PlaceOrderArgs[], openOrdersDelegate?: Keypair): Promise<[TransactionInstruction, Signer[]]>;
cancelAllAndPlaceOrdersIx(openOrdersPublicKey: PublicKey, marketPublicKey: PublicKey, market: MarketAccount, userBaseAccount: PublicKey, userQuoteAccount: PublicKey, openOrdersAdmin: PublicKey | null, orderType: PlaceOrderType, bids: PlaceMultipleOrdersArgs[], asks: PlaceMultipleOrdersArgs[], limit?: number, openOrdersDelegate?: Keypair): Promise<[TransactionInstruction, Signer[]]>;
cancelOrderById(openOrdersPublicKey: PublicKey, openOrdersAccount: OpenOrdersAccount, market: MarketAccount, orderId: BN, openOrdersDelegate?: Keypair): Promise<[TransactionInstruction, Signer[]]>;

@@ -73,0 +75,0 @@ cancelOrderByClientId(openOrdersPublicKey: PublicKey, openOrdersAccount: OpenOrdersAccount, market: MarketAccount, clientOrderId: BN, openOrdersDelegate?: Keypair): Promise<[TransactionInstruction, Signer[]]>;

@@ -460,5 +460,6 @@ "use strict";

}
async cancelAndPlaceOrdersIx(openOrdersPublicKey, marketPublicKey, market, userBaseAccount, userQuoteAccount, openOrdersAdmin, cancelClientOrdersIds, placeOrders, openOrdersDelegate) {
// Use OrderType from './utils/utils' for orderType
async cancelAllAndPlaceOrdersIx(openOrdersPublicKey, marketPublicKey, market, userBaseAccount, userQuoteAccount, openOrdersAdmin, orderType, bids, asks, limit = 12, openOrdersDelegate) {
const ix = await this.program.methods
.cancelAndPlaceOrders(cancelClientOrdersIds, placeOrders)
.cancelAllAndPlaceOrders(orderType, bids, asks, limit)
.accounts({

@@ -465,0 +466,0 @@ signer: openOrdersDelegate != null

@@ -456,5 +456,6 @@ import { BN, Program, } from '@coral-xyz/anchor';

}
async cancelAndPlaceOrdersIx(openOrdersPublicKey, marketPublicKey, market, userBaseAccount, userQuoteAccount, openOrdersAdmin, cancelClientOrdersIds, placeOrders, openOrdersDelegate) {
// Use OrderType from './utils/utils' for orderType
async cancelAllAndPlaceOrdersIx(openOrdersPublicKey, marketPublicKey, market, userBaseAccount, userQuoteAccount, openOrdersAdmin, orderType, bids, asks, limit = 12, openOrdersDelegate) {
const ix = await this.program.methods
.cancelAndPlaceOrders(cancelClientOrdersIds, placeOrders)
.cancelAllAndPlaceOrders(orderType, bids, asks, limit)
.accounts({

@@ -461,0 +462,0 @@ signer: openOrdersDelegate != null

@@ -8,3 +8,5 @@ /// <reference types="bn.js" />

export type PlaceOrderArgs = IdlTypes<OpenbookV2>['PlaceOrderArgs'];
export type PlaceOrderType = IdlTypes<OpenbookV2>['PlaceOrderType'];
export type PlaceOrderPeggedArgs = IdlTypes<OpenbookV2>['PlaceOrderPeggedArgs'];
export type PlaceMultipleOrdersArgs = IdlTypes<OpenbookV2>['PlaceMultipleOrdersArgs'];
export type OracleConfigParams = IdlTypes<OpenbookV2>['OracleConfigParams'];

@@ -70,3 +72,3 @@ export type OracleConfig = IdlTypes<OpenbookV2>['OracleConfig'];

placeTakeOrderIx(marketPublicKey: PublicKey, market: MarketAccount, userBaseAccount: PublicKey, userQuoteAccount: PublicKey, openOrdersAdmin: PublicKey | null, args: PlaceOrderArgs, referrerAccount: PublicKey | null, remainingAccounts: PublicKey[], openOrdersDelegate?: Keypair): Promise<[TransactionInstruction, Signer[]]>;
cancelAndPlaceOrdersIx(openOrdersPublicKey: PublicKey, marketPublicKey: PublicKey, market: MarketAccount, userBaseAccount: PublicKey, userQuoteAccount: PublicKey, openOrdersAdmin: PublicKey | null, cancelClientOrdersIds: BN[], placeOrders: PlaceOrderArgs[], openOrdersDelegate?: Keypair): Promise<[TransactionInstruction, Signer[]]>;
cancelAllAndPlaceOrdersIx(openOrdersPublicKey: PublicKey, marketPublicKey: PublicKey, market: MarketAccount, userBaseAccount: PublicKey, userQuoteAccount: PublicKey, openOrdersAdmin: PublicKey | null, orderType: PlaceOrderType, bids: PlaceMultipleOrdersArgs[], asks: PlaceMultipleOrdersArgs[], limit?: number, openOrdersDelegate?: Keypair): Promise<[TransactionInstruction, Signer[]]>;
cancelOrderById(openOrdersPublicKey: PublicKey, openOrdersAccount: OpenOrdersAccount, market: MarketAccount, orderId: BN, openOrdersDelegate?: Keypair): Promise<[TransactionInstruction, Signer[]]>;

@@ -73,0 +75,0 @@ cancelOrderByClientId(openOrdersPublicKey: PublicKey, openOrdersAccount: OpenOrdersAccount, market: MarketAccount, clientOrderId: BN, openOrdersDelegate?: Keypair): Promise<[TransactionInstruction, Signer[]]>;

{
"name": "@openbook-dex/openbook-v2",
"version": "0.1.1",
"version": "0.1.2",
"description": "Typescript Client for openbook-v2 program.",

@@ -5,0 +5,0 @@ "repository": "https://github.com/openbook-dex/openbook-v2/",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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