forked from OpenZeppelin/cairo-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add upgrades to presets (OpenZeppelin#964)
* make account upgradeable * add upgradeable to preset name * add contract param to event assertion, add assert_only_event fn * add contract param in event assertions * switch param order for consistency in event assertion * update event assertion * make erc20 preset upgradeable and ownable * update erc20 preset contract name * add interfaces dir, add ierc20upgradeable * add new preset tests * fix mod name * add account preset interface * add interface for eth account preset * fix formatting * add erc721 upgradeable interface * make erc721 upgradeable * add tests for preset * fix formatting * add erc1155 preset interface * make erc1155 preset upgradeable * use case-specific interface for checking state after upgrade * add ownable and upgradeable tests * fix formatting * start changelog entries * update attributes * update account preset api * update erc20 preset api * fix typo * update erc721 preset api * add line in description * update erc1155 preset api * normalize descriptions * add upgradeable to the in-code doc * normalize in-code docs * update constructor comments * fix link * clean up imports * add contract param to event assertions, add assert_only_ * import event assertions from token tests * fix formatting * add changelog entry * fix comment * Apply suggestions from code review Co-authored-by: Eric Nordelo <[email protected]> * fix comments * update preset refs/names * add external fn index for presets * fix comment * add requirements to upgrade in api * update code block ex * update preset ex in usage * Apply suggestions from code review Co-authored-by: Eric Nordelo <[email protected]> * update preset interface names * update preset names in KNOWN_ORDER * fix comment in code block --------- Co-authored-by: Eric Nordelo <[email protected]>
- Loading branch information
1 parent
afd683f
commit 061cab2
Showing
32 changed files
with
1,501 additions
and
354 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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 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.