Socket
Socket
Sign inDemoInstall

@project-serum/serum

Package Overview
Dependencies
5
Maintainers
6
Versions
135
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.13.54 to 0.13.55

2

lib/error.d.ts

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

import { Transaction } from "@solana/web3.js";
import { Transaction } from '@solana/web3.js';
export declare enum DexError {

@@ -3,0 +3,0 @@ InvalidMarketFlags = 0,

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

[token_instructions_1.TOKEN_PROGRAM_ID.toString()]: 'Token program',
[web3_js_1.SystemProgram.programId.toString()]: 'System program'
[web3_js_1.SystemProgram.programId.toString()]: 'System program',
};

@@ -95,3 +95,3 @@ function parseInstructionErrorResponse(transaction, errorResponse) {

error: parsedError,
failedProgram: failedInstruction.programId.toString()
failedProgram: failedInstruction.programId.toString(),
};

@@ -98,0 +98,0 @@ }

@@ -142,3 +142,3 @@ export function encodeInstruction(instruction: any): Buffer;

}): TransactionInstruction;
static prune({ market, bids, asks, eventQueue, pruneAuthority, openOrders, openOrdersOwner, programId, }: {
static prune({ market, bids, asks, eventQueue, pruneAuthority, openOrders, openOrdersOwner, programId, limit, }: {
market: any;

@@ -152,2 +152,3 @@ bids: any;

programId: any;
limit: any;
}): TransactionInstruction;

@@ -154,0 +155,0 @@ }

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

exports.INSTRUCTION_LAYOUT.inner.addVariant(15, buffer_layout_1.struct([]), 'initOpenOrders');
exports.INSTRUCTION_LAYOUT.inner.addVariant(16, buffer_layout_1.struct([]), 'prune');
exports.INSTRUCTION_LAYOUT.inner.addVariant(16, buffer_layout_1.struct([buffer_layout_1.u16('limit')]), 'prune');
function encodeInstruction(instruction) {

@@ -82,3 +82,7 @@ const b = Buffer.alloc(100);

// Use a dummy address if using the new dex upgrade to save tx space.
{ pubkey: authority ? quoteMint : web3_js_1.SYSVAR_RENT_PUBKEY, isSigner: false, isWritable: false },
{
pubkey: authority ? quoteMint : web3_js_1.SYSVAR_RENT_PUBKEY,
isSigner: false,
isWritable: false,
},
]

@@ -323,3 +327,3 @@ .concat(authority

}
static prune({ market, bids, asks, eventQueue, pruneAuthority, openOrders, openOrdersOwner, programId, }) {
static prune({ market, bids, asks, eventQueue, pruneAuthority, openOrders, openOrdersOwner, programId, limit, }) {
const keys = [

@@ -339,3 +343,3 @@ { pubkey: market, isSigner: false, isWritable: true },

data: encodeInstruction({
prune: {},
prune: { limit },
}),

@@ -342,0 +346,0 @@ });

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

closeOpenOrders(openOrders: PublicKey, owner: PublicKey, solWallet: PublicKey): TransactionInstruction;
prune(openOrders: PublicKey, openOrdersOwner: PublicKey): TransactionInstruction;
prune(openOrders: PublicKey, openOrdersOwner: PublicKey, limit?: number): TransactionInstruction;
private proxy;

@@ -29,0 +29,0 @@ }

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

}
prune(openOrders, openOrdersOwner) {
prune(openOrders, openOrdersOwner, limit) {
if (!limit) {
limit = 65535;
}
const ix = instructions_1.DexInstructions.prune({

@@ -140,2 +143,3 @@ market: this._market.address,

programId: this._proxyProgramId,
limit,
});

@@ -142,0 +146,0 @@ this._middlewares.forEach((mw) => mw.prune(ix));

@@ -45,4 +45,4 @@ import { PublicKey, TransactionInstruction } from '@solana/web3.js';

prune(ix: TransactionInstruction): void;
ixToDisplay(ix: TransactionInstruction): Object;
ixToDisplay(ix: TransactionInstruction): any;
}
//# sourceMappingURL=middleware.d.ts.map

@@ -89,2 +89,3 @@ "use strict";

layout_1.publicKeyLayout('pruneAuthority'),
buffer_layout_1.blob(1024),
buffer_layout_1.blob(7),

@@ -91,0 +92,0 @@ ]);

@@ -12,4 +12,4 @@ "use strict";

'4ckmDgGdxQoPDLUkDT3vHgSAkzA3QRdNq5ywwY4sUSJn': 1,
'BJ3jrUzddfuSrZHXSCxMUUQsjKEyLmuuyZebkcaFp2fg': 1,
'EUqojwWA2rd19FZrzeBncJsm38Jm1hEhE3zsmX3bRc2o': 2,
BJ3jrUzddfuSrZHXSCxMUUQsjKEyLmuuyZebkcaFp2fg: 1,
EUqojwWA2rd19FZrzeBncJsm38Jm1hEhE3zsmX3bRc2o: 2,
'9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin': 3,

@@ -16,0 +16,0 @@ };

{
"name": "@project-serum/serum",
"version": "0.13.54",
"version": "0.13.55",
"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

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc