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

aastar-sdk

v0.3.0

Published

<p align="left"> <img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT" style="display:inline-block; margin-right: 10px;" /> <img src="https://img.shields.io/badge/TypeScript-5.0-blue" alt="TypeScript" style="display:inline-

Readme

AAStar SDK (Mycelium Network)

Comprehensive Account Abstraction Infrastructure SDK - Powering the Mycelium Network 完整的账户抽象基础设施 SDK - 为 Mycelium 网络提供动力


📚 Contents / 目录


Introduction / 简介

AAStar SDK is a high-integration toolkit for the Mycelium network. We've refactored 17 fragmented modules into 7 professional core packages, providing a unified, high-performance, and easy-to-maintain development experience.

AAStar SDK 是 Mycelium 网络的高集成度开发工具包。我们将原有的 17 个碎片化模块重构为 7 个专业核心包,旨在提供统一、高性能且易于维护的开发体验。

Core Features / 核心特性

  • Role-Based Clients: Specific APIs for End Users, Communities, Operators, and Admins. (角色化客户端)
  • Infrastructure Ready: Deep integration with SuperPaymaster and EOA Bridge. (基础设施就绪)
  • Seamless User Experience: Gasless transactions via community credit system. (无感交互体验)
  • DVT Security Module: Decentralized verification and aggregate signatures. (DVT 安全模块)
  • Scientific Reproducibility: Version-locked for academic research. (科学可复现)

SDK v2 Architecture / 架构设计

AAStar SDK v2 采用 「装饰器 (Actions-Decorator)」 模式。它将低层次的合约交互与高层次的业务逻辑解耦,为生态系统中的四种角色提供专属的 Client 封装。

| Client / 客户端 | Targeted Developer / 目标开发者 | Core Responsibility / 核心职责 | | :--- | :--- | :--- | | EndUserClient | dApp Developer | Gasless UX, Smart Account management, Credit queries | | CommunityClient | Community/DAO Admin | Auto-onboarding, xPNTs deployment, SBT & Reputation | | OperatorClient | Node/Operator | SuperPaymaster registration, Staking, Pool management | | AdminClient | Protocol Admin | DVT aggregations, Slashing, Global parameters |


Installation / 安装

pnpm install @aastar/sdk @aastar/core viem

Quick Start / 快速开始

End User Gasless Transaction / 终端用户 Gasless 流程

import { createEndUserClient } from '@aastar/sdk';

const user = createEndUserClient({ 
  account, 
  paymasterUrl: 'https://paymaster.aastar.io' 
});

// Send sponsored transaction / 使用社区信用代付 Gas
await user.sendGaslessTransaction({
  to: TARGET_ADDR,
  data: CALL_DATA
});

Testing Commands / 测试命令

SDK Regression (Using SDK Clients)

pnpm run test:full_sdk

Full Protocol Regression (Anvil Dedicated)

pnpm run test:full_anvil

Development Workflow / 开发者工作流

A step-by-step guide for contributors from contract modification to Sepolia deployment.

Step 1: Modify Contracts / 修改合约

Edit Solidity files in superpaymaster/contracts/src.

cd projects/SuperPaymaster
# Edit .sol files...

Step 2: Local Build & Deploy (Anvil) / 本地构建与部署

Auto-start Anvil, compile contracts, deploy, and sync config to SDK.

cd projects/aastar-sdk
# Runs Anvil + Deploy + Sync .env.anvil
./run_full_regression.sh --env anvil

Step 3: Run Local Tests / 运行本地测试

Validate your changes with the full regression suite.

# Run all SDK & Protocol tests
./run_sdk_regression.sh

Step 4: Deploy to Sepolia / 部署至 Sepolia

  1. Configure aastar-sdk/.env.sepolia with ADMIN_KEY and SEPOLIA_RPC_URL.
  2. Run the deployment script (with resume capability).
cd projects/SuperPaymaster/contracts
# Deploy Core + Modules
export $(grep -v '^#' ../../aastar-sdk/.env.sepolia | xargs) && \
export PRIVATE_KEY=$ADMIN_KEY && \
forge script script/DeployV3FullSepolia.s.sol \
  --rpc-url $SEPOLIA_RPC_URL \
  --broadcast --verify --slow --resume
  1. Update aastar-sdk/.env.sepolia with new contract addresses from script/v3/config.json.

Step 5: Verify on Sepolia / Sepolia 验证

Run the regression suite against the live testnet.

cd projects/aastar-sdk
./run_full_regression.sh --env sepolia

Academic Research / 学术研究

The SDK supports doctoral data collection for the SuperPaymaster paper. Official experiment logger is available at scripts/19_sdk_experiment_runner.ts.

本 SDK 支撑了 SuperPaymaster 论文的博士实验数据采集。官方实验记录器位于 scripts/19_sdk_experiment_runner.ts


Support / 支援

MIT © AAStar Community