İçeriğe geç

Compiling (Move)

Bu içerik henüz dilinizde mevcut değil.

Once you have a package set up, you can compile your Move code by doing:

Terminal window
aptos move compile

If run successfully, you should receive a Terminal output like so

Terminal window
{
"Result": [
"<PUBLISHING_ADDRESS>::<MODULE_NAME>"
]
}

Compiled Move packages contain a folder structure that resembles the one below.

  • Dizinbuild/
    • Dizinpackage_name/
      • Dizinbytecode_modules/
        • Dizindependencies/
        • module_name.mv
      • Dizinsource_maps/
        • Dizindependencies/
        • module_name.mvsm
      • Dizinsources/
        • Dizindependencies/
        • module_name.move
      • BuildInfo.yaml
  • Dizinscripts/
  • Dizinsources/
    • module_name.move
  • Dizintests/
  • Move.toml

The bytecode modules folder contains the compiled Move bytecode for your module(s) (such as module_name.mv). To learn more about the bytecode and its security features, see why move?

The source maps folder contains source maps (such as module_name.mvsm) which allow users to map the compiled bytecode back to the source code and relevant dependencies.