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

back port of custom uri support for non fungible tokens #65

Merged
merged 10 commits into from
Jul 6, 2022

Conversation

shorsher
Copy link
Member

@shorsher shorsher commented Jul 6, 2022

back port of #60, #61, and #64

shorsher added 10 commits July 6, 2022 14:49
The ERC721WithData contract now supports custom token URI's on mint.

 - constructor now takes an optional baseURI string
 - new MintWithURI method that sets the URI for the provided token id

Signed-off-by: Alex Shorsher <[email protected]>
 - Added new TokenFactory interface for ERC165 support
 - Updated ERC721WithData interace to include MintWithURI

Signed-off-by: Alex Shorsher <[email protected]>
`mint` and `createpool` api's now accept a `uri` parameter

Signed-off-by: Alex Shorsher <[email protected]>
Signed-off-by: Alex Shorsher <[email protected]>
 - only expose `uri` param on `TokenMint`
 - `iid` logic cleanup
 - better naming for cache of uri support

Signed-off-by: Alex Shorsher <[email protected]>
 - add short-circuit preventing unnecessary transactions

Signed-off-by: Alex Shorsher <[email protected]>
Signed-off-by: Alex Shorsher <[email protected]>
@shorsher shorsher changed the base branch from main to release-1.0 July 6, 2022 19:00
@shorsher shorsher merged commit a4658ab into hyperledger:release-1.0 Jul 6, 2022
@shorsher shorsher deleted the backport-uri branch July 6, 2022 19:12
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.

2 participants