Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thesmartnik/ton-lootbox-contract
https://github.com/thesmartnik/ton-lootbox-contract
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/thesmartnik/ton-lootbox-contract
- Owner: TheSmartnik
- Created: 2023-06-14T16:15:53.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-09-20T00:41:39.000Z (about 1 year ago)
- Last Synced: 2024-10-14T21:10:21.197Z (about 1 month ago)
- Language: TypeScript
- Size: 319 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lootboxes Contracts
This project contains two contracts for lootboxes:
* nft-collection-lootbox
* multi-nft-lootbox## NFT Collection Lootbox
Allows to create a special NFT collection with predefined chances to drop items. NFT items won't be unique in this case
### Pros
* Behaves and looks identical to nft collection
* Resulting items are nfts. Code of an NFT Item can be changed### Cons
* Not unique NFTS
* Can't lootbox from multiple collections
* NFTs are minted by the owner (can be easily changed)## Multi NFT Lootbox
A special contract that allows to create lootboxes with NFTs from multiple collections. Chances are predifined and later redistributed among remaning NFTS
### Pros
* NFTS can be combined from multiple NFT collections
* Easy interaction by user. User sends predefined amount of money and receiveds unique NFT### Cons
* Heavier on gas