Gate Alpha 2nd Points Carnival Round 4 Hot Launch! Trade to Share $30,000 MORE & Alpha Points
Trade $MORE to unlock Listing Airdrops + $300K Points Prize Pool!
💰 Total Airdrop Volume: $30,000 MORE, Limited slots—first come, first served!
✅ Total Points: 2 Alpha Points per trade—accumulate points to share the $300K prize pool!
🔥Trade the Hottest On-Chain Assets First
For more information: https://www.gate.com/campaigns/1342alpha?pid=X&c=MemeBox&ch=vxDB0fQ5
The MOVE language pioneers the GAS design: an innovative on-chain resource computation method.
The First GAS Design of MOVE Language: An Innovative On-Chain Resource Calculation Method
The latest version of the MOVE language was originally designed to run without GAS, and therefore was not adequately prepared for a GAS plan. To meet the needs of the blockchain ecosystem, a well-known public chain platform recently announced its unique GAS plan, which is the first GAS design for the MOVE language and is regarded as a bold attempt.
The GAS plan clarifies the principles, processes, calculation methods, and future adjustment mechanisms. The platform stated that it will actively adopt community suggestions to jointly improve this innovative mechanism.
GAS measurement is a fundamental concept of many blockchains, defining the abstract amount of computational and storage resources required to execute and store on-chain transactions. The GAS plan determines the cost of all executions on-chain, used to calculate resource consumption during transaction execution.
design process
To ensure effective execution, the platform has taken the following steps:
Core Principles
The GAS design follows the principles below:
GAS calculation method
When users submit a transaction, they need to specify two quantities:
During the transaction execution process, the following will be charged:
Final transaction fee = Total GAS consumed × GAS unit price
If the transaction runs out of GAS during execution, the sender will be charged the maximum amount of GAS, and all changes will be reversed.
GAS Plan Construction
The GAS plan includes some components that are unrelated to individual operations, such as transaction size and maximum GAS units.
Most transactions are at the KB level, but the released MOVE modules can reach several KB to tens of KB. The platform initially set the transaction size at 32KB, but later adjusted it to 64KB based on community feedback to facilitate application development.
The maximum GAS unit defined in the GAS plan specifies the maximum amount of operations that can be executed in a single transaction, currently set at 1,000,000. Even with the largest framework upgrades, it typically does not exceed 90% of this limit.
By building a benchmark framework and using analytical tools, the team estimated the relative costs of all MOVE instructions and native functions. Considering system robustness and security, the final number of machine instructions required for execution was determined.
The storage of GAS fees takes into account the bandwidth for data access, IOPS capacity, and the cost of permanent storage. Accessing any state item incurs costs associated with verifying the entire blockchain state.
Storage GAS fee = Project fee + ( byte fee × Number of bytes )
read, create and write operations
stable GAS unit cost
Each operation and transaction itself has a relatively fixed unit cost, which helps to keep the GAS plan stable and decoupled from the market value of tokens.
Community Participation
The platform encourages community members:
GAS cost adjustment mechanism
The GAS plan serves as on-chain configuration storage and can be modified through governance proposals. It is designed to be scalable, allowing upgrades through governance proposals.
Future Outlook
As the first GAS framework of the MOVE language, this design lays the foundation for future work:
The team is exploring the concept of TTL for each project to automatically delete unaccessed state projects when the TTL expires, thereby optimizing on-chain data management.