DEV Community

Crypto Gig
Crypto Gig

Posted on

3

How to build a NFT presale and staking dapp in open network?

I have recently developed a nft presale and staking dapp in open network and it was a really thrilling challenge for me! I was new to open network and especially to FunC language. Nobody knows that and I cannot search for documents needed and no source code.
I have developed dozens of dapps like that in EVM and Solana and I had some experience in it but that was still no easy job.

Image description

I started with building presale smart contract with FunC. I first studied the FunC language and smart contract samples in open network documentation.

I have gotten to know that all data in open network is stored in cells and the cells can have 1023 bits and 4 references. After that, I started building smart contract with blueprint framework.

npm install ton@latest

I have built smart contract and compiled and wrap class for that. After that I tested with my test script and deployed with script.
After that, I have built presale website with React vite framework with following command

yarn create vite

And I have installed necessary packages like @tonconnect/ui-react and built interaction part with wallet.
Finally when I sent a transaction with wallet confirmation, I was in the great mood that I cannot express my impression at that time.

I think it is a really fun to develop a dapp in open network and really impressive experience.

I attached the link here

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

Top comments (0)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more