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 🙏

© 2024 – Pkg Stats / Ryan Hefner

fibos-accounts

v1.0.2

Published

fibos-tracker accounts module

Downloads

5

Readme

fibos-accounts 模块

介绍

fibos-accounts 模块,依赖于 fibos-tracker 模块,存储 FIBOS、EOS 链上所有的账户信息,包括链上账户、账户对应公钥。依赖于 fib-app 框架和默认 model 定义,可以快速部署属于自己的区块链账户系统服务。

安装

npm install fibos-accounts

使用

...
const Tracker = require("fibos-tracker");

Tracker.Config.DBconnString = "sqlite:./chain.db";

const tracker = new Tracker();
tracker.use(require("fibos-accounts"));
...

实例代码

更新说明

v1.0.2 版本说明: 新增对用户「历史权限」存储,可以查询用户指定时间内的公钥信息

默认表结构定义

数据模型

fibos_accounts 表

| 字段 | 类型 | 说明 | | --- | --- | --- | | id | String | 账户名 | | creator_id | int | 账户创建者关联 id | | created | Date | 账户创建日期 | | createdAt | Date | Mysql 插入时间 | | updatedAt | Date | Mysql 更新时间 |

fibos_permissions 表

| 字段 | 类型 | 说明 | | --- | --- | --- | | pub_key | String | 公钥 | | permission | String | 权限名 | | account_id | int | 关联账户名 | | start_time | Date | 公钥生效时间 | | expire_time | Date | 公钥失效时间 | | createdAt | Date | Mysql 插入时间 | | updatedAt | Date | Mysql 更新时间 |