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 additional transfer / mint / burn functions with _data parameter #315

Merged
merged 1 commit into from Oct 4, 2018

Conversation

adamdossa
Copy link
Contributor

@adamdossa adamdossa commented Oct 4, 2018

This PR adds transfer, mint & burn functions with an additional bytes _data parameter which is passed onto TransferManagers.

This would allow us to do off-chain whitelisting - for example if an exchange is generating a dynamic deposit address for a customer they could also provide a signed piece of data which authorises this address (assuming the issuer had added a TM that accepted this signed data).

More or less inspired from ERC 1400 although more ERC20 like in naming.

For the burn functions, I didn't include the non-data versions as these aren't part of the ERC20 specification in any case (probably the same argument could be made for mint, but that is already used in lots of places so I left the old version of the function).

Copy link
Contributor

@satyamakgec satyamakgec left a comment

Choose a reason for hiding this comment

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

Looks good to me @pabloruiz55 please have a second look

@pabloruiz55 pabloruiz55 merged commit 7992f9d into development-1.5.0 Oct 4, 2018
@satyamakgec satyamakgec deleted the off-chain-validation branch October 30, 2019 12:20
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.

None yet

3 participants