Do you have any other examples for DAML Scripts

I have been looking into Scripts for Ledger Initialization

Do you have any other examples you can share besides the example in
https://docs.daml.com/daml-script/index.html#

Thanks

3 Likes

Not an official source, but I have written a couple of short scripts to run a couple of tests [1] [2].

Is there something in particular you’d like to see in an example?

1 Like

You’ll also find some useful daml script in the DAVL project GitHub - digital-asset/davl: Digital Asset Vacation Ledger

2 Likes

You can also find DAML Scripts in most of our reference applications, just listing a few examples here:

  1. ex-know-your-customer/AutoVerificationTestSetup.daml at 5c89761d14a657b33630d55eaa518d6fd7531add · digital-asset/ex-know-your-customer · GitHub
  2. ex-structured-products/MarketSetup.daml at a37a11319028e1cd0b828072937756af49be6f23 · digital-asset/ex-structured-products · GitHub
  3. ex-supply-chain/LedgerSetupScript.daml at 6473a135a402e417748ff0e9879fc59ad4f96c29 · digital-asset/ex-supply-chain · GitHub
  4. ex-asset-servicing/Init.daml at 7c13785dc82fe4a4e19fb74f4925c239b552b048 · digital-asset/ex-asset-servicing · GitHub
4 Likes