Skip to content

Releases: blocknative/sdk

Pending Simulated Event Code

14 Apr 01:12
082e547
Compare
Choose a tag to compare

This release adds the txPoolSimulation eventCode so that emitter listeners can be added for those events.

Changelog:

  • 3.2.0-0.1.0: [feature] - Pending Simulation Event Code (#111)

Binance Smart Chain

06 Apr 00:35
d458f84
Compare
Choose a tag to compare

This release adds beta support for Binance Smart Chain so that networkId: 56 is a valid network to watch transaction events on.

Changelog:

  • 3.1.1-0.1.0: [feature] - Binance Smart Chain Support (#108)

Emitter Event Codes

12 Feb 02:39
83e72a5
Compare
Choose a tag to compare

A small release to fix a bug where some valid event codes could not be registered to listen to.

Changelog:

  • 3.1.0-0.0.1: [fix] - Add Event Codes (#105)

App Version

29 Jan 02:13
a9301e4
Compare
Choose a tag to compare

Just a small release that allows for initializing the SDK with an optional appVersion parameter which is mostly to be used internally for identifying when Onboard.js and Notify.js are communicating via the SDK.

A small typo in the README has also been corrected.

Changelog:

  • Capitalization fix in README (#100)
  • 3.0.0-0.1.0: Add appVersion and appName to WS messages (#102)

Filters and ABI configurations

10 Nov 03:12
b9849a2
Compare
Choose a tag to compare

This release adds a new API method to add configurations that are scoped either globally or to an Ethereum address. A configuration allows adding filters to filter down which events you would like to receive and also allows adding an abi so that the Blocknative server can automatically decode contract input data.

await blocknative.configuration({
  scope: String, // [required] - either 'global' or valid Ethereum address
  filters: Array, // [optional] - array of valid searchjs filter strings
  abi: Array, // [optional] - valid contract ABI
  watchAddress: Boolean // [optional] - Whether the server should automatically watch the "scope" value if it is an address
})

// returns a promise that resolves once the configuration has been applied
// or rejects if there was a problem with the configuration

The Blocknative server uses jsql a JavaScript query language to filter events. Documentation for how to create filter queries can be found here

There is a breaking change in this release where the transaction event payload has been changed so that it more closely matches the payloads from our webhook API.

The following parameters have been added to the transaction payload:

serverVersion - version of the server that sent the payload (String)
timeStamp - time stamp of when the server sent the payload (String)
system - system (blockchain) the transaction occurred on (String)
network - network name the transaction occurred on (String)

The following parameters in the transaction payload have been modified:

originalHash - has been replaced with replaceHash
status - speedup and cancel events were both represented with a status of 'pending', in this update they will be represented with values of 'speedup' and 'cancel' respectively

Changelog:

  • Bump lodash from 4.17.15 to 4.17.19 (#84)
  • Fix docs link (#85)
  • Enhancement: Match webhook api (#88)
  • Fix: ISO string timestamp (#92)
  • Feature: Configurations Support (#94)
  • Enhancement: Configurations API (#95)
  • Enhancement: Event Emitter off Method (#96)

Message Queue

07 Aug 01:11
86eb31a
Compare
Choose a tag to compare

This release adds a message queue for event logs that are sent to the Blocknative server. The queue improves performance and correctly handles rate limits, preventing dropped messages.

xDai Network

22 Jun 01:17
8bf47cb
Compare
Choose a tag to compare

Just a small release to add the xDai network as a valid network to monitor via our backend.

Changelog:

  • Feature: Add xDai network (#81)

Local Network

10 May 22:20
1ca1886
Compare
Choose a tag to compare

This just a small release to fix a minor regression where Local networks were not being allowed. Now if a networkId is passed in that isn't recognized, the network will be set to 'local' informing our backend to not watch any transactions on that network.

Changelog:

  • Fix: Local Network (#78)

Add Notify Types

05 May 03:42
a25d201
Compare
Choose a tag to compare

A small release to update some types to accommodate Bitcoin support in Notify.js.

Changelog:

  • Enhancement: Add types for Notify (#75)

TypeScript Definition Update

04 May 03:39
0a5c573
Compare
Choose a tag to compare

Just a very small release here to update one of the TypeScript definitions to be compatible with our Notify library.

Changelog:

  • Fix: TypeScript Definition (#72)