movehat 0.2.7 → 0.2.9
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/cli.js +1 -1
- package/dist/commands/fork/fund.js +3 -1
- package/dist/commands/fork/serve.js +10 -5
- package/dist/commands/test-move.js +6 -3
- package/dist/core/Publisher.d.ts +20 -1
- package/dist/core/Publisher.js +167 -89
- package/dist/fork/api.d.ts +1 -1
- package/dist/fork/api.js +9 -4
- package/dist/fork/manager.d.ts +2 -2
- package/dist/fork/manager.js +4 -8
- package/dist/fork/storage.js +5 -4
- package/dist/fork/test.d.ts +1 -1
- package/dist/fork/validation.d.ts +9 -0
- package/dist/fork/validation.js +88 -0
- package/dist/harness/Harness.d.ts +3 -2
- package/dist/harness/Harness.js +4 -1
- package/dist/helpers/index.d.ts +1 -0
- package/dist/helpers/index.js +1 -0
- package/dist/helpers/move-tests.js +8 -5
- package/dist/helpers/setupLocalTesting.d.ts +2 -2
- package/dist/helpers/setupLocalTesting.js +58 -21
- package/dist/helpers/version-check.js +4 -2
- package/dist/node/MoveliteManager.d.ts +18 -0
- package/dist/node/MoveliteManager.js +152 -0
- package/dist/node/NodeProvider.d.ts +9 -0
- package/dist/node/NodeProvider.js +1 -0
- package/dist/runtime.js +2 -0
- package/dist/templates/.mocharc.json +1 -0
- package/dist/templates/tests/Counter.test.ts +6 -9
- package/dist/templates/tests/setup.ts +34 -0
- package/dist/types/config.d.ts +2 -0
- package/dist/types/fork.d.ts +24 -0
- package/dist/types/runtime.d.ts +6 -0
- package/package.json +4 -1
package/dist/types/fork.d.ts
CHANGED
|
@@ -40,3 +40,27 @@ export interface AccountResource {
|
|
|
40
40
|
*/
|
|
41
41
|
data: unknown;
|
|
42
42
|
}
|
|
43
|
+
export interface CoinStore {
|
|
44
|
+
coin: {
|
|
45
|
+
value: string;
|
|
46
|
+
};
|
|
47
|
+
deposit_events: {
|
|
48
|
+
counter: string;
|
|
49
|
+
guid: {
|
|
50
|
+
id: {
|
|
51
|
+
addr: string;
|
|
52
|
+
creation_num: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
withdraw_events: {
|
|
57
|
+
counter: string;
|
|
58
|
+
guid: {
|
|
59
|
+
id: {
|
|
60
|
+
addr: string;
|
|
61
|
+
creation_num: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
frozen: boolean;
|
|
66
|
+
}
|
package/dist/types/runtime.d.ts
CHANGED
|
@@ -24,6 +24,12 @@ export interface MovehatRuntime {
|
|
|
24
24
|
* leave this undefined so the default spawn-based adapter is used.
|
|
25
25
|
*/
|
|
26
26
|
adapter?: ChildProcessAdapter;
|
|
27
|
+
/**
|
|
28
|
+
* Publish the compiled package via the TypeScript SDK instead of the
|
|
29
|
+
* Movement CLI. Internal: setupLocalTesting sets this when the backend
|
|
30
|
+
* is movelite, whose REST responses the Movement CLI cannot consume.
|
|
31
|
+
*/
|
|
32
|
+
sdkPublish?: boolean;
|
|
27
33
|
}) => Promise<DeploymentInfo>;
|
|
28
34
|
getDeployment: (moduleName: string) => DeploymentInfo | null;
|
|
29
35
|
getDeployments: () => Record<string, DeploymentInfo>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "movehat",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Hardhat-like development framework for Movement L1 smart contracts",
|
|
6
6
|
"bin": {
|
|
@@ -70,6 +70,9 @@
|
|
|
70
70
|
"prompts": "^2.4.2",
|
|
71
71
|
"tsx": "^4.7.0"
|
|
72
72
|
},
|
|
73
|
+
"optionalDependencies": {
|
|
74
|
+
"movelite": "^0.1.0"
|
|
75
|
+
},
|
|
73
76
|
"devDependencies": {
|
|
74
77
|
"@types/js-yaml": "^4.0.9",
|
|
75
78
|
"@types/node": "^24.10.1",
|