Skip to content

Commit

Permalink
Merge pull request #185 from blocknative/release/1.6.0
Browse files Browse the repository at this point in the history
Release 1.6.0
  • Loading branch information
lnbc1QWFyb24 authored Apr 14, 2021
2 parents ce7d420 + 2ee86a2 commit 061b439
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 6 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bnc-notify",
"version": "1.5.1",
"version": "1.6.0",
"description": "Show web3 users realtime transaction notifications",
"keywords": [
"ethereum",
Expand Down Expand Up @@ -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"
Expand Down
6 changes: 6 additions & 0 deletions src/notify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/utilities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export function localNetwork(networkId: number) {
case 4:
case 5:
case 42:
case 56:
case 100:
return false
default:
Expand Down
16 changes: 12 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 061b439

Please sign in to comment.