ton-society / grants-and-bounties

TON Foundation invites talent to imagine and realize projects that have the potential to integrate with the daily lives of users.
https://ton.org/grants
281 stars 128 forks source link

Wallet plugin development tutorial #408

Closed mbaneshi closed 6 months ago

mbaneshi commented 8 months ago

Summary

Tutorial about how plugin works , how develop them

Context

Wallet v3 and Wallet v4 Differences The only difference between Wallet v3 and Wallet v4 is that Wallet v4 makes use of plugins that can be installed and deleted. These plugins are special smart contracts which are able to request a specific number of TON at a specific time from a wallet smart contract.

Wallet smart contracts, in turn, will send the required amount of TON in response without the need for the owner to participate. This is similar to the subscription model for which plugins are created. We will not learn these details, because this is out of the scope of this tutorial. These are from wallet tutorial

Learning goals

Practical smart contract development

References

Maybe later

Estimate suggested reward

TBD

pranav-singhal commented 7 months ago

Proposal for Tutorial Creation: Understanding and Developing Plugins for Wallet v4

Objective

The primary objective of this tutorial is to provide a clear, informative, and practical guide on:

Scope

This tutorial will cover the following key areas:

  1. Introduction to Wallet v4 Plugin System: An overview of the plugin system introduced in Wallet v4, including its purpose and how it differentiates from Wallet v3.
  2. Understanding Plugins as Smart Contracts: Detailed explanation of how plugins work as special smart contracts that can request and receive TON autonomously.
  3. Development Environment Setup: Guidance on setting up the necessary development environment for smart contract and plugin development.
  4. Developing Your First Plugin: A step-by-step guide to developing a plugin for Wallet v4, including coding, and deployment.

Learning Outcomes

Upon completion of this tutorial, participants will be able to:

Format and Delivery

The tutorial will be delivered in the following formats:

Timeline

The development and release of this tutorial are proposed to take place over a period of 3 weeks, with checkpoints for draft review, feedback incorporation, and finalisation.

Budget Estimate

I estimate a budget for $1500.

We can break it down into milestones based on a further detailed discussion on the effort required and the present resources available for learning wallet V4

delovoyhomie commented 6 months ago

@mbaneshi, thank you for your initiative! Our current focus does not include plans for writing an article similar to the one proposed, as there already exists documentation on this topic, notably seen at https://docs.ton.org/participate/wallets/contracts#wallet-v3. I appreciate your understanding and wish you the best in your future endeavors.

delovoyhomie commented 6 months ago

Proposal for Tutorial Creation: Understanding and Developing Plugins for Wallet v4

@pranav-singhal, thank you for your proposal. From what I've observed, the challenge lies in the use cases that the community can offer. Currently, there are only a few suggestions regarding the development of subscription payment solutions for access to the closed channel, with ProTON being the only visible solution at the moment.

Once this resonates with the community and we see a genuine need for it, it will be implemented!