Skip to main content

Crate noviscia_types

Crate noviscia_types 

Source
Expand description

§Noviscia Types

Shared types, PDA seed constants, and program IDs used across all Noviscia SDK crates. Mirrors the on-chain account layouts from the active programs.

Structs§

AssetEngineRegistry
Global asset engine configuration — stores the three-tier Layered Governance multi-sig keys (Squads PDAs) that gate every authority path.
AssetPool
Per-mint pool profile: liquidity, premium params, and capacity ceiling.
Borrower
A whitelisted borrower’s registry entry.
CapacityConfig
Global capacity engine configuration.
ClientAccount
Registered institutional client.
CongestionOracle
Network congestion oracle feeding the dynamic premium model.
CreditLine
The credit line ledger. One per program — the shared alpha sleeve.
DeskPosition
Per-desk borrow mirror for one mint — principal out + settled premiums.
InstitutionalCreditLine
Aggregate institutional multi-asset credit ceiling + 24h floating window.
LpEntry
Per-LP entry in a permissioned pool.
PoolConfig
Permissioned pool configuration.
SlotLedger
Per-slot capacity ledger.
TollResult
Dynamic toll result mirroring the TypeScript TollResult and on-chain toll_and_utilization output.
TranchePosition
LP position inside a tranche.
TrancheVault
Per-tranche NAV ledger.

Enums§

ClientTier
Institutional client tier.
LpTier
KYC tier for an LP in the permissioned pool.
Side
Position side — long or short.
Tranche
Tranche discriminator.

Constants§

ASSET_AUTHORITY_SEED
PDA authorizing per-asset vault transfers.
ASSET_CREDIT_LINE_SEED
Institutional credit line PDA seed.
ASSET_ENGINE_PROGRAM_ID
On-chain program ID for noviscia-asset-engine (devnet) — now aliases the consolidated noviscia-capacity host (19→4 consolidation: the standalone noviscia-asset-engine was absorbed at Stage 2; see docs/FROZEN.md + docs/CONSOLIDATION.md §7). PDAs derive under the host ID.
ASSET_FEE_VAULT_SEED
Per-asset premium fee vault token-account PDA seed.
ASSET_LP_MINT_SEED
Per-pool ERC-4626 share-mint (nUSDC / nSOL / nNVSC) PDA seed.
ASSET_LP_POSITION_SEED
Per-(pool, LP) share-position ledger seed.
ASSET_POOL_SEED
Per-asset pool PDA seed.
ASSET_REGISTRY_SEED
Global engine registry PDA seed.
ASSET_VAULT_SEED
Per-asset principal vault token-account PDA seed.
BORROWER_SEED
Per-borrower registry PDA seed.
BPS
BPS denominator (10_000 = 100%).
BPS_U128
BPS denominator as u128 for intermediate math.
BURN_ENGINE_PROGRAM_ID
Burn engine program (devnet).
CAPACITY_PROGRAM_ID
On-chain program ID for noviscia-capacity (devnet).
CAPACITY_SEED
Capacity engine config PDA seed.
CLIENT_SEED
Client account PDA seed.
COLLATERAL_VAULT_SEED
Collateral vault PDA seed.
CONGESTION_SEED
Congestion oracle PDA seed.
CREDIT_LINE_PROGRAM_ID
Credit line program (devnet) — now aliases the consolidated netting-engine host (19→4 consolidation: the standalone noviscia-credit-line was absorbed at Stage 3; see docs/FROZEN.md + docs/CONSOLIDATION.md §7). PDAs derive under the host ID.
CREDIT_LINE_SEED
Credit line ledger PDA seed (noviscia-credit-line).
CREDIT_VAULT_SEED
Alpha-sleeve USDC vault PDA seed.
DESK_POSITION_SEED
Per-desk per-mint borrow mirror PDA seed.
ESCROW_PROGRAM_ID
Escrow program (devnet).
GATEWAY_AUCTION_PROGRAM_ID
Gateway auction program (devnet).
GRACE_SLOTS
Hard-escalation grace window (~2h @ 400ms blocks) before a desk “Breaches”.
INSTI_VAULT_SEED
Institutional tranche ledger/vault seeds.
INSURANCE_SEED
Insurance reserve PDA seed.
JIT_RISK_PROGRAM_ID
JIT risk marketplace program (devnet) — now aliases the consolidated noviscia-capacity host (19→4 consolidation: the standalone jit-risk was absorbed at Stage 2; see docs/FROZEN.md + docs/CONSOLIDATION.md §7). PDAs derive under the host ID.
LATE_FEE_BASE
LATE_FEE_RATE_BPS
Micro-bps per overdue slot for the per-block late-fee taxi meter.
LIQUIDATION_VAULT_PROGRAM_ID
Liquidation vault program (devnet).
LP_ENTRY_SEED
LP entry PDA seed.
LP_MINT_SEED
LP mint PDA seed.
LP_NAV_SPLIT_BPS
Share of each credit-line toll routed to the omni-pool (LP NAV). 9000 = 90%.
NETTING_ENGINE_PROGRAM_ID
Netting engine program (devnet).
NVSCUSDC_MINT
nvscUSDC devnet yield-bearing share token mint.
NVSC_MINT
NVSC devnet governance token mint.
NV_USDC_VAULT_PROGRAM_ID
nv-usdc-vault omni-pool program (devnet).
POOL_SEED
Pool config PDA seed (noviscia-permissioned-pool).
POOL_VAULT_SEED
Pool vault PDA seed (token custody).
POSITION_SEED
Position PDA seed (position-tracker).
POSITION_TRACKER_PROGRAM_ID
Position tracker program (devnet).
PROTECTED_VAULT_SEED
Protected tranche ledger/vault seeds.
PT_CONFIG_SEED
Pt-config PDA seed.
SLOT_LEDGER_SEED
Per-slot ledger PDA seed.
SOVEREIGN_NETTING_PROGRAM_ID
Sovereign netting program (devnet) — now aliases the consolidated netting-engine host (19→4 consolidation: the standalone sovereign-netting was absorbed at Stage 3; see docs/FROZEN.md + docs/CONSOLIDATION.md §7). PDAs derive under the host ID.
STAKING_MANAGER_PROGRAM_ID
Staking manager program (devnet).
TOLL_VAULT_SEED
Toll staging vault PDA seed (90% before omni-pool sweep).
TRANCHES_SEED
Dual-tranche vault config PDA seed.
TRANCHE_POSITION_SEED
Tranche position PDA seed.
TRANCHE_VAULT_PROGRAM_ID
On-chain program ID for noviscia-tranche-vault (devnet).
TREASURY_AUTH_SEED
Treasury authority PDA seed (owner of the token account).
TREASURY_SEED
Treasury token account PDA seed.
TREASURY_SPLIT_BPS
Share of each credit-line toll routed to the system treasury. 1000 = 10%.
USDC_MINT
USDC devnet mint.
WAD
WAD (1e12) — per-slot premium rate for jit-risk.
WINDOW_SLOTS
Floating KYC/allocation window length (~24h @ 400ms blocks).
WSOL_MINT
Wrap-SOL mint (native-interop profile for SOL exposure).