
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.
@xpla/contracts
Advanced tools
XPLA precompiled contract interfaces and types for Solidity projects.
forge install xpladev/xplajs
After installation, create or add to your project's remappings.txt
file:
@xpla/contracts/=lib/xplajs/contracts/
Note: You need to create this file in your Forge project root directory, not in this package.
npm install @xpla/contracts
# or
yarn add @xpla/contracts
import "@xpla/contracts/interfaces/IAuth.sol";
import "@xpla/contracts/common/Types.sol";
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// Import precompiled contract interfaces
import "@xpla/contracts/interfaces/IAuth.sol";
import "@xpla/contracts/interfaces/IBank.sol";
contract MyContract {
// Use the imported interfaces
IAuth public auth;
IBank public bank;
constructor() {
// Initialize with precompiled contract addresses using constants from interfaces
auth = IAuth(IAuth.AUTH_PRECOMPILE_ADDRESS);
bank = IBank(IBank.BANK_PRECOMPILE_ADDRESS);
}
function getAccountInfo(address user) external view returns (string memory) {
return auth.account(user);
}
function getBalance(address user) external view returns (uint256) {
return bank.balanceOf(user);
}
}
IAuth
- Authentication and account managementIBank
- Banking and token operationsIWasm
- CosmWasm contract supportStakingI
- Staking operationsDistributionI
- Distribution and rewardsIGov
- Governance operationsISlashing
- Slashing operationsBech32I
- Bech32 address encoding/decodingThe package includes common type definitions used across contracts:
common/Types.sol
- Shared types used across contractsutil/Types.sol
- Utility-specific typesMIT
FAQs
XPLA precompiled contract interfaces and types
We found that @xpla/contracts demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
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.