Documentation
Everything you need to use, integrate, and build on the Dnipro protocol.
Getting Started
Install the SDK, connect to a cluster, and make your first deposit in under 10 minutes.
Architecture
Deep dive into the Dispatcher, Registry, and adapter programs. PDA model and account layouts.
TypeScript SDK
Full API reference for @dnipro/sdk. DniproClient, instruction builders, account fetchers.
CLI Reference
Complete CLI command reference. Generate adapters, list protocols, manage positions.
Build an Adapter
Step-by-step guide to creating a new Dnipro-compatible yield adapter.
Governance
How the Dnipro governance timelock works and how to submit adapter registration proposals.
Build Your Own Adapter
Create a Dnipro-compatible adapter in four steps using the CLI generator.
Scaffold with the CLI
$ npm install -g @dnipro/cli
$ dnipro generate my-protocolGenerates a complete Anchor program template with all three required instructions pre-wired.
Implement the three interface functions
// adapter_deposit: accept tokens, issue shares
pub fn adapter_deposit(ctx, amount, min_shares_out) -> Result<u64>
// adapter_withdraw: redeem shares, return tokens
pub fn adapter_withdraw(ctx, shares, min_amount_out) -> Result<u64>
// adapter_current_value: read-only value query
pub fn adapter_current_value(ctx, shares) -> Result<u64>Fill in your protocol-specific logic. The template handles Anchor boilerplate.
Build and deploy
# Colosseum demo path
# Create an Anchor project in Solana Playground
# Build → copy the generated program ID → DeployFor the current hackathon build, Solana Playground is the canonical Devnet deployment path. Local Anchor remains useful for development when identities are managed deliberately.
Register after verification
# Register only after verification
# The live demo dashboard registers the deployed Devnet Vault
# through the Registry governance authorityThe Registry allowlists the adapter program, mint, state and vault accounts. External protocol routes should remain reference-only until their CPI path is verified.
SDK Quick Reference
Initialize client
import { DniproClient } from '@dnipro/sdk';
const client = new DniproClient(connection);List all adapters
const adapters = await client.getAllAdapters();
// → AdapterDisplay[]Get user positions
const portfolio = await client.getPortfolioSummary(wallet.publicKey);
// → { positions, totalValue, totalPnl, ... }Build deposit transaction
const tx = client.buildDepositTransaction({
user: wallet.publicKey,
adapterProgramId: ADAPTER_PROGRAM_IDS.kamino,
underlyingMint: USDC_MINT,
adapterVault: vaultPubkey,
feeRecipientAccount: feeAccount,
deposit: { amount: usdcToAtomics(1000) },
});Simulate deposit
const sim = await client.simulateDeposit(
ADAPTER_PROGRAM_IDS.kamino,
usdcToAtomics(1000)
);
// → { estimatedOutput, estimatedFee, warnings }