GithubHelp home page GithubHelp logo

tomasz-zdeb / daml-sandbox Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 98 KB

Step by step beginner guide on how to use Daml smart contract programming language and framework

License: MIT License

Haskell 100.00%
daml smart-contracts training-materials training-project

daml-sandbox's Introduction

Tomasz Zdeb ๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป

๐Ÿข Software Engineer | ๐Ÿ‘จ๐Ÿปโ€๐ŸŽ“ Computer Science Graduate

๐Ÿ˜ƒ Social: I enjoy being around others and engaging in social activities.
๐Ÿ’ช Resilient: I am open to learning from criticism, even if it's not pleasant.
๐Ÿง  Logical and intuitive: I tend to use a combination of logic and intuition when solving problems.
โš–๏ธ Balanced risk-taker: I generally prefer playing it safe but am willing to take risks occasionally.
๐Ÿ—‚๏ธ Organized: I am highly organized and likely appreciate structure in your life.
๐Ÿ”ง๐ŸŽจ Versatile: I possess both creative and practical skills, allowing me to adapt to various situations.
๐Ÿš€ Leadership: I am comfortable taking charge and leading others in group settings.
๐Ÿƒโ€โ™‚๏ธ Stress avoidance: I may sometimes struggle with stress and tend to avoid it.
๐Ÿ“… Routine-oriented: I prefer routine but find a lot of joy in spontaneous activities.
๐Ÿ’ž Considerate: I prioritize others' needs but also take care of myself.
๐Ÿ”ฎ Future-focused: I tend to plan for and think about the future.
๐Ÿค Reserved: I find it difficult to express my emotions to others.
๐Ÿ•ต๏ธ Analytical: I approach situations with a more analytical mindset.
๐ŸŒŸ Open to novelty: I enjoy trying new things and exploring new experiences.
๐Ÿคฒ Altruistic: I am motivated by helping others succeed.
๐Ÿ—ฃ๏ธ Verbal communicator: I prefer expressing yourself through speaking rather than writing.
โณ Work-life balance awareness: I recognize the importance of work-life balance but struggle to maintain it consistently.
๐Ÿ’ก Decision-making: I use a combination of analysis and gut feeling when making decisions.
๐ŸŒŸ Confident: I have a relatively high level of self-confidence.
๐ŸŒ Holistic thinker: I tend to focus on the big picture before diving into the details.

daml-sandbox's People

Contributors

tozdeb avatar

Watchers

 avatar

daml-sandbox's Issues

Finish the choices section

To finish the explanation of templates - the most important concept in Daml environment, finishing choices section in the guide should take place, to provide necessary information on the topic.

JSON API returns empty array on http://localhost:7575/v1/query GET with 200 response

While GET request is executed on http://localhost:7575/v1/query endpoint with JWT authorization, empty array is returned as a response.

I would like to:

  • define what causes the response to be an empty array
  • make the response contain contract data

I used Curl and Postman to try the request, both with the same result.

Headers

  • Authorization Bearer <JWT-token>
  • Default postman headers

JWT is generated as stated in Official Documentation.

Response

{
    "result": [],
    "status": 200
}

If JWT is not present: 401 Authentication Error code is thrown

Warning on non-issuer to non-issuer token offer

In Main.daml in manual testing script, when trying to offer a token from current owner which is not an issuer to another party (also not issuer) following warning message appears:

Tried to fetch or exercise -homePackageId-:Token:Token on contract 001f8b1d815e42f839d23a224e5e352f2b3cfe32b5d866c72a7d232b545c865e27 but none of the reading parties [Bob] are contract stakeholders [Alice,UserAdmin]. Use of divulged contracts is deprecated and incompatible with pruning. To remedy, add one of the readers [Bob] as an observer to the contract.

Though contracts behave as expected.

It would be nice to:

  • figure out why the warning appears
  • eliminate the cause.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.