Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Warplib import #985

Merged
merged 6 commits into from
Mar 10, 2023
Merged

Warplib import #985

merged 6 commits into from
Mar 10, 2023

Conversation

rjnrohit
Copy link
Contributor

@rjnrohit rjnrohit commented Mar 10, 2023

Proposed solution to warplib import issue

@rjnrohit rjnrohit changed the base branch from develop to cairo-1.0 March 10, 2023 13:08
@piwonskp
Copy link
Contributor

linux_x64 should also contain those files

@rjnrohit
Copy link
Contributor Author

linux_x64 should also contain those files

done

@piwonskp
Copy link
Contributor

piwonskp commented Mar 10, 2023

@piwonskp piwonskp marked this pull request as ready for review March 10, 2023 16:22
@piwonskp piwonskp changed the base branch from cairo-1.0 to test_ERC20 March 10, 2023 21:31
@piwonskp piwonskp changed the base branch from test_ERC20 to erc20/storage March 10, 2023 21:47
@piwonskp piwonskp merged commit bf1a6eb into erc20/storage Mar 10, 2023
@piwonskp piwonskp deleted the warplib_import branch March 10, 2023 21:59
piwonskp added a commit that referenced this pull request Mar 20, 2023
* Get rid of hashbuiltin

* Fix WARP_USED_STORAGE

* Cleanup

* Fix WARP_NAMEGEN

* Fix storage consts

* Fix LegacyMap issues

* Fix uint256 serialization and construction

* Add missing condition

* Fix structs serialization

* Change `get_caller_address`path

* Transform `get_caller_address` output to felt

* Remove unused import

* Warplib import (#985)

* create u256 from 2 felts (#975)

* proposed sol: warplib import

* Add warplib::integer to corelib

* Add warplib::integer to x64

* Add integer functions to warplib.cairo

---------

Co-authored-by: Alejandro Labourdette <66191544+AlejandroLabourdette@users.noreply.github.com>
Co-authored-by: Piotr Piwoński <piwonskp@gmail.com>
Co-authored-by: Piotr Piwoński <piwonskp>

* Revert using `::` in generated functions not ported to cairo 1 yet

* Revert `WARP_USED_STORAGE::` in cairo 0.x scripts

* Remove unused import

* follow import convention

* Fix warplib errors

* Add missing math imports to arm warplib.cairo

* Rename UINT256 to GET_U128

* Create ADDRESS_INTO_FELT import directly

* Revert "Create ADDRESS_INTO_FELT import directly"

This reverts commit f388dc6.

* Replace `get_u128_try_from_felt_result` with corelib implementation

* Add newlines

---------

Co-authored-by: Piotr Piwoński <piwonskp>
Co-authored-by: Rohit Ranjan <rohitrjn629@gmail.com>
Co-authored-by: Alejandro Labourdette <66191544+AlejandroLabourdette@users.noreply.github.com>
piwonskp added a commit that referenced this pull request Mar 20, 2023
* update assert writer

* update assignment writer

* update variable declaration statement writer

* update return writer

* support member access for values and namespaces

* remove Uint256 warp structure from literal writer

* use expression as condition in if statement writer

* update expression statement writer

* update event definition writer

* update cairo function definition writer

* update tempvar writer to just use let

* move imports, util funcs, const and structs definition from SourceUnit to Contract writer

* convert felts to uint

* create u256 from 2 felts

* use u256_from_felts to create u256 values

* Fix linting errors

* add import to get u256 from felts

* add missing semicolon at the end of imports

* remove unnecessary semicolon in cairoAssert

CairoAssert node is an expression, hence it appears as a statement only as a child of ExpressionStatement. The writer for this node already adds the semicolon.

* fix typo in mapping generated info

* fix assertion error messsage

* rename cairo1 binary for linux folder

* no need to replace identifiers with contract member access

* remove unused import and spaces

* fix decorators style

* Erc20 storage fixes (#979)

* Get rid of hashbuiltin

* Fix WARP_USED_STORAGE

* Cleanup

* Fix WARP_NAMEGEN

* Fix storage consts

* Fix LegacyMap issues

* Fix uint256 serialization and construction

* Add missing condition

* Fix structs serialization

* Change `get_caller_address`path

* Transform `get_caller_address` output to felt

* Remove unused import

* Warplib import (#985)

* create u256 from 2 felts (#975)

* proposed sol: warplib import

* Add warplib::integer to corelib

* Add warplib::integer to x64

* Add integer functions to warplib.cairo

---------

Co-authored-by: Alejandro Labourdette <66191544+AlejandroLabourdette@users.noreply.github.com>
Co-authored-by: Piotr Piwoński <piwonskp@gmail.com>
Co-authored-by: Piotr Piwoński <piwonskp>

* Revert using `::` in generated functions not ported to cairo 1 yet

* Revert `WARP_USED_STORAGE::` in cairo 0.x scripts

* Remove unused import

* follow import convention

* Fix warplib errors

* Add missing math imports to arm warplib.cairo

* Rename UINT256 to GET_U128

* Create ADDRESS_INTO_FELT import directly

* Revert "Create ADDRESS_INTO_FELT import directly"

This reverts commit f388dc6.

* Replace `get_u128_try_from_felt_result` with corelib implementation

* Add newlines

---------

Co-authored-by: Piotr Piwoński <piwonskp>
Co-authored-by: Rohit Ranjan <rohitrjn629@gmail.com>
Co-authored-by: Alejandro Labourdette <66191544+AlejandroLabourdette@users.noreply.github.com>

---------

Co-authored-by: AlejandroLabourdette <jal.labourdette@gmail.com>
Co-authored-by: Carmen Cabrera <kr1000a@gmail.com>
Co-authored-by: Rohit Ranjan <rohitrjn629@gmail.com>
Co-authored-by: Alejandro Labourdette <66191544+AlejandroLabourdette@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants