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

@beclab/did-contract-developer-components

v0.1.1

Published

DID Contract Developer Components with CLI tool

Readme

DID Contract Developer Components

介绍

did-contract-developer-components 是一个用来和 Olares ID 合约交互的 SDK 库和 CLI 工具.

快速开始

作为 CLI 工具

npm install -g @beclab/did-contract-developer-components

## 在测试网查询 olares id 信息
did-cli fetch tw7613781.olares.com

## 在主网查询 olares id 信息
did-cli fetch pengpeng8.olares.com --network mainnet

作为 SDK 使用

npm install @beclab/did-contract-developer-components

参考 examples 目录


贡献指南

欢迎为本项目贡献代码!在提交 PR 之前,你可以通过以下方式在本地测试你的修改:

环境准备

# 克隆仓库并安装依赖
git clone https://github.com/beclab/did-system.git
cd did-system/packages/did-contract-developer-components
npm install

测试方式 1:通过 CLI 调试

修改代码后,可以通过 CLI 工具测试你的改动:

# 编译代码
npm run build

# 将本地版本链接到全局
npm link

# 测试 CLI 功能
did-cli fetch tw7613781.olares.com
did-cli fetch pengpeng8.olares.com --network mainnet

测试方式 2:通过示例代码调试

也可以通过运行 examples 目录中的示例代码来测试:

# 编译代码
npm run build

# 运行示例
npx ts-node ./examples/index.ts

# 或运行其他示例
npx ts-node ./examples/legacy.ts

完成测试后,欢迎提交 Pull Request!


网络配置

Sepolia 测试网(默认)

  • RPC: https://sepolia.optimism.io
  • DID Contract: 0xe2D7c3a9013960E04d4E9F5F9B63fff37eEd97A8
  • Root Resolver: 0xeF727cb066Fee98F88Db84555830063b4A24ddfc
  • ABI Type: 0x7386fCBae6Ad4CCE1499d9153D99bc950B589718

主网

  • RPC: https://optimism-rpc.publicnode.com
  • DID Contract: 0x5DA4Fa8E567d86e52Ef8Da860de1be8f54cae97D
  • Root Resolver: 0xE2EABA0979277A90511F8873ae1e8cA26B54E740
  • ABI Type: 0x9ae3F16bD99294Af1784beB1a0A5C84bf2636365