daml/daml-assistant
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
..
daml-helper bump copyright (#16002) 2023-01-04 18:21:15 +01:00
daml-project-config/DA/Daml/Project bump copyright (#16002) 2023-01-04 18:21:15 +01:00
daml-sdk bump copyright (#16002) 2023-01-04 18:21:15 +01:00
exe/DA/Daml [Docs] Introduction to interfaces (#15837) 2023-01-12 12:11:53 +01:00
integration-tests bump copyright (#16002) 2023-01-04 18:21:15 +01:00
scala-daml-project-config bump copyright (#16002) 2023-01-04 18:21:15 +01:00
src/DA/Daml/Assistant bump copyright (#16002) 2023-01-04 18:21:15 +01:00
test/DA/Daml/Assistant bump copyright (#16002) 2023-01-04 18:21:15 +01:00
BUILD.bazel bump copyright (#16002) 2023-01-04 18:21:15 +01:00
daml-project-config.cabal update copyright notices to 2020 (#3939) 2020-01-02 21:21:13 +01:00
get-daml.sh bump copyright (#16002) 2023-01-04 18:21:15 +01:00