Socket
Book a DemoInstallSign in
Socket

@perp/lugia-deployments

Package Overview
Dependencies
Maintainers
0
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@perp/lugia-deployments

Perpetual Protocol Lugia contract artifacts (ABIs) and deployed addresses

2024.9.25-1727250519929
latest
npmnpm
Version published
Weekly downloads
80
Maintainers
0
Weekly downloads
 
Created
Source

lugia-contract

Dependencies

We use Foundry to manage contract dependencies (actually, Foundry is using .gitmodules). However, we still add contract dependencies to package.json to get vulnerability alerts using Dependabot.

Therefore, please make sure you update both .gitmodules and package.json when changing contract dependencies.

Environment Variables

Make sure you have .env file at project root with the following variables:

OPTIMISM_WEB3_ENDPOINT_ARCHIVE // Optimism archive endpoint

Unit Tests

For unit tests, basically we follow the best practices of Foundry.

If you want to test a case that expecting a revert, add _reverts suffix to the function name, example:

function test_deposit_reverts() public {
    // ...
}

Git branch convention

If you are not sure when to merge into main, please reference the doc.

Commands

To install all dependencies:

 npm ci
 forge install

To compile contracts:

npm run build
# or
forge build

To run all tests:

npm run test
# or
forge test

FAQs

Package last updated on 25 Sep 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.