
Security News
AGENTS.md Gains Traction as an Open Format for AI Coding Agents
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
@looksrare/contracts-exchange-v2
Advanced tools
LooksRare exchange protocol smart contracts (v2)
This project contains core smart contracts used for the LooksRare exchange protocol ("v2").
It also contains a peripheral contract (OrderValidatorV2A
) that is used to verify the validity of (maker) orders.
# Yarn
yarn add @looksrare/contracts-exchange-v2
# NPM
npm install @looksrare/contracts-exchange-v2
Network | LooksRareProtocol | TransferManager | OrderV2AValidator |
---|---|---|---|
Ethereum | 0x0000000000E655fAe4d56241588680F86E3b2377 | 0x000000000060C4Ca14CfC4325359062ace33Fe3D | 0x2a784a5b5C8AE0bd738FBc67E4C069dB4F4961B7 |
Goerli | 0x35C2215F2FFe8917B06454eEEaba189877F200cf | 0xC20E0CeAD98abBBEb626B77efb8Dc1E5D781f90c | 0x7454Cc9AEB024bcE6A2CDC49ad4733B4D8215fb8 |
The NPM package contains the following:
ABIs are also distributed in the @looksrare/sdk-v2
package.
The documentation for the exchange smart contracts will be available here.
yarn
forge update
git submodule update
It is a hybrid Hardhat repo that also requires Foundry to run Solidity tests powered by the ds-test library.
To install Foundry, please follow the instructions here.
foundry
folder in the test
folder at the root of the repo.forge build
forge test
forge test -vv
forge tree
npx eslint '**/*.{js,ts}'
npx eslint '**/*.{js,ts}' --fix
npx prettier '**/*.{json,sol,md}' --check
npx prettier '**/*.{json,sol,md}' --write
npx solhint 'contracts/**/*.sol'
npx solhint 'contracts/**/*.sol' --fix
It is required to install lcov.
brew install lcov
To run the coverage report, the below command can be executed.
forge coverage --report lcov
LCOV_EXCLUDE=("test/*" "contracts/libraries/*" "contracts/helpers/ProtocolHelpers.sol")
echo $LCOV_EXCLUDE | xargs lcov --output-file lcov-filtered.info --remove lcov.info
genhtml lcov-filtered.info --output-directory out
open out/index.html
FAQs
LooksRare exchange protocol smart contracts (v2)
The npm package @looksrare/contracts-exchange-v2 receives a total of 1 weekly downloads. As such, @looksrare/contracts-exchange-v2 popularity was classified as not popular.
We found that @looksrare/contracts-exchange-v2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.