Socket
Book a DemoInstallSign in
Socket

@sonastream/core

Package Overview
Dependencies
Maintainers
5
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sonastream/core

A set of contracts for the sona protocol

0.0.23
latest
Source
npmnpm
Version published
Maintainers
5
Created
Source

Sona Protocol Solidity Version

Website | Documentation | Releases | Twitter

Table of Contents

Requirements

  • pnpm
  • Python3
  • pipx
  • Foundry | Or run ./foundry_install.sh
  • git
  • make
  • Slither
  • Solc 0.8.18
  • Rust
  • Solstat

Contracts

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

Getting Started

Installation

  • With git installed, run git clone https://github.com/sonastream/core.git
  • cd in to core
  • Run make install

Commands

To see all commands that can be run with make, check out the makefile command table

Headers

Testing

To run tests, run the command make test. To change the logs verbosity, update the makefile' command with less or more v

Coverage

To get the test coverage, run make cover

Environment

Fill in your .env at your root with:

MNEMONIC=
ETHERSCAN_KEY=
TREASURY=
REDISTRIBUTION=
AUTHORIZER=
RPC_URL_GOERLI=
RPC_URL_SEPOLIA=

Deploying

CommandEnvironment
make deploy_localLocal anvil (http://localhost:8546)
make deploy_sepoliaSepolia

Foundry and type definitions

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:

  • slitherConfig.json
  • .vscode/settings.json
  • remappings.txt

Analyzers

The repo comes with two static analyzers for checking for security vulnerabiltiies and gas optimizations

CommandEnvironment
make analyzeRuns solstat and outputs a report to reports/solstat_report.md
make secRuns slither and outputs a report to stdout

Maintainers

FAQs

Package last updated on 08 Mar 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.