Former Eth dev here looking for a quick start on TON dev that will get me up to speed on what I need to know to create an NFT store. Can someone drop a link?

Also, does the TON blockchain have native support for NFT/asset ownership, so I can do everything I need purely from a client side browser dApp, or will I need to create a smart contract to handle that?

Finally, what is the equivalent of Metamask for TON, a Chrome extension wallet that I can pop up to allow the user to make payments? Is there a favorite NPM module for interacting with it, either server or client side?

Jan 28, 2023, 8:31 PM
One more Q. TestNet faucet link?
Jan 28, 2023, 8:32 PM
@testgiver_ton_bot
Jan 28, 2023, 8:54 PM
thx. Best wallet to use for app dev? Chrome extension?
Do you want tutorial feedback here, or Discord, or where?
Nevermind. Tutorial says to submit a PR, so I assume the first step is to fork the tutorials repo.
Jan 28, 2023, 9:33 PM
I put a link in the message, the tutorial platform is open source, in its issues: https://github.com/ton-community/tutorials/issues
Jan 28, 2023, 9:33 PM
👍
Still would like to know if I have to create my own smart contract to manager NFT ownership and transfers for my upcoming NFT store, or if the TON blockchain has native support through an existing platform level smart contract or lib. Specific docs on thsi subject would be great.
Or, if there is an existing popular NFT store that makes its smart contract available publicly so I can do the same through its smart contract, or public REST API if has one, that would work too. Trying to avoid redo'ing existing work.
Jan 28, 2023, 9:36 PM
There are multiple NFT store projects that are open source, you can rely on them directly, or fork the contracts.

GetGems
Disintar
TON Diamonds

Look here if you just want to deploy an NFT: https://github.com/tondiamonds/ton-nft-deployer
Jan 28, 2023, 9:38 PM
I hope admin won’t ban me for saying this, but “prepare your *nus”.

You’ll need to deploy a tree of contracts for each collection. Each collection and each nft in that collection are separate contracts.

If you need to store values for each user, you’ll need to shard you dictionaries.

There’re no view methods between contracts, cross contract calls are async, wallets are smart contracts too.
but the whole architecture has decent logic behind it and mr @talkol ’s tutorials help a lot
Jan 28, 2023, 9:43 PM
If you want some details of how TON contract sharding works, you can read this post - https://blog.ton.org/how-to-shard-your-ton-smart-contract-and-why-studying-the-anatomy-of-tons-jettons

It’s about jettons (fungible tokens) but very similar thing goes on in NFT
Jan 28, 2023, 9:43 PM
NFTs are standardized in TEP 62:

https://github.com/ton-blockchain/TEPs/blob/master/text/0062-nft-standard.md

Basically, you need to create a NFT Collection (using its smart contract), and use it to create a NFT Item smart contract for each item in your collection.

To sell NFTs, you have to create a marketplace smart contract.

Check out the code of reference implementation here:

https://github.com/ton-blockchain/token-contract/tree/main/nft
Jan 29, 2023, 8:01 AM

© 2024 Draquery.com All rights reserved.