Security News
Research
Supply Chain Attack on Rspack npm Packages Injects Cryptojacking Malware
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
cpchain-dapps-language-support
Advanced tools
This is supported for the CPChain DApps Language.
cdl
files
/**
* MetaToken Example
*/
// TODO xxx
// Test DApp
dapp MetaToken {
chain {
chain_id = 337
// Endpoint of the civilian
endpoint = "https://civilian.cpchain.io"
}
contract MetaToken {
address = "0x111"
// Transfer event
event Transfer {
from address
to address
value u256
a varchar(255)
}
when Transfer {
// ...
execute {
self.block.number
self.tx.from
self.event.to
}
}
}
// Account model,真实存储中,表名和字段名在前面加统一的下划线已
model Account {
account address pk
value u256
name varchar(255)
}
model Transaction {
from address
to address
value u256
}
when block {
}
// graphql query/mutation
api {
balance () {
}
}
cards {
card {
html = <div>
Hello world
</div>,
}
}
}
Enjoy!
FAQs
CPChain DApps Language Support
We found that cpchain-dapps-language-support demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
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.
Security News
Sonar’s acquisition of Tidelift highlights a growing industry shift toward sustainable open source funding, addressing maintainer burnout and critical software dependencies.