-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'NickKelly1-devop/add-opbnb-network' into devop/release-…
…prep
- Loading branch information
Showing
8 changed files
with
39 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
packages/extension/src/providers/ethereum/networks/op-bnb.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { CoingeckoPlatform, NetworkNames } from "@enkryptcom/types"; | ||
import { EvmNetwork, EvmNetworkOptions } from "../types/evm-network"; | ||
import assetsInfoHandler from "@/providers/ethereum/libs/assets-handlers/assetinfo-mew"; | ||
import shNFTHandler from "@/libs/nft-handlers/simplehash"; | ||
|
||
const opBnbOptions: EvmNetworkOptions = { | ||
name: NetworkNames.OpBNB, | ||
name_long: "opBNB", | ||
homePage: "https://opbnb.bnbchain.org/en", | ||
blockExplorerTX: "https://opbnbscan.com/tx/[[txHash]]", | ||
blockExplorerAddr: "https://opbnbscan.com/address/[[address]]", | ||
chainID: "0xcc", | ||
isTestNetwork: false, | ||
currencyName: "BNB", | ||
currencyNameLong: "Binance Coin", | ||
node: "wss://opbnb-rpc.publicnode.com", | ||
icon: require("./icons/opbnb.png"), | ||
coingeckoID: "binancecoin", | ||
coingeckoPlatform: CoingeckoPlatform.OpBNB, | ||
assetsInfoHandler, | ||
NFTHandler: shNFTHandler, | ||
activityHandler: () => Promise.resolve([]), | ||
}; | ||
|
||
const op = new EvmNetwork(opBnbOptions); | ||
|
||
export default op; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c8a4319
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Virus total analysis
chrome:
https://www.virustotal.com/gui/file/2686799ceb8b8f5489f40bbc36dc0c14ebf080d7a87f984f69e17d9865f7e3c2
firefox:
https://www.virustotal.com/gui/file/4acbd4430fbd1945bd5a9ce0599b25aa55ec2f3192ded7e5d4a904c002e7f9af