Skip to content

Commit

Permalink
Update erc20 migration branch (#586)
Browse files Browse the repository at this point in the history
* Change the spelling of "StarkNet" to "Starknet" (#557)

* fix: link (#545)

* change StarkNet to Starknet

---------

Co-authored-by: Eric Nordelo <eric.nordelo39@gmail.com>

* add Cargo and Makefile

* add deps in cairo_project, create lib

* add presets

* add base lib

* add tests

* remove old cairo lib and interface

* remove unused import

* fix vars

* change external funcs to snake case

* remove unused import

* add tests for externals

* add bool assertions

* remove preset mods

* add IERC20 trait

* clean up test

* remove assertion

* simplify max_u256

* clarify error msg

* clean up python project. ready for rust/cairo1

* add erc165 + tests

* kickstart account module

* re-structure project

* re-structure project

* re-structure project

* update makefile

* re-structure project

* update to felt252, add use ContractAddress

* formatting

* remove colons from storage, remove _mint from initializer

* add constructor test

* add comments

* fix format

* check error msg in tests

* set max_u256 as func

* update cairo

* update cargo

* revert doc commit

* remove __init__

* refix link

---------

Co-authored-by: kongtaoxing <69096526+kongtaoxing@users.noreply.github.com>
Co-authored-by: Eric Nordelo <eric.nordelo39@gmail.com>
Co-authored-by: Martín Triay <martriay@gmail.com>
  • Loading branch information
4 people authored Mar 28, 2023
1 parent ae89fa5 commit a54e98c
Show file tree
Hide file tree
Showing 9 changed files with 918 additions and 88 deletions.
327 changes: 248 additions & 79 deletions Cargo.lock

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ members = [
]

[workspace.package]
version = "1.0.0-alpha.3"
version = "1.0.0-alpha.6"
edition = "2021"
repository = "https://github.com/starkware-libs/cairo/"
license = "Apache-2.0"
Expand Down Expand Up @@ -71,8 +71,10 @@ path-clean = "0.1.0"
pretty_assertions = "1.2.1"
proc-macro2 = "1.0"
quote = "1.0.21"
rayon = "0.9.0"
rayon = "1.7.0"
rstest = "0.16.0"
salsa = "0.16.1"
scarb-metadata = "1.0.1"
serde = { version = "1.0.130", features = ["derive"] }
serde_json = "1.0"
sha3 = "0.10.6"
Expand Down
2 changes: 1 addition & 1 deletion cairo
Submodule cairo updated 484 files
1 change: 1 addition & 0 deletions src/openzeppelin/lib.cairo
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
mod token;
mod tests;
2 changes: 1 addition & 1 deletion src/openzeppelin/tests.cairo
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mod test_mytest;
mod test_erc20;
Loading

0 comments on commit a54e98c

Please sign in to comment.