Skip to main content

neo_devpack_solidity/runtime/storage/storage_impl/
gas_costs.rs

1use super::*;
2
3impl Default for StorageGasCosts {
4    fn default() -> Self {
5        // Neo N3 compatible gas costs
6        Self {
7            sstore_set: 8000,       // Create new storage entry
8            sstore_reset: 8000,     // Update existing storage entry
9            sstore_clear: 8000,     // Delete storage entry
10            sload: 4000,            // Load from storage
11            storage_byte_cost: 400, // Cost per byte stored
12        }
13    }
14}