cantonjs-splice-interfaces
v0.4.0
Published
Published stable Splice interface descriptors and generated TypeScript types
Maintainers
Readme
cantonjs-splice-interfaces
Stable Splice Daml interface descriptors and generated TypeScript types for cantonjs.
This package vendors official DARs from a Splice release bundle, extracts the embedded official Daml sources, and generates a stable TypeScript surface for the first Splice batch:
- Token Standard V1 interfaces
- FeaturedAppRightV2 interfaces
- Wallet user proxy utilities from
splice-util-featured-app-proxies
Status
- Stability: GA
- Supported Splice line:
0.5.x - Current vendored release bundle:
0.5.17
Install
npm install cantonjs cantonjs-splice-interfacesUsage
import {
TransferInstructionV1,
WalletUserProxy,
type InferChoiceArgs,
type InferView,
} from 'cantonjs-splice-interfaces'
type TransferView = InferView<typeof TransferInstructionV1>
type AcceptArgs = InferChoiceArgs<typeof TransferInstructionV1, 'TransferInstruction_Accept'>The package exports two layers:
- Stable descriptor constants such as
HoldingV1,TransferInstructionV1,TransferFactoryV1,FeaturedAppRightV2, andWalletUserProxy - Namespaced generated modules such as
HoldingV1TypesandWalletUserProxyTypes
Provenance
The current vendored artifacts come from the official Splice 0.5.17 release bundle documented in the public Splice docs and recorded under:
vendor/splice/0.5.17/daml/manifest.jsondocs/compatibility/splice-daml-artifacts.md
To refresh the vendored DARs and regenerated outputs:
node scripts/import-splice-dars.mjs --tag 0.5.17Package Policy
- Only official DARs extracted from official Splice release bundles are allowed.
- Generated code in
src/generated/is not hand-edited. - Stable descriptors in
src/descriptors/are generated from the same vendored DAR sources and package metadata. - Compatibility is tied to the pinned release bundle recorded in this repo, not to unpinned upstream nightly artifacts.
Current Limits
WalletUserProxydepends onFeaturedAppRightV1types that are compiled into the official DAR dependency set but not exposed as a separate vendored source DAR in the0.5.17bundle.- To avoid inventing those missing dependency shapes,
WalletUserProxyTypescurrently leavesAppRewardBeneficiaryandFeaturedAppRight_CreateActivityMarkerResultasunknown. - The runtime descriptor metadata for
WalletUserProxyremains complete and comes from the official DAR.
