diff --git a/README.md b/README.md index ff21c4f..fd78ecc 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,7 @@ web3.eth emitter.on('txSpeedUp', console.log) emitter.on('txCancel', console.log) emitter.on('txFailed', console.log) + emitter.on('txStuck', console.log) emitter.on('all', console.log) }) ``` diff --git a/package.json b/package.json index 52ce2d4..2a38dc5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bnc-notify", - "version": "1.9.5", + "version": "1.9.6", "description": "Show web3 users realtime transaction notifications", "keywords": [ "ethereum", diff --git a/src/interfaces.ts b/src/interfaces.ts index f894c6b..a39dd9a 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -25,6 +25,7 @@ export type System = 'bitcoin' | 'ethereum' export type TransactionEventCode = | 'txSent' | 'txPool' + | 'txStuck' | 'txConfirmed' | 'txSpeedUp' | 'txCancel' diff --git a/src/utilities.ts b/src/utilities.ts index e09072b..08ba277 100644 --- a/src/utilities.ts +++ b/src/utilities.ts @@ -98,6 +98,7 @@ export function createEmitter(): Emitter { case 'txAwaitingApproval': case 'txConfirmReminder': case 'txSendFail': + case 'txStuck': case 'txError': case 'txUnderPriced': case 'all':