Skip to content
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

feat(protocol-kit): Add deployment functionality to Safe class #980

Merged
merged 217 commits into from
Sep 27, 2024

Conversation

DaniSomoza
Copy link
Contributor

@DaniSomoza DaniSomoza commented Sep 19, 2024

What it solves

Resolves #446

How this PR fixes it

  • Removed the SafeFactory class
  • created 2 private functions in the Safe class:
  • Added the deploy function in the Safe class.
  • Added getSafeAddressFromDeploymentTx util function: Returns the address of a SafeProxy from the deployment tx receipt.

Previous PR reference

#905
#948

DaniSomoza and others added 30 commits May 16, 2024 14:01
* Add `SafeWebAuthnSignerFactory` contract

* Add tests for passkey flow in `isOwner` function

* Add tests for signTransaction + createAddOwnerTx (wip)

* Add webauthnShim to emulate the Web Authentication API implemented in browsers

Copied from [safe-modules repo](https://github.com/safe-global/safe-modules/blob/main/modules/passkey/test/utils/webauthnShim.ts)

* Use webauthnShim for passkey mocks

* Deploy `FCLP256Verifier` in local hardhat environment and use it as as WebAuthnContract

* Run passkey tests only for contract versions 1.3.0 + 1.4.1

---------

Co-authored-by: Daniel Somoza <[email protected]>
@dasanra dasanra linked an issue Sep 20, 2024 that may be closed by this pull request
@DaniSomoza DaniSomoza marked this pull request as ready for review September 24, 2024 11:19
@dasanra dasanra changed the base branch from added-deployment-safe-class-viem to development September 25, 2024 09:52
@dasanra dasanra changed the title removed deploy function in Safe class feat(protocol-kit): Add deployment functionality to Safe class Sep 25, 2024
@coveralls
Copy link

coveralls commented Sep 25, 2024

Pull Request Test Coverage Report for Build 11069021382

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 76.73%

Totals Coverage Status
Change from base Build 11054857345: 0.0%
Covered Lines: 777
Relevant Lines: 948

💛 - Coveralls

@dasanra dasanra merged commit a6c49eb into development Sep 27, 2024
20 checks passed
@dasanra dasanra deleted the safe-deployment-refactor branch September 27, 2024 11:32
@github-actions github-actions bot locked and limited conversation to collaborators Sep 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Safe deployment functionality to Safe class
6 participants