Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

SDK Overview

The high-level Python API lives in the d_asa package and is centered on DAsa.

It wraps the generated ARC-56 client in d_asa.artifacts.dasa_client and keeps the generated ABI structs out of the normal user flow.

from d_asa import (
    DAsa,
    ContractAttributes,
    PricingContext,
    make_pam_zero_coupon_bond,
    normalize_contract_attributes,
)

The root package also continues to expose the domain models and the ACTUS normalizer directly:

  • ContractAttributes
  • make_pam_zero_coupon_bond(...)
  • make_pam_fixed_coupon_bond_profile(...)
  • normalize_contract_attributes(...)
  • NormalizationResult
  • NormalizedActusTerms
  • InitialKernelState
  • ExecutionScheduleEntry
  • AccountPosition
  • ObservedEventRequest
  • ObservedCashEventRequest
  • Cycle

Use DAsa for contract interaction, and keep d_asa.artifacts.dasa_client as the explicit low-level escape hatch when needed.