Skip to main content

Developing on Vara Network

Introduction

As a cutting-edge blockchain programs engine, Vara Network leverages the robust Gear Protocol for seamless execution of WebAssembly (Wasm) programs. Integrating Gear Protocol empowers Vara to create a developer-friendly environment that excels in implementing and running programs with unparalleled flexibility, accommodating both intricate logic and complex functionalities. This collaboration ensures developers can unleash their creativity while maintaining a strong focus on safety and security.

With Vara Network and Gear Protocol working hand in hand, the world of blockchain programs becomes more accessible and dynamic, offering endless possibilities for developers and users alike.

Messaging Concept

Understanding the message communication model and its benefits is of utmost importance for the safety and success of developers working with Vara Network. This innovative model is built upon the principles of the Actor Model, where all participants, including programs and users, are considered "actors." These actors interact seamlessly by exchanging messages.

Explore the comprehensive resources available in this Wiki to delve deeper into the development process and leverage the full potential of the message communication model. This valuable reference provides clear insights and guidance on implementing smart contracts with efficiency and precision.

Rent-Based system

Message rent

Vara enables rent for messages stored in the Waitlist.

note

According to the Actor Model in Gear Protocol, actors exchange messages. One of the Gear-specific entities is the Waitlist - a database where messages (not transactions) reside.

A message enters payable storage with locked funds for a maximum duration in N blocks. In M blocks (where M<N), a message can leave storage, paying rent for M blocks from locked funds and freeing the rest of this lock (N-M) back. The Rent Pool is a synthetic address that keeps all rent payments during the current staking ERA. At the end of the ERA, the rent payment redistributes rent shares among the validator set according to their ERA points.

If the message remains in storage for its maximum duration N, it is automatically removed from storage, and the entire locked funds are distributed to validators (but not more than N in case of network congestion). Unlike programs, remaining messages in the waitlist cannot be prolonged.

Why is this Important?

  • Efficient Resource Utilization: The message expiration system in the Vara Network prevents the accumulation of outdated or unused programs within its storage. By automatically expiring and messages after a predetermined period, the network optimizes resource utilization, reducing clutter and ensuring a clean ecosystem for active and relevant programs.
  • Stimulating Utility Token Use: To extend the life of their programs beyond the initial expiration date, owners must pay rent using utility tokens. This mechanism incentivizes and stimulates the use of utility tokens within the Vara ecosystem. As a result, the circulation of utility tokens increases, enhancing their overall utility and promoting a healthy token economy.
  • Promoting a Sustainable Economic Model: Vara Network's thoughtful program life cycle approach ensures that network resources are allocated to actively maintained and useful programs. By utilizing a rent-based system, Vara fosters a sustainable economic model, wherein programs that continue to provide value can be sustained over time, leading to a healthier and more robust network.

How to Start Developing on Vara Network?

  1. Learn program development using the developer documentation.
  2. Explore and try a batch of ready-made programs on GitHub.
  3. Take a free developer course at Gear Academy.