Skip to content

Commit

Permalink
Add bsc node
Browse files Browse the repository at this point in the history
  • Loading branch information
gamalielhere committed Oct 21, 2020
1 parent 8611754 commit f10927f
Show file tree
Hide file tree
Showing 7 changed files with 145 additions and 18 deletions.
2 changes: 1 addition & 1 deletion fetchLists/lists/contracts.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion fetchLists/lists/tokens.json

Large diffs are not rendered by default.

128 changes: 114 additions & 14 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 @@ -139,7 +139,7 @@
"postcss-url": "8.0.0",
"prettier": "2.1.2",
"raw-loader": "4.0.2",
"remark-cli": "8.0.1",
"remark-cli": "9.0.0",
"remark-preset-lint-recommended": "5.0.0",
"rskjs-util": "1.0.3",
"sass-loader": "10.0.3",
Expand Down
10 changes: 10 additions & 0 deletions src/networks/nodes/bsc-mainnet.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { BSC } from '../types';
export default {
type: BSC,
service: 'bscscan.com',
url: 'https://bsc-dataseed1.binance.org',
port: 443,
auth: false,
username: '',
password: ''
};
16 changes: 16 additions & 0 deletions src/networks/types/BSC.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import tokens from '@/_generated/tokens/tokens-bsc.json';
import contracts from '@/_generated/contracts/contract-abi-bsc.json';
import bsc from '@/assets/images/icons/network.svg';

export default {
name: 'BSC',
name_long: 'Binane Smart Chain',
homePage: 'https://www.binance.org/en/smartChain',
blockExplorerTX: 'https://bscscan.com/tx/[[txHash]]',
blockExplorerAddr: 'https://bscscan.com/address/[[address]]',
chainID: 56,
tokens: tokens,
contracts: contracts,
icon: bsc,
currencyName: 'BNB'
};
3 changes: 2 additions & 1 deletion vueConfig/connections.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,6 @@ module.exports = [
'https://rpc.energyweb.org:443',
'https://s3.us-west-2.amazonaws.com:443/mew-ipfs-bucket',
'wss://www.walletlink.org:443',
'https://estimategas.mewapi.io:443'
'https://estimategas.mewapi.io:443',
'https://bsc-dataseed1.binance.org:443'
];

0 comments on commit f10927f

Please sign in to comment.