From c9346e6ba681c5925613b91f736225b7407b7467 Mon Sep 17 00:00:00 2001 From: Evgeny Boxer Date: Fri, 27 Aug 2021 11:10:12 +1000 Subject: [PATCH] feat: update bnc-sdk to latest and add Polygon support for useBlocknative composable --- package-lock.json | 18 ++++++++---------- package.json | 2 +- src/composables/useBlocknative.ts | 9 ++++++++- 3 files changed, 17 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9d2bf3cb99..dec7ab5c94 100644 --- a/package-lock.json +++ b/package-lock.json @@ -32,7 +32,7 @@ "animejs": "^3.2.1", "autoprefixer": "^9.8.6", "axios": "0.21.1", - "bnc-sdk": "^3.4.1", + "bnc-sdk": "^3.5.0", "date-fns": "^2.21.1", "echarts": "^5.1.0", "ethereumjs-util": "^7.0.7", @@ -10782,9 +10782,10 @@ "license": "MIT" }, "node_modules/bnc-sdk": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/bnc-sdk/-/bnc-sdk-3.4.1.tgz", - "integrity": "sha512-GrZzN3zyqVOmtk++tvq/X1zchO+Bt9TIzw39xv7UkMLEUcs43pwj6XWphLRbqkrrILNSrLwOI0S8opyjffDFAA==", + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/bnc-sdk/-/bnc-sdk-3.5.0.tgz", + "integrity": "sha512-4CSon8xRTjtD7YOUDJcyqZ/bKCNNwDc4sOPq6O19AlolYTsbbVvh+p5EOmYqL4Re30hI3lKQxN4sh12A6VnAPQ==", + "license": "MIT", "dependencies": { "crypto-es": "^1.2.2", "rxjs": "^6.6.3", @@ -33423,7 +33424,6 @@ "integrity": "sha512-IWnb10ImrzRMT2qw9785p3wYEI6U9gjsg6H2zKcRJQP5dEboqeX3OFjUKfXkaIWii4nz8MtJjBg5t4BdEYqLdw==", "dev": true, "requires": { - "@babel/core": "^7.12.10", "@babel/generator": "^7.12.11", "@babel/parser": "^7.12.11", "@babel/plugin-transform-react-jsx": "^7.12.12", @@ -36878,7 +36878,6 @@ "@vue/babel-preset-app": { "version": "4.5.12", "requires": { - "@babel/core": "^7.11.0", "@babel/helper-compilation-targets": "^7.9.6", "@babel/helper-module-imports": "^7.8.3", "@babel/plugin-proposal-class-properties": "^7.8.3", @@ -36891,7 +36890,6 @@ "@vue/babel-plugin-jsx": "^1.0.3", "@vue/babel-preset-jsx": "^1.2.4", "babel-plugin-dynamic-import-node": "^2.3.3", - "core-js": "^3.6.5", "core-js-compat": "^3.6.5", "semver": "^6.1.0" } @@ -38753,9 +38751,9 @@ "version": "4.12.0" }, "bnc-sdk": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/bnc-sdk/-/bnc-sdk-3.4.1.tgz", - "integrity": "sha512-GrZzN3zyqVOmtk++tvq/X1zchO+Bt9TIzw39xv7UkMLEUcs43pwj6XWphLRbqkrrILNSrLwOI0S8opyjffDFAA==", + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/bnc-sdk/-/bnc-sdk-3.5.0.tgz", + "integrity": "sha512-4CSon8xRTjtD7YOUDJcyqZ/bKCNNwDc4sOPq6O19AlolYTsbbVvh+p5EOmYqL4Re30hI3lKQxN4sh12A6VnAPQ==", "requires": { "crypto-es": "^1.2.2", "rxjs": "^6.6.3", diff --git a/package.json b/package.json index a4fbe63005..61cd3c3ac8 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "animejs": "^3.2.1", "autoprefixer": "^9.8.6", "axios": "0.21.1", - "bnc-sdk": "^3.4.1", + "bnc-sdk": "^3.5.0", "date-fns": "^2.21.1", "echarts": "^5.1.0", "ethereumjs-util": "^7.0.7", diff --git a/src/composables/useBlocknative.ts b/src/composables/useBlocknative.ts index 674f6d8be8..96f3ba1d6c 100644 --- a/src/composables/useBlocknative.ts +++ b/src/composables/useBlocknative.ts @@ -5,7 +5,14 @@ import { bnSdkSymbol } from '@/plugins/blocknative'; import { Network } from '@/constants/network'; import useWeb3 from '@/services/web3/useWeb3'; -const SUPPORTED_NETWORKS = [Network.MAINNET, Network.KOVAN]; +const SUPPORTED_NETWORKS = [ + Network.MAINNET, + Network.KOVAN, + Network.RINKEBY, + Network.ROPSTEN, + Network.GĂ–RLI, + Network.POLYGON +]; export default function useBlocknative() { const { appNetworkConfig } = useWeb3();