Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
@xlabs-libs/wallet-aggregator-near
Advanced tools
Implements the base abstractions for the [Near](https://near.org/) blockchain.
Implements the base abstractions for the Near blockchain.
There are two methods of using this package. You may either use the NearModalSelectorWallet
class, which under the hood the wallet uses the @near-wallet-selector/core
and @near-wallet-selector/modal-ui
packages. Upon calling connect
, the wallet will create a modal and prompt the user to login through it. On the other hand, you can use the WrappedNearWallet
which allows programatically interacting with a single wallet; a utility function wrapWallet
is provided to help create them.
import { NearModalSelectorWallet } from "@xlabs-libs/wallet-aggregator-near";
import { setupDefaultWallets } from "@near-wallet-selector/default-wallets";
import { setupMyNearWallet } from "@near-wallet-selector/my-near-wallet";
import { setupNightly } from "@near-wallet-selector/nightly";
import { setupMeteorWallet } from "@near-wallet-selector/meteor-wallet";
import "@near-wallet-selector/modal-ui/styles.css";
const contractId = "contract.dapp.near";
const config = {
networkId: "mainnet",
keyStore: nearKeyStore,
nodeUrl: "https://rpc.mainnet.near.org",
walletUrl: "https://wallet.mainnet.near.org",
helperUrl: "https://helper.mainnet.near.org",
headers: {},
};
const wallet = new NearModalSelectorWallet({
config,
contractId,
modules: [
...(await setupDefaultWallets()),
setupMyNearWallet(),
setupNightly(),
setupMeteorWallet(),
],
});
await wallet.connect();
import { setupMeteorWallet } from "@near-wallet-selector/meteor-wallet";
import { setupSender } from "@near-wallet-selector/sender";
import "@near-wallet-selector/modal-ui/styles.css";
const contractId = "contract.dapp.near";
const config = {
networkId: "mainnet",
keyStore: nearKeyStore,
nodeUrl: "https://rpc.mainnet.near.org",
walletUrl: "https://wallet.mainnet.near.org",
helperUrl: "https://helper.mainnet.near.org",
headers: {},
};
const meteor = await wrapWallet({
config,
contractId,
factory: setupMeteorWallet(),
});
const sender = await wrapWallet({ config, contractId, factory: setupSender() });
await meteor.connect();
FAQs
Implements the base abstractions for the [Near](https://near.org/) blockchain.
We found that @xlabs-libs/wallet-aggregator-near demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.