npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@lit-protocol/vincent-ability-debridge

v0.3.2

Published

Bridge tokens across multiple blockchains using the deBridge protocol. Supports native tokens and ERC-20 tokens with automatic quote fetching and gas estimation.

Readme

Vincent Ability deBridge

Bridge tokens across multiple blockchains using the deBridge protocol. Supports native tokens and ERC-20 tokens with automatic quote fetching and gas estimation.

Features

  • Cross-chain transfers between multiple EVM-compatible chains
  • Support for both native tokens (ETH, MATIC, etc.) and ERC-20 tokens
  • Automatic quote fetching from deBridge API
  • Gas estimation and fee calculation
  • Integrated with Vincent Ability SDK for secure execution

Installation

npm install @lit-protocol/vincent-ability-debridge

Usage

import { getVincentAbilityClient } from '@lit-protocol/vincent-app-sdk';
import { bundledVincentAbility as deBridgeAbility } from '@lit-protocol/vincent-ability-debridge';
import { ethers } from 'ethers';

// Initialize the ability client
const deBridgeClient = getVincentAbilityClient({
  bundledVincentAbility: deBridgeAbility,
  ethersSigner: yourSigner, // Your ethers signer
});

// Example: Bridge 0.1 ETH from Base to Arbitrum
const bridgeParams = {
  rpcUrl: 'https://base-mainnet.g.alchemy.com/v2/YOUR_KEY',
  sourceChain: '8453', // Base
  destinationChain: '42161', // Arbitrum
  sourceToken: '0x0000000000000000000000000000000000000000', // Native ETH
  destinationToken: '0x0000000000000000000000000000000000000000', // Native ETH
  amount: ethers.utils.parseEther('0.1').toString(), // 0.1 ETH in wei
  operation: 'BRIDGE',
  slippageBps: 100, // 1% slippage
};

// First run precheck
const precheckRes = await deBridgeClient.precheck(bridgeParams, {
  delegatorPkpEthAddress: pkpAddress,
});

if (precheckRes.success) {
  // Then execute
  const executeRes = await deBridgeClient.execute(bridgeParams, {
    delegatorPkpEthAddress: pkpAddress,
  });

  if (executeRes.success) {
    console.log('Transaction hash:', executeRes.result.data.txHash);
    console.log('Order ID:', executeRes.result.data.orderId);
  }
}

Supported Chains

  • Ethereum (1)
  • Polygon (137)
  • Arbitrum (42161)
  • Optimism (10)
  • Base (8453)
  • BSC (56)
  • Avalanche (43114)

Parameters

| Parameter | Type | Required | Description | | ------------------ | -------- | -------- | -------------------------------------------------------------------------- | | rpcUrl | string | ✅ | RPC URL for the source chain | | sourceChain | string | ✅ | Source chain ID (e.g., '1' for Ethereum, '8453' for Base) | | destinationChain | string | ✅ | Destination chain ID | | sourceToken | string | ✅ | Source token address (use zero address for native token) | | destinationToken | string | ✅ | Destination token address (use zero address for native token) | | amount | string | ✅ | Amount in base units (wei for ETH, smallest unit for tokens) | | operation | string | ✅ | BRIDGE for direct transfers, BRIDGE_AND_SWAP for cross-asset transfers | | slippageBps | number | ❌ | Slippage tolerance in basis points (default: 100 = 1%) |

⚠️ Important: The amount parameter must be in the token's smallest unit (e.g., wei for ETH).

Prerequisites

  • Node.js 16+ and npm/yarn
  • Sufficient token balance for the bridge amount + fees
  • Properly configured PKP wallet with required permissions
  • For ERC-20 tokens: Sufficient token allowance for the deBridge contract

Building

# Build the ability
npm run build

# Build all abilitys and policies
npm run vincent:build

Testing

# Run unit tests
npm test

# Run E2E tests
npm run test:e2e

Contributing

Contributions are welcome! Please see CONTRIBUTING.md for guidelines on how to contribute to this project.

License

This project is licensed under the MIT License - see the LICENSE file for details.