Language
Solidity
Total Length
1.5h
Part of Learning Track
Build on Telos + 1
In this section, we will introduce what the automatic payment protocol is and implement an ERC20 token as a payment medium.
This section introduces the import of related dependencies and the definition of interfaces.
In this section, we will introduce the state variables in the automatic payment protocol to better manage the key data in the protocol.
In this unit, we will introduce the core functions of the contract and the prerequisite operation for transferring tokens: approve.
In this unit, we will introduce how to implement the automatic payment function, where the payer (Boss) calculates the amount payable in seconds.
In this unit, we will introduce how to implement the salary extraction function and realize the salary settlement within seconds.
In this chapter, you will learn how to build and deploy an automatic payment contract and interact with on-chain contracts.
Language
Solidity
Total Length
1.5h
Part of Learning Track
Build on Telos + 1