@temple-digital-group/temple-canton-js 2.0.0-beta.8 → 2.0.0

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.
Files changed (42) hide show
  1. package/README.md +457 -447
  2. package/dist/api/index.js +3 -1
  3. package/dist/api/types.d.ts +1 -0
  4. package/dist/canton/deposits.js +4 -1
  5. package/dist/canton/withdrawals.js +19 -3
  6. package/index.js +15 -15
  7. package/package.json +49 -49
  8. package/src/api/config.d.ts +20 -20
  9. package/src/api/index.ts +322 -321
  10. package/src/api/tokenStore.ts +30 -30
  11. package/src/api/types.ts +196 -195
  12. package/src/auth0/index.d.ts +1 -1
  13. package/src/auth0/index.js +50 -50
  14. package/src/canton/deposits.ts +5 -1
  15. package/src/canton/helpers.ts +266 -266
  16. package/src/canton/index.d.ts +41 -41
  17. package/src/canton/index.js +3295 -3294
  18. package/src/canton/instrumentCatalog.d.ts +6 -6
  19. package/src/canton/instrumentCatalog.js +183 -183
  20. package/src/canton/request_schemas/cancel_orders_amulet.json +77 -77
  21. package/src/canton/request_schemas/cancel_orders_utility.json +68 -68
  22. package/src/canton/request_schemas/create_order_proposal_amulet.json +94 -94
  23. package/src/canton/request_schemas/create_order_proposal_utility.json +121 -121
  24. package/src/canton/request_schemas/create_utility_credential.json +31 -31
  25. package/src/canton/request_schemas/execute_transfer_factory.json +43 -43
  26. package/src/canton/request_schemas/get_allocation_factory.json +21 -21
  27. package/src/canton/request_schemas/get_amulet_holdings.json +21 -21
  28. package/src/canton/request_schemas/get_instrument_configurations.json +21 -21
  29. package/src/canton/request_schemas/get_locked_amulet_holdings.json +21 -21
  30. package/src/canton/request_schemas/get_order_proposals.json +21 -21
  31. package/src/canton/request_schemas/get_orders.json +21 -21
  32. package/src/canton/request_schemas/get_sender_credentials.json +22 -22
  33. package/src/canton/request_schemas/get_transfer_factory.json +28 -28
  34. package/src/canton/request_schemas/get_utility_holdings.json +21 -21
  35. package/src/canton/request_schemas/unlock_amulet.json +38 -38
  36. package/src/canton/walletAdapter.d.ts +7 -6
  37. package/src/canton/walletAdapter.js +112 -89
  38. package/src/canton/withdrawals.ts +511 -489
  39. package/src/config/index.d.ts +63 -63
  40. package/src/config/index.js +188 -188
  41. package/src/websocket/index.ts +341 -341
  42. package/src/websocket/ws.d.ts +24 -24
