I’m trying to grab a contract inside a trigger, I want to use queryContractKey
From the docs,
queryContractKey
: (Template a, HasKey a k, Eq k, ActionTriggerAny m, Functor m) => k → m (Optional (ContractId a, a))
Find the contract with the given key
in the ACS, if present.
How do I interpret the signature, and write the correct code, below is a line from the DA market place
Some (listingServiceCid, _) <- queryContractKey @Listing.Service exchange (operator, exchange, exchange)
So is that interpreted as resultIGet <- queryContractKey @templateName something (keyval1, keyval2, keyval3)
What exactly goes after @templateName
, where “something” is, its not clear to me from the signature in the docs.