From c9f62d14043ae1b57debc21aa2d85d84f16c3cb3 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Mon, 24 Oct 2022 15:46:48 -0600 Subject: [PATCH 1/3] Release 1.9.6 (master) (#240) * Update version for release (#236) * [1.9.5-0.0.1]: Fix - txStuck validation (#239) * Add txStuck to validation check and docs, bump version for release * Add txStuck to TansactionEventCode * Bump version for release --- README.md | 1 + package.json | 2 +- src/interfaces.ts | 1 + src/utilities.ts | 1 + 4 files changed, 4 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/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': From 3ca2b8074b42ea1a896c66c07b63c38c2b0cf1d6 Mon Sep 17 00:00:00 2001 From: Aaron Date: Fri, 2 Dec 2022 11:04:35 +1100 Subject: [PATCH 2/3] Release 1.9.7 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4ff69b6..54360b3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bnc-notify", - "version": "1.9.6-0.0.2", + "version": "1.9.7", "description": "Show web3 users realtime transaction notifications", "keywords": [ "ethereum", From cc7b0dee694e6bb9e682683abf33e146c19edf75 Mon Sep 17 00:00:00 2001 From: Aaron Date: Fri, 2 Dec 2022 11:46:56 +1100 Subject: [PATCH 3/3] Version update fixes --- package.json | 2 +- src/interfaces.ts | 3 +++ yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 54360b3..341a730 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "eslint-plugin-prettier": "^3.1.3", "prettier": "^2.0.5", "rollup": "^2.3.4", - "rollup-plugin-svelte": "^5.0.3", + "rollup-plugin-svelte": "^6.1.1", "svelte": "^3.12.1", "svelte-check": "^1.0.0", "svelte-i18n": "^1.1.2-beta", diff --git a/src/interfaces.ts b/src/interfaces.ts index 3fd4bf8..c8fef9e 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -119,8 +119,11 @@ export interface AppStore { version: string dappId?: string name?: string + system?: System networkId?: number + apiUrl?: string nodeSynced: boolean + transactionHandler?: TransactionHandler onerror?: ErrorHandler mobilePosition: 'bottom' | 'top' desktopPosition: 'bottomLeft' | 'bottomRight' | 'topLeft' | 'topRight' diff --git a/yarn.lock b/yarn.lock index 68d84c3..d98efc7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3949,10 +3949,10 @@ rimraf@^3.0.2: dependencies: glob "^7.1.3" -rollup-plugin-svelte@^5.0.3: - version "5.2.3" - resolved "https://registry.yarnpkg.com/rollup-plugin-svelte/-/rollup-plugin-svelte-5.2.3.tgz#efdc15e3e3fdd9b9f1100fdc14a8532b4e587bc8" - integrity sha512-513vOht9A93OV7fvmpIq8mD1JFgTZ5LidmpULKM2Od9P1l8oI5KwvO32fwCnASuVJS1EkRfvCnS7vKQ8DF4srg== +rollup-plugin-svelte@^6.1.1: + version "6.1.1" + resolved "https://registry.yarnpkg.com/rollup-plugin-svelte/-/rollup-plugin-svelte-6.1.1.tgz#66362cf0500fb7a848283ebcf19d289a60ef0871" + integrity sha512-ijnm0pH1ScrY4uxwaNXBpNVejVzpL2769hIEbAlnqNUWZrffLspu5/k9/l/Wsj3NrEHLQ6wCKGagVJonyfN7ow== dependencies: require-relative "^0.8.7" rollup-pluginutils "^2.8.2"