Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ligo in JS #893

Open
Marigold-infrabot opened this issue Oct 13, 2022 · 2 comments
Open

Ligo in JS #893

Marigold-infrabot opened this issue Oct 13, 2022 · 2 comments
Labels

Comments

@Marigold-infrabot
Copy link

Objective
Deadline: 2022-11-30 00:00:00

@d4hines
Copy link
Contributor

d4hines commented Oct 13, 2022

Why?

tl;dr, to make it easy for web apps to interact with contracts written in Ligo and deployed to Deku-C.

I want calling a contract method to be as easy as:

await contract.tx("JsLigo", "<some ligo expression>")

For this we need to compile <some ligo expression> in the context of the contract. We can store the contract source code on-chain, but the ligo compiler needs to run in JS.

@d4hines
Copy link
Contributor

d4hines commented Oct 13, 2022

IMO it would be even better to generate Typescript helpers from Ligo contracts that provide type-safe interfaces to the contracts. However, compiling Ligo to JS is probably not too hard to do, and would be helpful in general.

@d4hines d4hines modified the milestone: EOY Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants