
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@ruleos/core-engine-sdk
Advanced tools
npm install @ruleos/core-engine-sdk
import { Engine, PCluster, Helper, HANDLER_CMD, loadEngine } from "@ruleos/core-engine-sdk";
import { ethers } from "ethers";
let [signer] = await ethers.getSigners();
// initialize the SDK
let contracts = await loadEngine();
const engine = await Engine.create(signer, contracts);
// create cluster from protocolJson
let protocolJson = { /*...*/ };
let pCluster = PCluster.load(protocolJson);
let cluster = pCluster.toCluster();
// register cluster
let eventCluster = await engine.regRule(cluster);
// input for rule
let inTokenList: Token[] = [
Token.newERC20("erc20.address", "5000000000000000000")
];
let eventTask = await engine.input(eventCluster.clusterId, 0, 1, 1, 0, 10000, inTokenList, []);
// execute
eventTask = await engine.execute(eventTask.taskId, Helper.rlp([HANDLER_CMD.EXECUTE]), [0]);
FAQs
```shell npm install @ruleos/core-engine-sdk ```
We found that @ruleos/core-engine-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.