Releases: blocknative/sdk
Pending Simulated Event Code
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
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
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
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:
Filters and ABI configurations
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:
Message Queue
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
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
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
A small release to update some types to accommodate Bitcoin support in Notify.js.
Changelog:
- Enhancement: Add types for Notify (#75)
TypeScript Definition Update
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)