From 7eeaf207ca0e9191afd541932a64a5b26c861643 Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 14 Apr 2021 11:43:06 +1000 Subject: [PATCH 1/3] Update SDK --- package.json | 2 +- yarn.lock | 16 ++++++++++++---- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index f54af97..f1cdc4f 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ }, "dependencies": { "bignumber.js": "^9.0.0", - "bnc-sdk": "^2.1.5", + "bnc-sdk": "^3.3.0", "lodash.debounce": "^4.0.8", "regenerator-runtime": "^0.13.3", "uuid": "^3.3.3" diff --git a/yarn.lock b/yarn.lock index 80afc8d..f9f5332 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1274,12 +1274,13 @@ bindings@^1.5.0: dependencies: file-uri-to-path "1.0.0" -bnc-sdk@^2.1.5: - version "2.1.5" - resolved "https://registry.yarnpkg.com/bnc-sdk/-/bnc-sdk-2.1.5.tgz#7f40bcf98eb0238882f5436c0e860e60be2867c0" - integrity sha512-rtwOGKjal1LQyYrdESdOfCK5L2ocS3tjoWtNacm3rkb+xjDusVnUpF/NgudJpCnv3Mwu9YDWjsLKIPKjwbJL7A== +bnc-sdk@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/bnc-sdk/-/bnc-sdk-3.3.0.tgz#a690abe7570a43745936a308006fa52c1d806017" + integrity sha512-5MaL1uhKQn3dY3uBfW5HujXCS988/vMX0MY7LtkDjmA396a3DSbGcGySsHVsJZCBVopUupl0geI5w28+p8PG9g== dependencies: crypto-es "^1.2.2" + rxjs "^6.6.3" sturdy-websocket "^0.1.12" brace-expansion@^1.1.7: @@ -3057,6 +3058,13 @@ rxjs@^6.6.0: dependencies: tslib "^1.9.0" +rxjs@^6.6.3: + version "6.6.7" + resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.7.tgz#90ac018acabf491bf65044235d5863c4dab804c9" + integrity sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ== + dependencies: + tslib "^1.9.0" + safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.1.2" resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" From 9a5f176f3518542a3ee6d89701eb4b6df166068d Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 14 Apr 2021 11:57:57 +1000 Subject: [PATCH 2/3] Filter pending simulation events --- src/notify.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/notify.ts b/src/notify.ts index 6d9718a..89cbe14 100644 --- a/src/notify.ts +++ b/src/notify.ts @@ -96,6 +96,12 @@ function init(options: InitOptions): API { apiUrl, system }) + + // filter out pending simulation events + blocknative.configuration({ + scope: 'global', + filters: [{ status: 'pending-simulation', _not: true }] + }) } // save config to app store From a8e3df90848c6bea37ddfdd829f74284572a3fcb Mon Sep 17 00:00:00 2001 From: Aaron Date: Wed, 14 Apr 2021 12:52:36 +1000 Subject: [PATCH 3/3] Increment version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f1cdc4f..58e2b93 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bnc-notify", - "version": "1.5.1", + "version": "1.5.1-0.0.1", "description": "Show web3 users realtime transaction notifications", "keywords": [ "ethereum",