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

@ahumblebuilder/vincent-ability-stage-settlement

v0.0.1

Published

A Vincent ability that stages settlements with payment legs for escrow contracts.

Readme

Vincent Stage Settlement Ability

A Vincent/Lit Protocol ability for staging settlements with payment legs for escrow contracts.

Overview

This package provides a Vincent ability that allows third-party agents to stage settlements with multiple payment legs for escrow contracts. The staged settlements can later be executed by any authorized party within the specified validity window.

Features

  • Stage Settlements: Create staged settlements with multiple payment legs
  • Payment Legs: Support for native ETH and ERC-20 token payments
  • Validity Window: Configurable validity period (1 second to 30 days)
  • Validation: Comprehensive parameter validation
  • Policy Support: Integrates with Vincent policies for access control

Installation

npm install @lit-protocol/vincent-example-ability-stage-settlement

Usage

Basic Usage

import { vincentAbility } from '@lit-protocol/vincent-example-ability-stage-settlement';

// The ability is ready to be used with Vincent

Ability Parameters

The ability accepts the following parameters:

interface AbilityParams {
  escrow: string;           // Escrow contract address
  paymentLegs: PaymentLeg[]; // Array of payment legs
  validForSeconds: number;   // Validity period in seconds
  rpcUrl?: string;          // Optional RPC URL
}

interface PaymentLeg {
  to: string;              // Recipient address
  amount: string;         // Amount (in ETH for native, or token units)
  token?: string;          // Token address (optional, defaults to native ETH)
}

Example Payment Legs

const paymentLegs = [
  {
    to: "0x742d35Cc6634C0532925a3b8D4C9db96C4b4d8b6",
    amount: "1.5", // 1.5 ETH
    // token is optional for native ETH
  },
  {
    to: "0x8ba1f109551bD432803012645Hac136c",
    amount: "1000", // 1000 tokens
    token: "0xA0b86a33E6441b8C4C8C0C8C0C8C0C8C0C8C0C8C" // ERC-20 token address
  }
];

Contract Integration

This ability calls the stageSettlement function on your escrow contract:

function stageSettlement(
    address escrow,
    PaymentLeg[] calldata paymentLegs,
    uint256 validForSeconds
) external;

PaymentLeg Structure

struct PaymentLeg {
    address to;      // Recipient address
    uint256 amount; // Amount in wei
    address token;   // Token address (zero address for native ETH)
}

Vincent Integration

This ability integrates with the Vincent ecosystem:

  • Policies: Supports Vincent policies for access control
  • Delegation: Works with PKP (Programmable Key Pairs) delegation
  • Validation: Comprehensive pre-execution validation
  • Events: Emits SettlementStaged events

Development

Building

npm run build

Testing

npm test

License

MIT

Support

For issues and questions, please open an issue on the GitHub repository.