@twin.org/move-to-json 0.0.3-next.8 → 0.9.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/cli.js +1 -1
- package/dist/es/cli.js.map +1 -1
- package/dist/es/commands/deploy.js +26 -3
- package/dist/es/commands/deploy.js.map +1 -1
- package/dist/es/index.js +1 -0
- package/dist/es/index.js.map +1 -1
- package/dist/es/models/IContractConfig.js +4 -0
- package/dist/es/models/IContractConfig.js.map +1 -0
- package/dist/es/models/INetworkConfig.js.map +1 -1
- package/dist/locales/en.json +71 -10
- package/dist/types/index.d.ts +1 -0
- package/dist/types/models/IContractConfig.d.ts +19 -0
- package/dist/types/models/INetworkConfig.d.ts +2 -7
- package/docs/changelog.md +246 -101
- package/docs/reference/index.md +1 -0
- package/docs/reference/interfaces/IContractConfig.md +31 -0
- package/docs/reference/interfaces/INetworkConfig.md +5 -5
- package/docs/usage.md +2 -2
- package/package.json +15 -11
package/docs/reference/index.md
CHANGED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Interface: IContractConfig
|
|
2
|
+
|
|
3
|
+
Contract configuration interface
|
|
4
|
+
|
|
5
|
+
## Properties
|
|
6
|
+
|
|
7
|
+
### moduleName {#modulename}
|
|
8
|
+
|
|
9
|
+
> **moduleName**: `string`
|
|
10
|
+
|
|
11
|
+
The module name
|
|
12
|
+
|
|
13
|
+
***
|
|
14
|
+
|
|
15
|
+
### dependencies? {#dependencies}
|
|
16
|
+
|
|
17
|
+
> `optional` **dependencies?**: `string`[]
|
|
18
|
+
|
|
19
|
+
The dependencies
|
|
20
|
+
|
|
21
|
+
***
|
|
22
|
+
|
|
23
|
+
### packageController? {#packagecontroller}
|
|
24
|
+
|
|
25
|
+
> `optional` **packageController?**: `object`
|
|
26
|
+
|
|
27
|
+
The package controller configuration
|
|
28
|
+
|
|
29
|
+
#### addressIndex
|
|
30
|
+
|
|
31
|
+
> **addressIndex**: `number`
|
|
@@ -32,7 +32,7 @@ The RPC configuration
|
|
|
32
32
|
|
|
33
33
|
#### timeout?
|
|
34
34
|
|
|
35
|
-
> `optional` **timeout
|
|
35
|
+
> `optional` **timeout?**: `number`
|
|
36
36
|
|
|
37
37
|
***
|
|
38
38
|
|
|
@@ -48,7 +48,7 @@ The deployment configuration
|
|
|
48
48
|
|
|
49
49
|
#### confirmationTimeout?
|
|
50
50
|
|
|
51
|
-
> `optional` **confirmationTimeout
|
|
51
|
+
> `optional` **confirmationTimeout?**: `number`
|
|
52
52
|
|
|
53
53
|
#### wallet
|
|
54
54
|
|
|
@@ -60,7 +60,7 @@ The deployment configuration
|
|
|
60
60
|
|
|
61
61
|
#### gasStation?
|
|
62
62
|
|
|
63
|
-
> `optional` **gasStation
|
|
63
|
+
> `optional` **gasStation?**: `object`
|
|
64
64
|
|
|
65
65
|
##### gasStation.url
|
|
66
66
|
|
|
@@ -74,10 +74,10 @@ The deployment configuration
|
|
|
74
74
|
|
|
75
75
|
### contracts? {#contracts}
|
|
76
76
|
|
|
77
|
-
> `optional` **contracts
|
|
77
|
+
> `optional` **contracts?**: `object`
|
|
78
78
|
|
|
79
79
|
The contracts configuration
|
|
80
80
|
|
|
81
81
|
#### Index Signature
|
|
82
82
|
|
|
83
|
-
\[`key`: `string`\]: `
|
|
83
|
+
\[`key`: `string`\]: [`IContractConfig`](IContractConfig.md)
|
package/docs/usage.md
CHANGED
|
@@ -165,6 +165,6 @@ move-to-json deploy --network mainnet --contracts <PATH-TO-CONTRACTS> --load-env
|
|
|
165
165
|
## Example
|
|
166
166
|
|
|
167
167
|
```shell
|
|
168
|
-
npx "@twin.org/move-to-json" build "tests/fixtures/sources/**/*.move" --load-env configs/testnet.env --output tests/fixtures/
|
|
169
|
-
npx "@twin.org/move-to-json" deploy --load-env configs/testnet.env --contracts tests/fixtures/
|
|
168
|
+
npx "@twin.org/move-to-json" build "tests/fixtures/sources/**/*.move" --load-env configs/testnet.env --output tests/fixtures/smartContractDeployments/smart-contract-deployments.json
|
|
169
|
+
npx "@twin.org/move-to-json" deploy --load-env configs/testnet.env --contracts tests/fixtures/smartContractDeployments/smart-contract-deployments.json --dry-run
|
|
170
170
|
```
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/move-to-json",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.9.0-next.1",
|
|
4
4
|
"description": "CLI for compiling Move contracts and preparing deployment JSON for IOTA networks.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/
|
|
7
|
+
"url": "git+https://github.com/iotaledger/twin-dlt.git",
|
|
8
8
|
"directory": "packages/move-to-json"
|
|
9
9
|
},
|
|
10
10
|
"author": "cornel.filip@iota.org",
|
|
@@ -14,14 +14,18 @@
|
|
|
14
14
|
"node": ">=20.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@iota/iota-sdk": "1.
|
|
18
|
-
"@twin.org/cli-core": "next",
|
|
19
|
-
"@twin.org/core": "next",
|
|
20
|
-
"@twin.org/crypto": "next",
|
|
21
|
-
"@twin.org/dlt-iota": "0.0
|
|
22
|
-
"@twin.org/
|
|
23
|
-
"@twin.org/
|
|
24
|
-
"
|
|
17
|
+
"@iota/iota-sdk": "1.14.0",
|
|
18
|
+
"@twin.org/cli-core": "0.9.0-next.1",
|
|
19
|
+
"@twin.org/core": "0.9.0-next.1",
|
|
20
|
+
"@twin.org/crypto": "0.9.0-next.1",
|
|
21
|
+
"@twin.org/dlt-iota": "0.9.0-next.1",
|
|
22
|
+
"@twin.org/entity-storage-connector-memory": "0.9.0-next.1",
|
|
23
|
+
"@twin.org/entity-storage-models": "0.9.0-next.1",
|
|
24
|
+
"@twin.org/nameof": "0.9.0-next.1",
|
|
25
|
+
"@twin.org/vault-connector-entity-storage": "0.9.0-next.1",
|
|
26
|
+
"@twin.org/vault-models": "0.9.0-next.1",
|
|
27
|
+
"@twin.org/wallet-connector-iota": "0.0.3-next.5",
|
|
28
|
+
"commander": "15.0.0",
|
|
25
29
|
"fast-glob": "3.3.3"
|
|
26
30
|
},
|
|
27
31
|
"main": "./dist/es/index.js",
|
|
@@ -53,7 +57,7 @@
|
|
|
53
57
|
"dlt"
|
|
54
58
|
],
|
|
55
59
|
"bugs": {
|
|
56
|
-
"url": "git+https://github.com/
|
|
60
|
+
"url": "git+https://github.com/iotaledger/twin-dlt/issues"
|
|
57
61
|
},
|
|
58
62
|
"homepage": "https://twindev.org"
|
|
59
63
|
}
|