@@ -33,15 +33,35 @@ final case class EngineConfig(
33
33
34
34
object EngineConfig {
35
35
36
- private [this ] def toDev (config : EngineConfig ): EngineConfig =
37
- config.copy(
38
- allowedLanguageVersions =
39
- config.allowedLanguageVersions.copy(max = LV (LV .Major .V1 , LV .Minor .Dev )),
40
- allowedInputTransactionVersions = config.allowedInputTransactionVersions.copy(
41
- max = TransactionVersions .acceptedVersions.last),
42
- allowedOutputTransactionVersions = config.allowedOutputTransactionVersions.copy(
43
- max = TransactionVersions .acceptedVersions.last),
36
+ // Development configuration, should not be used in PROD.
37
+ val Dev : EngineConfig = new EngineConfig (
38
+ allowedLanguageVersions = VersionRange (
39
+ LV (LV .Major .V1 , LV .Minor .Stable (" 6" )),
40
+ LV (LV .Major .V1 , LV .Minor .Dev ),
41
+ ),
42
+ allowedInputTransactionVersions = VersionRange (
43
+ TV (" 10" ),
44
+ TransactionVersions .acceptedVersions.last
45
+ ),
46
+ allowedOutputTransactionVersions = TransactionVersions .DevOutputVersions
47
+ )
48
+
49
+ // Legacy configuration, to be used by sandbox classic only
50
+ @ deprecated(" Sandbox_Classic is to be used by sandbox classic only" , since = " 1.4.0" )
51
+ val Sandbox_Classic : EngineConfig = new EngineConfig (
52
+ allowedLanguageVersions = VersionRange (
53
+ LV (LV .Major .V1 , LV .Minor .Stable (" 0" )),
54
+ LV (LV .Major .V1 , LV .Minor .Dev ),
55
+ ),
56
+ allowedInputTransactionVersions = VersionRange (
57
+ TransactionVersions .acceptedVersions.head,
58
+ TransactionVersions .acceptedVersions.last
59
+ ),
60
+ allowedOutputTransactionVersions = VersionRange (
61
+ TV (" 10" ),
62
+ TransactionVersions .acceptedVersions.last
44
63
)
64
+ )
45
65
46
66
// recommended configuration
47
67
val Stable : EngineConfig = new EngineConfig (
@@ -53,22 +73,4 @@ object EngineConfig {
53
73
allowedOutputTransactionVersions = VersionRange (TV (" 10" ), TV (" 10" ))
54
74
)
55
75
56
- // development configuration, should not be used in PROD.
57
- // accept all language and transaction versions supported by SDK_1_x plus development versions.
58
- val Dev : EngineConfig = toDev(Stable )
59
-
60
- // Legacy configuration, to be used by sandbox classic only
61
- @ deprecated(" Sandbox_Classic_Stable is to be used by sandbox classic only" , since = " 1.5.0" )
62
- val Sandbox_Classic_Stable : EngineConfig =
63
- Stable .copy(
64
- allowedLanguageVersions =
65
- Stable .allowedLanguageVersions.copy(min = LV (LV .Major .V1 , LV .Minor .Stable (" 0" ))),
66
- allowedInputTransactionVersions = Stable .allowedInputTransactionVersions.copy(
67
- min = TransactionVersions .acceptedVersions.head),
68
- )
69
-
70
- // Legacy configuration, to be used by sandbox classic only
71
- @ deprecated(" Sandbox_Classic_Dev is to be used by sandbox classic only" , since = " 1.5.0" )
72
- val Sandbox_Classic_Dev = toDev(Sandbox_Classic_Stable )
73
-
74
76
}
0 commit comments