xiaohongshu
xiaohongshu
dojo-wallets
Use when managing wallets and accounts in dojo.js games. Triggers: burner wallet, useBurner, create wallet, connect wallet, BurnerProvider, account management, predeployed, session wallet
Full skill instructions
Use this skill when:
import { BurnerProvider, useBurner } from "@dojoengine/create-burner";
const burnerConfig = {
masterAddress: "0x...", // Prefunded account
masterPrivateKey: "0x...", // Private key
accountClassHash: "0x...", // Account class hash
rpcUrl: "http://localhost:5050",
feeTokenAddress: "0x...", // ETH contract address
};
function App() {
return (
<BurnerProvider initOptions={burnerConfig}>
<Game />
</BurnerProvider>
);
}
import { useBurner } from "@dojoengine/create-burner";
function AccountManager() {
const {
account, // Current active account
isDeploying, // True while creating new burner
count, // Number of burners
create, // Create new burner
list, // List all burners
select, // Select burner by address
get, // Get burner by address
clear, // Clear all burners
listConnectors, // Get starknet-react connectors
copyToClipboard,
applyFromClipboard,
generateAddressFromSeed,
} = useBurner();
return (
<div>
<p>Current: {account?.address}</p>
<button onClick={() => create()} disabled={isDeploying}>
{isDeploying ? "Creating..." : "New Burner"}
</button>
</div>
);
}
const { create } = useBurner();
// Create random burner
const newAccount = await create();
// Create deterministic burner from seed
const deterministicAccount = await create({
secret: "my-secret-seed",
index: 0,
});
function BurnerSelector() {
const { list, select, account } = useBurner();
const burners = list();
return (
<select value={account?.address} onChange={(e) => select(e.target.value)}>
{burners.map((burner) => (
<option key={burner.address} value={burner.address}>
{burner.address.slice(0, 10)}...
</option>
))}
</select>
);
}
import { StarknetConfig, InjectedConnector } from "@starknet-react/core";
function Providers({ children }) {
const { listConnectors } = useBurner();
const connectors = [
new InjectedConnector({ options: { id: "argentX" } }),
new InjectedConnector({ options: { id: "braavos" } }),
...listConnectors(), // Add burner connectors
];
return <StarknetConfig connectors={connectors}>{children}</StarknetConfig>;
}
For Katana predeployed accounts:
import {
PredeployedConnector,
usePredeployedAccounts,
} from "@dojoengine/predeployed-connector";
const predeployed = new PredeployedConnector({
rpcUrl: "http://localhost:5050",
accounts: [
{
address: "0x...",
privateKey: "0x...",
name: "Account 1",
},
],
});
Share burners between devices:
const { copyToClipboard, applyFromClipboard } = useBurner();
// Export all burners
await copyToClipboard();
// Import from clipboard
await applyFromClipboard();
Generate addresses without deploying:
const { generateAddressFromSeed } = useBurner();
const address = generateAddressFromSeed({
secret: "game-specific-seed",
index: playerIndex,
});
Require account connection:
import { WithAccount } from "@dojoengine/sdk/react";
const ProtectedComponent = WithAccount(
({ account, address }) => <div>Connected: {address}</div>,
() => <div>Please connect wallet</div>,
);
function App() {
return (
<StarknetConfig connectors={connectors}>
<BurnerProvider initOptions={burnerConfig}>
<DojoSdkProvider sdk={sdk} dojoConfig={config}>
<Game />
</DojoSdkProvider>
</BurnerProvider>
</StarknetConfig>
);
}
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience