
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@fadeev/swap
Advanced tools
yarn add @fadeev/swap
Should be compatible with a RainbowKit enabled Next.js app, for example:
https://github.com/fadeev/template
Adding a swap component to a app-router Next.js app:
"use client";
import { ConnectButton } from "@rainbow-me/rainbowkit";
import {
Balances,
useEthersSigner,
useZetaChainClient,
} from "@fadeev/swap/dist";
import { useAccount, useSwitchChain, useChainId, useWalletClient } from "wagmi";
// universal swap app contract on ZetaChain
// https://github.com/zeta-chain/example-contracts/tree/main/omnichain/swap
const contract = "0xb459F14260D1dc6484CE56EB0826be317171e91F";
const url = "ZETACHAIN_EVM_ENDPOINT";
function Page() {
const { address } = useAccount();
const { switchChain } = useSwitchChain();
const chainId = useChainId();
const { data: walletClient } = useWalletClient({ chainId });
const signer = useEthersSigner({ walletClient });
const client = useZetaChainClient({ signer, url });
return (
<div>
<ConnectButton />
<div className="flex justify-center">
<div className="w-[400px]">
{client && (
<Swap
contract={contract}
client={client}
switchChain={switchChain}
address={address}
chain={chainId}
/>
)}
</div>
</div>
</div>
);
}
export default Page;
FAQs
``` yarn add @fadeev/swap ```
We found that @fadeev/swap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.