E2E Property Rentals Written in Daml
Nothing is loaded from YouTube until you press play, and then without tracking cookies.
About this video
Daml is a development framework for creating systems of record that securely connect across business processes and data boundaries while retaining privacy, guaranteeing data integrity, and enforcing strict authorization. Allowing such systems to cross boundaries — legal, regulatory, organizational, or other — enables them to form seamless economic networks.
📖Get started with Daml: bit.ly/tryDaml 📚Learn more about Daml Smart Contracts: bit.ly/learn_daml 📮Check out our blogs: bit.ly/daml-blog-engineering 📋Become a Daml certified expert: bit.ly/daml-certification
🔎 Please create a free account on project: DABL and deploy this smart contracts based chat application on your ledger. You get your own URL to share with everyone, and now have your own collaboration system for your projects!
📖 Here are two other end-to-end samples here and here that will help you get started when you are ready to host your own business app.
⏩ What better way than to create your roadmaps and important to-dos on Daml smart contracts based, project:DABL hosted, OpenWork Board! Board is a Kanban-style card tracking app.
👏 For any questions or assistance please feel free to write to us. Stay safe❗️
#dlt #smartcontract #blockchain #damlsmartcontract #digitalasset #ledger #technicalskills #DLT #skillset
Transcript
1,096 wordsCaptions as YouTube publishes them, usually machine-generated, so names such as Daml and Canton can be misheard.
- 0:00
hello everybody um i'm fabio i hope to to talk to you all soon um i've joined the company a couple of weeks ago and as part of my onboarding i prepared a small learning project based on the platform so the demo demo the tools and also um built a small small ui um that is using basically um typescript and react and material ui and and basically i'd like to share with you the learnings and a bit of the the experience because um it's kind of a new buy test ride on of the demo platform and
- 0:38
it's it's interesting to evaluate the learning curve and the effort um from scratch basically so someone that has some development experience but not no deep um insight into the platform and so i'll just explain you a bit the process i'll try i try to model so it's a it's a rental process uh this is something i'm going through uh so it's on top of my mind and so it was a good candidate and so basically it was like this we
- 1:08
have a well-known authority that creates offers a license to an agency and registers a property and then the landlord can rent the property and can also delegate um the rental to to the agency and that has also to show a license to show a license um in order to be able to to to accept this delegation and from there through non-consuming choices we go to offer visits to people potential
- 1:41
tenants that get in touch of ledger and we schedule they ask to schedule a visit and the tenant accepts and and then the renter the potential renter will apply might apply uh by submitting an application and if everything works uh fine then agency will accept one of those applications and we have a we have a rental contract so this is basically uh the process and the sdk errors i touched are demo the ide um the system of course
- 2:19
the sandbox the navigator also try to to build a small trigger to clean up stages that are pending after the the rental contract is completed and thanks to tomorrow it's that helped me um figuring out what was not working there and very small pieces and bits of uh this ui that is using the json api um so i'd like to to to point out the cost so how much time i spent in every part of this of this exercise um it was most for me it was mostly
- 2:57
learning demo and modeling the agreements probably because of my very very little exposure to the language and the ledger model so i had to learn um and actually taking building the ui took not so much time because i started from a boilerplate that i reuse for experiments and it is using a typescript reactor redux and material ui and material ui table so not the uh the times that that are coming out of the recommended path but still not not so much time it was quite quick um and then some reflecting and
- 3:38
absorbing the lessons and the trigger was half of the tops so i'd like to show you just a very very quick um demo of the ui so it's a quite simple ui it's nothing nothing nothing special it's quite similar to the navigator it just these different components i didn't start from from the create react app that the language you guys are building specifically for for donald because i actually didn't i didn't know and i was most more familiar with this code base
- 4:15
i started from from that and probably this is why it took a bit a bit more time but still one day um so what i'd like to do right now is to login as an authority and and maybe to create a new property and the other thing that i'd like to do that i can do actually in this very small sample here because not all the choices and actions are hooked uh just this couple of them is to connect as a landlord and to ask to
- 4:57
put the property on rent so that's it and then uh i want i want to show you the whole process but i'd like to show you that through the navigator which is connected to the same sandbox you can can continue and so so basically as the landlord you can delegate the rental to the agency and you can go on so i won't show you the whole process because it's going to take quite a long time it's quite a linear process not fully but quite linear there are some some things that are quite
- 5:38
interesting um and but i'd like to spend this uh these few seconds that uh are left to share a few a few learnings and the first the first page i have more but what i found out is that demo is quite unlike any programming language so programming language is part of it but and download are many interactive interacting concepts and many ways to model a multi-party process it's quite hard to check it fully and
- 6:14
you have to think thoroughly about about it and and then there are several more things that so that i would be happy to share if you ping me and maybe we'll find a format to share more more learnings so there was what would you mind meeting mike perfect there was one question that i got over slack regarding um how did this process and a little more detail compared to your your previous experience with with getting started in other dlts um my previous experience is on actually
- 6:49
enterprise ethereum and it was quite traumatic compared to damo because um solitude is quite closer to a programming language it's not a very high level i level language you can't really think about about agreements starting from the language itself you have to build this on top so it was much longer what i found is that using demo actual actually the complexity of modeling is not so much uh dealing with the language but dealing
- 7:24
with the agreement logic so the thing is that you have to think truly about agreements themselves so the complexity is kind of intrinsic more than accidental to the tool which is great because it means that in my opinion the language works very well the ledger model works very well