Repository navigation
Canton dAppBooster 0.8.0 brings two new examples and a LocalNet on Canton 3.6.
New examples
0.8.0 adds two dApps you can create a project from with one flag.
No wallet? No problem
--example amulet-vesting-walletless is the Amulet vesting dApp without the wallet. People sign in with a username and a password, and a server beside the dApp acts on the ledger as each account's own party. No wallet to install, no approval prompts. (#272)
Note: that convenience has a price, and the example says so up front. The participant signs for every account, so whoever runs the server and the participant holds everyone's Canton Coin.
A token vault, end to end
--example token-vault is a vault over a canton-token-forge token. Deposit USDX through your CIP-0103 wallet and get VSH shares one for one; return the shares and your USDX comes back. A small operator process settles each request as the vault, so you watch it move on its own. Its contracts ship prebuilt, so there is no Daml toolchain to install. (#275)
Local network
Canton 3.6, already handled
The local network moves up to Splice 0.9.4, and with it to Canton 3.6. The catch: 3.6 turns off some Ledger API fields that had been deprecated since 3.4, and our reads still used them. We did that work so you don't have to. The libraries and every example moved in the same release, so a new project never meets the new LocalNet with the old reads. The token vesting example's registry moves to canton-token-forge v0.3.1 for the same reason. (#260: 60b4291f moves the reads, ee1859ae the registry)
Upgrade your LocalNet, keep your ledger
Until now, a new Splice release left your local ledger behind: the contract no longer fit it, and the way out was to wipe everything and set it all up again. Not anymore. pnpm stack up now recognizes a ledger from an older Splice and keeps going on it, with every party and every contract right where you left them. It tells you when it did, and a new guide, splice-upgrade.md, brings that ledger up to the new release's Amulet with a single DSO vote. The Amulet vesting example's Tap and grants keep working after that vote, with no second one. And for the days you do want a blank slate, pnpm stack reset gives you one, and the menu asks before it does. (#269: 489a8aa2 keeps the ledger, 812bcb2c keeps the example working after the vote, 39ea2568 adds reset)
A stricter up --json
For anyone driving the stack from a script or an agent (#269):
- every line is valid JSON (78035b22);
- the closing event lists every warning the run gave (bbe0e9ff);
- a run that stops for any reason still closes with an error event (8c91d5f9).
Clearer DAR upload failures
When an upload fails, you now see the participant's own error. (03001a89, in #260)
Libraries
Holdings, for any party
@bootnodedev/canton-dappbooster gains readHoldings, which reads the holdings of any party your wallet may see, a vault's for example. useHoldings stays the hook for the connected party. (a87844c6, in #275)
useHoldings counts only what you own
It used to return every holding the party could see, so a token's admin got the whole supply as its balance. Now it returns only the holdings the connected party owns. (69027ce1, in #275)
Zag and Ark UI, on one version
A project that also uses Ark UI could freeze when <TokenInput>'s token dialog opened inside another dialog: @bootnodedev/canton-dappbooster took a newer Zag than the one Ark UI pins, and two Zag versions on one page fight over focus. The package now pins Zag 1.47.0, the version @ark-ui/react 5.40.0 uses, and the examples pin that Ark UI release. If your app uses Ark UI or Zag, keep it on that version. (#283)
Requirements and docs
Node 24.15 for the installer
create-canton-dappbooster and the project it creates now ask for Node 24.15.0 or newer, the floor the libraries already had. The installer accepted 22.12 before. (78dde264, in #263)
READMEs in one shape
Every package and example README now follows the same outline. An example's tells you how to run the app, how it works and how to configure it. (#263, #258)
Get 0.8.0
New project: run pnpm create canton-dappbooster, then pick an example from the menu or pass --example.
Already on 0.7? Your project stays on 0.7.x until you say otherwise, and one line moves the libraries:
pnpm up --latest @bootnodedev/canton-connect @bootnodedev/canton-dappbooster @bootnodedev/canton-themeThat updates the libraries only. The stack scripts and the local network stay as they were on the day you created the project.
What's Changed
- docs: fix stale and incomplete docs across the packages by @fernandomg in #258
- chore: describe the installer and the examples for npm by @fernandomg in #257
- test(connect): wait for the pushed event instead of one tick by @fernandomg in #259
- chore(renovate): hold Node.js major updates by @fernandomg in #264
- docs: reshape every sub-project README to one reference shape by @fernandomg in #263
- feat(canton-create): keep the ledger across a Splice bump and add a
resetcommand by @fernandomg in #269 - chore(deps): update weekly non-major by @renovate[bot] in #260
- chore(deps): update dependency jsdom to v31 by @renovate[bot] in #270
- chore(deps): lock file maintenance by @renovate[bot] in #262
- feat(examples): add the wallet-less amulet vesting example by @gabitoesmiapodo in #272
- feat(token-vault): add the token vault example by @gabitoesmiapodo in #275
- chore(deps): update weekly non-major by @renovate[bot] in #279
- release: bring the v0.8.0 rc line into main by @fernandomg in #282
- fix: pin Zag to the version Ark UI pins by @fernandomg in #283
Full Changelog: v0.7.0...v0.8.0