polkadot_config.toml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. [package]
  2. authors = ["Your Name <your@email.com>"]
  3. version = "0.1.0"
  4. # Source files to be compiled.
  5. input_files = ["flipper.sol"]
  6. # Contracts to be compiled.
  7. # If no contracts are specified, solang will compile all non-virtual contracts.
  8. contracts = ["flipper"]
  9. # Specify required import paths.
  10. import_path = []
  11. # Define any importmaps.
  12. # import_map = { "@openzeppelin" = "/home/user/libraries/openzeppelin-contracts/" }
  13. import_map = {}
  14. [target]
  15. name = "polkadot"
  16. address_length = 32
  17. value_length = 16
  18. [debug-features]
  19. # Log debug prints to the environment.
  20. prints = true
  21. # Log runtime errors to the environment.
  22. log-runtime-errors = true
  23. # Add debug info to the generated llvm IR.
  24. generate-debug-info = false
  25. [optimizations]
  26. dead-storage = true
  27. constant-folding = true
  28. strength-reduce = true
  29. vector-to-slice = true
  30. common-subexpression-elimination = true
  31. # Valid wasm-opt passes are: Zero, One, Two, Three, Four, S, (focusing on code size) or Z (super-focusing on code size)
  32. wasm-opt = "Z"
  33. # Valid LLVM optimization levels are: none, less, default, aggressive
  34. llvm-IR-optimization-level = "aggressive"
  35. [compiler-output]
  36. verbose = false
  37. # Emit compiler state at early stages. Valid options are: ast-dot, cfg, llvm-ir, llvm-bc, object, asm
  38. # emit = "llvm-ir"
  39. # Output directory for binary artifacts.
  40. # output_directory = "path/to/dir"
  41. # Output directory for the metadata.
  42. # output_meta = "path/to/dir"
  43. # Output everything in a JSON format on STDOUT instead of writing output files.
  44. std_json_output = false