Replies: 2 comments 1 reply
-
Are you referring to the old style or new with 4.0? Details for the changes can be seen on #829 "Updated cross-contract call API" See #6 for more context on why this isn't feasible. There definitely has to be a larger conversation about the feasibility of this, as it would require turning our contracts into full DSL where sections of the async function are split into multiple calls, which has decently high overhead with a lot of implicit cross-contract calls. Either way would love to hear about some pain points people have. There are definitely ways our APIs can improve, but also there are some limitations based on the runtime and what functions we have to work with. |
Beta Was this translation helpful? Give feedback.
-
Once major pain point I ran into when making a XCC to execute a swap on ref finance was that I could not add a callback to Not sure if anyone else had run into this issue, but I couldnt find much support when we were dealing with it |
Beta Was this translation helpful? Give feedback.
-
I have heard that promises are somewhat hard to use and I just want to have this thread to collect feedback and ideas about this topic for the future improvements.
Historically, we discussed an opportunity to hack into
async
/await
syntax of Rust, but this sounds scary. Alternatively, I have recently read an article about lunatic runtime, so it might be another source for inspiration for someone.P.S. I only wanted to have a place to collect the painpoints, and I don't expect any actions regarding this idea any time soon.
Beta Was this translation helpful? Give feedback.
All reactions