@@ -1,69 +1,69 @@
1
- {
2
- "commands": [
3
- {
4
- "ExerciseCommand": {
5
- "templateId": "{{orchestrator_template_id}}",
6
- "contractId": "{{orchestrator_cid}}",
7
- "choice": "CancelOrderBatch",
8
- "choiceArgument": {
9
- "cancellables": "{{orders_cids}}",
10
- "context": {
11
- "transferFactoryCid": "{{transfer_factory_cid}}",
12
- "allocationFactoryCid": "{{allocation_factory_cid}}",
13
- "expectedAdmin": "{{registrar}}",
14
- "transferLegId": "{{transfer_leg_id}}",
15
- "settlementRefId": "{{settlement_ref_id}}",
16
- "extraArgs": {
17
- "context": {
18
- "values": {
19
- "{{instrument_configuration_key}}": {
20
- "tag": "AV_ContractId",
21
- "value": "{{instrument_configuration_cid}}"
22
- },
23
- "{{sender_credentials_key}}": {
24
- "tag": "AV_List",
25
- "value": [
26
- {
27
- "tag": "AV_ContractId",
28
- "value": "{{sender_credentials_cid}}"
29
- }
30
- ]
31
- }
32
- }
33
- },
34
- "meta": {
35
- "values": {}
36
- }
37
- }
38
- }
39
- }
40
- }
41
- }
42
- ],
43
- "commandId": "{{randomUUID}}",
44
- "userId": "{{userId}}",
45
- "applicationId": "temple",
46
- "actAs": [
47
- "{{temple}}"
48
- ],
49
- "disclosedContracts": [
50
- {
51
- "templateId": "{{utility_app_registry_app_package_id}}:Utility.Registry.App.V0.Service.AllocationFactory:AllocationFactory",
52
- "contractId": "{{allocation_factory_cid}}",
53
- "createdEventBlob": "{{allocation_factory_disclosure}}",
54
- "synchronizerId": "{{allocation_factory_synchronizer}}"
55
- },
56
- {
57
- "templateId": "{{utility_app_registry_package_id}}:Utility.Registry.V0.Configuration.Instrument:InstrumentConfiguration",
58
- "contractId": "{{instrument_configuration_cid}}",
59
- "createdEventBlob": "{{instrument_configuration_disclosure}}",
60
- "synchronizerId": "{{instrument_configuration_synchronizer}}"
61
- },
62
- {
63
- "templateId": "{{utility_app_credential_package_id}}:Utility.Credential.V0.Credential:Credential",
64
- "contractId": "{{sender_credentials_cid}}",
65
- "createdEventBlob": "{{sender_credentials_disclosure}}",
66
- "synchronizerId": "{{sender_credentials_synchronizer}}"
67
- }
68
- ]
1
+ {
2
+ "commands": [
3
+ {
4
+ "ExerciseCommand": {
5
+ "templateId": "{{orchestrator_template_id}}",
6
+ "contractId": "{{orchestrator_cid}}",
7
+ "choice": "CancelOrderBatch",
8
+ "choiceArgument": {
9
+ "cancellables": "{{orders_cids}}",
10
+ "context": {
11
+ "transferFactoryCid": "{{transfer_factory_cid}}",
12
+ "allocationFactoryCid": "{{allocation_factory_cid}}",
13
+ "expectedAdmin": "{{registrar}}",
14
+ "transferLegId": "{{transfer_leg_id}}",
15
+ "settlementRefId": "{{settlement_ref_id}}",
16
+ "extraArgs": {
17
+ "context": {
18
+ "values": {
19
+ "{{instrument_configuration_key}}": {
20
+ "tag": "AV_ContractId",
21
+ "value": "{{instrument_configuration_cid}}"
22
+ },
23
+ "{{sender_credentials_key}}": {
24
+ "tag": "AV_List",
25
+ "value": [
26
+ {
27
+ "tag": "AV_ContractId",
28
+ "value": "{{sender_credentials_cid}}"
29
+ }
30
+ ]
31
+ }
32
+ }
33
+ },
34
+ "meta": {
35
+ "values": {}
36
+ }
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
42
+ ],
43
+ "commandId": "{{randomUUID}}",
44
+ "userId": "{{userId}}",
45
+ "applicationId": "temple",
46
+ "actAs": [
47
+ "{{temple}}"
48
+ ],
49
+ "disclosedContracts": [
50
+ {
51
+ "templateId": "{{utility_app_registry_app_package_id}}:Utility.Registry.App.V0.Service.AllocationFactory:AllocationFactory",
52
+ "contractId": "{{allocation_factory_cid}}",
53
+ "createdEventBlob": "{{allocation_factory_disclosure}}",
54
+ "synchronizerId": "{{allocation_factory_synchronizer}}"
55
+ },
56
+ {
57
+ "templateId": "{{utility_app_registry_package_id}}:Utility.Registry.V0.Configuration.Instrument:InstrumentConfiguration",
58
+ "contractId": "{{instrument_configuration_cid}}",
59
+ "createdEventBlob": "{{instrument_configuration_disclosure}}",
60
+ "synchronizerId": "{{instrument_configuration_synchronizer}}"
61
+ },
62
+ {
63
+ "templateId": "{{utility_app_credential_package_id}}:Utility.Credential.V0.Credential:Credential",
64
+ "contractId": "{{sender_credentials_cid}}",
65
+ "createdEventBlob": "{{sender_credentials_disclosure}}",
66
+ "synchronizerId": "{{sender_credentials_synchronizer}}"
67
+ }
68
+ ]
69
69
  }
@@ -1,95 +1,95 @@
1
- {
2
- "commands": [
3
- {
4
- "ExerciseCommand": {
5
- "templateId": "{{orchestrator_template_id}}",
6
- "contractId": "{{orchestrator_cid}}",
7
- "choice": "RequestOrderCreation",
8
- "choiceArgument": {
9
- "maker": "{{maker}}",
10
- "holdingCid": "{{holding_cid}}",
11
- "price": "{{price}}",
12
- "quantity": "{{quantity}}",
13
- "side": "{{side}}",
14
- "orderType": "{{order_type}}",
15
- "tradedAssetId": "{{baseAsset}}",
16
- "quotedAssetId": "{{quoteAsset}}",
17
- "holdingContext": {
18
- "transferFactoryCid": "{{transfer_factory_cid}}",
19
- "allocationFactoryCid": "{{allocation_factory_cid}}",
20
- "expectedAdmin": "{{dso}}",
21
- "transferLegId": "{{transfer_leg_id}}",
22
- "settlementRefId": "{{settlement_ref_id}}",
23
- "extraArgs": {
24
- "context": {
25
- "values": {
26
- "{{amulet_rules_context_key}}": {
27
- "tag": "AV_ContractId",
28
- "value": "{{transfer_rules_cid}}"
29
- },
30
- "{{featured_app_right_context_key}}": {
31
- "tag": "AV_ContractId",
32
- "value": "{{featured_app_right_cid}}"
33
- },
34
- "{{open_round_context_key}}": {
35
- "tag": "AV_ContractId",
36
- "value": "{{open_mining_round_cid}}"
37
- },
38
- "{{expire_lock_key}}": {
39
- "tag": "AV_Bool",
40
- "value": true
41
- }
42
- }
43
- },
44
- "meta": {
45
- "values": {}
46
- }
47
- }
48
- },
49
- "expiresAt": "{{expires_at}}"
50
- }
51
- }
52
- }
53
- ],
54
- "commandId": "{{randomUUID}}",
55
- "userId": "{{user_id}}",
56
- "applicationId": "temple",
57
- "actAs": [
58
- "{{maker}}"
59
- ],
60
- "observers": [
61
- "{{temple}}"
62
- ],
63
- "disclosedContracts": [
64
- {
65
- "templateId": "{{orchestrator_template_id}}",
66
- "contractId": "{{orchestrator_cid}}",
67
- "createdEventBlob": "{{orchestrator_disclosure}}",
68
- "synchronizerId": "{{orchestrator_synchronizer}}"
69
- },
70
- {
71
- "templateId": "{{amulet_rules_template_id}}",
72
- "contractId": "{{transfer_rules_cid}}",
73
- "createdEventBlob": "{{transfer_rules_disclosure}}",
74
- "synchronizerId": "{{transfer_rules_synchronizer}}"
75
- },
76
- {
77
- "templateId": "{{open_mining_round_template_id}}",
78
- "contractId": "{{open_mining_round_cid}}",
79
- "createdEventBlob": "{{open_mining_round_disclosure}}",
80
- "synchronizerId": "{{open_mining_round_synchronizer}}"
81
- },
82
- {
83
- "templateId": "{{featured_app_right_template_id}}",
84
- "contractId": "{{featured_app_right_cid}}",
85
- "createdEventBlob": "{{featured_app_right_disclosure}}",
86
- "synchronizerId": "{{featured_app_right_synchronizer}}"
87
- },
88
- {
89
- "templateId": "{{external_amulet_rules_template_id}}",
90
- "contractId": "{{external_amulet_rules_cid}}",
91
- "createdEventBlob": "{{external_amulet_rules_disclosure}}",
92
- "synchronizerId": "{{external_amulet_rules_synchronizer}}"
93
- }
94
- ]
1
+ {
2
+ "commands": [
3
+ {
4
+ "ExerciseCommand": {
5
+ "templateId": "{{orchestrator_template_id}}",
6
+ "contractId": "{{orchestrator_cid}}",
7
+ "choice": "RequestOrderCreation",
8
+ "choiceArgument": {
9
+ "maker": "{{maker}}",
10
+ "holdingCid": "{{holding_cid}}",
11
+ "price": "{{price}}",
12
+ "quantity": "{{quantity}}",
13
+ "side": "{{side}}",
14
+ "orderType": "{{order_type}}",
15
+ "tradedAssetId": "{{baseAsset}}",
16
+ "quotedAssetId": "{{quoteAsset}}",
17
+ "holdingContext": {
18
+ "transferFactoryCid": "{{transfer_factory_cid}}",
19
+ "allocationFactoryCid": "{{allocation_factory_cid}}",
20
+ "expectedAdmin": "{{dso}}",
21
+ "transferLegId": "{{transfer_leg_id}}",
22
+ "settlementRefId": "{{settlement_ref_id}}",
23
+ "extraArgs": {
24
+ "context": {
25
+ "values": {
26
+ "{{amulet_rules_context_key}}": {
27
+ "tag": "AV_ContractId",
28
+ "value": "{{transfer_rules_cid}}"
29
+ },
30
+ "{{featured_app_right_context_key}}": {
31
+ "tag": "AV_ContractId",
32
+ "value": "{{featured_app_right_cid}}"
33
+ },
34
+ "{{open_round_context_key}}": {
35
+ "tag": "AV_ContractId",
36
+ "value": "{{open_mining_round_cid}}"
37
+ },
38
+ "{{expire_lock_key}}": {
39
+ "tag": "AV_Bool",
40
+ "value": true
41
+ }
42
+ }
43
+ },
44
+ "meta": {
45
+ "values": {}
46
+ }
47
+ }
48
+ },
49
+ "expiresAt": "{{expires_at}}"
50
+ }
51
+ }
52
+ }
53
+ ],
54
+ "commandId": "{{randomUUID}}",
55
+ "userId": "{{user_id}}",
56
+ "applicationId": "temple",
57
+ "actAs": [
58
+ "{{maker}}"
59
+ ],
60
+ "observers": [
61
+ "{{temple}}"
62
+ ],
63
+ "disclosedContracts": [
64
+ {
65
+ "templateId": "{{orchestrator_template_id}}",
66
+ "contractId": "{{orchestrator_cid}}",
67
+ "createdEventBlob": "{{orchestrator_disclosure}}",
68
+ "synchronizerId": "{{orchestrator_synchronizer}}"
69
+ },
70
+ {
71
+ "templateId": "{{amulet_rules_template_id}}",
72
+ "contractId": "{{transfer_rules_cid}}",
73
+ "createdEventBlob": "{{transfer_rules_disclosure}}",
74
+ "synchronizerId": "{{transfer_rules_synchronizer}}"
75
+ },
76
+ {
77
+ "templateId": "{{open_mining_round_template_id}}",
78
+ "contractId": "{{open_mining_round_cid}}",
79
+ "createdEventBlob": "{{open_mining_round_disclosure}}",
80
+ "synchronizerId": "{{open_mining_round_synchronizer}}"
81
+ },
82
+ {
83
+ "templateId": "{{featured_app_right_template_id}}",
84
+ "contractId": "{{featured_app_right_cid}}",
85
+ "createdEventBlob": "{{featured_app_right_disclosure}}",
86
+ "synchronizerId": "{{featured_app_right_synchronizer}}"
87
+ },
88
+ {
89
+ "templateId": "{{external_amulet_rules_template_id}}",
90
+ "contractId": "{{external_amulet_rules_cid}}",
91
+ "createdEventBlob": "{{external_amulet_rules_disclosure}}",
92
+ "synchronizerId": "{{external_amulet_rules_synchronizer}}"
93
+ }
94
+ ]
95
95
  }
@@ -1,122 +1,122 @@
1
- {
2
- "commands": [
3
- {
4
- "ExerciseCommand": {
5
- "templateId": "{{orchestrator_template_id}}",
6
- "contractId": "{{orchestrator_cid}}",
7
- "choice": "RequestOrderCreation",
8
- "choiceArgument": {
9
- "maker": "{{maker}}",
10
- "holdingCid": "{{holding_cid}}",
11
- "price": "{{price}}",
12
- "quantity": "{{quantity}}",
13
- "side": "{{side}}",
14
- "orderType": "{{order_type}}",
15
- "tradedAssetId": "{{baseAsset}}",
16
- "quotedAssetId": "{{quoteAsset}}",
17
- "holdingContext": {
18
- "transferFactoryCid": "{{allocation_factory_cid}}",
19
- "allocationFactoryCid": "{{allocation_factory_cid}}",
20
- "expectedAdmin": "{{registrar}}",
21
- "transferLegId": "{{transfer_leg_id}}",
22
- "settlementRefId": "{{settlement_ref_id}}",
23
- "extraArgs": {
24
- "context": {
25
- "values": {
26
- "instrument-configuration": {
27
- "tag": "AV_ContractId",
28
- "value": "{{instrument_configuration_cid}}"
29
- },
30
- "utility.digitalasset.com/instrument-configuration": {
31
- "tag": "AV_ContractId",
32
- "value": "{{instrument_configuration_cid}}"
33
- },
34
- "sender-credentials": {
35
- "tag": "AV_List",
36
- "value": []
37
- },
38
- "utility.digitalasset.com/sender-credentials": {
39
- "tag": "AV_List",
40
- "value": []
41
- },
42
- "receiver-credentials": {
43
- "tag": "AV_List",
44
- "value": []
45
- },
46
- "utility.digitalasset.com/receiver-credentials": {
47
- "tag": "AV_List",
48
- "value": []
49
- },
50
- "app-reward-configuration": {
51
- "tag": "AV_ContractId",
52
- "value": "{{app_reward_configuration_cid}}"
53
- },
54
- "utility.digitalasset.com/app-reward-configuration": {
55
- "tag": "AV_ContractId",
56
- "value": "{{app_reward_configuration_cid}}"
57
- },
58
- "featured-app-right": {
59
- "tag": "AV_ContractId",
60
- "value": "{{featured_app_right_cid}}"
61
- },
62
- "utility.digitalasset.com/featured-app-right": {
63
- "tag": "AV_ContractId",
64
- "value": "{{featured_app_right_cid}}"
65
- }
66
- }
67
- },
68
- "meta": {
69
- "values": {}
70
- }
71
- }
72
- },
73
- "expiresAt": "{{expires_at}}"
74
- }
75
- }
76
- }
77
- ],
78
- "commandId": "{{randomUUID}}",
79
- "userId": "{{user_id}}",
80
- "applicationId": "temple",
81
- "actAs": [
82
- "{{maker}}"
83
- ],
84
- "disclosedContracts": [
85
- {
86
- "templateId": "{{orchestrator_template_id}}",
87
- "contractId": "{{orchestrator_cid}}",
88
- "createdEventBlob": "{{orchestrator_disclosure}}",
89
- "synchronizerId": "{{orchestrator_synchronizer}}"
90
- },
91
- {
92
- "templateId": "{{utility_app_registry_app_package_id}}:Utility.Registry.App.V0.Service.AllocationFactory:AllocationFactory",
93
- "contractId": "{{allocation_factory_cid}}",
94
- "createdEventBlob": "{{allocation_factory_disclosure}}",
95
- "synchronizerId": "{{allocation_factory_synchronizer}}"
96
- },
97
- {
98
- "templateId": "{{utility_app_registry_package_id}}:Utility.Registry.V0.Configuration.Instrument:InstrumentConfiguration",
99
- "contractId": "{{instrument_configuration_cid}}",
100
- "createdEventBlob": "{{instrument_configuration_disclosure}}",
101
- "synchronizerId": "{{instrument_configuration_synchronizer}}"
102
- },
103
- {
104
- "templateId": "{{utility_app_credential_package_id}}:Utility.Credential.V0.Credential:Credential",
105
- "contractId": "{{sender_credentials_cid}}",
106
- "createdEventBlob": "{{sender_credentials_disclosure}}",
107
- "synchronizerId": "{{sender_credentials_synchronizer}}"
108
- },
109
- {
110
- "templateId": "{{app_reward_configuration_template_id}}",
111
- "contractId": "{{app_reward_configuration_cid}}",
112
- "createdEventBlob": "{{app_reward_configuration_disclosure}}",
113
- "synchronizerId": "{{app_reward_configuration_synchronizer}}"
114
- },
115
- {
116
- "templateId": "{{featured_app_right_template_id}}",
117
- "contractId": "{{featured_app_right_cid}}",
118
- "createdEventBlob": "{{featured_app_right_disclosure}}",
119
- "synchronizerId": "{{featured_app_right_synchronizer}}"
120
- }
121
- ]
1
+ {
2
+ "commands": [
3
+ {
4
+ "ExerciseCommand": {
5
+ "templateId": "{{orchestrator_template_id}}",
6
+ "contractId": "{{orchestrator_cid}}",
7
+ "choice": "RequestOrderCreation",
8
+ "choiceArgument": {
9
+ "maker": "{{maker}}",
10
+ "holdingCid": "{{holding_cid}}",
11
+ "price": "{{price}}",
12
+ "quantity": "{{quantity}}",
13
+ "side": "{{side}}",
14
+ "orderType": "{{order_type}}",
15
+ "tradedAssetId": "{{baseAsset}}",
16
+ "quotedAssetId": "{{quoteAsset}}",
17
+ "holdingContext": {
18
+ "transferFactoryCid": "{{allocation_factory_cid}}",
19
+ "allocationFactoryCid": "{{allocation_factory_cid}}",
20
+ "expectedAdmin": "{{registrar}}",
21
+ "transferLegId": "{{transfer_leg_id}}",
22
+ "settlementRefId": "{{settlement_ref_id}}",
23
+ "extraArgs": {
24
+ "context": {
25
+ "values": {
26
+ "instrument-configuration": {
27
+ "tag": "AV_ContractId",
28
+ "value": "{{instrument_configuration_cid}}"
29
+ },
30
+ "utility.digitalasset.com/instrument-configuration": {
31
+ "tag": "AV_ContractId",
32
+ "value": "{{instrument_configuration_cid}}"
33
+ },
34
+ "sender-credentials": {
35
+ "tag": "AV_List",
36
+ "value": []
37
+ },
38
+ "utility.digitalasset.com/sender-credentials": {
39
+ "tag": "AV_List",
40
+ "value": []
41
+ },
42
+ "receiver-credentials": {
43
+ "tag": "AV_List",
44
+ "value": []
45
+ },
46
+ "utility.digitalasset.com/receiver-credentials": {
47
+ "tag": "AV_List",
48
+ "value": []
49
+ },
50
+ "app-reward-configuration": {
51
+ "tag": "AV_ContractId",
52
+ "value": "{{app_reward_configuration_cid}}"
53
+ },
54
+ "utility.digitalasset.com/app-reward-configuration": {
55
+ "tag": "AV_ContractId",
56
+ "value": "{{app_reward_configuration_cid}}"
57
+ },
58
+ "featured-app-right": {
59
+ "tag": "AV_ContractId",
60
+ "value": "{{featured_app_right_cid}}"
61
+ },
62
+ "utility.digitalasset.com/featured-app-right": {
63
+ "tag": "AV_ContractId",
64
+ "value": "{{featured_app_right_cid}}"
65
+ }
66
+ }
67
+ },
68
+ "meta": {
69
+ "values": {}
70
+ }
71
+ }
72
+ },
73
+ "expiresAt": "{{expires_at}}"
74
+ }
75
+ }
76
+ }
77
+ ],
78
+ "commandId": "{{randomUUID}}",
79
+ "userId": "{{user_id}}",
80
+ "applicationId": "temple",
81
+ "actAs": [
82
+ "{{maker}}"
83
+ ],
84
+ "disclosedContracts": [
85
+ {
86
+ "templateId": "{{orchestrator_template_id}}",
87
+ "contractId": "{{orchestrator_cid}}",
88
+ "createdEventBlob": "{{orchestrator_disclosure}}",
89
+ "synchronizerId": "{{orchestrator_synchronizer}}"
90
+ },
91
+ {
92
+ "templateId": "{{utility_app_registry_app_package_id}}:Utility.Registry.App.V0.Service.AllocationFactory:AllocationFactory",
93
+ "contractId": "{{allocation_factory_cid}}",
94
+ "createdEventBlob": "{{allocation_factory_disclosure}}",
95
+ "synchronizerId": "{{allocation_factory_synchronizer}}"
96
+ },
97
+ {
98
+ "templateId": "{{utility_app_registry_package_id}}:Utility.Registry.V0.Configuration.Instrument:InstrumentConfiguration",
99
+ "contractId": "{{instrument_configuration_cid}}",
100
+ "createdEventBlob": "{{instrument_configuration_disclosure}}",
101
+ "synchronizerId": "{{instrument_configuration_synchronizer}}"
102
+ },
103
+ {
104
+ "templateId": "{{utility_app_credential_package_id}}:Utility.Credential.V0.Credential:Credential",
105
+ "contractId": "{{sender_credentials_cid}}",
106
+ "createdEventBlob": "{{sender_credentials_disclosure}}",
107
+ "synchronizerId": "{{sender_credentials_synchronizer}}"
108
+ },
109
+ {
110
+ "templateId": "{{app_reward_configuration_template_id}}",
111
+ "contractId": "{{app_reward_configuration_cid}}",
112
+ "createdEventBlob": "{{app_reward_configuration_disclosure}}",
113
+ "synchronizerId": "{{app_reward_configuration_synchronizer}}"
114
+ },
115
+ {
116
+ "templateId": "{{featured_app_right_template_id}}",
117
+ "contractId": "{{featured_app_right_cid}}",
118
+ "createdEventBlob": "{{featured_app_right_disclosure}}",
119
+ "synchronizerId": "{{featured_app_right_synchronizer}}"
120
+ }
121
+ ]
122
122
  }
@@ -1,31 +1,31 @@
1
- {
2
- "commands": [
3
- {
4
- "CreateCommand": {
5
- "templateId": "{{utility-app-credential-packageId}}:Utility.Credential.V0.Credential:Credential",
6
- "createArguments": {
7
- "issuer": "{{registrar}}",
8
- "holder": "{{holder}}",
9
- "id": "{{credential_id}}",
10
- "description": "Credential granted to Investor that allows trading on UtilityApp.",
11
- "validFrom": null,
12
- "validUntil": null,
13
- "claims": [],
14
- "observers": {
15
- "map": [
16
- ["{{temple}}", {}]
17
- ]
18
- }
19
- }
20
- }
21
- }
22
- ],
23
- "commandId": "{{randomUUID}}",
24
- "userId": "mock",
25
- "applicationId": "temple-canton-js",
26
- "actAs": [
27
- "{{registrar}}",
28
- "{{holder}}"
29
- ],
30
- "disclosedContracts": []
31
- }
1
+ {
2
+ "commands": [
3
+ {
4
+ "CreateCommand": {
5
+ "templateId": "{{utility-app-credential-packageId}}:Utility.Credential.V0.Credential:Credential",
6
+ "createArguments": {
7
+ "issuer": "{{registrar}}",
8
+ "holder": "{{holder}}",
9
+ "id": "{{credential_id}}",
10
+ "description": "Credential granted to Investor that allows trading on UtilityApp.",
11
+ "validFrom": null,
12
+ "validUntil": null,
13
+ "claims": [],
14
+ "observers": {
15
+ "map": [
16
+ ["{{temple}}", {}]
17
+ ]
18
+ }
19
+ }
20
+ }
21
+ }
22
+ ],
23
+ "commandId": "{{randomUUID}}",
24
+ "userId": "mock",
25
+ "applicationId": "temple-canton-js",
26
+ "actAs": [
27
+ "{{registrar}}",
28
+ "{{holder}}"
29
+ ],
30
+ "disclosedContracts": []
31
+ }