返回
项目实战

Building an Automatic Payment Protocol on Telos

In this project, we will implement a simple automatic payment protocol, which is a continuous and automated payment system implemented through smart contracts, so that you no longer have to worry about being owed wages by your boss~

语言solidity
难度中等
总时长1.5小时

目标学习者

这门课是给谁上的

  • Developers interested in blockchain and smart contracts.
  • Developers interested in Telos.

要求

  • Understand the relevant knowledge of smart contract development
  • Understand the basic usage of Foundry
  • Understand the basic concepts of Telos

你会学到什么

  • Automatic payment protocol based on Telos test network
Telos
Automated wage transactions concept

课程安排

  • Unit 1 - Course Introduction

    In this section, we will introduce what the automatic payment protocol is and implement an ERC20 token as a payment medium.


  • Unit 2 - Import Dependencies

    This section introduces the import of related dependencies and the definition of interfaces.


  • Unit 3 - Define structures and state variables

    In this section, we will introduce the state variables in the automatic payment protocol to better manage the key data in the protocol.


  • Unit 4 - Project Initialization

    In this unit, we will introduce the core functions of the contract and the prerequisite operation for transferring tokens: approve.


  • Unit 5 - Implement Automatic Payment Functions

    In this unit, we will introduce how to implement the automatic payment function, where the payer (Boss) calculates the amount payable in seconds.


  • Unit 6 - Realize Salary Withdrawal Function

    In this unit, we will introduce how to implement the salary extraction function and realize the salary settlement within seconds.


  • Unit 7 - Interaction

    In this chapter, you will learn how to build and deploy an automatic payment contract and interact with on-chain contracts.

practice

Building an Automatic Payment Protocol on Telos

21 小节
移动端和桌面端均可访问