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

@ddn/ddn-aob

v1.0.4

Published

这个是ddn链上资产包

Downloads

5

Readme

DDN链上资产包

交易体创建方法: ddnJS.assetPlugin.createPluginAsset(trsType, assetInfo, secret, secondSecret) 参数:   trsType: 创建交易的类型   assetInfo: 创建交易的具体内容   secret: 账号的密码   secondSecret: 二级密码;(可不传) 返回:   创建成功的交易体对象

一、issuer

注册发行商

trsType: 60
assetInfo: {  
              name: "DDD", // 资产名
              desc: "J G V", // 资产简介
              issuer_id: node.Eaccount.address, // 资产创建者地址(账号)
              fee: '10000000000', // 手续费
            }  

二、asset

注册资产

trsType: 61
assetInfo: {  
                name: "DDD.NCR", // 币种名称
                desc: "DDD新币种", // 币种简介
                maximum: "100000000", // 发行量(最大值)
                precision: 2, // 精度
                strategy: '', // 策略
                allow_blacklist: '0', // 黑名单
                allow_whitelist: '0', // 白名单
                allow_writeoff: '0', // 是否允许注销
                fee: '50000000000' // 手续费
            }  

三、issue

发行资产

trsType: 64
assetInfo: {  
                currency: "DDD.NCR", // 币种
                aobAmount: "100000", // 发行量(字符串)
                fee: "10000000" //手续费
            }

四、transfer

交易对应资产

trsType: 65
assetInfo: {  
                receive_address: "xxxxxxxxx", // 接受者地址
                currency: "DDD.NCR", // 币种
                aobAmount: "10", // 转账金额
                message: '测试转账' // 附加信息,可选
            }

五、setfalg

设置资产参数

trsType: 62
assetInfo: {
                currency: "DDN.NCR",    //币种
                flag_type: 1,   //参数设置对象(1:黑白名单设置,2:是否注销设置)
                flag: 1     //参数值:flag_type=1(0:黑名单,1:白名单,2:默认),flag_type=2(0:默认,1:注销)
           }

六、acl

设置黑白名但列表

trsType: 63
assetInfo: {
                currency: "DDN.NCR",    //币种
                flag: 1,    //设置类型(0:黑名单,1:白名单)
                operator: "+",  //操作(+:增加,-:删除)
                list: "xxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyy"   //黑白名单具体列表内容,多个逗号分隔
           }