@flashbots/ethers-provider-bundle
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -47,3 +47,3 @@ "use strict"; | ||
async sendRawBundle(signedBundledTransactions, targetBlockNumber, opts) { | ||
await this.send("eth_sendBundle", [signedBundledTransactions, [`0x${targetBlockNumber.toString(16)}`, (opts === null || opts === void 0 ? void 0 : opts.minTimestamp) || 0, (opts === null || opts === void 0 ? void 0 : opts.maxTimestamp) || 0]]); | ||
await this.send("eth_sendBundle", [signedBundledTransactions, `0x${targetBlockNumber.toString(16)}`, (opts === null || opts === void 0 ? void 0 : opts.minTimestamp) || 0, (opts === null || opts === void 0 ? void 0 : opts.maxTimestamp) || 0]); | ||
const bundleTransactions = signedBundledTransactions.map(signedTransaction => { | ||
@@ -50,0 +50,0 @@ const transactionDetails = ethers_1.ethers.utils.parseTransaction(signedTransaction); |
{ | ||
"name": "@flashbots/ethers-provider-bundle", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
@@ -86,3 +86,3 @@ import { BigNumber, ethers, providers, Signer } from "ethers"; | ||
async sendRawBundle(signedBundledTransactions: Array<string>, targetBlockNumber: number, opts?: FlashbotsOptions): Promise<FlashbotsTransactionResponse> { | ||
await this.send("eth_sendBundle", [signedBundledTransactions, [`0x${targetBlockNumber.toString(16)}`, opts?.minTimestamp || 0, opts?.maxTimestamp || 0]]); | ||
await this.send("eth_sendBundle", [signedBundledTransactions, `0x${targetBlockNumber.toString(16)}`, opts?.minTimestamp || 0, opts?.maxTimestamp || 0]); | ||
const bundleTransactions = signedBundledTransactions.map(signedTransaction => { | ||
@@ -89,0 +89,0 @@ const transactionDetails = ethers.utils.parseTransaction(signedTransaction) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
143953