In this section, we will learn the underlying technology of Vara Network: Gear Protocol, and master the basic knowledge of developing programs and smart contracts.
Language
Rust
Total Length
5.0h
Part of Learning Track
Build on Vara + 1
Introduction to the syntax of Gear Protocol
How to test and deploy Gear programs
In this chapter, we will teach you how to deploy a simple counter program to better understand the Gear language. Let's get started.
In this unit, we will learn the basic syntax of Gear Protocol, its standard library, the Mailbox concept, state function, metadata, and data encoding.
In this chapter, we will continue to learn Gear's advanced syntax, including asynchronous programming, reserved Gas, delayed messages, system signals, etc., to further understand the power of Gear protocol.
In this chapter, we will introduce in detail how to upload the Gear program, and how to use the testing tools gtest and gclient to debug and verify our program.