Skip to content

Commit

Permalink
feat: update bnc-sdk to latest and add Polygon support for useBlockna…
Browse files Browse the repository at this point in the history
…tive composable (#748)
  • Loading branch information
evgenyboxer authored Aug 27, 2021
1 parent 9a2e2c4 commit f7e68b4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 9 deletions.
15 changes: 8 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,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",
Expand Down
9 changes: 8 additions & 1 deletion src/composables/useBlocknative.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

4 comments on commit f7e68b4

@vercel
Copy link

@vercel vercel bot commented on f7e68b4 Aug 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on f7e68b4 Aug 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on f7e68b4 Aug 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on f7e68b4 Aug 27, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.