diff --git a/package.json b/package.json index ab9cb6b..0ab631f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bnc-sdk", - "version": "3.1.0", + "version": "3.1.0-0.0.1", "description": "SDK to connect to the blocknative backend via a websocket connection", "keywords": [ "ethereum", diff --git a/src/interfaces.ts b/src/interfaces.ts index e94a0df..0312e56 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -188,6 +188,7 @@ export type TransactionEventCode = | 'txSendFail' | 'txError' | 'txUnderPriced' + | 'txDropped' | 'all' export interface Ac { diff --git a/src/utilities.ts b/src/utilities.ts index 9580f63..8a1372d 100644 --- a/src/utilities.ts +++ b/src/utilities.ts @@ -13,11 +13,20 @@ export function createEmitter(): Emitter { case 'txSpeedUp': case 'txCancel': case 'txFailed': + case 'txDropped': + case 'txRequest': + case 'nsfFail': + case 'txRepeat': + case 'txAwaitingApproval': + case 'txConfirmReminder': + case 'txSendFail': + case 'txError': + case 'txUnderPriced': case 'all': break default: throw new Error( - `${eventCode} is not a valid event code, for a list of valid event codes see: https://github.com/blocknative/sdk` + `${eventCode} is not a valid event code, for a list of valid event codes see: https://docs.blocknative.com/notify-sdk#event-codes` ) }