A demo for Kiosk's functionality.
- Install dependencies (you can use any package manager)
pnpm install
- Run the development server
pnpm turbo dev
An interactive demo for Kiosk, giving the following flows for a Kiosk owner.
- Create a Kiosk if the account doesn't have one.
- View the Kiosk details (profits, items count, address), the items that are included, the listings and the locked status.
- (Place / list for sale) of owned objects from the connected wallet's address to the Kiosk.
- (Delist / list for sale / take from Kiosk) For items in the Kiosk.
- Withdraw Kiosk profits.
Apart from the management flows, there's also the purchase flow.
You can type a kiosk's address on the search bar and view the contents of it.
If there are items listed for sale, you can purchase them directly. When you purchase an item, it gets placed into your Kiosk. If the connected address doesn't own a Kiosk (missing kioskOwnerCap), the purchase will fail.
Currently, the demo supports the following Transfer Policy cases:
(based on the @mysten/kiosk
SDK)
- No rules
- Royalty rule (soft royalties)
- Kiosk Lock Rule
- Combination of (3 + 4) (strong royalties enforcement)