Skip to content

NEW Templates added in sdk/templates#22755

Open
Jatinp26 wants to merge 2 commits intodigital-asset:mainfrom
Jatinp26:main
Open

NEW Templates added in sdk/templates#22755
Jatinp26 wants to merge 2 commits intodigital-asset:mainfrom
Jatinp26:main

Conversation

@Jatinp26
Copy link
Copy Markdown

@jaspervdj-da 2 templates added at the decided location in daml repo.

  • Multi-Party Agreement - Shows party authorization patterns (good for onboarding)
  • Simple Token - Uses CIP-56 interface pattern but simplified for learning
  • Added Docs about template in it's dedicated README so folks know what they using as template even though basic.
    more comments in daml code to make it more proper.

Above templates Commit is pre-shared + reviewed before PR in an conversation on slack with @jaspervdj-da and more team invovled.

For more info on DevRel Slack refer to Shreyas, DevRel, DA.

@samuel-williams-da
Copy link
Copy Markdown
Contributor

You'll need to add these new templates to sdk/templates/BUILD.bazel
Specifically the srcs list in the "templates-tarball" rule, and the bash for loop in its implementation (line 42). Copy what has been done for "skeleton".
Then you'll want to add these to the tests. See sdk/daml-assistant/integration-tests/src/DA/Daml/Assistant/IntegrationTests.hs, line 676, we have a list of templates that are built, you'll want to add these there.

@jaspervdj-da
Copy link
Copy Markdown
Contributor

The examples in this repository all have a fairly long tutorial accompanying them, and are tied pretty tightly to the docs and build system. Maybe it would be better to start a new repo for community-contributed templates (that we could separately add to dpm)? There it would also be easier to, for example, include the splice dar and make it actually comply to the token standard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants