@provablehq/sdk 0.10.4 → 0.10.5
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/mainnet/browser.cjs +102 -70
- package/dist/mainnet/browser.cjs.map +1 -1
- package/dist/mainnet/browser.js +103 -71
- package/dist/mainnet/browser.js.map +1 -1
- package/dist/mainnet/network-client.d.cts +8 -0
- package/dist/mainnet/network-client.d.ts +8 -0
- package/dist/mainnet/program-manager.d.cts +14 -0
- package/dist/mainnet/program-manager.d.ts +14 -0
- package/dist/mainnet/wasm.d.cts +1 -1
- package/dist/mainnet/wasm.d.ts +1 -1
- package/dist/testnet/browser.cjs +102 -70
- package/dist/testnet/browser.cjs.map +1 -1
- package/dist/testnet/browser.js +103 -71
- package/dist/testnet/browser.js.map +1 -1
- package/dist/testnet/network-client.d.cts +8 -0
- package/dist/testnet/network-client.d.ts +8 -0
- package/dist/testnet/program-manager.d.cts +14 -0
- package/dist/testnet/program-manager.d.ts +14 -0
- package/dist/testnet/wasm.d.cts +1 -1
- package/dist/testnet/wasm.d.ts +1 -1
- package/package.json +2 -2
|
@@ -71,6 +71,7 @@ declare class AleoNetworkClient {
|
|
|
71
71
|
verboseErrors: boolean;
|
|
72
72
|
readonly network: string;
|
|
73
73
|
transport: TransportFunction;
|
|
74
|
+
hasCustomTransport: boolean;
|
|
74
75
|
apiKey?: string;
|
|
75
76
|
consumerId?: string;
|
|
76
77
|
jwtData?: JWTData;
|
|
@@ -423,6 +424,13 @@ declare class AleoNetworkClient {
|
|
|
423
424
|
* const latestHeight = networkClient.getLatestHeight();
|
|
424
425
|
*/
|
|
425
426
|
getLatestHeight(): Promise<number>;
|
|
427
|
+
/**
|
|
428
|
+
* Returns state paths for the given record commitments.
|
|
429
|
+
*
|
|
430
|
+
* @param {string[]} commitments - Array of commitment field strings.
|
|
431
|
+
* @returns {Promise<string[]>} Array of state path strings corresponding to the commitments.
|
|
432
|
+
*/
|
|
433
|
+
getStatePaths(commitments: string[]): Promise<string[]>;
|
|
426
434
|
/**
|
|
427
435
|
* Returns the latest block hash.
|
|
428
436
|
*
|
|
@@ -71,6 +71,7 @@ declare class AleoNetworkClient {
|
|
|
71
71
|
verboseErrors: boolean;
|
|
72
72
|
readonly network: string;
|
|
73
73
|
transport: TransportFunction;
|
|
74
|
+
hasCustomTransport: boolean;
|
|
74
75
|
apiKey?: string;
|
|
75
76
|
consumerId?: string;
|
|
76
77
|
jwtData?: JWTData;
|
|
@@ -423,6 +424,13 @@ declare class AleoNetworkClient {
|
|
|
423
424
|
* const latestHeight = networkClient.getLatestHeight();
|
|
424
425
|
*/
|
|
425
426
|
getLatestHeight(): Promise<number>;
|
|
427
|
+
/**
|
|
428
|
+
* Returns state paths for the given record commitments.
|
|
429
|
+
*
|
|
430
|
+
* @param {string[]} commitments - Array of commitment field strings.
|
|
431
|
+
* @returns {Promise<string[]>} Array of state path strings corresponding to the commitments.
|
|
432
|
+
*/
|
|
433
|
+
getStatePaths(commitments: string[]): Promise<string[]>;
|
|
426
434
|
/**
|
|
427
435
|
* Returns the latest block hash.
|
|
428
436
|
*
|
|
@@ -220,6 +220,20 @@ declare class ProgramManager {
|
|
|
220
220
|
* @param { RecordProvider | undefined } recordProvider A record provider that implements {@link RecordProvider} interface
|
|
221
221
|
*/
|
|
222
222
|
constructor(host?: string | undefined, keyProvider?: FunctionKeyProvider | undefined, recordProvider?: RecordProvider | undefined, networkClientOptions?: AleoNetworkClientOptions | undefined);
|
|
223
|
+
/**
|
|
224
|
+
* Pre-load the inclusion prover for offline execution. Required when the
|
|
225
|
+
* user provides an explicit OfflineQuery (truly offline — can't fetch lazily).
|
|
226
|
+
* For CallbackQuery, snarkVM handles inclusion key loading on demand.
|
|
227
|
+
*/
|
|
228
|
+
private ensureInclusionKeys;
|
|
229
|
+
/**
|
|
230
|
+
* Create a CallbackQuery that delegates all state fetching to the
|
|
231
|
+
* transport-aware network client. WASM calls back into these functions
|
|
232
|
+
* during trace.prepare_async() instead of making its own reqwest calls.
|
|
233
|
+
*
|
|
234
|
+
* This handles ALL programs including those with DynamicRecord inputs.
|
|
235
|
+
*/
|
|
236
|
+
private buildCallbackQuery;
|
|
223
237
|
/**
|
|
224
238
|
* Check if the fee is sufficient to pay for the transaction
|
|
225
239
|
*/
|
|
@@ -220,6 +220,20 @@ declare class ProgramManager {
|
|
|
220
220
|
* @param { RecordProvider | undefined } recordProvider A record provider that implements {@link RecordProvider} interface
|
|
221
221
|
*/
|
|
222
222
|
constructor(host?: string | undefined, keyProvider?: FunctionKeyProvider | undefined, recordProvider?: RecordProvider | undefined, networkClientOptions?: AleoNetworkClientOptions | undefined);
|
|
223
|
+
/**
|
|
224
|
+
* Pre-load the inclusion prover for offline execution. Required when the
|
|
225
|
+
* user provides an explicit OfflineQuery (truly offline — can't fetch lazily).
|
|
226
|
+
* For CallbackQuery, snarkVM handles inclusion key loading on demand.
|
|
227
|
+
*/
|
|
228
|
+
private ensureInclusionKeys;
|
|
229
|
+
/**
|
|
230
|
+
* Create a CallbackQuery that delegates all state fetching to the
|
|
231
|
+
* transport-aware network client. WASM calls back into these functions
|
|
232
|
+
* during trace.prepare_async() instead of making its own reqwest calls.
|
|
233
|
+
*
|
|
234
|
+
* This handles ALL programs including those with DynamicRecord inputs.
|
|
235
|
+
*/
|
|
236
|
+
private buildCallbackQuery;
|
|
223
237
|
/**
|
|
224
238
|
* Check if the fee is sufficient to pay for the transaction
|
|
225
239
|
*/
|
package/dist/testnet/wasm.d.cts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Address, Authorization, Boolean, BHP256, BHP512, BHP768, BHP1024, Ciphertext, ComputeKey, DynamicRecord, EncryptionToolkit, ExecutionRequest, Execution, ExecutionResponse, Field, GraphKey, Group, I8, I16, I32, I64, I128, OfflineQuery, Metadata, Pedersen64, Pedersen128, Plaintext, Poseidon2, Poseidon4, Poseidon8, PrivateKey, PrivateKeyCiphertext, Program, ProgramManager, Proof, ProvingKey, ProvingRequest, RecordCiphertext, RecordPlaintext, Scalar, Signature, stringToField, Transaction, Transition, U8, U16, U32, U64, U128, Value, VerifyingKey, ViewKey, initThreadPool, getOrInitConsensusVersionTestHeights, snarkVerify, snarkVerifyBatch, verifyFunctionExecution, } from "@provablehq/wasm/testnet.js";
|
|
1
|
+
export { Address, Authorization, Boolean, BHP256, BHP512, BHP768, BHP1024, Ciphertext, ComputeKey, DynamicRecord, EncryptionToolkit, ExecutionRequest, Execution, ExecutionResponse, Field, GraphKey, Group, I8, I16, I32, I64, I128, CallbackQuery, OfflineQuery, QueryOption, Metadata, Pedersen64, Pedersen128, Plaintext, Poseidon2, Poseidon4, Poseidon8, PrivateKey, PrivateKeyCiphertext, Program, ProgramManager, Proof, ProvingKey, ProvingRequest, RecordCiphertext, RecordPlaintext, Scalar, Signature, stringToField, Transaction, Transition, U8, U16, U32, U64, U128, Value, VerifyingKey, ViewKey, initThreadPool, getOrInitConsensusVersionTestHeights, snarkVerify, snarkVerifyBatch, verifyFunctionExecution, } from "@provablehq/wasm/testnet.js";
|
package/dist/testnet/wasm.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Address, Authorization, Boolean, BHP256, BHP512, BHP768, BHP1024, Ciphertext, ComputeKey, DynamicRecord, EncryptionToolkit, ExecutionRequest, Execution, ExecutionResponse, Field, GraphKey, Group, I8, I16, I32, I64, I128, OfflineQuery, Metadata, Pedersen64, Pedersen128, Plaintext, Poseidon2, Poseidon4, Poseidon8, PrivateKey, PrivateKeyCiphertext, Program, ProgramManager, Proof, ProvingKey, ProvingRequest, RecordCiphertext, RecordPlaintext, Scalar, Signature, stringToField, Transaction, Transition, U8, U16, U32, U64, U128, Value, VerifyingKey, ViewKey, initThreadPool, getOrInitConsensusVersionTestHeights, snarkVerify, snarkVerifyBatch, verifyFunctionExecution, } from "@provablehq/wasm/testnet.js";
|
|
1
|
+
export { Address, Authorization, Boolean, BHP256, BHP512, BHP768, BHP1024, Ciphertext, ComputeKey, DynamicRecord, EncryptionToolkit, ExecutionRequest, Execution, ExecutionResponse, Field, GraphKey, Group, I8, I16, I32, I64, I128, CallbackQuery, OfflineQuery, QueryOption, Metadata, Pedersen64, Pedersen128, Plaintext, Poseidon2, Poseidon4, Poseidon8, PrivateKey, PrivateKeyCiphertext, Program, ProgramManager, Proof, ProvingKey, ProvingRequest, RecordCiphertext, RecordPlaintext, Scalar, Signature, stringToField, Transaction, Transition, U8, U16, U32, U64, U128, Value, VerifyingKey, ViewKey, initThreadPool, getOrInitConsensusVersionTestHeights, snarkVerify, snarkVerifyBatch, verifyFunctionExecution, } from "@provablehq/wasm/testnet.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@provablehq/sdk",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.5",
|
|
4
4
|
"description": "A Software Development Kit (SDK) for Zero-Knowledge Transactions",
|
|
5
5
|
"collaborators": [
|
|
6
6
|
"The Provable Team"
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
},
|
|
92
92
|
"homepage": "https://github.com/ProvableHQ/sdk#readme",
|
|
93
93
|
"dependencies": {
|
|
94
|
-
"@provablehq/wasm": "^0.10.
|
|
94
|
+
"@provablehq/wasm": "^0.10.5",
|
|
95
95
|
"@scure/base": "^2.0.0",
|
|
96
96
|
"@serenity-kit/noble-sodium": "0.2.3",
|
|
97
97
|
"comlink": "^4.4.2",
|