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 ERC: ERC-1155 Permit Approvals #223

Open
wants to merge 24 commits into
base: master
Choose a base branch
from

Conversation

calvbore
Copy link

When opening a pull request to submit a new EIP, please use the suggested template: https://github.com/ethereum/EIPs/blob/master/eip-template.md

We have a GitHub bot that automatically merges some PRs. It will merge yours immediately if certain criteria are met:

  • The PR edits only existing draft PRs.
  • The build passes.
  • Your GitHub username or email address is listed in the 'author' header of all affected PRs, inside .
  • If matching on email address, the email address is the one publicly listed on your GitHub profile.

@eip-review-bot
Copy link
Collaborator

eip-review-bot commented Jan 27, 2024

File ERCS/erc-7604.md

Requires 1 more reviewers from @axic, @g11tech, @SamWilsn, @xinbenlv

@eip-review-bot eip-review-bot changed the title Add ERC: ERC-1155 Permit Style Approvals Add ERC: ERC-1155 Permit Approvals Jan 27, 2024
@github-actions github-actions bot added w-ci and removed w-ci labels Jan 27, 2024
ERCS/erc-draft.md Outdated Show resolved Hide resolved
calvbore and others added 2 commits January 28, 2024 15:52
Co-authored-by: Andrew B Coathup <28278242+abcoathup@users.noreply.github.com>
@github-actions github-actions bot added w-ci and removed w-ci labels Jan 28, 2024
@github-actions github-actions bot removed the w-ci label Jan 28, 2024
@github-actions github-actions bot added the w-ci label Jan 28, 2024
@github-actions github-actions bot removed the w-ci label Jan 29, 2024
@github-actions github-actions bot added the w-ci label Jan 29, 2024
@github-actions github-actions bot added w-ci and removed w-ci labels Jan 30, 2024
ERCS/erc-7604.md Outdated Show resolved Hide resolved
@github-actions github-actions bot added w-ci and removed w-ci labels Feb 1, 2024
ERCS/erc-7604.md Outdated

The "permit" approval flow for both [ERC-20](./erc-20.md) and [ERC-721](./erc-721.md) are large improvements for the existing UX of the token underlying each ERC. This ERC extends the "permit" pattern to [ERC-1155](./erc-20.md) tokens, borrowing heavily upon both [ERC-4494](./erc-4494.md) and [ERC-2612](./erc-2612.md).

The structure of [ERC-1155](./erc-1155.md) tokens requires a new ERC to account for the token standard's use of both token IDs and balances (also why this ERC requires [ERC-5216](./erc-5216.md)). An additional field of arbitrary `bytes` is added for extra data to be added to the signatures in the case that the permit function would be extended in some way.
Copy link

Choose a reason for hiding this comment

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

I am personally not a fan of the inclusion of an arbitrary bytes data field.
I feel it's unnecessary and out of scope of the requirements of a permit function - 99.99% of the time it will be a waste of gas (about 350 units).
It's also not present in any other permit standards.

Copy link
Author

Choose a reason for hiding this comment

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

I am open to removing this, but I would also like to hear some more feedback on possible usecases, or if it is mostly useless, before making a final decision.

Copy link
Author

Choose a reason for hiding this comment

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

@emiliolanzalaco I think I have removed all the references to the additional bytes data paramater. Can you give the doc a look over to make sure I didn't miss any?

Copy link

There has been no activity on this pull request for 2 weeks. It will be closed after 3 months of inactivity. If you would like to move this PR forward, please respond to any outstanding feedback or add a comment indicating that you have addressed all required feedback and are ready for a review.

@github-actions github-actions bot removed the w-ci label May 1, 2024
Copy link

github-actions bot commented May 1, 2024

The commit 0133674 (as a parent of 0775bf3) contains errors.
Please inspect the Run Summary for details.

@github-actions github-actions bot added w-ci and removed w-stale labels May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants