clarinet icon indicating copy to clipboard operation
clarinet copied to clipboard

Manifest schema refactoring

Open lgalabru opened this issue 3 years ago • 2 comments

Manifests schema could be improved / simplified / cleaned. Some rough ideas:

Before

[project]
name = "test"
authors = []
description = ""
telemetry = false
requirements = []
boot_contracts = ["costs", "pox", "pox-2", "lockup", "costs-2", "cost-voting", "bns"]

[project.cache_location]
path = "./.requirements"
[contracts.test]
contract_path = "contracts/test.clar"
clarity_version = 1
[repl.analysis]
passes = ["check_checker"]

[repl.analysis.check_checker]
strict = false
trusted_sender = false
trusted_caller = false
callee_filter = false

After

[project]
name = "test"
authors = []
description = ""
telemetry = false
cache_location = "./.cache"

[check_checker]
strict = false
trusted_sender = false
trusted_caller = false
callee_filter = false

[requirements]


[contracts.test]
path = "contracts/test.clar"
clarity_version = 2

Should also handle https://github.com/hirosystems/clarinet/issues/417, https://github.com/hirosystems/clarinet/issues/246

lgalabru avatar Oct 03 '22 19:10 lgalabru

@lgalabru So we want to remove boot_contracts and always load all?

hugoclrd avatar Oct 04 '22 15:10 hugoclrd

Correct, letting the developers deal with boot contracts is a footgun, it became pretty easy to mess things up, with the clarity versions, different costs, different pox.

lgalabru avatar Oct 07 '22 12:10 lgalabru