Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@bifrost-finance/metamask-polkadot-adapter
Advanced tools
![](https://github.com/chainsafe/metamask-snap-polkadot/workflows/ci/badge.svg) ![](https://img.shields.io/github/license/chainsafe/metamask-snap-polkadot) ![](https://img.shields.io/badge/yarn-%3E%3D1.17.0-orange.svg?style=flat-square) ![Discord](https:/
Metamask <> Bifrost snap adapter is used to inject polkadot snap as web3 provider. It lists snap inside window.injectedWeb3[injectedSnapId]
(*) so it can be enabled using @polkadot/extension-dapp
package.
*injectedSnapId default is "metamask-bifrost-snap"
For more details on polkadot snap itself see snap repo or read full polkadot snap documentation.
function enablePolkadotSnap(
config?: SnapConfig,
snapOrigin?: string,
snapInstallationParams?: Record<SnapInstallationParamNames, unknown> = {}
): Promise<MetamaskPolkadotSnap>
function initPolkadotSnap(
{
config?: SnapConfig,
snapOrigin?: string,
snapInstallationParams?: Record<SnapInstallationParamNames, unknown> = {}
},
injectedSnapId?: string
): Promise<MetamaskPolkadotSnap>
By providing config
as argument it is possible to override default configurations.
Default config:
{
networkName: 'bifrostPolkadot'
}
Configuration structure is shown below.
SnapConfig {
networkName: SnapNetworks;
wsRpcUrl?: string;
addressPrefix?: number;
unit?: UnitConfiguration;
}
SnapNetworks = "bifrostPolkadot" | "bifrostKusama";
UnitConfiguration {
symbol: string;
decimals: number;
image?: string;
customViewUrl?: string;
}
FAQs
![](https://github.com/chainsafe/metamask-snap-polkadot/workflows/ci/badge.svg) ![](https://img.shields.io/github/license/chainsafe/metamask-snap-polkadot) ![](https://img.shields.io/badge/yarn-%3E%3D1.17.0-orange.svg?style=flat-square) ![Discord](https:/
The npm package @bifrost-finance/metamask-polkadot-adapter receives a total of 0 weekly downloads. As such, @bifrost-finance/metamask-polkadot-adapter popularity was classified as not popular.
We found that @bifrost-finance/metamask-polkadot-adapter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.