create-canton-app 1.4.1 โ†’ 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-canton-app",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "Scaffold Canton Network/Daml projects in seconds",
5
5
  "main": "bin/create-canton-app.js",
6
6
  "repository": {
@@ -141,7 +141,7 @@ async function create(projectName, options) {
141
141
  choices: [
142
142
  { name: 'Token Contract (fungible token like ERC20)', value: 'token' },
143
143
  { name: 'Escrow Contract (multi-party escrow)', value: 'escrow' },
144
- { name: '๐Ÿ“„ Empty Template (blank starter)', value: 'empty' }
144
+ { name: 'Empty Template (blank starter)', value: 'empty' }
145
145
  ]
146
146
  }
147
147
  ]);
@@ -1,21 +0,0 @@
1
- # testcanton
2
-
3
- > A Canton Network dApp built with create-canton-app
4
-
5
- ## Template: escrow
6
-
7
- ## Quick Start
8
-
9
- ```bash
10
- # Compile contracts
11
- daml build
12
-
13
- # Run tests
14
- daml test
15
- ```
16
-
17
- ## Learn More
18
-
19
- - [Canton Docs](https://docs.digitalasset.com)
20
- - [Daml Docs](https://docs.daml.com)
21
- - [Canton Network](https://canton.network)
@@ -1,53 +0,0 @@
1
- -- Escrow.daml
2
- -- A two-party escrow with an arbiter
3
-
4
- module Escrow where
5
-
6
- import Daml.Script
7
-
8
- template EscrowAgreement
9
- with
10
- buyer : Party
11
- seller : Party
12
- arbiter : Party
13
- amount : Decimal
14
- description : Text
15
- where
16
- signatory buyer, seller, arbiter
17
-
18
- choice Release : ()
19
- controller buyer
20
- do
21
- return ()
22
-
23
- choice Dispute : ()
24
- with
25
- decision : Text
26
- controller arbiter
27
- do
28
- return ()
29
-
30
- choice Cancel : ()
31
- controller buyer, seller
32
- do
33
- return ()
34
-
35
- setup : Script ()
36
- setup = script do
37
- alice <- allocateParty "Alice"
38
- bob <- allocateParty "Bob"
39
- charlie <- allocateParty "Charlie"
40
-
41
- escrow <- submit alice do
42
- submitMulti [alice, bob, charlie] [] do
43
- createCmd EscrowAgreement with
44
- buyer = alice
45
- seller = bob
46
- arbiter = charlie
47
- amount = 1000.0
48
- description = "Laptop purchase"
49
-
50
- submit alice do
51
- exerciseCmd escrow Release
52
-
53
- return ()
@@ -1,8 +0,0 @@
1
- sdk-version: 3.4.9
2
- name: testcanton
3
- source: daml
4
- version: 1.0.0
5
- dependencies:
6
- - daml-prim
7
- - daml-stdlib
8
- - daml-script
@@ -1,3 +0,0 @@
1
- #!/bin/bash
2
- echo "๐Ÿ”จ Compiling Daml contracts..."
3
- daml build
@@ -1,3 +0,0 @@
1
- #!/bin/bash
2
- echo "๐Ÿงช Running tests..."
3
- daml test