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

Research the usage of sui kiosk to sell the phones and the routers #795

Open
xmonader opened this issue Dec 5, 2024 · 8 comments
Open
Assignees
Milestone

Comments

@xmonader
Copy link
Contributor

xmonader commented Dec 5, 2024

Is your feature request related to a problem? Please describe

Maybe we can use threefold connect for reserving 20000 phones and 20000 routers using sui kiosk https://docs.sui.io/standards/kiosk

Describe the solution you'd like

Easy way via threefold connect to buy these phones and routers

@xmonader xmonader changed the title Research the usage of sui kiosk Research the usage of sui kiosk to sell the phones and the routers Dec 5, 2024
@ramezsaeed ramezsaeed added this to the 3.16.x milestone Dec 11, 2024
@0oM4R
Copy link

0oM4R commented Dec 22, 2024

The current situation is we are able to create a kiosk, I was struggling to mint a new object to be added to the kiosk, I was able to do so using flatland module, i was able to place and list the nfts, but while testing the purchase process, i got an error related to the transfer policy, i can't find any transfer policy for the flatland::flatlander and I can't create any transfer policy as I'm not the publisher.

summary: Looks like we need to create our own move package to test that flow.

@0oM4R
Copy link

0oM4R commented Dec 22, 2024

@0oM4R
Copy link

0oM4R commented Dec 22, 2024

@0oM4R
Copy link

0oM4R commented Dec 23, 2024

WIP: creating a POC package that allows trading phones
https://github.com/0oM4R/tf-overflow

@0oM4R
Copy link

0oM4R commented Dec 25, 2024

work completed:
completed the move logic, published the trading package, and finally created a transfer policy

some blockers that we need to take in consideration:

  • devnet will not work with kiosk, it requires some other configuration that I wasn't able to provide.
  • get tokens from sui discord
  • we neeed to implement the purches logic, the workshop implemented only airdrop

telegram-cloud-photo-size-4-6008090267472741044-y

@0oM4R
Copy link

0oM4R commented Dec 26, 2024

I was able to mint items but i can't trade them it is not clear yet why

@0oM4R
Copy link

0oM4R commented Dec 29, 2024

We can mint any amount of items to the kiosk, as NFT each item will have ID and some other fields we can specify based on our need.

we need to have our package and create a type and a transfer policy;
the type can have some rules for transfer but this is not clear for me yet.
we can have a logic that do batch mint but internally we have to mint/list/place each item alone.
for the current demo user must have kiosk to buy an item, but the documents do not mention anything about that
but i got this answer from their AI agent

as a buyer, you need to own a kiosk to purchase items. If the connected address doesn't own a kiosk (missing KioskOwnerCap), the purchase will fail. When you purchase an item, it gets placed into your kiosk.
For more details, you can refer to the Kiosk Demo Dapp README.

points need farther research:

  • the trasfer policy and rules to restrict one time purches per item
  • take from kiosk, looks like the current demo is using deprecated kiosk function, so the item is locked and i can't take it fro m kisk after purches

also Sameh mentioned some other points

  • refund the NFT coasts on spisific date this is related to transfer policy and rules
  • we need add a limitation for minting to stop on 20000 or a date

@0oM4R
Copy link

0oM4R commented Dec 29, 2024

you can use https://sui-kiosk.vercel.app/
and search for kioskID: 0x4b057da02cbf66f593827dbf9b1fd8fc8fbb21e02ce347704a54719973d1dc03
you can buy and list items into your own kiosk, but as i mentioned, we can't take the item from the kiosk, i think this is because an issue with the package implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants