@leashmarket/registry-utils
v0.3.2
Published
Registration URI resolution (`resolveByoUri`), leash block helpers, and Metaplex agent / treasury helpers for creating and managing on-chain Leash agents.
Downloads
563
Readme
@leashmarket/registry-utils
Registration URI resolution (resolveByoUri), leash block helpers, and Metaplex agent / treasury helpers for creating and managing on-chain Leash agents.
Install
npm install @leashmarket/registry-utils
# or
pnpm add @leashmarket/registry-utilsUsage
import { resolveByoUri, mintAgentAsset, treasuryPda } from '@leashmarket/registry-utils';
// Resolve a bring-your-own registration URI
const registration = await resolveByoUri('https://example.com/leash.json');
// Derive the treasury PDA for an agent
const treasury = treasuryPda(agentMint, usdcMint, network);Docs
docs.leash.market/sdk/registry-utils
Test
# Unit tests
pnpm --filter @leashmarket/registry-utils test
# Devnet-gated integration tests
RUN_DEVNET=1 pnpm --filter @leashmarket/registry-utils test:devnet