Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document "package name" for JSON API #19959

Open
arturpoor-da opened this issue Sep 18, 2024 · 0 comments
Open

Document "package name" for JSON API #19959

arturpoor-da opened this issue Sep 18, 2024 · 0 comments

Comments

@arturpoor-da
Copy link
Contributor

From https://docs.daml.com/2.9.4/json-api/index.html#http-request:

templateId is the contract template identifier which has the following two formats: #<package name>:<module>:<entity> or <package ID>:<module>:<entity>.

The package name format works with the smart contract upgrading feature so that contracts with different package IDs but the same package name can be used in a uniform manner.

Using the package ID format refers to a single package.

Given a daml.yaml:

sdk-version: 2.9.4
name: myproject-main
source: ./daml
version: 0.0.1

I tried the following, none of them worked as package name:

  • #myproject-main
  • #myproject-main-0.0.1
  • #myproject-main-0.0.1-daaf4bedcf34174be56d4bc7652194ea1885ac0b35528293ff62fedf318ac181

My questions regarding <package name> that would be nice to have answered in the doc:

  • What is the format?
  • How can I extract a <package name> of a Daml template?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant