
Security News
How Enterprise Security Is Adapting to AI-Accelerated Threats
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.
@phylax-systems/phylax-std
Advanced tools
The standard libary of Phylax, the easiest way to monitor smart contracts.
Phylax Standard Library is a collection of helpful contracts and libraries for use with Phylax. It provides a set of interfaces and contracts to interact with Phylax and Foundry.
forge install phylax-systems/phylax-std
yarn add @phylax-systems/phylax-std
and add the following remappings to your project by creating the remappings.txt.
forge-std/=node_modules/forge-std/src/
ds-test/=node_modules/ds-test/src/
Forking uses Foundry in the background, so you can follow the same best practices:
foundry.toml and use an alias in the contractsRead more in the Foundry Fork Testing Docs.
This is the main interface for interacting with Phylax. It enables the Phylax-only Foundry cheatcodes, such as ph.export(string,string).
This is the base contract for all Phylax alert contracts. It provides a constant reference to Phylax and RE-IMPORTS forge-std/Script.sol.
Read the docs at https://phylax-std.phylax.watch
import { Action } from "phylax-std/Action.sol";
contract PauseProtocol is Action {
function run() public {
// pause protocol
uint256 collateral_left = protocol.collateral_left();
ph.export("collateral_left", collateral_left);
}
}
This is the base contract for all Phylax alert contracts. It provides a constant reference to Phylax and RE-IMPORTS forge-std/Test.sol.
Read the docs at https://phylax-std.phylax.watch
import { Alert } from "phylax-std/Alert.sol";
contract CollateralAlert is Alert {
uint256 polygon;
uint256 ethereum;
uint256 BASELINE_BLOCK = 5000;
function setUp() public {
polygon = enableChain(<RPC_URL>);
ethereum = enableChain(<RPC_URL>, BASELINE_BLOCK);
}
function testCollateralPolygon() chain(polygon) public {
// ...
}
function testCollateralPolygonBaseline() chain(ethereum) public {
// ...
}
}
Phylax Standard Library is offered under either MIT or Apache 2.0.
FAQs
The standard libary of Phylax, the easiest way to monitor smart contracts.
The npm package @phylax-systems/phylax-std receives a total of 1 weekly downloads. As such, @phylax-systems/phylax-std popularity was classified as not popular.
We found that @phylax-systems/phylax-std 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
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.