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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@1trillionsecurity/institutional-smart-account

v1.0.15

Published

ERC-4337 compatible multi-level sequential approval system for institutional blockchain accounts

Downloads

1,705

Readme

Multi-Level Sequential Approval System

ERC-4337 compatible multi-level sequential approval system for institutional blockchain accounts with amount-based routing, dynamic quorum, time-locked progression, and veto capability.

Features

  • ERC-4337 Compatibility: Standard transaction format via EntryPoint
  • Amount-Based Routing: Different approval paths based on transaction amount
  • Dynamic Quorum: Per-level quorum requirements based on amount
  • Time-Locked Progression: Configurable timelocks between approval levels
  • Veto Capability: Any signer can deny a transaction at any level
  • Privacy-Preserving: Signers only see their level, not other levels
  • TypeScript SDK: Full-featured SDK for easy integration
  • Comprehensive Tests: Unit, integration, security, and ERC-4337 tests

Project Structure

implementation/
├── contracts/          # Smart contracts
│   ├── core/          # Main contracts
│   ├── interfaces/    # Contract interfaces
│   └── libraries/     # Utility libraries
├── test/              # Test suite
│   ├── unit/          # Unit tests
│   ├── integration/   # Integration tests
│   ├── 4337/          # ERC-4337 tests
│   ├── security/      # Security tests
│   └── helpers/       # Test utilities
├── sdk/               # TypeScript SDK
└── scripts/           # Deployment scripts

Prerequisites

  • Node.js 18.x or higher
  • npm

Installation

npm install

Usage

Compile Contracts

npm run compile

Run Tests

# Run all tests
npm test

# Run specific test suites
npm run test:unit
npm run test:integration
npm run test:4337
npm run test:security

Generate Coverage Report

npm run coverage

This generates a comprehensive coverage report for all Solidity contracts. The report includes:

  • Line coverage
  • Branch coverage
  • Function coverage
  • Statement coverage

Reports are generated in the coverage/ directory. Open coverage/index.html in a browser to view the detailed report.

Coverage Targets:

  • Line Coverage: 95%+
  • Branch Coverage: 90%+
  • Function Coverage: 100%
  • Critical Paths: 100%

Deploy Contracts

# Deploy to local network
npm run deploy:local

# Deploy to Sepolia testnet
npm run deploy:sepolia

Development

This project uses:

  • Hardhat for development environment
  • TypeScript for type safety
  • Ethers.js v6 for blockchain interaction
  • OpenZeppelin Contracts v5 for security
  • @account-abstraction/contracts for ERC-4337 support

SDK

A TypeScript SDK is included in the sdk/ directory. See SDK README for details.

Testing

# Run all tests
npm test

# Run specific test suites
npm run test:unit
npm run test:integration
npm run test:4337
npm run test:security

# Generate coverage report
npm run coverage

Deployment

# Deploy to local network
npm run deploy:local

# Deploy to Sepolia testnet
npm run deploy:sepolia

Documentation

Contracts

SDK

Testing

Other

License

MIT