From 85133e2275a14bfb66ddb3cc57f16c103d2bd68b Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Mon, 24 Oct 2022 13:22:38 -0600 Subject: [PATCH 1/2] Add txStuck to validation check and docs, bump version for release --- README.md | 1 + package.json | 2 +- src/utilities.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) 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/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': From d91eecdd1153d824ddb4e844defa5829bacfe460 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Mon, 24 Oct 2022 13:28:07 -0600 Subject: [PATCH 2/2] Add txStuck to TansactionEventCode --- package.json | 2 +- src/interfaces.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2a38dc5..9b3d6c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bnc-notify", - "version": "1.9.6", + "version": "1.9.5-0.0.1", "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'