-
-
Notifications
You must be signed in to change notification settings - Fork 226
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
Convert project to TypeScript #70
Comments
Issue Status: 1. Open 2. Started 3. Submitted 4. Done This issue now has a funding of 75.0 DAI (75.0 USD @ $1.0/DAI) attached to it.
|
I would like to start this work. ❤️ |
@lazaridiscom, I found this file eccrypto-lite.js under the folder |
Since it appears to be unused, you can ignore that file for your typescript migration, we can remove it in a separate change. Please note that @lazaridiscom is not a MetaMask team member, and is not in a position to define the terms of this bounty, and is merely being helpful by offering his advice. Lazaridiscom, please try to avoid situations where external contributors mistake you for a team member. |
@lazaridiscom love the help!, your tips are very helpful. |
@mul53 Hello from Gitcoin Core - are you still working on this issue? Please submit a WIP PR or comment back within the next 3 days or you will be removed from this ticket and it will be returned to an ‘Open’ status. Please let us know if you have questions!
Funders only: Snooze warnings for 1 day | 3 days | 5 days | 10 days | 100 days |
Hey @lazaridiscom just realized with the work i currently have, I won't manage to finish the work, would be better to give someone else the bounty. |
Issue Status: 1. Open 2. Started 3. Submitted 4. Done Work has been started. These users each claimed they can complete the work by 266 years, 9 months from now. 1) alexandrumatei36 has applied to start work (Funders only: approve worker | reject worker).
I took an initial look at the repository and the preceding PR (#70), which contains pretty much the basic setup to get the ball rolling for any JS to TS conversion project. The next and most important step there would be to add all the relevant typing information for every API and object that is used by the project. I can see that there's a special variable called I expect this work to be done in 2 days. I say 2 instead of 1 just to pad in an extra day for unforeseen difficulties that I may encounter during implementation. To speed things up, can I ask where should I contact the maintainers to have a quicker response while I'm working on it? I know JavaScript and Typescript. I can pull this off.
I worked with ts for a blockchain project before, i want to do this job I worked with ts for a blockchain project before, i want to do this job Converting each parts into properly typed (no implicit "any") blocks; define interfaces for data structures; verify if tests gives the same results after conversion. Learn more on the Gitcoin Issue Details page. |
Hey! I saw this bounty to convert the JavaScript project to TypeScript. Is this bounty still open? Is anyone working on it right now? I saw the message from the bot above but I'm not sure so if someone could let me know the status that'd be great. Cheers. |
I should also add that it'd be nice if we can also convert the example into using TypeScript. |
@tunnckoCore what @lazaridiscom said is true, it contains a lot of followup tasks. But it can be done, just time i didn't have on my hands. |
Hi ppl 👋 You might benefit from enabling TS strict mode since the types, numbers, and binary have to be precise. In the CLI |
@danfinlay i just finished this issue, can you check it out ? #73 |
Hey there, back from a winter break. I see #73 has been submitted, but it did bypass the requested Gitcoin worker/approve process, which I suspect is why Chiro gave it 👎. We're going to review that work since it's done and decide from there, will be back here soon, sorry for the delay and the approve/stopped bounty on Chiro, feel free to re-apply, we'll admit if we decide against this submission. |
Okay, a quick review of #73, it seems to have merely moved the |
Hey guys I might also suggest you refactor and reuse all/most strings and numbers. You can convert everything to constants and you can also leverage For example Reference a constant & don't keep writing and instantiating the same string: Pull out weird values and describe them with JSDoc comments: Does it really need to use If you think it's helpful you can @-ping me any time, kudos, tip or 👍 or 🤗. https://gitcoin.co/tcrowe |
@danfinlay Do you mind doing the honors and sending in the payment for this bounty? |
⚡️ A tip worth 7.50000 DAI (7.5 USD @ $1.0/DAI) has been granted to @KiChjang for this issue from @danfinlay. ⚡️ Nice work @KiChjang! Your tip has automatically been deposited in the ETH address we have on file.
|
As a binary-heavy module with a lot of complicated parameters, this is a valuable module to add typescript to. In the past, we've failed to add a proper declaration file, so rather than take that half-measure, we should actually convert the module to TypeScript.
In case we add a bounty, we need well defined acceptance criteria. Those would be:
build
script which builds the typescript file into an output file.package.json
main
field should point to the built output.build
should be able to deterministically produce the same output.The text was updated successfully, but these errors were encountered: