
Research
/Security News
npm Author Qix Compromised via Phishing Email in Major Supply Chain Attack
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
@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.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.