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

Add batch delegate with sig ERC1271 #113

Closed
wants to merge 5 commits into from

Conversation

neokry
Copy link
Collaborator

@neokry neokry commented Aug 4, 2023

Updates ERC721 votes to allow for batch ERC1271 delegate with sig. Will be used to improve delegation UX for collection plus: https://hackmd.io/eFSgnXefSUujGr75EqPCCg

  • adds batchDelegateBySigERC1271 to allow users to delegate tokens from multiple ERC1271 accounts
  • adds getBatchDelegateBySigTypedDataHash to easily compute typehash for tests and clients

Code review:

  • Is the batch signature safe to use here?

@neokry neokry temporarily deployed to Test August 7, 2023 06:55 — with GitHub Actions Inactive
@neokry neokry changed the base branch from main to v2-generic-manager August 7, 2023 06:56
@neokry neokry temporarily deployed to Test August 7, 2023 06:58 — with GitHub Actions Inactive
@neokry neokry requested a review from iainnash August 7, 2023 07:04
@jgeary jgeary marked this pull request as ready for review August 16, 2023 15:54
@jgeary jgeary self-requested a review August 16, 2023 15:54
Copy link
Contributor

@jgeary jgeary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@neokry neokry temporarily deployed to Test August 17, 2023 04:00 — with GitHub Actions Inactive
return
keccak256(
abi.encodePacked(
"\x19\x01",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@neokry openzeppelin has a nice lib for eip712 to verify this.

@neokry neokry marked this pull request as draft August 17, 2023 04:46
@neokry neokry closed this Oct 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants