-
Notifications
You must be signed in to change notification settings - Fork 1
/
test-script2.sh
executable file
·72 lines (62 loc) · 3.16 KB
/
test-script2.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
# Copyright (c) 2024 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
source env.sh
#./decode-jwt.sh "${ROOTDIR}/certs/participant1/jwt/participant_admin.token"
#./decode-jwt.sh "${ROOTDIR}/certs/participant1/jwt/navigator.token"
#./decode-jwt.sh "${ROOTDIR}/certs/participant1/jwt/alice.token"
#./decode-jwt.sh "${ROOTDIR}/certs/participant2/jwt/participant_admin.token"
#./decode-jwt.sh "${ROOTDIR}/certs/participant2/jwt/navigator.token"
#./decode-jwt.sh "${ROOTDIR}/certs/participant2/jwt/bob.token"
#./decode-jwt.sh "${ROOTDIR}/certs/participant2/jwt/bank.token"
#./decode-jwt.sh "${ROOTDIR}/certs/participant2/jwt/george.token"
daml script --dar dars/SecureDaml.dar \
--script-name Workflow:configDonorP1 \
--ledger-host $PARTICIPANT_1_HOST --ledger-port $PARTICIPANT_1_PORT \
--access-token-file=./certs/participant1/jwt/navigator.token \
--application-id "ex-secure-daml-infra" \
--tls \
--cacrt ./certs/participant1/intermediate/certs/ca-chain.cert.pem \
--pem ./certs/participant1/client/admin-api.customer1.com.key.pem \
--crt ./certs/participant1/client/admin-api.customer1.com.cert.pem \
--input-file data/parties.txt
daml script --dar dars/SecureDaml.dar \
--script-name Workflow:configDonorP2 \
--ledger-host $PARTICIPANT_2_HOST --ledger-port $PARTICIPANT_2_PORT \
--access-token-file=./certs/participant2/jwt/navigator.token \
--application-id "ex-secure-daml-infra" \
--tls \
--cacrt ./certs/participant2/intermediate/certs/ca-chain.cert.pem \
--pem ./certs/participant2/client/admin-api.customer2.com.key.pem \
--crt ./certs/participant2/client/admin-api.customer2.com.cert.pem \
--input-file data/parties.txt
daml script --dar dars/SecureDaml.dar \
--script-name Workflow:allocateAssetP1 \
--ledger-host $PARTICIPANT_1_HOST --ledger-port $PARTICIPANT_1_PORT \
--access-token-file=./certs/participant1/jwt/alice.token \
--application-id "alice" \
--tls \
--cacrt ./certs/participant1/intermediate/certs/ca-chain.cert.pem \
--pem ./certs/participant1/client/admin-api.customer1.com.key.pem \
--crt ./certs/participant1/client/admin-api.customer1.com.cert.pem \
--input-file data/parties.txt
daml script --dar dars/SecureDaml.dar \
--script-name Workflow:allocateAssetP2 \
--ledger-host $PARTICIPANT_2_HOST --ledger-port $PARTICIPANT_2_PORT \
--access-token-file=./certs/participant2/jwt/bob.token \
--application-id "bob" \
--tls \
--cacrt ./certs/participant2/intermediate/certs/ca-chain.cert.pem \
--pem ./certs/participant2/client/admin-api.customer2.com.key.pem \
--crt ./certs/participant2/client/admin-api.customer2.com.cert.pem \
--input-file data/parties.txt
daml script --dar dars/SecureDaml.dar \
--script-name Workflow:testAsset \
--ledger-host $PARTICIPANT_1_HOST --ledger-port $PARTICIPANT_1_PORT \
--access-token-file=./certs/participant1/jwt/alice.token \
--application-id "alice" \
--tls \
--cacrt ./certs/participant1/intermediate/certs/ca-chain.cert.pem \
--pem ./certs/participant1/client/admin-api.customer1.com.key.pem \
--crt ./certs/participant1/client/admin-api.customer1.com.cert.pem \
--input-file data/parties.txt