Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@arcblock/asset-factory
Advanced tools
Utility to create standard asset on forge powered blockchain
Utility to create standard assets that can be rendered in ABT Wallet
npm install @arcblock/asset-factory
// or
yarn add @arcblock/asset-factory
const ForgeSDK = require('@arcblock/forge-sdk');
const { AssetFactory, AssetIssuer } = require('@arcblock/asset-factory');
const wallet = ForgeSDK.Wallet.fromRandom();
const factory = new AssetFactory({
chainId: 'zinc-2019-05-17',
chainHost: 'https://zinc.abtnetwork.io/api',
wallet,
issuer: {
name: 'test case',
url: 'https://www.arcblock.io',
logo: 'https://www.arcblock.io/favicon.ico',
},
});
const [asset, hash] = await factory.createTicket({
backgroundUrl: 'https://www.arcblock.io',
data: {
name: '复仇者联盟4的电影票',
description: '单场次单人座',
location: '北京市朝阳区青年路朝阳大悦城万达影院',
startTime: Date.now(),
endTime: Date.now() + 24 * 60 * 60 * 1000,
host: new AssetIssuer({
wallet,
name: '万达影城',
logo: 'https://www.baidu.com',
url: 'https://www.baidu.com',
}),
},
});
For full documentation, checkout https://forge-js.netlify.com
FAQs
Utility to create standard asset on forge powered blockchain
We found that @arcblock/asset-factory demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.