Skip to content

v0.8.0

Latest

Choose a tag to compare

@fernandomg fernandomg released this 16 Nov 18:11
· 53 commits to main since this release
19f15df

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-theme

That 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

Full Changelog: v0.7.0...v0.8.0