-
Notifications
You must be signed in to change notification settings - Fork 4
Remo/repackage #20
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
Merged
Merged
Remo/repackage #20
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
75120d3
Split to packages. Plece Primer in a package that maintain its classhash
remollemo 5ca984b
Test: primer class-hash is expected value
remollemo 0bcdbca
review comments
remollemo d1ac7ad
review comments 2
remollemo 151c00e
fix primer clash validation script
remollemo 2038733
extract some common stuff to testing_utils
remollemo b1e97bd
Add explicit release settings to contracts/Scarb.toml to ensure Prime…
remollemo 15f452e
review issues
remollemo 1096b63
use absolute imports
remollemo a0e038b
remove tests re-export facades
remollemo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| [package] | ||
| name = "account_factory" | ||
| edition.workspace = true | ||
| version.workspace = true | ||
|
|
||
| [lib] | ||
|
|
||
| [dependencies] | ||
| contracts = { path = "../contracts" } | ||
| openzeppelin.workspace = true | ||
| starknet.workspace = true | ||
| starkware_utils.workspace = true | ||
|
|
||
| [dev-dependencies] | ||
| assert_macros.workspace = true | ||
| snforge_std.workspace = true | ||
| starkware_utils_testing.workspace = true | ||
| testing_utils = { path = "../testing_utils" } | ||
|
|
||
| [[target.starknet-contract]] | ||
| sierra = true | ||
|
|
||
| [[test]] | ||
| build-external-contracts = [ | ||
| "contracts::primer::primer::Primer", | ||
| "testing_utils::dummy_contracts::DummyEthAddressContract", | ||
| "testing_utils::dummy_contracts::SecondDummyEthAddressContract", | ||
| ] | ||
| name = "account_factory_unittest" | ||
|
|
||
| [profile.dev.cairo] | ||
| unstable-add-statements-functions-debug-info = true | ||
| unstable-add-statements-code-locations-debug-info = true | ||
| inlining-strategy = "avoid" | ||
|
|
||
| [scripts] | ||
| test = "snforge test" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
contracts/src/account_factory.cairo → account_factory/src/lib.cairo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| pub mod account_factory; | ||
| #[cfg(test)] | ||
| pub mod test; | ||
| pub(crate) mod test; | ||
| pub mod utils; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,36 +1,30 @@ | ||
| [package] | ||
| edition.workspace = true | ||
| name = "contracts" | ||
| version.workspace = true | ||
| # Pinned to ensure Primer class hash stability - do not change, is it would break PRIMER_CLASS_HASH | ||
| edition = "2024_07" | ||
| version = "0.1.0" | ||
|
|
||
| [lib] | ||
|
|
||
| [dependencies] | ||
| openzeppelin.workspace = true | ||
| openzeppelin_upgrades.workspace = true | ||
| starknet.workspace = true | ||
| starkware_utils.workspace = true | ||
| # Pinned to ensure Primer class hash stability - do not change, is it would break PRIMER_CLASS_HASH | ||
| starknet = "2.12.2" | ||
|
|
||
| [dev-dependencies] | ||
| assert_macros.workspace = true | ||
| snforge_std.workspace = true | ||
| starkware_utils_testing.workspace = true | ||
|
|
||
| [[target.starknet-contract]] | ||
| sierra = true | ||
|
|
||
| [scripts] | ||
| test = "snforge test" | ||
|
|
||
| [lib] | ||
|
|
||
| [profile.dev.cairo] | ||
| inlining-strategy = "avoid" | ||
| panic-backtrace = true | ||
| unstable-add-statements-code-locations-debug-info = true | ||
| unstable-add-statements-functions-debug-info = true | ||
| unstable-add-statements-code-locations-debug-info = true | ||
| inlining-strategy = "avoid" | ||
|
|
||
| [profile.release.cairo] | ||
| inlining-strategy = 30 | ||
| # Explicit release settings for deterministic Primer class hash | ||
| sierra-replace-ids = true | ||
|
|
||
| [[test]] | ||
| build-external-contracts = ["starkware_utils::erc20::erc20_mocks::DualCaseERC20Mock"] | ||
| name = "contracts_unittest" | ||
| [scripts] | ||
| test = "snforge test" | ||
|
cursor[bot] marked this conversation as resolved.
|
||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,8 +1,4 @@ | ||
| pub mod account_factory; | ||
| pub mod earn_reporter; | ||
| pub mod eth_712_account; | ||
| pub(crate) mod known_addresses; | ||
| pub mod primer; | ||
| pub mod strategy_implementation; | ||
|
|
||
| #[cfg(test)] | ||
| pub(crate) mod test_utils; | ||
| mod test; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1 @@ | ||
| pub mod primer; | ||
| #[cfg(test)] | ||
| pub mod test; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.