try-michelson issueshttps://gitlab.com/nomadic-labs/try-michelson/-/issues2020-06-19T15:04:39Zhttps://gitlab.com/nomadic-labs/try-michelson/-/issues/6Allow "Open in try-michelson" use-case2020-06-19T15:04:39ZJev BjörsellAllow "Open in try-michelson" use-case
We want to add a feature in ide.ligolang.org that allows a user to open the Michelson code produced by the ligo compiler (in the webide) in the try-michelson ide.
This would allow the user to further explore/typecheck the Michelson th...
We want to add a feature in ide.ligolang.org that allows a user to open the Michelson code produced by the ligo compiler (in the webide) in the try-michelson ide.
This would allow the user to further explore/typecheck the Michelson that is produced from their ligo smart contract.
This feature could equally be useful for IDE features that allow the user to "Share this Michelson on the try-michelson IDE".
What we would need from try-michelson is a way to get our Michelson loaded into the try-micelson website.
Two ways to achieve this come to mind;
1. base64 encode the Michelson, and stuff it in a get param
`https://try-michelson.tzalpha.net/?source=eyBwYXJhbWV0ZXIgKG9yIChpbnQgJWRlY3JlbWVudCkgKGludCAlaW5jcmVtZW50KSkgOwogIHN0b3JhZ2UgaW50IDsKICBjb2RlIHsgRFVQIDsKICAgICAgICAgRFVQIDsKICAgICAgICAgQ0RSIDsKICAgICAgICAgRElQIHsgRFVQIH0gOwogICAgICAgICBTV0FQIDsKICAgICAgICAgQ0FSIDsKICAgICAgICAgSUZfTEVGVAogICAgICAgICAgIHsgRElQIHsgRFVQIH0gOwogICAgICAgICAgICAgU1dBUCA7CiAgICAgICAgICAgICBESVAgeyBEVVAgfSA7CiAgICAgICAgICAgICBQQUlSIDsKICAgICAgICAgICAgIERVUCA7CiAgICAgICAgICAgICBDQVIgOwogICAgICAgICAgICAgRElQIHsgRFVQIDsgQ0RSIH0gOwogICAgICAgICAgICAgU1VCIDsKICAgICAgICAgICAgIERJUCB7IERST1AgMiB9IH0KICAgICAgICAgICB7IERJUCB7IERVUCB9IDsKICAgICAgICAgICAgIFNXQVAgOwogICAgICAgICAgICAgRElQIHsgRFVQIH0gOwogICAgICAgICAgICAgUEFJUiA7CiAgICAgICAgICAgICBEVVAgOwogICAgICAgICAgICAgQ0FSIDsKICAgICAgICAgICAgIERJUCB7IERVUCA7IENEUiB9IDsKICAgICAgICAgICAgIEFERCA7CiAgICAgICAgICAgICBESVAgeyBEUk9QIDIgfSB9IDsKICAgICAgICAgRFVQIDsKICAgICAgICAgTklMIG9wZXJhdGlvbiA7CiAgICAgICAgIFBBSVIgOwogICAgICAgICBESVAgeyBEUk9QIDQgfSB9IH0K`
This solution is simple, but will run into problems if the michelson code is too big.
2. Offer an endpoint that we can HTTP POST our Michelson source code to, and get a unique "share" url back. We would take the share url and present it to the user. An example of such a URL in the ligo web-ide looks like this: https://ide.ligolang.org/p/sWjf7_hrTZs4XcmVd8Gi7gAlexandre DoussotAlexandre Doussothttps://gitlab.com/nomadic-labs/try-michelson/-/issues/8Redo of the interface2020-03-12T11:22:36ZAlexandre DoussotRedo of the interfaceTry-michelson's interface ultimately proves to waste a lot of screenspace and is hard for new users to use. In that effect, a new version is being developed, using Tailwindcss instead of bulma as its CSS framework.Try-michelson's interface ultimately proves to waste a lot of screenspace and is hard for new users to use. In that effect, a new version is being developed, using Tailwindcss instead of bulma as its CSS framework.Alexandre DoussotAlexandre Doussot2020-04-17https://gitlab.com/nomadic-labs/try-michelson/-/issues/9Can't parse bad annotations2020-07-01T14:04:35ZAlexandre DoussotCan't parse bad annotationsThe error parser fails on the following contract:
```michelson
parameter (or nat %add bool %sub); storage nat; code { CDR; PUSH nat 1 ; ADD ; NIL operation; PAIR }
```The error parser fails on the following contract:
```michelson
parameter (or nat %add bool %sub); storage nat; code { CDR; PUSH nat 1 ; ADD ; NIL operation; PAIR }
```Alexandre DoussotAlexandre Doussothttps://gitlab.com/nomadic-labs/try-michelson/-/issues/10414 Request-URI Too Long2021-02-20T10:18:15ZDaniil414 Request-URI Too LongI'm trying to run the code which is more than 8190 symbols long, and I get 414 error.
Try "Run In Sandbox" here.
https://better-call.dev/delphinet/KT18sLzeXu1zr6mCBXfHNgpM8aNYTEndkT7P/code
Is there any way maybe other than encoding mic...I'm trying to run the code which is more than 8190 symbols long, and I get 414 error.
Try "Run In Sandbox" here.
https://better-call.dev/delphinet/KT18sLzeXu1zr6mCBXfHNgpM8aNYTEndkT7P/code
Is there any way maybe other than encoding michelson in the url?