
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
@ddn/asset-dapp
Advanced tools
交易体创建方法:
ddnJS.assetPlugin.createPluginAsset(trsType, assetInfo, secret, secondSecret)
参数:
trsType: 创建交易的类型
assetInfo: 创建交易的具体内容
secret: 账号的密码
secondSecret: 二级密码;(可不传)
返回:
创建成功的交易体对象
##一:Dapp
注册Dapp
trsType: 11
assetInfo: {
name: DappName, //Dapp名称
type: node.DappType.DAPP, //Dapp类型
category: node.randomProperty(node.DappCategory), //Dapp分类
link: dappDemo.link, //Dapp程序包链接
description: "A dapp added via API autotest", //描述
tags: "handy dizzy pear airplane alike wonder nifty curve young probable tart concentrate", //标签,空格分隔
icon: dappDemo.icon, //Dapp Logo链接
delegates: delegates.join(","), //Dapp 受托人公钥串,多个用逗号分隔
unlock_delegates: 3 //转出操作需要的最小受托人确认数
}
##二:inTransfer
向Dapp内转账
trsType: 12
assetInfo: {
dapp_id: "f90e1f741168106f3bbd76e5eea6aa47d725d1e9b78e2ad6f043d0719881ba22", //Dapp Id
currency: "DDN", //要转入的币种
amount: "100000000" //要转入的金额
}
##三:outTransfer
从Dapp向外转账
trsType: 13
assetInfo: {
recipientId: , //转账接收账户地址
dapp_id: "f90e1f741168106f3bbd76e5eea6aa47d725d1e9b78e2ad6f043d0719881ba22", //Dapp Id
currency: "DDN", //要转出的币种
aobAmount: "10000000" //要转出的金额,
signatures: [ //受托人签名数组,通过方法await node.ddn.transfer.signOutTransfer(trs, delegatePassword)获得
"xxxxxxxxxxxxxxxxxxxxxxx",
"yyyyyyyyyyyyyyyyyyyyyyy",
"zzzzzzzzzzzzzzzzzzzzzzz"
]
}
有关Dapp相关信息请查看ddn-docs项目的Dapp部分
FAQs
this is asset-dapp package
The npm package @ddn/asset-dapp receives a total of 58 weekly downloads. As such, @ddn/asset-dapp popularity was classified as not popular.
We found that @ddn/asset-dapp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.