
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@swapica/core-contracts
Advanced tools
This repository contains Swapica core contracts. All contracts are managed and indexed by backend services using modified EIP-191 standard signatures.
./contracts/core/Swapica.sol
Swapica contract, which allows creating, executing, and canceling orders and matches../contracts/relayer/Relayer.sol
Relayer contract that facilitates the orders matching by executing executeOrder and executeMatch methods on the Swapica contract. The Relayer is optional, and it charges set fees from users for this service.$ npm install @swapica/core-contracts
$ npm run test
To deploy contracts, first configure ./.env
based on the ./.env.example
file. After that, you can run the migration script with the desired network (see ./package.json
scripts):
$ npm run deploy-sepolia
Once the npm package is installed, one can use the swapica core contracts just like that:
pragma solidity ^0.8.19;
import "@swapica/core-contracts/interfaces/core/ISwapica.sol";
contract ExampleContract {
function getLatestOrder(address swapica) external view returns (ISwapica.Order memory order) {
uint256 ordersLength = ISwapica(swapica).getUserOrdersLength(msg.sender);
require(ordersLength > 0, "ExampleContract: no orders");
return ISwapica(swapica).getUserOrders(msg.sender, ordersLength - 1, 1)[0];
}
}
FAQs
Cross-chain atomic swaps
We found that @swapica/core-contracts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.