Open milancermak opened 2 months ago
can i take this up
Hey @PavitraAgarwal21! Thanks for showing interest. We've created an application for you to contribute to Alexandria. Go check it out on OnlyDust!
Is this issue still open? I'd like to complete it, but can't find a way to apply for it on onlydust @milancermak
Hey @oluwa-peski! Thanks for showing interest. We've created an application for you to contribute to Alexandria. Go check it out on OnlyDust!
There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a 👍 Because this issue is marked as stale, it will be closed and locked in 7 days if no further activity occurs. Thank you for your contributions!
issue still valid
Feature Request
Describe the Feature Request
Cairo 2.7.0 brought back the use of
dw
in const array. In Cairo0, it was used by a lot of projects to have the most efficient implementation of power of 2 and power of 10 since instead of looping it's just a lookup table.pow2 and pow10 are the most commonly used powers - for example, the former is used in Alexandria as well for bitshifting, the latter is often used for defi applications as we deal with powers of ERC20.decimals there.
Describe Preferred Solution
Something like:
And similarly for
pow2
.Related Code
Additional Context
If the feature request is approved, would you be willing to submit a PR? (Help can be provided if you need assistance submitting a PR)