@hardkas/sdk 0.2.2-alpha → 0.3.0-alpha
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/index.d.ts +4 -0
- package/dist/index.js +7 -1
- package/package.json +16 -13
package/dist/index.d.ts
CHANGED
|
@@ -103,6 +103,10 @@ declare class HardkasLocalnet {
|
|
|
103
103
|
* Future: control localnet process/container from here.
|
|
104
104
|
*/
|
|
105
105
|
start(): Promise<void>;
|
|
106
|
+
/**
|
|
107
|
+
* Resets the localnet state (simulated or node).
|
|
108
|
+
*/
|
|
109
|
+
reset(): Promise<void>;
|
|
106
110
|
}
|
|
107
111
|
|
|
108
112
|
interface TaskArgs {
|
package/dist/index.js
CHANGED
|
@@ -170,7 +170,7 @@ var HardkasL2 = class {
|
|
|
170
170
|
* Gets a specific L2 network profile by name.
|
|
171
171
|
*/
|
|
172
172
|
getProfile(name) {
|
|
173
|
-
return getL2Profile(name);
|
|
173
|
+
return getL2Profile(name) || null;
|
|
174
174
|
}
|
|
175
175
|
};
|
|
176
176
|
|
|
@@ -218,6 +218,12 @@ var HardkasLocalnet = class {
|
|
|
218
218
|
console.log("Localnet control via SDK is not yet implemented.");
|
|
219
219
|
console.log("Please use 'hardkas localnet' CLI command.");
|
|
220
220
|
}
|
|
221
|
+
/**
|
|
222
|
+
* Resets the localnet state (simulated or node).
|
|
223
|
+
*/
|
|
224
|
+
async reset() {
|
|
225
|
+
console.log("Localnet reset via SDK is not yet implemented.");
|
|
226
|
+
}
|
|
221
227
|
};
|
|
222
228
|
|
|
223
229
|
// src/index.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hardkas/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0-alpha",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -10,20 +10,23 @@
|
|
|
10
10
|
"main": "./dist/index.js",
|
|
11
11
|
"types": "./dist/index.d.ts",
|
|
12
12
|
"exports": {
|
|
13
|
-
".":
|
|
13
|
+
".": {
|
|
14
|
+
"types": "./dist/index.d.ts",
|
|
15
|
+
"import": "./dist/index.js"
|
|
16
|
+
}
|
|
14
17
|
},
|
|
15
18
|
"dependencies": {
|
|
16
|
-
"@hardkas/
|
|
17
|
-
"@hardkas/
|
|
18
|
-
"@hardkas/
|
|
19
|
-
"@hardkas/query": "0.
|
|
20
|
-
"@hardkas/config": "0.
|
|
21
|
-
"@hardkas/
|
|
22
|
-
"@hardkas/localnet": "0.
|
|
23
|
-
"@hardkas/simulator": "0.
|
|
24
|
-
"@hardkas/
|
|
25
|
-
"@hardkas/
|
|
26
|
-
"@hardkas/
|
|
19
|
+
"@hardkas/accounts": "0.3.0-alpha",
|
|
20
|
+
"@hardkas/core": "0.3.0-alpha",
|
|
21
|
+
"@hardkas/artifacts": "0.3.0-alpha",
|
|
22
|
+
"@hardkas/query": "0.3.0-alpha",
|
|
23
|
+
"@hardkas/config": "0.3.0-alpha",
|
|
24
|
+
"@hardkas/l2": "0.3.0-alpha",
|
|
25
|
+
"@hardkas/localnet": "0.3.0-alpha",
|
|
26
|
+
"@hardkas/simulator": "0.3.0-alpha",
|
|
27
|
+
"@hardkas/tx-builder": "0.3.0-alpha",
|
|
28
|
+
"@hardkas/kaspa-rpc": "0.3.0-alpha",
|
|
29
|
+
"@hardkas/wallet-adapter": "0.3.0-alpha"
|
|
27
30
|
},
|
|
28
31
|
"devDependencies": {
|
|
29
32
|
"tsup": "^8.3.5",
|