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

The Generative drop v0 #7580

Closed
vikiival opened this issue Oct 10, 2023 · 7 comments · Fixed by #7745
Closed

The Generative drop v0 #7580

vikiival opened this issue Oct 10, 2023 · 7 comments · Fixed by #7745
Assignees
Labels
$$ ~51-150usd A-drop-page issues related to drop page A-generative intern tasks intended for internal team p1 preventing everyone from using app

Comments

@vikiival
Copy link
Member

Context

In KodaDot we are huge fans of generative and programatic art in KodaDot.



From UI perspective

  1. we first need to get drop of type generative waiting for Programatic drops #7570

  2. 

By default image of the art would be shown

  3. 
When user press run button image would change to iframe where src would be content + ?hash={hash}

. 
by default hash = accountId

variations 00


4. 

When user clicks variation you create new hash = encodeAddress(accountId, newss58)

where newss58 is number from 0 up to 15000 https://github.com/paritytech/ss58-registry/blob/30889d6c9d332953a6e3333b30513eef89003f64/ss58-registry.json#L1292C17-L1292C22


> at this step it is highly possible that you will re-mount iframe

  1. 

When user is satisfied with the iteration he or she creates and iteration

  2. 

Metadata are constructed on frontend as follows:


name: same as collection

description: same as collection

animation_url: content + hash
image: same as collection, wating for https://github.com/kodadot/workers/issues/169
iterationHash: hash
__other to be added
@vikiival vikiival added $$ ~51-150usd A-generative A-drop-page issues related to drop page labels Oct 10, 2023
@yangwao yangwao added p1 preventing everyone from using app intern tasks intended for internal team labels Oct 10, 2023
@yangwao
Copy link
Member

yangwao commented Oct 10, 2023

Who wants to pick up the challenge? cc @kodadot/internal-dev

@yangwao yangwao pinned this issue Oct 11, 2023
@vikiival
Copy link
Member Author

https://canary.kodadot.xyz/ahk/drops/chained

Collection is ready.

⚠️ Caveats.

  1. the generative collection in some cases (not this will have public price)
  2. check meta from API if it has price
  3. when meta > 0 you need to call api.tx.nfts.mint(collectionId, collection.count, accountId)
  4. you need to check users balance

@yangwao
Copy link
Member

yangwao commented Oct 18, 2023

hey @kodadot/internal-dev could someone have a look at this?
If you have any question please ping @vikiival

@Jarsen136
Copy link
Contributor

I will have a try. 👋

@Jarsen136 Jarsen136 self-assigned this Oct 18, 2023
@kodabot
Copy link
Collaborator

kodabot commented Oct 18, 2023

ASSIGNED - @Jarsen136 🔒 LOCKED -> Saturday, October 21st 2023, 13:36:19 UTC -> 72 hours

@Jarsen136
Copy link
Contributor

⚠️ Caveats.

  1. the generative collection in some cases (not this will have public price)

I'm not sure what dose it means: )

  1. check meta from API if it has price
  2. when meta > 0 you need to call api.tx.nfts.mint(collectionId, collection.count, accountId)

What should we do if the meta is equal to zero?
@vikiival

@vikiival
Copy link
Member Author

What should we do if the meta is equal to zero?

Same as other drops: Call an API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
$$ ~51-150usd A-drop-page issues related to drop page A-generative intern tasks intended for internal team p1 preventing everyone from using app
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants