Skip to content

Commit

Permalink
Add support for BEP20 tokens (trustwallet#3787)
Browse files Browse the repository at this point in the history
* Update to use wallet core 2.2.9

* Add allowlist and denylist

* Create info.json

* Update info.json

updated BSC info.json

Co-authored-by: zachzwei <[email protected]>
  • Loading branch information
vikmeup and zachzwei authored Sep 4, 2020
1 parent 475b854 commit d1e4d59
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 8 deletions.
1 change: 1 addition & 0 deletions blockchains/bsc/allowlist.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
1 change: 1 addition & 0 deletions blockchains/bsc/denylist.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]
22 changes: 22 additions & 0 deletions blockchains/bsc/info/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "Smart Chain",
"website": "https://www.binance.org/en/smartChain",
"source_code": "https://github.com/binance-chain/whitepaper/blob/master/WHITEPAPER.md",
"white_paper": "https://dex-bin.bnbstatic.com/static/Whitepaper_%20Binance%20Smart%20Chain.pdf",
"short_description": "A Parallel Binance Chain to Enable Smart Contracts",
"description": "This dual-chain architecture will empower its users to build their decentralized apps and digital assets on one blockchain and take advantage of the fast trading to exchange on the other.",
"socials": [
{
"name": "Twitter",
"url": "https://twitter.com/binance_dex",
"handle": "binance_dex"
},
{
"name": "Reddit",
"url": "https://reddit.com/r/BinanceExchange",
"handle": "BinanceExchange"
}
],
"explorer": "https://bscscan.com",
"research": "https://docs.binance.org/smart-chain/guides/bsc-intro.html"
}
12 changes: 6 additions & 6 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 @@ -31,7 +31,7 @@
},
"homepage": "https://github.com/trustwallet/assets#readme",
"devDependencies": {
"@trustwallet/wallet-core": "^0.0.6",
"@trustwallet/wallet-core": "^2.2.9",
"@types/jest": "^25.2.3",
"@types/jest-expect-message": "^1.0.2",
"@types/node": "^13.13.14",
Expand Down
4 changes: 3 additions & 1 deletion script/common/blockchains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const Vechain = getChainName(CoinType.vechain);
export const Wanchain = getChainName(CoinType.wanchain);
export const Waves = getChainName(CoinType.waves);
export const Solana = getChainName(CoinType.solana);
export const SmartChain = getChainName(CoinType.bsc);

export const ethForkChains = [
Ethereum,
Expand All @@ -32,7 +33,8 @@ export const ethForkChains = [
TomoChain,
GoChain,
Wanchain,
ThunderCore
ThunderCore,
SmartChain,
];
export const stakingChains = [
Tezos,
Expand Down

0 comments on commit d1e4d59

Please sign in to comment.