daml/daml-assistant/exe/DA/Daml
Moisés Ackerman bc79f15ae0
[Docs] Introduction to interfaces (#15837)
* Add Cash template

* Add NFT template

* Add Asset interface

* Add interface instance Asset for Cash

* Add interface instance Asset for NFT

* Add tests for Asset interface instances

* add comment for RejectTransfer/WithdrawProposal

* Use unqualified 'view' function in 'view' definition

* Prefix interface types with I and view types with V

* Use verbose names for templates and choices

* Add example for queryInterface

* Add example for queryInterfaceContractId

* Define tests as functions taking 'Parties'

* Define cashAndNftTest reusing mkAssetTest

* cashAndNftTest checks the return value of queryInterface directly

* Use 'debug' on the result of 'queryInterface{,ContractId}'

* Interface instances

* capitalize names

* Polymorphic Daml Script

* Add hint about serializable types under viewtype

Co-authored-by: Remy <remy.haemmerle@daml.com>
Co-authored-by: carrielaben-da <91496516+carrielaben-da@users.noreply.github.com>
Co-authored-by: Stefano Baghino <43749967+stefanobaghino-da@users.noreply.github.com>
2023-01-12 12:11:53 +01:00
..
Assistant.hs [Docs] Introduction to interfaces (#15837) 2023-01-12 12:11:53 +01:00