From 5a42c21190227866ccf384fc2a18986a199672a7 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Mon, 9 May 2022 09:53:47 -0600 Subject: [PATCH 1/7] Update version for release (#236) --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 7457fda..52ce2d4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bnc-notify", - "version": "1.9.4-0.0.1", + "version": "1.9.5", "description": "Show web3 users realtime transaction notifications", "keywords": [ "ethereum", From 63c8030b7c411c89534a5dbe266750fa71c79aa4 Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Mon, 24 Oct 2022 14:50:15 -0600 Subject: [PATCH 2/7] [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 --- 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..9b3d6c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bnc-notify", - "version": "1.9.5", + "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' 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 683410b3170c4726d272fdebe4fb5a56048bcc4c Mon Sep 17 00:00:00 2001 From: Adam Carpenter Date: Mon, 24 Oct 2022 15:25:24 -0600 Subject: [PATCH 3/7] Bump version for release --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 9b3d6c6..2a38dc5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bnc-notify", - "version": "1.9.5-0.0.1", + "version": "1.9.6", "description": "Show web3 users realtime transaction notifications", "keywords": [ "ethereum", From 737b352a8e9f4d71edf369c3e0ff73ec5c928e31 Mon Sep 17 00:00:00 2001 From: Aaron Date: Fri, 2 Dec 2022 10:58:02 +1100 Subject: [PATCH 4/7] Update SDK (#242) --- package.json | 4 ++-- src/interfaces.ts | 7 +++---- src/notify.ts | 3 +-- yarn.lock | 14 ++++++++++---- 4 files changed, 16 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 2a38dc5..ec61d2a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bnc-notify", - "version": "1.9.6", + "version": "1.9.6-0.0.1", "description": "Show web3 users realtime transaction notifications", "keywords": [ "ethereum", @@ -50,7 +50,7 @@ }, "dependencies": { "bignumber.js": "^9.0.0", - "bnc-sdk": "4.1.0", + "bnc-sdk": "4.6.3", "lodash.debounce": "^4.0.8", "regenerator-runtime": "^0.13.3", "uuid": "^3.3.3" diff --git a/src/interfaces.ts b/src/interfaces.ts index a39dd9a..3fd4bf8 100644 --- a/src/interfaces.ts +++ b/src/interfaces.ts @@ -2,8 +2,9 @@ import type { BitcoinTransactionLog, EthereumTransactionLog, SDKError, - TransactionHandler -} from 'bnc-sdk/dist/types/src/interfaces' + TransactionHandler, + System +} from 'bnc-sdk' export interface InitOptions extends ConfigOptions { dappId?: string @@ -20,8 +21,6 @@ export interface TransactionEvent { transaction: TransactionData } -export type System = 'bitcoin' | 'ethereum' - export type TransactionEventCode = | 'txSent' | 'txPool' diff --git a/src/notify.ts b/src/notify.ts index 4ca8447..f48be56 100644 --- a/src/notify.ts +++ b/src/notify.ts @@ -1,6 +1,6 @@ import 'regenerator-runtime/runtime' import BlocknativeSdk from 'bnc-sdk' -import type { TransactionHandler } from 'bnc-sdk/dist/types/src/interfaces' +import type { TransactionHandler } from 'bnc-sdk' import { get } from 'svelte/store' import uuid from 'uuid/v4' @@ -27,7 +27,6 @@ import type { export { InitOptions, TransactionEvent, - System, TransactionEventCode, TransactionData, NotificationType, diff --git a/yarn.lock b/yarn.lock index 315e361..1e55c27 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2175,12 +2175,13 @@ binary-extensions@^2.0.0: resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.1.0.tgz#30fa40c9e7fe07dbc895678cd287024dea241dd9" integrity sha512-1Yj8h9Q+QDF5FzhMs/c9+6UntbD5MkRfRwac8DoEm9ZfUBZ7tZ55YcGVAzEe4bXsdQHEk+s9S5wsOKVdZrw0tQ== -bnc-sdk@4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/bnc-sdk/-/bnc-sdk-4.1.0.tgz#b7bd280a2e0d218b003ed9d227bcc36593bd6f04" - integrity sha512-gbW5wRLPB7HDzXof5VrkFSDoyfuD2O9K8dOTRQl2OE/HAj3/epKyccQDtWNLNih7t234VM/sv9t6nxqRnNRJmQ== +bnc-sdk@4.6.3: + version "4.6.3" + resolved "https://registry.yarnpkg.com/bnc-sdk/-/bnc-sdk-4.6.3.tgz#c852f091a5e84bb77864543b0775b35ebdbb1724" + integrity sha512-rva+LyJuAm+U6xwZYqlsDxKaMy3EpHBqkOL93UDih7iwXDYnUr87n27pnGCw3B8xRBeRhCBC/VZMuzRFeea/Hw== dependencies: crypto-es "^1.2.2" + nanoid "^3.3.1" rxjs "^6.6.3" sturdy-websocket "^0.1.12" @@ -3510,6 +3511,11 @@ ms@^2.1.1: resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== +nanoid@^3.3.1: + version "3.3.4" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab" + integrity sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw== + nanomatch@^1.2.9: version "1.2.13" resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" From 692bdea41b005264b27d2d862d71161e77c36ea8 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 2 Dec 2022 11:02:45 +1100 Subject: [PATCH 5/7] Bump svelte from 3.24.0 to 3.49.0 (#238) * 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 * Bump svelte from 3.24.0 to 3.49.0 Bumps [svelte](https://github.com/sveltejs/svelte) from 3.24.0 to 3.49.0. - [Release notes](https://github.com/sveltejs/svelte/releases) - [Changelog](https://github.com/sveltejs/svelte/blob/master/CHANGELOG.md) - [Commits](https://github.com/sveltejs/svelte/compare/v3.24.0...v3.49.0) --- updated-dependencies: - dependency-name: svelte dependency-type: direct:development ... Signed-off-by: dependabot[bot] Signed-off-by: dependabot[bot] Co-authored-by: Adam Carpenter Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Aaron --- package.json | 2 +- yarn.lock | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index ec61d2a..4ff69b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bnc-notify", - "version": "1.9.6-0.0.1", + "version": "1.9.6-0.0.2", "description": "Show web3 users realtime transaction notifications", "keywords": [ "ethereum", diff --git a/yarn.lock b/yarn.lock index 1e55c27..68d84c3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4271,11 +4271,16 @@ svelte2tsx@*: dedent-js "^1.0.1" pascal-case "^3.1.1" -svelte@3.24.0, svelte@^3.12.1: +svelte@3.24.0: version "3.24.0" resolved "https://registry.yarnpkg.com/svelte/-/svelte-3.24.0.tgz#6565a42c9705796fa66c6abb4fedc09f4323a4a8" integrity sha512-VFXom6EP2DK83kxy4ZlBbaZklSbZIrpNH3oNXlPYHJUuW4q1OuAr3ZoYbfIVTVYPDgrI7Yq0gQcOhDlAtO4qfw== +svelte@^3.12.1: + version "3.49.0" + resolved "https://registry.yarnpkg.com/svelte/-/svelte-3.49.0.tgz#5baee3c672306de1070c3b7888fc2204e36a4029" + integrity sha512-+lmjic1pApJWDfPCpUUTc1m8azDqYCG1JN9YEngrx/hUyIcFJo6VZhj0A1Ai0wqoHcEIuQy+e9tk+4uDgdtsFA== + table@^6.0.9: version "6.7.1" resolved "https://registry.yarnpkg.com/table/-/table-6.7.1.tgz#ee05592b7143831a8c94f3cee6aae4c1ccef33e2" From 3ca2b8074b42ea1a896c66c07b63c38c2b0cf1d6 Mon Sep 17 00:00:00 2001 From: Aaron Date: Fri, 2 Dec 2022 11:04:35 +1100 Subject: [PATCH 6/7] 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 7/7] 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"