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

Extending ERC1155 with approvals by amount #5216

Merged
merged 8 commits into from
Sep 1, 2022
Merged

Extending ERC1155 with approvals by amount #5216

merged 8 commits into from
Sep 1, 2022

Conversation

ivanmmurciaua
Copy link
Contributor

@ivanmmurciaua ivanmmurciaua commented Jul 11, 2022

Approval by amount extension

@eth-bot
Copy link
Collaborator

eth-bot commented Jul 11, 2022

All tests passed; auto-merging...

(pass) eip-5216.md

classification
updateEIP
  • passed!

(pass) assets/eip-5216/ERC1155ApprovalByAmount.sol

classification
ambiguous
  • file assets/eip-5216/ERC1155ApprovalByAmount.sol is associated with EIP 5216; because there are also changes being made to EIPS/eip-5216.md all changes to corresponding assets are also allowed

EIPS/eip-approval_by_amount.md Outdated Show resolved Hide resolved
EIPS/eip-approval_by_amount.md Outdated Show resolved Hide resolved
EIPS/eip-approval_by_amount.md Outdated Show resolved Hide resolved
EIPS/eip-approval_by_amount.md Outdated Show resolved Hide resolved
EIPS/eip-approval_by_amount.md Outdated Show resolved Hide resolved
EIPS/eip-approval_by_amount.md Outdated Show resolved Hide resolved
EIPS/eip-approval_by_amount.md Outdated Show resolved Hide resolved
EIPS/eip-approval_by_amount.md Outdated Show resolved Hide resolved
EIPS/eip-approval_by_amount.md Outdated Show resolved Hide resolved
EIPS/eip-approval_by_amount.md Outdated Show resolved Hide resolved
Copy link
Member

@lightclient lightclient left a comment

Choose a reason for hiding this comment

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

Can you also pls delete the package-lock.json?

EIPS/eip-approval_by_amount.md Outdated Show resolved Hide resolved
@ivanmmurciaua
Copy link
Contributor Author

Can you also pls delete the package-lock.json?

LICENSE and package-lock.json deleted

EIPS/eip-5216.md Outdated Show resolved Hide resolved
EIPS/eip-5216.md Show resolved Hide resolved
EIPS/eip-5216.md Outdated Show resolved Hide resolved
@MicahZoltu MicahZoltu closed this Jul 23, 2022
@MicahZoltu MicahZoltu reopened this Jul 23, 2022
@github-actions
Copy link

The commit d3f7827 (as a parent of 9523834) contains errors. Please inspect the Run Summary for details.

Copy link
Contributor

@MicahZoltu MicahZoltu left a comment

Choose a reason for hiding this comment

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

The goal of the reference implementation is to give readers a rough idea of what an implementation of this token might look like in as little code as possible so it remains relevant to the standard at hand and isn't bogged down with supplemental stuff. This means that you should not include a complete project with dependencies, a build system, test infrastructure, etc. as that sort of content is much better kept in some repository that is actively maintained.

In this case, I recommend removing everything in assets/eip-5216 except ERC1155ApprovalByAmount.sol, IERC1155ApprovalByAmount, and maybe ExampleToken.sol. I would also combine them all into one file rather than spreading them out over several files, and in place of the dependency on @openzeppelin/* just put ERC1155.sol/IERC1155.sol and leave it as an exercise for the reader to find/implement ERC-1155. You can also completely remove the Ownable.sol reference as that is out of scope of this standard.

For the test cases, it is valuable to include test cases but they should ideally be in a form that is somewhat platform agnostic. An ideal set of test cases is a JSON file or something that is an array of function, inputs, expected_outputs or similar. You may want to include some mechanism for representing postcondition checking and/or event checking as well if appropriate. What isn't necessary is to have a fully executable test suite written in a particular language and doing so can make it harder for implementers to adapt to their own infrastructure (which may be wildly different from yours).

assets/eip-5216/README.md Outdated Show resolved Hide resolved
@ivanmmurciaua ivanmmurciaua requested a review from MicahZoltu July 24, 2022 15:59
EIPS/eip-5216.md Outdated Show resolved Hide resolved
assets/eip-5216/ERC1155ApprovalByAmount.sol Outdated Show resolved Hide resolved
assets/eip-5216/ERC1155ApprovalByAmount.sol Outdated Show resolved Hide resolved
assets/eip-5216/ERC1155ApprovalByAmount.sol Show resolved Hide resolved
assets/eip-5216/ERC1155ApprovalByAmount.sol Outdated Show resolved Hide resolved
Copy link
Member

@Pandapip1 Pandapip1 left a comment

Choose a reason for hiding this comment

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

LGTM. Please close and re-open this PR so that it merges.

@Pandapip1
Copy link
Member

Oops it appears there might have been a bug.

Copy link
Member

@lightclient lightclient left a comment

Choose a reason for hiding this comment

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

Not sure why the bot is having issues.

@Pandapip1
Copy link
Member

Oh. There's a problematic branch protection setting. Please disable the "require conversation resolution" option @lightclient.

@lightclient
Copy link
Member

@Pandapip1 it isn't enabled.

@ivanmmurciaua
Copy link
Contributor Author

Wow.. thanks guys

@ivanmmurciaua ivanmmurciaua requested review from lightclient and SamWilsn and removed request for SamWilsn and lightclient August 30, 2022 12:25
@eth-bot eth-bot merged commit 08f8f41 into ethereum:master Sep 1, 2022
nachomazzara pushed a commit to nachomazzara/EIPs that referenced this pull request Jan 13, 2023
* Create eip-approval_by_amount.md

* assets added to eip-5216

* MIT License, package-lock.json deleted and rename md to EIP number

* Issues with author names, spell check and EIP standard bot

* Removed all assets and README updated.

* License and other issues
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.

6 participants