-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Remove legacy deployer (#4777)
Removes the legacy deployer. Account contracts are now "deployed" by directly calling the constructor. This means that account contracts are by default privately deployed and cannot execute public function calls. Note that this will break once we require fee payment for every action. In order to allow an account contract to pay for its own deployment, we'll have to supply a FeePayload along with it, so the constructor can act as another entrypoint. Note that we cannot just have the entrypoint call the constructor because the entrypoint validates the call via an authwit, and this validation requires the contract to have been initialized. Pending: publicly deploy the account when needed (eg public authwit check). Builds on #4775
- Loading branch information
1 parent
b4cfc89
commit 20dc67b
Showing
15 changed files
with
98 additions
and
245 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
30 changes: 0 additions & 30 deletions
30
yarn-project/aztec.js/src/deployment/legacy/legacy_contract_deployer.ts
This file was deleted.
Oops, something went wrong.
151 changes: 0 additions & 151 deletions
151
yarn-project/aztec.js/src/deployment/legacy/legacy_deploy_method.ts
This file was deleted.
Oops, something went wrong.
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.