@umbra-privacy/codama
v1.0.0
Published
Generated Codama clients for the Umbra protocol
Maintainers
Readme
@umbra-privacy/codama
Auto-generated TypeScript client for the Umbra Solana program. Provides type-safe account decoders, instruction builders, error types, and discriminator constants generated from the program IDL using Codama.
Installation
pnpm add @umbra-privacy/codamaOverview
This package is consumed internally by @umbra-privacy/sdk. You typically don't need to install it directly unless you're building low-level tooling that interacts with the Umbra program accounts and instructions without the SDK's service layer.
What's Included
- Accounts — Type-safe decoders for all Umbra program accounts (
ArciumEncryptedUserAccount,ArciumEncryptedTokenAccount,PoolConfiguration,MixerTree,TreapHeader, etc.) - Instructions — Builders for every Umbra program instruction with validated input types
- Types — Solana-native types generated from the IDL (enums, structs, option types)
- Errors — Program error codes and human-readable messages
- Program metadata — Program ID constant and discriminators
Usage
import {
fetchArciumEncryptedUserAccount,
getInitializeUserAccountInstruction,
UMBRA_PROGRAM_ADDRESS,
} from "@umbra-privacy/codama";Regeneration
This package is auto-generated from the Umbra program IDL. Do not edit files directly. To regenerate after an IDL change:
pnpm run codama:js # from monorepo rootDependencies
@solana/kit^6.0.1@solana-program/system^0.11.0@solana-program/token-2022^0.9.0
License
MIT
