some thoughts about ts-sdk and marlowe-runtime #144
-
I will just post my situation here.
now I almost got it working using a token but just at the end the last transaction gets signed but fail at the end.
here is the code that was adapted for this
and I also got the python requests code working to read all contracts of a specific wallet and
this outputs something like this: So, I believe that the value of using the typescript-sdk is a good thing because it can guide you in setting up all the needed datatype format, like in the contract you can define certain values with lovelace or party {"address": "<receiveaddress"} I also received a lot of feedback from the team, but these are just short amounts of text and ideas and sometimes even a workshop but failed to do it - I would be happy to go through this in the future with anyone together live coding and sharing screen and such to make a better understanding. I am thus now stuck and give it some maturing time... |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
actually this is al resolved... I figured out thanks to the demo code and some struggle - don't bother |
Beta Was this translation helpful? Give feedback.
-
Hi Kevin! So glad you were able to resolve the issues, I'm posting a response anyways in case somebody else runs into the same issue. Sorry about the delay, most of us had days off during the holidays.
The Marlowe Runtime is a backend service with a REST API, so you can use any language that supports HTTP requests to interact with it. If you already had it working with Python (I assume in the backend) there might be no need to use the TypeScript/JavaScript SDK. The SDK is a suite of libraries/packages designed to ease the development inside the JS/TS ecosystem (web browsers, node.js, deno). One of the packages
The SDK is intended to work both in JS and TS, we do recommend using TS because if you have the tooling setup correctly it can help you catch errors without running the code. But we do acknowledge that is not trivial to setup a TS project with all the different development environments (ESM vs CJS, Node vs Deno vs Browser, Rollup vs Webpack vs Parcel, Flask, etc). So if you prefer to use JS instead is completely fine as well. We do try to provide a good DX for both languages, so anything we can do to improve the plain JS development experience is welcome. A pattern that we use in some of the packages (we are working into getting into all packages) is to provide a guards module. Whenever we talk of
This was my bad 😅, I should have marked the 0.3.0-rc with a proper tag so we don't override the
We might need to improve the documentation around JS modules, but you should not use both Hope this helps, please let us know if you have any other question or feedback. |
Beta Was this translation helpful? Give feedback.
-
here we have the fixed code (it works now, ugly and complicated)
|
Beta Was this translation helpful? Give feedback.
Hi Kevin! So glad you were able to resolve the issues, I'm posting a response anyways in case somebody else runs into the same issue. Sorry about the delay, most of us had days off during the holidays.
The Marlowe Runtime is a backend service with a REST API, so you can use any language that supports HTTP requests to int…