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

@flashbots/mev-share-client

Package Overview
Dependencies
Maintainers
5
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@flashbots/mev-share-client - npm Package Compare versions

Comparing version 0.7.10 to 0.7.11

4

build/api/mungers.d.ts

@@ -14,5 +14,5 @@ import { BundleParams, SimBundleOptions, TransactionOptions } from './interfaces';

privacy: {
hints: string[];
hints: string[] | undefined;
builders: string[] | undefined;
} | undefined;
builders: string[] | undefined;
};

@@ -19,0 +19,0 @@ }[];

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

logs: hints.logs,
defaultLogs: hints.defaultLogs,
default_logs: hints.defaultLogs,
tx_hash: hints.txHash,

@@ -42,7 +42,7 @@ hash: true, // tx hash is always shared on Flashbots MEV-Share; abstract away from user

fast: true,
// privacy uses default (Stable) config if no hints specified
privacy: (options === null || options === void 0 ? void 0 : options.hints) && {
hints: extractSpecifiedHints(options.hints),
// privacy uses default (Stable) config if not specified
privacy: ((options === null || options === void 0 ? void 0 : options.hints) || (options === null || options === void 0 ? void 0 : options.builders)) && {
hints: (options === null || options === void 0 ? void 0 : options.hints) && extractSpecifiedHints(options.hints),
builders: options === null || options === void 0 ? void 0 : options.builders,
},
builders: options === null || options === void 0 ? void 0 : options.builders,
},

@@ -59,3 +59,3 @@ }];

// recursively munge nested bundle params
const mungedBundle = params.body.map((i) => i.bundle ? mungeBundleParams(i.bundle) : i);
const mungedBundle = params.body.map((i) => i.bundle ? { bundle: mungeBundleParams(i.bundle) } : i);
return Object.assign(Object.assign({}, params), { body: mungedBundle, version: params.version || "v0.1", inclusion: Object.assign(Object.assign({}, params.inclusion), { block: `0x${params.inclusion.block.toString(16)}`, maxBlock: params.inclusion.maxBlock ? `0x${params.inclusion.maxBlock.toString(16)}` : undefined }), validity: params.validity ? params.validity : {

@@ -62,0 +62,0 @@ refund: [],

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

const sendTestBackrunBundle = (provider, pendingTx, mevshare, targetBlock) => __awaiter(void 0, void 0, void 0, function* () {
// send bundle w/ (basefee + 100)gwei gas fee
const { tx, wallet } = yield (0, sendTx_1.setupTxExample)(provider, BigInt(1e9) * BigInt(1e3), "im backrunniiiiing");
// send bundle w/ 100 gwei gas fee
const { tx, wallet } = yield (0, sendTx_1.setupTxExample)(provider, BigInt(1e9) * BigInt(1e2), "im backrunniiiiing");
const backrunTx = Object.assign(Object.assign({}, tx), { nonce: tx.nonce ? tx.nonce + 1 : undefined });

@@ -26,0 +26,0 @@ const bundle = [

{
"name": "@flashbots/mev-share-client",
"version": "0.7.10",
"version": "0.7.11",
"description": "MEV-Share client library for Flashbots mev-share.",

@@ -5,0 +5,0 @@ "main": "build/index.js",

@@ -42,7 +42,7 @@ import { BundleParams, HintPreferences, SimBundleOptions, TransactionOptions } from './interfaces'

fast: true, // deprecated but required; setting has no effect
// privacy uses default (Stable) config if no hints specified
privacy: options?.hints && {
hints: extractSpecifiedHints(options.hints),
// privacy uses default (Stable) config if not specified
privacy: (options?.hints || options?.builders) && {
hints: options?.hints && extractSpecifiedHints(options.hints),
builders: options?.builders,
},
builders: options?.builders,
},

@@ -60,3 +60,5 @@ }]

// recursively munge nested bundle params
const mungedBundle: any[] = params.body.map((i: AnyBundleItem) => i.bundle ? mungeBundleParams(i.bundle) : i)
const mungedBundle: any[] = params.body.map((i: AnyBundleItem) =>
i.bundle ? { bundle: mungeBundleParams(i.bundle) } : i
)
return {

@@ -63,0 +65,0 @@ ...params,

@@ -16,4 +16,4 @@ import { JsonRpcProvider, formatEther, keccak256 } from 'ethers'

const sendTestBackrunBundle = async (provider: JsonRpcProvider, pendingTx: IPendingTransaction, mevshare: MevShareClient, targetBlock: number) => {
// send bundle w/ (basefee + 100)gwei gas fee
const {tx, wallet} = await setupTxExample(provider, BigInt(1e9) * BigInt(1e3), "im backrunniiiiing")
// send bundle w/ 100 gwei gas fee
const {tx, wallet} = await setupTxExample(provider, BigInt(1e9) * BigInt(1e2), "im backrunniiiiing")
const backrunTx = {

@@ -20,0 +20,0 @@ ...tx,

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