
Security News
Happy Birthday, Shai-Hulud
It has been one year since Shai-Hulud made its first appearance on npm.
@suiet/wallet-adapter
Advanced tools
👋 If you want to know how to install/use suiet, please visit our offical website suiet.app or docs
Integrate your DApp with Suiet Wallet from now on 🥳
We've presented an adapter that implemented the interface of SUI Wallet Adapter for you✨ With this adapter, your DApp can easily connect with the Suiet Wallet Extension, which enables DApp to retrieve basic info of user's wallet and launch manipulation requests such as transaction signing.
For React DApps, the Sui team has provided React context provider and React hook in the npm package @mysten/wallet-adapter-react. Therefore we can simply register the Suiet Adapter into the official provider and then make use of them.
⚠️ Right now Suiet doesn't provide UI kits such as Wallet Select Modal, you may need to custom them on your own or simply forked from Sui repo.
⚠️ Usage with React ONLY: According to the sui wallet repo, the library only supports React DApp.
npm install @mysten/wallet-adapter-react @suiet/wallet-adapter
// main.js
import { WalletProvider } from "@mysten/wallet-adapter-react";
import { SuietWalletAdapter } from "@suiet/wallet-adapter";
const supportedWallets = [
{ adapter: new SuietWalletAdapter() },
];
ReactDOM.createRoot(document.getElementById("root")).render(
<React.StrictMode>
<WalletProvider supportedWallets={supportedWallets}>
<App />
</WalletProvider>
</React.StrictMode>
);
// App.jsx
import {useEffect} from "react";
import { useWallet } from "@mysten/wallet-adapter-react";
function App() {
const {
select,
wallet,
connected,
connecting,
disconnect,
getAccounts,
executeMoveCall,
} = useWallet();
useEffect(() => {
if (!connected || !wallet) return;
(async function () {
console.log(wallet.adapter.name);
const accounts = await getAccounts();
console.log(accounts);
})();
}, [connected, wallet]);
async function handleExecuteMoveCall() {
await executeMoveCall({
packageObjectId: "0x2",
module: "devnet_nft",
function: "mint",
typeArguments: [],
arguments: [
"name",
"capy",
"https://cdn.britannica.com/94/194294-138-B2CF7780/overview-capybara.jpg?w=800&h=450&c=crop",
],
gasBudget: 10000,
});
}
return (
<div className={'app'}>
<h1>Current wallet: {wallet ? wallet.adapter.name : 'null'}</h1>
<button
onClick={() => {
if (!connected) {
select('Suiet');
} else {
disconnect();
}
}}
>
{connecting ? "connecting" : connected ? "Disconnect" : "connect"}
</button>
</div>
)
}
There you go ✅ Go connect with our wallet with custom UI selector!
We also prepared a demo for developers, feel free to check it out:
🔗 Website: https://wallet-adapter-example.suiet.app/
🔗 Github Repo: https://github.com/suiet/wallet-adapter/tree/main/examples/sui-kit-integration
FAQs
Integration of Suiet Wallet into the Sui Wallet Adapter
The npm package @suiet/wallet-adapter receives a total of 8 weekly downloads. As such, @suiet/wallet-adapter popularity was classified as not popular.
We found that @suiet/wallet-adapter demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.