
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@ddn/asset-aob
Advanced tools
AoB,链上资产,是使用DDN区块链发行新资产的方法。
交易体创建方法:
ddnJS.assetPlugin.createPluginAsset(trsType, assetInfo, secret, secondSecret)
参数:
trsType: 创建交易的类型
assetInfo: 创建交易的具体内容
secret: 账号的密码
secondSecret: 二级密码;(可不传)
返回:
创建成功的交易体对象
注册发行商
trsType: 60
assetInfo: {
name: "DDD", // 资产名
desc: "J G V", // 资产简介
issuer_id: node.Eaccount.address, // 资产创建者地址(账号)
fee: '10000000000', // 手续费
}
注册资产
trsType: 61
assetInfo: {
name: "DDD.NCR", // 币种名称
desc: "DDD新币种", // 币种简介
maximum: "100000000", // 发行量(最大值)
precision: 2, // 精度
strategy: '', // 策略
allow_blacklist: '0', // 黑名单
allow_whitelist: '0', // 白名单
allow_writeoff: '0', // 是否允许注销
fee: '50000000000' // 手续费
}
发行资产
trsType: 64
assetInfo: {
currency: "DDD.NCR", // 币种
aobAmount: "100000", // 发行量(字符串)
fee: "10000000" //手续费
}
交易对应资产
trsType: 65
assetInfo: {
receive_address: "xxxxxxxxx", // 接受者地址
currency: "DDD.NCR", // 币种
aobAmount: "10", // 转账金额
message: '测试转账' // 附加信息,可选
}
设置资产参数
trsType: 62
assetInfo: {
currency: "DDN.NCR", //币种
flag_type: 1, //参数设置对象(1:黑白名单设置,2:是否注销设置)
flag: 1 //参数值:flag_type=1(0:黑名单,1:白名单,2:默认),flag_type=2(0:默认,1:注销)
}
设置黑白名但列表
trsType: 63
assetInfo: {
currency: "DDN.NCR", //币种
flag: 1, //设置类型(0:黑名单,1:白名单)
operator: "+", //操作(+:增加,-:删除)
list: "xxxxxxxxxxxxxxxxx, yyyyyyyyyyyyyyyyyy" //黑白名单具体列表内容,多个逗号分隔
}
FAQs
DDN asset on blockchain
The npm package @ddn/asset-aob receives a total of 56 weekly downloads. As such, @ddn/asset-aob popularity was classified as not popular.
We found that @ddn/asset-aob demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.