
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@sonastream/core
Advanced tools
contracts
├── SonaReserveAuction.sol
├── SonaRewardToken.sol
├── SonaRewards.sol
├── access
│ ├── SonaAdmin.sol
│ └── SonaMinter.sol
├── interfaces
│ ├── IRewardGateway.sol
│ ├── ISonaReserveAuction.sol
│ ├── ISonaRewardToken.sol
│ └── IWETH.sol
├── test
│ ├── SonaReserveAuction.t.sol
│ ├── SonaRewardToken.t.sol
│ ├── SonaRewards.t.sol
│ ├── Util.sol
│ ├── access
│ │ └── SonaAdmin.t.sol
│ └── mock
│ ├── ContractBidderMock.sol
│ ├── ERC20Mock.sol
│ └── Weth9Mock.sol
└── utils
├── AddressableTokenId.sol
└── ZeroCheck.sol
git clone https://github.com/sonastream/core.git
cd
in to core
make install
To see all commands that can be run with make
, check out the makefile command table
headers <insert-header>
To run tests, run the command make test
. To change the logs verbosity, update the makefile' command with less or more v
To get the test coverage, run make cover
Fill in your .env
at your root with:
MNEMONIC=
ETHERSCAN_KEY=
TREASURY=
REDISTRIBUTION=
AUTHORIZER=
RPC_URL_GOERLI=
RPC_URL_SEPOLIA=
Command | Environment |
---|---|
make deploy_local | Local anvil (http://localhost:8546) |
make deploy_sepolia | Sepolia |
When updating foundry modules, commit your changes locally and run forge install <package-name>
. Then, update the remappings across the following files to allow builds, security scanning and goto definitions to work properly:
The repo comes with two static analyzers for checking for security vulnerabiltiies and gas optimizations
Command | Environment |
---|---|
make analyze | Runs solstat and outputs a report to reports/solstat_report.md |
make sec | Runs slither and outputs a report to stdout |
FAQs
A set of contracts for the sona protocol
We found that @sonastream/core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.