This is a follow up to alex_matson’s reply regarding UserAdmin parties
How do I grab the user admin party without hardcoding it? Right now I need to go to the damlhub GUI, and click on userAdmin to see the ledger party, but I don’t want to / don’t need to be hardcoding that.
Also, how can I create contracts on behalf of the userAdmin when the app is deployed on DamlHub? Right now I login with my email, and I’m assigned a ledger party ID, but how can I login with the userAdmin?
I need to have some templates where the issuer is the userAdmin.
How do I configure the trigger for Daml hub? Right now I run locally, where I specify the party?
--trigger-name Trigger:autoSendExampleAssetAccountProposal \
--ledger-host localhost \
--ledger-port 6865 \
--ledger-party a
EDIT:
No longer need a solution on deploying Daml trigger, just needed to upload the Dar file, and the Daml Hub UI will have an extra step for the triggers
[quote=“Max, post:1, topic:4266, full:true”]
This is a follow up to alex_matson’s reply regarding UserAdmin parties
How do I grab the user admin party without hardcoding it? Right now I need to go to the damlhub GUI, and click on userAdmin to see the ledger party, but I don’t want to / don’t need to be hardcoding that.
Also, how can I create contracts on behalf of the userAdmin when the app is deployed on DamlHub? Right now I login with my email, and I’m assigned a ledger party ID, but how can I login with the userAdmin?
I need to have some templates where the issuer is the userAdmin.
Edit:
No longer need solution for deploying as party on Daml Hub, just had to upload the dar, and daml hub will show a separate screen for triggers.
How do I configure the trigger for Daml hub? Right now I run locally, where I specify the party?
--trigger-name Trigger:autoSendExampleAssetAccountProposal \
--ledger-host localhost \
--ledger-port 6865 \
--ledger-party a
EDIT:
No longer need a solution for deploying daml trigger. Just needed to upload the dar file, and daml hub will give extra step for triggers.
I’m trying to understand the docs here https://hub.daml.com/docs/api/
But I can’t seem to find explicit steps on running the trigger as a party, or perhaps I’m simply not understanding how to deploy the trigger on daml hub. The instructions just say deploy the daml trigger along with your Dar, but when I build the Dar file I don’t see a separate trigger dar file