Security News
Opengrep Emerges as Open Source Alternative Amid Semgrep Licensing Controversy
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
@near-wallet-selector/ledger
Advanced tools
This is the [Ledger](https://www.ledger.com/) package for NEAR Wallet Selector.
This is the Ledger package for NEAR Wallet Selector.
The easiest way to use this package is to install it from the NPM registry:
# Using Yarn
yarn add @near-wallet-selector/ledger
# Using NPM.
npm install @near-wallet-selector/ledger
Then use it in your dApp:
import NearWalletSelector from "@near-wallet-selector/core";
import { setupLedger } from "@near-wallet-selector/ledger";
// Ledger for Wallet Selector can be setup without any params or it can take one optional param.
const ledger = setupLedger({
iconUrl: "https://yourdomain.com/yourwallet-icon.png"
});
const selector = await NearWalletSelector.init({
network: "testnet",
contractId: "guest-book.testnet",
wallets: [ledger],
});
iconUrl
: (string?
): Image URL for the icon shown in the modal. This can also be a relative path or base64 encoded image. Defaults to ./assets/ledger-icon.png
.Assets such as icons can be found in the /assets
directory of the package. Below is an example using Webpack:
import { setupLedger } from "@near-wallet-selector/ledger";
import ledgerIconUrl from "@near-wallet-selector/ledger/assets/ledger-icon.png";
const ledger = setupLedger({
iconUrl: ledgerIconUrl
});
This repository is distributed under the terms of both the MIT license and the Apache License (Version 2.0).
FAQs
Ledger package for NEAR Wallet Selector.
The npm package @near-wallet-selector/ledger receives a total of 797 weekly downloads. As such, @near-wallet-selector/ledger popularity was classified as not popular.
We found that @near-wallet-selector/ledger demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 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
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.