-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat!: Include contract class id in deployment info (#4223)
**Breaking changes:** - Aztec.js `Contract` object and generated ts wrappers now hold a `ContractInstance` instead of a `CompleteAddress`. - Updated `addContract` CLI command to require initHash and salt instead of partialAddress, needed to generate the ContractInstance **Other changes:** - Updated contract deployment data, contract deployment event, new contract data, and other structs to include the contract class id. - `ContractDao` now holds a `ContractInstance` reference instead of a `CompleteAddress`. - Moved functions to compute address to a separate module within circuits.js. - Killed `DeploymentInfo` struct in favor of `ContractInstance` - Updated types in `noir-protocol-circuit` to handle new structures for new contract data, and updated address computation. **Comments** - CompleteAddress still around, meant to let a user receive funds without registering themselves, and has public key in plain. - Unclear whether to store initiHash+salt+portal or just saltedInitHash in instances in the node. - Unclear if portal should be part of saltedInitHash also. Fixes #4054
- Loading branch information
1 parent
e99a882
commit 0ed4126
Showing
96 changed files
with
1,482 additions
and
1,292 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
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.