🎉 Gate Square Growth Points Summer Lucky Draw Round 1️⃣ 2️⃣ Is Live!
🎁 Prize pool over $10,000! Win Huawei Mate Tri-fold Phone, F1 Red Bull Racing Car Model, exclusive Gate merch, popular tokens & more!
Try your luck now 👉 https://www.gate.com/activities/pointprize?now_period=12
How to earn Growth Points fast?
1️⃣ Go to [Square], tap the icon next to your avatar to enter [Community Center]
2️⃣ Complete daily tasks like posting, commenting, liking, and chatting to earn points
100% chance to win — prizes guaranteed! Come and draw now!
Event ends: August 9, 16:00 UTC
More details: https://www
MOVE language introduces GAS design: on-chain resource consumption calculation scheme analysis
The First GAS Design of MOVE Language: How to Calculate On-Chain GAS Consumption
Recently, a certain blockchain project announced its GAS plan. As the first GAS design of the MOVE language, this is seen as an innovative attempt. The project team elaborated on the principles, processes, calculation methods, and future adjustment plans for establishing GAS, and expressed their welcome for community suggestions.
GAS measurement is a fundamental concept of many blockchains, used to measure the computational and storage resources required to execute and store on-chain transactions. The GAS schedule determines the cost of all executions on-chain, used to calculate the GAS consumption during transaction execution.
design process
The GAS design process of the project includes the following steps:
Design Principles
The project team has established the following design principles:
GAS calculation method
When users submit a transaction, they need to specify two amounts:
The following fees will be charged during the execution of the transaction:
Final transaction fee = Total amount of GAS consumed × GAS unit price
For example, if a transaction consumes 670 GAS units and the user's specified GAS price is 100 Octa/unit, then the final fee is 670 × 100 = 67000 Octa = 0.00067 tokens.
If the transaction execution runs out of GAS, the sender will be charged the maximum GAS amount, and the changes made by the exchange will be revoked.
GAS Project Schedule Construction
Basic configuration: includes components unrelated to a single operation such as transaction size and maximum GAS units.
Transaction size: Initially set at 32KB, later adjusted to 64KB based on community feedback.
Maximum GAS Units: Defines the maximum amount of operations that can be executed in a single transaction, set to 1,000,000
Execution Costs: Assess the relative costs of MOVE instructions and native functions through benchmark frameworks and analytical tools.
Storage Costs: Consider the bandwidth of storage devices, IOPS capacity, and the cost of permanent disk usage.
Storage GAS fee = Project fee + ( byte fee × Number of bytes )
read, create, and write operations
In each transaction, even if the same resource is read/written multiple times, only one fee is charged.
stable GAS unit cost
A fixed GAS unit cost helps maintain the stability of the GAS plan, decoupled from the market value of tokens. The project team represents the GAS units with approximately three-digit precision, such as the transfer transaction cost being about 700 GAS units.
Community Participation
The project encourages community members:
GAS cost adjustment
The GAS plan serves as on-chain configuration storage and can be modified through governance proposals. Complex updates to the GAS formula require updates to node software and widespread adoption, ultimately approved through governance proposals.
future work direction
As the first GAS design for the MOVE language, this project lays the foundation for future work, looking forward to further optimizing the on-chain GAS mechanism through continuous improvement and community participation.