Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ton-blockchain/token-contract
Fungible, Non-Fungible, Semi-Fungible Tokens Smart Contracts
https://github.com/ton-blockchain/token-contract
Last synced: about 16 hours ago
JSON representation
Fungible, Non-Fungible, Semi-Fungible Tokens Smart Contracts
- Host: GitHub
- URL: https://github.com/ton-blockchain/token-contract
- Owner: ton-blockchain
- License: other
- Created: 2022-01-31T19:54:19.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-07-29T02:08:12.000Z (4 months ago)
- Last Synced: 2024-08-03T15:06:20.981Z (3 months ago)
- Language: TypeScript
- Size: 327 KB
- Stars: 209
- Watchers: 13
- Forks: 107
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ton-smart-contracts - Official draft fungible, non-fungible token contracts
README
# Fungible, Non-Fungible, Semi-Fungible Tokens Smart Contracts
## NFT (Non-Fungible tokens) in `nft` folder
Basic implementation of smart contracts for NFT tokens and NFT collections in accordance with the [Standard](https://github.com/ton-blockchain/TIPs/issues/62).
`nft-collection.fc` - basic implementation of immutable NFT collection with royalty.
`nft-collection-editable.fc` - basic implementation of the NFT collection with royalty in which the author can change the content and royalty params.
It is preferable to use an editable collection in case if you decide to change content hosting in the future (for example, to TON Storage).
`nft-item.fc` - basic implementation of immutable NFT item.
[TonWeb](https://github.com/toncenter/tonweb) JavaScript SDK 0.0.38+ supports these contracts.
Also repo contains an example of a simple marketplace smart contract `nft-marketplace` and a smart contract for selling NFT for a fixed price for Toncoins `nft-sale`.
In a real product, marketplace and sale smart contracts are likely to be more sophisticated.
## Jettons (Fungible tokens) in `ft` folder
Basic implementation of smart contracts for Jetton wallet and Jetton minter in accordance with the [Standard](https://github.com/ton-blockchain/TIPs/issues/74).
Contains an example of a simple ICO smart contract.
## Semi-Fungible
Semi-Fungible tokens is combination of NFT and FT.
# Compile
Compiled contracts are in `build/` folders. Compiled by [func-0.3.0](https://github.com/ton-blockchain/ton/releases/tag/func-0.3.0).