@provablehq/sdk 0.9.7 → 0.10.0-rc
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.
|
@@ -34,6 +34,7 @@ declare class AleoNetworkClient {
|
|
|
34
34
|
ctx: {
|
|
35
35
|
[key: string]: string;
|
|
36
36
|
};
|
|
37
|
+
debugMode: boolean;
|
|
37
38
|
readonly network: string;
|
|
38
39
|
constructor(host: string, options?: AleoNetworkClientOptions);
|
|
39
40
|
/**
|
|
@@ -71,6 +72,21 @@ declare class AleoNetworkClient {
|
|
|
71
72
|
* networkClient.setHost("http://api.explorer.provable.com/v1");
|
|
72
73
|
*/
|
|
73
74
|
setHost(host: string): void;
|
|
75
|
+
/**
|
|
76
|
+
* Set debug mode for the networkClient. When this mode is enabled, if Aleo network nodes report failures after
|
|
77
|
+
* calling the `submitTransaction` method, nodes will report debug information as to why the transaction failed.
|
|
78
|
+
*
|
|
79
|
+
* @param {boolean} debugMode Set debug mode for the networkClient.
|
|
80
|
+
* @example
|
|
81
|
+
* import { AleoNetworkClient } from "@provablehq/sdk/mainnet.js";
|
|
82
|
+
*
|
|
83
|
+
* // Create a networkClient
|
|
84
|
+
* const networkClient = new AleoNetworkClient();
|
|
85
|
+
*
|
|
86
|
+
* // Set debug mode to true
|
|
87
|
+
* networkClient.setDebugMode(true);
|
|
88
|
+
**/
|
|
89
|
+
setDebugMode(debugMode: boolean): void;
|
|
74
90
|
/**
|
|
75
91
|
* Set a header in the `AleoNetworkClient`s header map
|
|
76
92
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@provablehq/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0-rc",
|
|
4
4
|
"description": "A Software Development Kit (SDK) for Zero-Knowledge Transactions",
|
|
5
5
|
"collaborators": [
|
|
6
6
|
"The Provable Team"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"homepage": "https://github.com/ProvableHQ/sdk#readme",
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@provablehq/wasm": "^0.
|
|
50
|
+
"@provablehq/wasm": "^0.10.0-rc",
|
|
51
51
|
"comlink": "^4.4.2",
|
|
52
52
|
"core-js": "^3.40.0",
|
|
53
53
|
"mime": "^4.0.6",
|