Back
Project

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~

Languagesolidity
Skill LevelIntermediate
Total Length1.5h

Intended Learners

Who’s This Course For

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

Requirements

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

What You’ll Learn

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

Syllabus

  • 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 lessons
Access on mobile and desktop