constants.py 481 B

1234567891011121314
  1. RUNTIME_UPGRADE = "proposal_codex::runtime_upgrade"
  2. BASE_WEIGHT = "base_weight"
  3. DB_READS = "db_reads"
  4. DB_WRITES = "db_writes"
  5. BASE_DB = "base"
  6. DB_VARS = "vars"
  7. VARS = "vars"
  8. WRITE_WEIGHT = 100 * 1_000_000
  9. READ_WEIGHT = 25 * 1_000_000
  10. WEIGHT_PER_SECOND = 1_000_000_000_000
  11. WEIGHT_PER_MILLIS = WEIGHT_PER_SECOND / 1000 # 1_000_000_000
  12. WEIGHT_PER_MICROS = WEIGHT_PER_MILLIS / 1000 # 1_000_000
  13. MAX_BLOCK_WEIGHT = 2 * 1_000_000_000_000
  14. EXTRINSIC_BASE_WEIGHT = 125 * WEIGHT_PER_MICROS