Dove.toml manifest file format
Dove.toml is a TOML file which describes properties of your Move project.
It consists of the following sections:
  • [package]
    • name - The name of the project
    • account_address - The user's account address
    • dialect - Address format of the project
    • dependencies - Specifies a set of project dependencies
  • [layout] - Directory layout of the project
    • modules_dir
    • scripts_dir
    • tests_dir

The [package] section

1
[package]
2
name = "my_project"
3
account_address = "<your account address>"
4
dialect = "pont"
5
dependencies = [
6
{ git = "https://github.com/pontem-network/move-stdlib", branch = "v0.3.0" },
7
{ path = "./local_modules" }
8
]
Copied!

The account_address field

The address of the user account.
  1. 1.
    You can use {{sender}} clause anywhere in your source code, which will be replaced with the value of account_address at compilation time.
  2. 2.
    You can dove run the script and replace the signers' arguments with addresses of the signers.
  3. 3.
    You should wrap your module with address {} block. You have the option to use {{sender}} instead of a real address.

The dialect field

This field controls which address format to use in your project.
Possible values are:
  • "pont"(default) - Polkadot addresses, i.e. gkQ5K6EnLRgZkwozG8GiBAEnJyM6FxzbSaSmVhKJ2w8FcK7ih
  • "diem" - Diem addresses, i.e. 0x1232414212412
  • "dfinance" - Dfinance bech32 addresses, i.e. wallet1pxqfjvnu0utauj8fctw2s7j4mfyvrsjd59c2u8

The dependencies field

This field is a TOML list where each entry specifies a set of modules to use as dependencies.
  1. 1.
    Git dependencies
1
dependencies = [
2
{ git = "https://github.com/pontem-network/move-stdlib", branch = "my-branch" }
3
]
Copied!
You can also add tag, rev and path modifiers. path will only include a subdirectory of the repo.
  1. 1.
    Local dependencies
1
dependencies = [
2
{ path = "./mymodules" }
3
]
Copied!

The [layout] section

This allows customization of the layout of the project i.e. the directories where you store your Move source code.
1
[layout]
2
modules_dir = "modules"
3
scripts_dir = "scripts"
4
tests_dir = "tests"
Copied!
Last modified 12d ago