콘텐츠로 이동

Compiling (Move)

이 콘텐츠는 아직 번역되지 않았습니다.

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.

  • 디렉터리build/
    • 디렉터리package_name/
      • 디렉터리bytecode_modules/
        • 디렉터리dependencies/
        • module_name.mv
      • 디렉터리source_maps/
        • 디렉터리dependencies/
        • module_name.mvsm
      • 디렉터리sources/
        • 디렉터리dependencies/
        • module_name.move
      • BuildInfo.yaml
  • 디렉터리scripts/
  • 디렉터리sources/
    • module_name.move
  • 디렉터리tests/
  • 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.