
Security News
Lovable’s OJ Rewrites Vite’s Dev Server in Rust as AI Lowers the Cost of Forking Open Source
Lovable’s OJ rewrites Vite’s dev server in Rust, reducing memory use and preview times as AI lowers the cost of open source reimplementation.
@canton-network/core-splice-codegen
Advanced tools
Typed wrappers around generated DAML JS packages used by Splice examples and SDK integrations.
This package currently exposes two modules:
TestToken (from @daml.js/test-token-v1)OTCTrade (from @daml.js/otc-trade)pnpm install @canton-network/core-splice-codegen
This package requires a localnet instance that relies on Splice v0.6.12 or higher. Please ensure you have the latest localnet fetched.
From repository root:
pnpm --filter @canton-network/core-splice-codegen build
This package depends on generated DAML JS artifacts under
damljs/test-token-v1.
To refresh those artifacts, run:
pnpm generate:codegen
Then rebuild this package.
import { TestToken, OTCTrade } from '@canton-network/core-splice-codegen'
// Template references
console.log(TestToken.DAR.TestTokenV1.TokenRules.templateId)
console.log(OTCTrade.DAR.TradingApp.OTCTradeProposal.templateId)
// Typed create command
const createRules = TestToken.commands.create.rules({
admin: 'Alice::1220...',
})
// Typed exercise command
const settleTrade = OTCTrade.commands.exercise.otcTrade.settle({
contractId: '00abc...',
choiceArgument: {
allocationsWithContext: {},
},
})
Both modules expose utils.vetDar, which loads a local DAR file and uploads it through the SDK:
import { TestToken } from '@canton-network/core-splice-codegen'
await TestToken.utils.vetDar(sdk)
await TestToken.utils.vetDar(sdk, 'global-synchronizer-id')
Notes:
vetDar expects local DAR files to exist under .localnet/dars/.TestToken command helpers are wired to choice names from @canton-network/core-token-standard:
This keeps command generation aligned with Token Standard API semantics while staying strongly typed against DAML templates.
Apache-2.0
FAQs
daml codegen js for default packages
The npm package @canton-network/core-splice-codegen receives a total of 0 weekly downloads. As such, @canton-network/core-splice-codegen popularity was classified as not popular.
We found that @canton-network/core-splice-codegen demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.

Security News
Lovable’s OJ rewrites Vite’s dev server in Rust, reducing memory use and preview times as AI lowers the cost of open source reimplementation.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.