-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
ERC-777 A New Advanced Token Standard #907
Conversation
@jbaylina |
revokeAllOperators requires a for loop. Here is a way to implement deletable mappings where you can delete them with O(1). https://ethereum.stackexchange.com/a/42540/26015 It seems ridiculous, but I'm not sure what exactly the gas cost or practicality is. |
This EIP now includes a logo. And the logo is not licensed CC0 as per EIP-1. |
@fulldecent The reason the logo is under CC is to add a restriction to prevent the use of the logo for non ERC777 tokens and other technologies (such as wallets). I'm happy to change it to CC0 if the community think it's better that way. Also technically the logo is only referenced in the EIP, we should include it in this repo as well. D0 you know what the best approach is? Maybe similar to #858: add an |
I very much prefer CC0; attribution makes everything hard if you actually follow it (which 99% of people don't, so they all violate the copyright anyway). I am also not personally a fan of copyrights in the first place. |
@fulldecent @MicahZoltu Alright I will move it to CC0 and add the logo in the repo. The idea was really not to do attribution or to restrict the use of the logo in any way except for false advertising. |
Unfortunately, there are very few licenses that don't require attribution. CC0, Unlicense, WTFPL are the common ones. All of them are basically "release into public domain". There are no licenses (unfortunately) that release into public domain with exceptions. There is also no license for "release into public domain and also release all patents", which is really needed IMO. |
Please comment on this: #777 (comment) |
@fulldecent @MicahZoltu Done, the logo is now under CC0 and is included in this repo. (Before it was just referenced from jacquesd/erc777 which contains the reference implementation) Note that the images do appear broken, that's normal they are links to where the image will be once merged into the master branch of /ethereum/EIPs. After merging the images will appear. |
EIPS/eip-777.md
Outdated
<table> | ||
<tr> | ||
<th>Image</th> | ||
<th><img src="https://github.com/ethereum/EIPs/blob/master/EIPs/eip-777/logo/png/ERC-777-logo-beige-192px.png?raw=true" height="46px" align="top"></img></th> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend changing this to use markdown rather than HTML and use relative links instead of absolute links. This way the images work both in the PR and on any branch.
I think the syntax is something like this for the image link, though you should look at the GitHub Markdown docs for specifics.
![Beige](EIPs/eip-777/logo/png/ERC-777-logo-beige-192px.png)
This is a courtesy notice to let you know that the format for EIPs has been modified slightly. If you want your draft merged, you will need to make some small changes to how your EIP is formatted:
If your PR is editing an existing EIP rather than creating a new one, this has already been done for you, and you need only rebase your PR. In addition, a continuous build has been setup, which will check your PR against the rules for EIP formatting automatically once you update your PR. This build ensures all required headers are present, as well as performing a number of other checks. Please rebase your PR against the latest master, and edit your PR to use the above format for frontmatter. For convenience, here's a sample header you can copy and adapt:
|
@Arachnid Thanks for the notice, the eip draft has been adapted to the new format. @MicahZoltu thanks for your feedback. I have updated the links to be relative and they seem to work, but the new travis hook is complaining about them. I have run the travis jobs locally and I noticed that links on the generated page for the EIP work fine and the images with the relative links are displayed. So I'm guessing there is something wrong with the way the links to the local |
You need to use relative URIs - instead of |
Sorry I was unclear. I did fix the links, and Jordi should update this PR soon with the fix, but at least with my fork, the build still fails because of the links related to the folder. |
Ah, right. htmlproofer does not like the fact that there is a directory with the same name as the file. We probably need a better way to handle this in general. I'm open to suggestions. |
I based the If the folder is named |
c0f5082
to
c27803c
Compare
- Clarify unclear sections of the spec - Fix typos and grammar mistakes - Improve aesthetics of the text
- Don't refer to the repo as the official repo but the repo of the reference implementation - Fix a small typo in the AuthorizedOperator event
EIPS/eip-777.md
Outdated
--- | ||
eip: 777 | ||
title: A New Advanced Token Standard | ||
author: Jordi Baylina @jbaylina, Jacques Dafflon @jacquesd, Thomas Shababi @tshabs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please put usernames in parens, so they'll be automatically linkified and the bot can determine they're authors.
EIPS/eip-777.md
Outdated
category: ERC | ||
created: 2017-11-20 | ||
requires: 820 | ||
replaces: 20 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this really replace ERC20?
@Arachnid Have the "EIP collaborators" approved this to be accepted as draft? I believe your merging here was premature. |
@fulldecent To be accepted as a draft, an EIP only needs to be syntactically correct and not obviously stupid; it doesn't imply approval. An author asked me to merge it OOB, so I did. |
@fulldecent I prefer for discussion to have individual concrete PRs than discuss them in the long thread. |
One question, imagine the scenario that a malicious person in any of both parties implement a gas exhausting function and consume deliberately the remaining gas. In the case of the sending party even if the owner gave operator permission to a third party the call will keep remaining out of gas and the operator will lose value by trying to execute the transaction in behalf of the sending party. In the other case the sending party will lose value by trying to send value to the receiving party. A standardized gas limit should be provided for |
* ERC777 A New Advanced Token Standard * ERC777: Add ERC777 Logo * ERC777: Normalize EIP/ERC names * ERC777: Spec for tokensToSend when burning tokens * ERC777: Update official repository * ERC777: Clarification and corrections - Clarify unclear sections of the spec - Fix typos and grammar mistakes - Improve aesthetics of the text * ERC777: Change terminology of the repo, small fix - Don't refer to the repo as the official repo but the repo of the reference implementation - Fix a small typo in the AuthorizedOperator event * ERC777: logo & release to public domain (CC0) * ERC777: Use markdown not html & relative links * ERC777: Adapt to new EIP template * ERC777: Use solidity syntax and fix relative links * ERC777: Add discussions-to link * ERC777: Fix link in discussion-to * ERC777: Fix image links * ERC777: Fix eip type * ERC777: Update header
Is ERC777 vulnerable from short address attack? If it is, how to avoid it? |
Tjis is the PR discussed in #777
Pending issues required for the standard to be approved
listOperators(address account) constant public returns(address[])
(Will not be implemented).revokeAllOperators(address account) public
(Will not be implemented)