@provablehq/sdk 0.11.8 → 0.11.10
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/account.d.cts +3 -3
- package/dist/mainnet/account.d.ts +3 -3
- package/dist/mainnet/api-auth.d.cts +14 -7
- package/dist/mainnet/api-auth.d.ts +14 -7
- package/dist/mainnet/browser.cjs +550 -193
- package/dist/mainnet/browser.cjs.map +1 -1
- package/dist/mainnet/browser.d.cts +1 -1
- package/dist/mainnet/browser.d.ts +1 -1
- package/dist/mainnet/browser.js +550 -194
- package/dist/mainnet/browser.js.map +1 -1
- package/dist/mainnet/keys/provider/interface.d.cts +4 -4
- package/dist/mainnet/keys/provider/interface.d.ts +4 -4
- package/dist/mainnet/keys/provider/memory.d.cts +6 -6
- package/dist/mainnet/keys/provider/memory.d.ts +6 -6
- package/dist/mainnet/keys/provider/offline.d.cts +1 -1
- package/dist/mainnet/keys/provider/offline.d.ts +1 -1
- package/dist/mainnet/network-client.d.cts +40 -38
- package/dist/mainnet/network-client.d.ts +40 -38
- package/dist/mainnet/node.cjs +1 -0
- package/dist/mainnet/node.cjs.map +1 -1
- package/dist/mainnet/node.js +1 -1
- package/dist/mainnet/program-manager.d.cts +132 -35
- package/dist/mainnet/program-manager.d.ts +132 -35
- package/dist/mainnet/record-provider.d.cts +7 -7
- package/dist/mainnet/record-provider.d.ts +7 -7
- package/dist/mainnet/record-scanner.d.cts +3 -3
- package/dist/mainnet/record-scanner.d.ts +3 -3
- package/dist/testnet/account.d.cts +3 -3
- package/dist/testnet/account.d.ts +3 -3
- package/dist/testnet/api-auth.d.cts +14 -7
- package/dist/testnet/api-auth.d.ts +14 -7
- package/dist/testnet/browser.cjs +550 -193
- package/dist/testnet/browser.cjs.map +1 -1
- package/dist/testnet/browser.d.cts +1 -1
- package/dist/testnet/browser.d.ts +1 -1
- package/dist/testnet/browser.js +550 -194
- package/dist/testnet/browser.js.map +1 -1
- package/dist/testnet/keys/provider/interface.d.cts +4 -4
- package/dist/testnet/keys/provider/interface.d.ts +4 -4
- package/dist/testnet/keys/provider/memory.d.cts +6 -6
- package/dist/testnet/keys/provider/memory.d.ts +6 -6
- package/dist/testnet/keys/provider/offline.d.cts +1 -1
- package/dist/testnet/keys/provider/offline.d.ts +1 -1
- package/dist/testnet/network-client.d.cts +40 -38
- package/dist/testnet/network-client.d.ts +40 -38
- package/dist/testnet/node.cjs +1 -0
- package/dist/testnet/node.cjs.map +1 -1
- package/dist/testnet/node.js +1 -1
- package/dist/testnet/program-manager.d.cts +132 -35
- package/dist/testnet/program-manager.d.ts +132 -35
- package/dist/testnet/record-provider.d.cts +7 -7
- package/dist/testnet/record-provider.d.ts +7 -7
- package/dist/testnet/record-scanner.d.cts +3 -3
- package/dist/testnet/record-scanner.d.ts +3 -3
- package/package.json +2 -2
|
@@ -89,12 +89,53 @@ interface PrepareProgramOptions {
|
|
|
89
89
|
programImports?: ProgramImports;
|
|
90
90
|
edition?: number;
|
|
91
91
|
}
|
|
92
|
+
/**
|
|
93
|
+
* A program to load into a reusable {@link PreparedProcess}.
|
|
94
|
+
*
|
|
95
|
+
* @property programName Program name (e.g. "credits.aleo").
|
|
96
|
+
* @property programSource Optional source. When omitted, it is fetched from
|
|
97
|
+
* the network.
|
|
98
|
+
* @property edition Optional edition. When omitted, the current on-chain
|
|
99
|
+
* edition is resolved.
|
|
100
|
+
*/
|
|
101
|
+
interface ProgramPreparationOptions {
|
|
102
|
+
programName: string;
|
|
103
|
+
programSource?: string | Program;
|
|
104
|
+
edition?: number;
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Options for preparing one snarkVM process that can serve multiple programs
|
|
108
|
+
* and functions.
|
|
109
|
+
*
|
|
110
|
+
* `programImports` may contain a superset of dynamic-dispatch targets. Calls
|
|
111
|
+
* can later provide and use any matching subset without rebuilding the
|
|
112
|
+
* process.
|
|
113
|
+
*/
|
|
114
|
+
interface PrepareProcessOptions {
|
|
115
|
+
programs: ProgramPreparationOptions[];
|
|
116
|
+
programImports?: ProgramImports;
|
|
117
|
+
}
|
|
118
|
+
/** Metadata for a program loaded into a {@link PreparedProcess}. */
|
|
119
|
+
interface PreparedProcessProgram {
|
|
120
|
+
readonly programName: string;
|
|
121
|
+
readonly programSource: string;
|
|
122
|
+
readonly edition: number;
|
|
123
|
+
readonly functions: readonly string[];
|
|
124
|
+
}
|
|
125
|
+
/** Options accepted by {@link PreparedProcess.supports}. */
|
|
126
|
+
interface PreparedProcessSupportsOptions {
|
|
127
|
+
programName: string;
|
|
128
|
+
functionName?: string;
|
|
129
|
+
programSource?: string | Program;
|
|
130
|
+
programImports?: ProgramImports;
|
|
131
|
+
edition?: number;
|
|
132
|
+
}
|
|
92
133
|
/**
|
|
93
134
|
* A reusable program context created by {@link ProgramManager.prepareProgram}.
|
|
94
135
|
*
|
|
95
|
-
* The context is scoped to one program function.
|
|
96
|
-
*
|
|
97
|
-
* is no longer needed.
|
|
136
|
+
* The context is scoped to one program function. Concurrent calls sharing it
|
|
137
|
+
* are serialized at the WASM boundary. The caller owns the context and should
|
|
138
|
+
* call {@link free} when it is no longer needed.
|
|
98
139
|
*/
|
|
99
140
|
declare class PreparedProgram {
|
|
100
141
|
readonly programName: string;
|
|
@@ -110,6 +151,29 @@ declare class PreparedProgram {
|
|
|
110
151
|
*/
|
|
111
152
|
free(): void;
|
|
112
153
|
}
|
|
154
|
+
/**
|
|
155
|
+
* A reusable snarkVM process created by {@link ProgramManager.prepareProcess}.
|
|
156
|
+
*
|
|
157
|
+
* Unlike {@link PreparedProgram}, a prepared process can authorize any
|
|
158
|
+
* function in any loaded program. Extra loaded programs remain idle when a
|
|
159
|
+
* call only needs a subset. Concurrent calls sharing the process are
|
|
160
|
+
* serialized at the WASM boundary.
|
|
161
|
+
*/
|
|
162
|
+
declare class PreparedProcess {
|
|
163
|
+
readonly programs: readonly PreparedProcessProgram[];
|
|
164
|
+
/** Instances are normally created through {@link ProgramManager.prepareProcess}. */
|
|
165
|
+
constructor(programs: readonly PreparedProcessProgram[]);
|
|
166
|
+
/** Names of all programs loaded into this process. */
|
|
167
|
+
get programNames(): readonly string[];
|
|
168
|
+
/**
|
|
169
|
+
* Check whether the process can serve a call without network resolution or
|
|
170
|
+
* process rebuilding. Caller-provided imports may be a subset of the
|
|
171
|
+
* programs loaded into the process.
|
|
172
|
+
*/
|
|
173
|
+
supports(options: PreparedProcessSupportsOptions): boolean;
|
|
174
|
+
/** Release the prepared snarkVM process. This method is idempotent. */
|
|
175
|
+
free(): void;
|
|
176
|
+
}
|
|
113
177
|
/**
|
|
114
178
|
* Options for building an Authorization for a function.
|
|
115
179
|
*
|
|
@@ -121,6 +185,7 @@ declare class PreparedProgram {
|
|
|
121
185
|
* @property {ProgramImports} [programImports] The other programs the program imports.
|
|
122
186
|
* @property {edition} [edition]
|
|
123
187
|
* @property {PreparedProgram} [preparedProgram] A reusable context returned by ProgramManager.prepareProgram.
|
|
188
|
+
* @property {PreparedProcess} [preparedProcess] A multi-program context returned by ProgramManager.prepareProcess.
|
|
124
189
|
*/
|
|
125
190
|
interface AuthorizationOptions {
|
|
126
191
|
programName: string;
|
|
@@ -131,6 +196,7 @@ interface AuthorizationOptions {
|
|
|
131
196
|
programImports?: ProgramImports;
|
|
132
197
|
edition?: number;
|
|
133
198
|
preparedProgram?: PreparedProgram;
|
|
199
|
+
preparedProcess?: PreparedProcess;
|
|
134
200
|
}
|
|
135
201
|
/**
|
|
136
202
|
* Options for executing a fee authorization.
|
|
@@ -193,6 +259,7 @@ interface ExecuteAuthorizationOptions {
|
|
|
193
259
|
* @property {number} [edition] - Edition of the program to execute the function in.
|
|
194
260
|
* @property {boolean} [useFeeMaster] - Whether to use the FeeMaster account to execute the transaction.
|
|
195
261
|
* @property {PreparedProgram} [preparedProgram] - A reusable context returned by ProgramManager.prepareProgram.
|
|
262
|
+
* @property {PreparedProcess} [preparedProcess] - A reusable multi-program context returned by ProgramManager.prepareProcess.
|
|
196
263
|
*/
|
|
197
264
|
interface ProvingRequestOptions {
|
|
198
265
|
programName: string;
|
|
@@ -212,6 +279,7 @@ interface ProvingRequestOptions {
|
|
|
212
279
|
useFeeMaster?: boolean;
|
|
213
280
|
executionRequest?: ExecutionRequest;
|
|
214
281
|
preparedProgram?: PreparedProgram;
|
|
282
|
+
preparedProcess?: PreparedProcess;
|
|
215
283
|
}
|
|
216
284
|
/**
|
|
217
285
|
* Fee estimate options.
|
|
@@ -349,7 +417,36 @@ declare class ProgramManager {
|
|
|
349
417
|
* }
|
|
350
418
|
*/
|
|
351
419
|
prepareProgram(options: PrepareProgramOptions): Promise<PreparedProgram>;
|
|
420
|
+
/**
|
|
421
|
+
* Prepare one reusable snarkVM process for multiple programs and functions.
|
|
422
|
+
*
|
|
423
|
+
* Sources, editions, and transitive imports are resolved once. Every
|
|
424
|
+
* loaded program can later be used as an entry program, and an invocation
|
|
425
|
+
* may supply any matching subset of the preloaded imports.
|
|
426
|
+
*
|
|
427
|
+
* @example
|
|
428
|
+
* const prepared = await programManager.prepareProcess({
|
|
429
|
+
* programs: [
|
|
430
|
+
* { programName: "wallet_router.aleo" },
|
|
431
|
+
* { programName: "token_registry.aleo" },
|
|
432
|
+
* ],
|
|
433
|
+
* programImports: dynamicDispatchTargets,
|
|
434
|
+
* });
|
|
435
|
+
* try {
|
|
436
|
+
* const authorization = await programManager.buildAuthorizationUnchecked({
|
|
437
|
+
* programName: "wallet_router.aleo",
|
|
438
|
+
* functionName: "transfer",
|
|
439
|
+
* inputs,
|
|
440
|
+
* preparedProcess: prepared,
|
|
441
|
+
* });
|
|
442
|
+
* } finally {
|
|
443
|
+
* prepared.free();
|
|
444
|
+
* }
|
|
445
|
+
*/
|
|
446
|
+
prepareProcess(options: PrepareProcessOptions): Promise<PreparedProcess>;
|
|
352
447
|
private validatePreparedProgram;
|
|
448
|
+
private validatePreparedProcess;
|
|
449
|
+
private preparedCallContext;
|
|
353
450
|
/**
|
|
354
451
|
* Collect static imports declared by the entry program together with any
|
|
355
452
|
* caller-provided imports, then resolve missing transitive dependencies.
|
|
@@ -417,7 +514,7 @@ declare class ProgramManager {
|
|
|
417
514
|
* import { ProgramManager } from "@provablehq/sdk/mainnet.js";
|
|
418
515
|
*
|
|
419
516
|
* // Create a ProgramManager
|
|
420
|
-
* const programManager = new ProgramManager("https://
|
|
517
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2");
|
|
421
518
|
*
|
|
422
519
|
* // Set the value of the `Accept-Language` header to `en-US`
|
|
423
520
|
* programManager.setHeader('Accept-Language', 'en-US');
|
|
@@ -436,7 +533,7 @@ declare class ProgramManager {
|
|
|
436
533
|
* keyProvider.useCache(true);
|
|
437
534
|
*
|
|
438
535
|
* // Create a ProgramManager
|
|
439
|
-
* const programManager = new ProgramManager("https://
|
|
536
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider);
|
|
440
537
|
*
|
|
441
538
|
* // Set the inclusion keys.
|
|
442
539
|
* programManager.setInclusionProver();
|
|
@@ -451,7 +548,7 @@ declare class ProgramManager {
|
|
|
451
548
|
* import { ProgramManager } from "@provablehq/sdk/mainnet.js";
|
|
452
549
|
*
|
|
453
550
|
* // Create a ProgramManager
|
|
454
|
-
* const programManager = new ProgramManager("https://
|
|
551
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2");
|
|
455
552
|
*
|
|
456
553
|
* // Remove the default `X-Aleo-SDK-Version` header
|
|
457
554
|
* programManager.removeHeader('X-Aleo-SDK-Version');
|
|
@@ -479,7 +576,7 @@ declare class ProgramManager {
|
|
|
479
576
|
*
|
|
480
577
|
* // Initialize a program manager with the key provider to automatically fetch keys for deployments
|
|
481
578
|
* const program = "program hello_hello.aleo;\n\nfunction hello:\n input r0 as u32.public;\n input r1 as u32.private;\n add r0 r1 into r2;\n output r2 as u32.private;\n";
|
|
482
|
-
* const programManager = new ProgramManager("https://
|
|
579
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, recordProvider);
|
|
483
580
|
* programManager.setAccount(Account);
|
|
484
581
|
*
|
|
485
582
|
* // Define a fee in credits
|
|
@@ -512,7 +609,7 @@ declare class ProgramManager {
|
|
|
512
609
|
*
|
|
513
610
|
* // Initialize a program manager with the key provider to automatically fetch keys for deployments
|
|
514
611
|
* const program = "program hello_hello.aleo;\n\nfunction hello:\n input r0 as u32.public;\n input r1 as u32.private;\n add r0 r1 into r2;\n output r2 as u32.private;\n";
|
|
515
|
-
* const programManager = new ProgramManager("https://
|
|
612
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, recordProvider);
|
|
516
613
|
* programManager.setAccount(Account);
|
|
517
614
|
*
|
|
518
615
|
* // Define a fee in credits
|
|
@@ -551,7 +648,7 @@ declare class ProgramManager {
|
|
|
551
648
|
*
|
|
552
649
|
* // Initialize a program manager with the key provider to automatically fetch keys for deployments
|
|
553
650
|
* const program = "program hello_hello.aleo;\n\nfunction hello:\n input r0 as u32.public;\n input r1 as u32.private;\n add r0 r1 into r2;\n output r2 as u32.private;\n";
|
|
554
|
-
* const programManager = new ProgramManager("https://
|
|
651
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, recordProvider);
|
|
555
652
|
*
|
|
556
653
|
* // Define a fee in credits
|
|
557
654
|
* const priorityFee = 0.0;
|
|
@@ -582,7 +679,7 @@ declare class ProgramManager {
|
|
|
582
679
|
* keyProvider.useCache(true);
|
|
583
680
|
*
|
|
584
681
|
* // Initialize a program manager with the key provider to automatically fetch keys for executions
|
|
585
|
-
* const programManager = new ProgramManager("https://
|
|
682
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, recordProvider);
|
|
586
683
|
*
|
|
587
684
|
* // Build and execute the transaction
|
|
588
685
|
* const tx = await programManager.buildExecutionTransaction({
|
|
@@ -622,7 +719,7 @@ declare class ProgramManager {
|
|
|
622
719
|
* keyProvider.useCache(true);
|
|
623
720
|
*
|
|
624
721
|
* // Initialize a program manager with the key provider to automatically fetch keys for executions.
|
|
625
|
-
* const programManager = new ProgramManager("https://
|
|
722
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider);
|
|
626
723
|
*
|
|
627
724
|
* // Build the `Authorization`.
|
|
628
725
|
* const privateKey = new PrivateKey(); // Change this to a private key that has an aleo credit balance.
|
|
@@ -691,7 +788,7 @@ declare class ProgramManager {
|
|
|
691
788
|
* keyProvider.useCache(true);
|
|
692
789
|
*
|
|
693
790
|
* // Initialize a ProgramManager with the key and record providers.
|
|
694
|
-
* const programManager = new ProgramManager("https://
|
|
791
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, recordProvider);
|
|
695
792
|
*
|
|
696
793
|
* // Build the `Authorization`.
|
|
697
794
|
* const authorization = await programManager.buildAuthorization({
|
|
@@ -720,7 +817,7 @@ declare class ProgramManager {
|
|
|
720
817
|
* keyProvider.useCache(true);
|
|
721
818
|
*
|
|
722
819
|
* // Initialize a ProgramManager with the key and record providers.
|
|
723
|
-
* const programManager = new ProgramManager("https://
|
|
820
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, recordProvider);
|
|
724
821
|
*
|
|
725
822
|
* // Build the unchecked `Authorization`.
|
|
726
823
|
* const authorization = await programManager.buildAuthorizationUnchecked({
|
|
@@ -749,7 +846,7 @@ declare class ProgramManager {
|
|
|
749
846
|
* keyProvider.useCache(true);
|
|
750
847
|
*
|
|
751
848
|
* // Initialize a ProgramManager with the key and record providers.
|
|
752
|
-
* const programManager = new ProgramManager("https://
|
|
849
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, recordProvider);
|
|
753
850
|
*
|
|
754
851
|
* // Build the proving request.
|
|
755
852
|
* const provingRequest = await programManager.provingRequest({
|
|
@@ -781,7 +878,7 @@ declare class ProgramManager {
|
|
|
781
878
|
* keyProvider.useCache(true);
|
|
782
879
|
*
|
|
783
880
|
* // Initialize a ProgramManager with the key and record providers.
|
|
784
|
-
* const programManager = new ProgramManager("https://
|
|
881
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, recordProvider);
|
|
785
882
|
*
|
|
786
883
|
* // Build a credits.aleo/fee_public `Authorization`.
|
|
787
884
|
* const feePublicAuthorization = await programManager.buildFeeAuthorization({
|
|
@@ -814,7 +911,7 @@ declare class ProgramManager {
|
|
|
814
911
|
* keyProvider.useCache(true);
|
|
815
912
|
*
|
|
816
913
|
* // Initialize a program manager with the key provider to automatically fetch keys for executions
|
|
817
|
-
* const programManager = new ProgramManager("https://
|
|
914
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, recordProvider);
|
|
818
915
|
*
|
|
819
916
|
* // Build and execute the transaction
|
|
820
917
|
* const tx_id = await programManager.execute({
|
|
@@ -907,7 +1004,7 @@ declare class ProgramManager {
|
|
|
907
1004
|
* keyProvider.useCache(true);
|
|
908
1005
|
*
|
|
909
1006
|
* // Initialize a program manager with the key provider to automatically fetch keys for executions
|
|
910
|
-
* const programManager = new ProgramManager("https://
|
|
1007
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, recordProvider);
|
|
911
1008
|
* const record_1 = "{ owner: aleo184vuwr5u7u0ha5f5k44067dd2uaqewxx6pe5ltha5pv99wvhfqxqv339h4.private, microcredits: 45000000u64.private, _nonce: 4106205762862305308495708971985748592380064201230396559307556388725936304984group.public}"
|
|
912
1009
|
* const record_2 = "{ owner: aleo184vuwr5u7u0ha5f5k44067dd2uaqewxx6pe5ltha5pv99wvhfqxqv339h4.private, microcredits: 45000000u64.private, _nonce: 1540945439182663264862696551825005342995406165131907382295858612069623286213group.public}"
|
|
913
1010
|
* const tx_id = await programManager.join(record_1, record_2, 0.05, false);
|
|
@@ -938,7 +1035,7 @@ declare class ProgramManager {
|
|
|
938
1035
|
* keyProvider.useCache(true);
|
|
939
1036
|
*
|
|
940
1037
|
* // Initialize a program manager with the key provider to automatically fetch keys for executions
|
|
941
|
-
* const programManager = new ProgramManager("https://
|
|
1038
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, recordProvider);
|
|
942
1039
|
* const record = "{ owner: aleo184vuwr5u7u0ha5f5k44067dd2uaqewxx6pe5ltha5pv99wvhfqxqv339h4.private, microcredits: 45000000u64.private, _nonce: 4106205762862305308495708971985748592380064201230396559307556388725936304984group.public}"
|
|
943
1040
|
* const tx_id = await programManager.split(25000000, record);
|
|
944
1041
|
*
|
|
@@ -985,7 +1082,7 @@ declare class ProgramManager {
|
|
|
985
1082
|
* keyProvider.useCache(true);
|
|
986
1083
|
*
|
|
987
1084
|
* // Initialize a program manager with the key provider to automatically fetch keys for executions
|
|
988
|
-
* const programManager = new ProgramManager("https://
|
|
1085
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, recordProvider);
|
|
989
1086
|
* const tx = await programManager.buildTransferTransaction(1, "aleo1rhgdu77hgyqd3xjj8ucu3jj9r2krwz6mnzyd80gncr5fxcwlh5rsvzp9px", "public", 0.2, false);
|
|
990
1087
|
* await programManager.networkClient.submitTransaction(tx.toString());
|
|
991
1088
|
*
|
|
@@ -1016,7 +1113,7 @@ declare class ProgramManager {
|
|
|
1016
1113
|
* keyProvider.useCache(true);
|
|
1017
1114
|
*
|
|
1018
1115
|
* // Initialize a program manager with the key provider to automatically fetch keys for executions
|
|
1019
|
-
* const programManager = new ProgramManager("https://
|
|
1116
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, recordProvider);
|
|
1020
1117
|
* const tx = await programManager.buildTransferPublicTransaction(1, "aleo1rhgdu77hgyqd3xjj8ucu3jj9r2krwz6mnzyd80gncr5fxcwlh5rsvzp9px", 0.2);
|
|
1021
1118
|
* await programManager.networkClient.submitTransaction(tx.toString());
|
|
1022
1119
|
*
|
|
@@ -1047,7 +1144,7 @@ declare class ProgramManager {
|
|
|
1047
1144
|
* keyProvider.useCache(true);
|
|
1048
1145
|
*
|
|
1049
1146
|
* // Initialize a program manager with the key provider to automatically fetch keys for executions
|
|
1050
|
-
* const programManager = new ProgramManager("https://
|
|
1147
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, recordProvider);
|
|
1051
1148
|
* const tx = await programManager.buildTransferPublicAsSignerTransaction(1, "aleo1rhgdu77hgyqd3xjj8ucu3jj9r2krwz6mnzyd80gncr5fxcwlh5rsvzp9px", 0.2);
|
|
1052
1149
|
* await programManager.networkClient.submitTransaction(tx.toString());
|
|
1053
1150
|
*
|
|
@@ -1083,7 +1180,7 @@ declare class ProgramManager {
|
|
|
1083
1180
|
* keyProvider.useCache(true);
|
|
1084
1181
|
*
|
|
1085
1182
|
* // Initialize a program manager with the key provider to automatically fetch keys for executions
|
|
1086
|
-
* const programManager = new ProgramManager("https://
|
|
1183
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, recordProvider);
|
|
1087
1184
|
* const tx_id = await programManager.transfer(1, "aleo1rhgdu77hgyqd3xjj8ucu3jj9r2krwz6mnzyd80gncr5fxcwlh5rsvzp9px", "public", 0.2, false);
|
|
1088
1185
|
*
|
|
1089
1186
|
* // Verify the transaction was successful
|
|
@@ -1111,7 +1208,7 @@ declare class ProgramManager {
|
|
|
1111
1208
|
* keyProvider.useCache(true);
|
|
1112
1209
|
*
|
|
1113
1210
|
* // Create a new ProgramManager with the key that will be used to bond credits
|
|
1114
|
-
* const programManager = new ProgramManager("https://
|
|
1211
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, undefined);
|
|
1115
1212
|
* programManager.setAccount(new Account("YourPrivateKey"));
|
|
1116
1213
|
*
|
|
1117
1214
|
* // Create the bonding transaction object for later submission
|
|
@@ -1145,7 +1242,7 @@ declare class ProgramManager {
|
|
|
1145
1242
|
* keyProvider.useCache(true);
|
|
1146
1243
|
*
|
|
1147
1244
|
* // Create a new ProgramManager with the key that will be used to bond credits
|
|
1148
|
-
* const programManager = new ProgramManager("https://
|
|
1245
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, undefined);
|
|
1149
1246
|
*
|
|
1150
1247
|
* // Create the bonding transaction
|
|
1151
1248
|
* tx_id = await programManager.bondPublic("aleo1jx8s4dvjepculny4wfrzwyhs3tlyv65r58ns3g6q2gm2esh7ps8sqy9s5j", "aleo1rhgdu77hgyqd3xjj8ucu3jj9r2krwz6mnzyd80gncr5fxcwlh5rsvzp9px", "aleo1feya8sjy9k2zflvl2dx39pdsq5tju28elnp2ektnn588uu9ghv8s84msv9", 2000000);
|
|
@@ -1176,7 +1273,7 @@ declare class ProgramManager {
|
|
|
1176
1273
|
* keyProvider.useCache(true);
|
|
1177
1274
|
*
|
|
1178
1275
|
* // Create a new ProgramManager with the key that will be used to bond credits
|
|
1179
|
-
* const programManager = new ProgramManager("https://
|
|
1276
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, undefined);
|
|
1180
1277
|
* programManager.setAccount(new Account("YourPrivateKey"));
|
|
1181
1278
|
*
|
|
1182
1279
|
* // Create the bond validator transaction object for later use.
|
|
@@ -1211,7 +1308,7 @@ declare class ProgramManager {
|
|
|
1211
1308
|
* keyProvider.useCache(true);
|
|
1212
1309
|
*
|
|
1213
1310
|
* // Create a new ProgramManager with the key that will be used to bond credits
|
|
1214
|
-
* const programManager = new ProgramManager("https://
|
|
1311
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, undefined);
|
|
1215
1312
|
* programManager.setAccount(new Account("YourPrivateKey"));
|
|
1216
1313
|
*
|
|
1217
1314
|
* // Create the bonding transaction
|
|
@@ -1241,7 +1338,7 @@ declare class ProgramManager {
|
|
|
1241
1338
|
* keyProvider.useCache(true);
|
|
1242
1339
|
*
|
|
1243
1340
|
* // Create a new ProgramManager with the key that will be used to unbond credits.
|
|
1244
|
-
* const programManager = new ProgramManager("https://
|
|
1341
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, undefined);
|
|
1245
1342
|
* const tx = await programManager.buildUnbondPublicTransaction("aleo1jx8s4dvjepculny4wfrzwyhs3tlyv65r58ns3g6q2gm2esh7ps8sqy9s5j", 2000000);
|
|
1246
1343
|
*
|
|
1247
1344
|
* // The transaction can be submitted later to the network using the network client.
|
|
@@ -1276,7 +1373,7 @@ declare class ProgramManager {
|
|
|
1276
1373
|
* keyProvider.useCache(true);
|
|
1277
1374
|
*
|
|
1278
1375
|
* // Create a new ProgramManager with the key that will be used to bond credits
|
|
1279
|
-
* const programManager = new ProgramManager("https://
|
|
1376
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, undefined);
|
|
1280
1377
|
* programManager.setAccount(new Account("YourPrivateKey"));
|
|
1281
1378
|
*
|
|
1282
1379
|
* // Create the unbond_public transaction and send it to the network
|
|
@@ -1305,7 +1402,7 @@ declare class ProgramManager {
|
|
|
1305
1402
|
* keyProvider.useCache(true);
|
|
1306
1403
|
*
|
|
1307
1404
|
* // Create a new ProgramManager with the key that will be used to claim unbonded credits.
|
|
1308
|
-
* const programManager = new ProgramManager("https://
|
|
1405
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, undefined);
|
|
1309
1406
|
*
|
|
1310
1407
|
* // Create the claim_unbond_public transaction object for later use.
|
|
1311
1408
|
* const tx = await programManager.buildClaimUnbondPublicTransaction("aleo1jx8s4dvjepculny4wfrzwyhs3tlyv65r58ns3g6q2gm2esh7ps8sqy9s5j");
|
|
@@ -1337,7 +1434,7 @@ declare class ProgramManager {
|
|
|
1337
1434
|
* keyProvider.useCache(true);
|
|
1338
1435
|
*
|
|
1339
1436
|
* // Create a new ProgramManager with the key that will be used to bond credits
|
|
1340
|
-
* const programManager = new ProgramManager("https://
|
|
1437
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, undefined);
|
|
1341
1438
|
* programManager.setAccount(new Account("YourPrivateKey"));
|
|
1342
1439
|
*
|
|
1343
1440
|
* // Create the claim_unbond_public transaction
|
|
@@ -1374,7 +1471,7 @@ declare class ProgramManager {
|
|
|
1374
1471
|
* keyProvider.useCache(true);
|
|
1375
1472
|
*
|
|
1376
1473
|
* // Create a new ProgramManager with the key that will be used to bond credits
|
|
1377
|
-
* const programManager = new ProgramManager("https://
|
|
1474
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, undefined);
|
|
1378
1475
|
*
|
|
1379
1476
|
* // Create the set_validator_state transaction
|
|
1380
1477
|
* const tx = await programManager.buildSetValidatorStateTransaction(true);
|
|
@@ -1413,7 +1510,7 @@ declare class ProgramManager {
|
|
|
1413
1510
|
* keyProvider.useCache(true);
|
|
1414
1511
|
*
|
|
1415
1512
|
* // Create a new ProgramManager with the key that will be used to bond credits
|
|
1416
|
-
* const programManager = new ProgramManager("https://
|
|
1513
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, undefined);
|
|
1417
1514
|
*
|
|
1418
1515
|
* // Create the set_validator_state transaction
|
|
1419
1516
|
* const tx_id = await programManager.setValidatorState(true);
|
|
@@ -1494,7 +1591,7 @@ declare class ProgramManager {
|
|
|
1494
1591
|
* keyProvider.useCache(true);
|
|
1495
1592
|
*
|
|
1496
1593
|
* // Initialize a program manager with the key provider to automatically fetch keys for executions.
|
|
1497
|
-
* const programManager = new ProgramManager("https://
|
|
1594
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider);
|
|
1498
1595
|
*
|
|
1499
1596
|
* // Build the `Authorization`.
|
|
1500
1597
|
* const privateKey = new PrivateKey(); // Change this to a private key that has an aleo credit balance.
|
|
@@ -1543,7 +1640,7 @@ declare class ProgramManager {
|
|
|
1543
1640
|
* import { AleoKeyProvider, PrivateKey, initThreadPool, ProgramManager } from "@provablehq/sdk";
|
|
1544
1641
|
*
|
|
1545
1642
|
* // Initialize a program manager with the key provider to automatically fetch keys for executions.
|
|
1546
|
-
* const programManager = new ProgramManager("https://
|
|
1643
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider);
|
|
1547
1644
|
*
|
|
1548
1645
|
* // Get the base fee in microcredits.
|
|
1549
1646
|
* const baseFeeMicrocredits = await programManager.estimateExecutionFee({programName: "credits.aleo"});
|
|
@@ -1756,4 +1853,4 @@ declare function verifyBatchProof(options: BatchVerificationOptions): boolean;
|
|
|
1756
1853
|
* const checksum = programChecksum("program foo.aleo; ...");
|
|
1757
1854
|
*/
|
|
1758
1855
|
declare function programChecksum(program: string | Program): Uint8Array;
|
|
1759
|
-
export { ProgramManager, PreparedProgram, PrepareProgramOptions, AuthorizationOptions, FeeAuthorizationOptions, ExecuteOptions, ProvingRequestOptions, ExternalSigningOptions, VerificationOptions, BatchVerificationOptions, inputsToFields, verifyProof, verifyBatchProof, programChecksum };
|
|
1856
|
+
export { ProgramManager, PreparedProgram, PreparedProcess, PrepareProgramOptions, ProgramPreparationOptions, PrepareProcessOptions, PreparedProcessProgram, PreparedProcessSupportsOptions, AuthorizationOptions, FeeAuthorizationOptions, ExecuteOptions, ProvingRequestOptions, ExternalSigningOptions, VerificationOptions, BatchVerificationOptions, inputsToFields, verifyProof, verifyBatchProof, programChecksum };
|
|
@@ -54,7 +54,7 @@ interface RecordProvider {
|
|
|
54
54
|
*
|
|
55
55
|
* // When the program manager is initialized with the record provider it will be used to find automatically find
|
|
56
56
|
* // fee records and amount records for value transfers so that they do not need to be specified manually
|
|
57
|
-
* const programManager = new ProgramManager("https://
|
|
57
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, recordProvider);
|
|
58
58
|
* programManager.transfer(1, "aleo166q6ww6688cug7qxwe7nhctjpymydwzy2h7rscfmatqmfwnjvggqcad0at", "public", 0.5);
|
|
59
59
|
*/
|
|
60
60
|
findCreditsRecord(microcredits: number, searchParameters: RecordSearchParams): Promise<OwnedRecord>;
|
|
@@ -77,7 +77,7 @@ interface RecordProvider {
|
|
|
77
77
|
*
|
|
78
78
|
* // When the program manager is initialized with the record provider it will be used to find automatically find
|
|
79
79
|
* // fee records and amount records for value transfers so that they do not need to be specified manually
|
|
80
|
-
* const programManager = new ProgramManager("https://
|
|
80
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, recordProvider);
|
|
81
81
|
* programManager.transfer(1, "aleo166q6ww6688cug7qxwe7nhctjpymydwzy2h7rscfmatqmfwnjvggqcad0at", "public", 0.5);
|
|
82
82
|
*/
|
|
83
83
|
findCreditsRecords(microcreditAmounts: number[], searchParameters: RecordSearchParams): Promise<OwnedRecord[]>;
|
|
@@ -191,7 +191,7 @@ declare class NetworkRecordProvider implements RecordProvider {
|
|
|
191
191
|
*
|
|
192
192
|
* @example
|
|
193
193
|
* // Create a new NetworkRecordProvider
|
|
194
|
-
* const networkClient = new AleoNetworkClient("https://
|
|
194
|
+
* const networkClient = new AleoNetworkClient("https://edge.provable.com/api/v2");
|
|
195
195
|
* const keyProvider = new AleoKeyProvider();
|
|
196
196
|
* const recordProvider = new NetworkRecordProvider(account, networkClient);
|
|
197
197
|
*
|
|
@@ -204,7 +204,7 @@ declare class NetworkRecordProvider implements RecordProvider {
|
|
|
204
204
|
*
|
|
205
205
|
* // When the program manager is initialized with the record provider it will be used to find automatically find
|
|
206
206
|
* // fee records and amount records for value transfers so that they do not need to be specified manually
|
|
207
|
-
* const programManager = new ProgramManager("https://
|
|
207
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, recordProvider);
|
|
208
208
|
* programManager.transfer(1, "aleo166q6ww6688cug7qxwe7nhctjpymydwzy2h7rscfmatqmfwnjvggqcad0at", "public", 0.5);
|
|
209
209
|
*
|
|
210
210
|
* */
|
|
@@ -218,7 +218,7 @@ declare class NetworkRecordProvider implements RecordProvider {
|
|
|
218
218
|
*
|
|
219
219
|
* @example
|
|
220
220
|
* // Create a new NetworkRecordProvider
|
|
221
|
-
* const networkClient = new AleoNetworkClient("https://
|
|
221
|
+
* const networkClient = new AleoNetworkClient("https://edge.provable.com/api/v2");
|
|
222
222
|
* const keyProvider = new AleoKeyProvider();
|
|
223
223
|
* const recordProvider = new NetworkRecordProvider(account, networkClient);
|
|
224
224
|
*
|
|
@@ -231,7 +231,7 @@ declare class NetworkRecordProvider implements RecordProvider {
|
|
|
231
231
|
*
|
|
232
232
|
* // When the program manager is initialized with the record provider it will be used to find automatically find
|
|
233
233
|
* // fee records and amount records for value transfers so that they do not need to be specified manually
|
|
234
|
-
* const programManager = new ProgramManager("https://
|
|
234
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, recordProvider);
|
|
235
235
|
* programManager.transfer(1, "aleo166q6ww6688cug7qxwe7nhctjpymydwzy2h7rscfmatqmfwnjvggqcad0at", "public", 0.5);
|
|
236
236
|
*/
|
|
237
237
|
findCreditsRecord(microcredits: number, searchParameters: RecordSearchParams): Promise<OwnedRecord>;
|
|
@@ -256,7 +256,7 @@ declare class NetworkRecordProvider implements RecordProvider {
|
|
|
256
256
|
* const params = new BlockHeightSearch(89995, 99995);
|
|
257
257
|
*
|
|
258
258
|
* // Create a new NetworkRecordProvider
|
|
259
|
-
* const networkClient = new AleoNetworkClient("https://
|
|
259
|
+
* const networkClient = new AleoNetworkClient("https://edge.provable.com/api/v2");
|
|
260
260
|
* const keyProvider = new AleoKeyProvider();
|
|
261
261
|
* const recordProvider = new NetworkRecordProvider(account, networkClient);
|
|
262
262
|
*
|
|
@@ -54,7 +54,7 @@ interface RecordProvider {
|
|
|
54
54
|
*
|
|
55
55
|
* // When the program manager is initialized with the record provider it will be used to find automatically find
|
|
56
56
|
* // fee records and amount records for value transfers so that they do not need to be specified manually
|
|
57
|
-
* const programManager = new ProgramManager("https://
|
|
57
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, recordProvider);
|
|
58
58
|
* programManager.transfer(1, "aleo166q6ww6688cug7qxwe7nhctjpymydwzy2h7rscfmatqmfwnjvggqcad0at", "public", 0.5);
|
|
59
59
|
*/
|
|
60
60
|
findCreditsRecord(microcredits: number, searchParameters: RecordSearchParams): Promise<OwnedRecord>;
|
|
@@ -77,7 +77,7 @@ interface RecordProvider {
|
|
|
77
77
|
*
|
|
78
78
|
* // When the program manager is initialized with the record provider it will be used to find automatically find
|
|
79
79
|
* // fee records and amount records for value transfers so that they do not need to be specified manually
|
|
80
|
-
* const programManager = new ProgramManager("https://
|
|
80
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, recordProvider);
|
|
81
81
|
* programManager.transfer(1, "aleo166q6ww6688cug7qxwe7nhctjpymydwzy2h7rscfmatqmfwnjvggqcad0at", "public", 0.5);
|
|
82
82
|
*/
|
|
83
83
|
findCreditsRecords(microcreditAmounts: number[], searchParameters: RecordSearchParams): Promise<OwnedRecord[]>;
|
|
@@ -191,7 +191,7 @@ declare class NetworkRecordProvider implements RecordProvider {
|
|
|
191
191
|
*
|
|
192
192
|
* @example
|
|
193
193
|
* // Create a new NetworkRecordProvider
|
|
194
|
-
* const networkClient = new AleoNetworkClient("https://
|
|
194
|
+
* const networkClient = new AleoNetworkClient("https://edge.provable.com/api/v2");
|
|
195
195
|
* const keyProvider = new AleoKeyProvider();
|
|
196
196
|
* const recordProvider = new NetworkRecordProvider(account, networkClient);
|
|
197
197
|
*
|
|
@@ -204,7 +204,7 @@ declare class NetworkRecordProvider implements RecordProvider {
|
|
|
204
204
|
*
|
|
205
205
|
* // When the program manager is initialized with the record provider it will be used to find automatically find
|
|
206
206
|
* // fee records and amount records for value transfers so that they do not need to be specified manually
|
|
207
|
-
* const programManager = new ProgramManager("https://
|
|
207
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, recordProvider);
|
|
208
208
|
* programManager.transfer(1, "aleo166q6ww6688cug7qxwe7nhctjpymydwzy2h7rscfmatqmfwnjvggqcad0at", "public", 0.5);
|
|
209
209
|
*
|
|
210
210
|
* */
|
|
@@ -218,7 +218,7 @@ declare class NetworkRecordProvider implements RecordProvider {
|
|
|
218
218
|
*
|
|
219
219
|
* @example
|
|
220
220
|
* // Create a new NetworkRecordProvider
|
|
221
|
-
* const networkClient = new AleoNetworkClient("https://
|
|
221
|
+
* const networkClient = new AleoNetworkClient("https://edge.provable.com/api/v2");
|
|
222
222
|
* const keyProvider = new AleoKeyProvider();
|
|
223
223
|
* const recordProvider = new NetworkRecordProvider(account, networkClient);
|
|
224
224
|
*
|
|
@@ -231,7 +231,7 @@ declare class NetworkRecordProvider implements RecordProvider {
|
|
|
231
231
|
*
|
|
232
232
|
* // When the program manager is initialized with the record provider it will be used to find automatically find
|
|
233
233
|
* // fee records and amount records for value transfers so that they do not need to be specified manually
|
|
234
|
-
* const programManager = new ProgramManager("https://
|
|
234
|
+
* const programManager = new ProgramManager("https://edge.provable.com/api/v2", keyProvider, recordProvider);
|
|
235
235
|
* programManager.transfer(1, "aleo166q6ww6688cug7qxwe7nhctjpymydwzy2h7rscfmatqmfwnjvggqcad0at", "public", 0.5);
|
|
236
236
|
*/
|
|
237
237
|
findCreditsRecord(microcredits: number, searchParameters: RecordSearchParams): Promise<OwnedRecord>;
|
|
@@ -256,7 +256,7 @@ declare class NetworkRecordProvider implements RecordProvider {
|
|
|
256
256
|
* const params = new BlockHeightSearch(89995, 99995);
|
|
257
257
|
*
|
|
258
258
|
* // Create a new NetworkRecordProvider
|
|
259
|
-
* const networkClient = new AleoNetworkClient("https://
|
|
259
|
+
* const networkClient = new AleoNetworkClient("https://edge.provable.com/api/v2");
|
|
260
260
|
* const keyProvider = new AleoKeyProvider();
|
|
261
261
|
* const recordProvider = new NetworkRecordProvider(account, networkClient);
|
|
262
262
|
*
|
|
@@ -29,9 +29,9 @@ export interface RecordScannerJWTData {
|
|
|
29
29
|
* Configuration for the record scanner.
|
|
30
30
|
*
|
|
31
31
|
* @property {string} url Base URL of the record scanning service (network path is appended by the SDK).
|
|
32
|
-
* @property {ApiAuthConfig} [auth] Explicit auth mode: `
|
|
33
|
-
* @property {string | { header: string, value: string }} [apiKey] Legacy: API key as a string (JWT
|
|
34
|
-
* @property {string} [consumerId] Legacy:
|
|
32
|
+
* @property {ApiAuthConfig} [auth] Explicit auth mode. edge.provable.com/api is unauthenticated and never uses JWTs: use `none` (default) or `api-key` with an optional provisioned key. `jwt` is for the legacy api.provable.com gateway. Wins over the legacy fields below, which cannot be combined with it.
|
|
33
|
+
* @property {string | { header: string, value: string }} [apiKey] Legacy: API key as a string (sent as `X-API-Key` on its own, or used to mint a JWT when paired with `consumerId`) or as a custom header name and value (keyed auth).
|
|
34
|
+
* @property {string} [consumerId] Legacy: pairs with a string `apiKey` to mint JWTs against api.provable.com. Do not set it for edge.provable.com, which has no JWT route.
|
|
35
35
|
* @property {RecordScannerJWTData} [jwtData] Legacy: optional JWT for auth. If omitted and apiKey + consumerId are set, JWT is refreshed when needed.
|
|
36
36
|
* @property {ViewKey[]} [viewKeys] Optional view keys to use for local scanning and decryption.
|
|
37
37
|
* @property {Account} [account] Optional account to use for local scanning and decryption.
|
|
@@ -29,9 +29,9 @@ export interface RecordScannerJWTData {
|
|
|
29
29
|
* Configuration for the record scanner.
|
|
30
30
|
*
|
|
31
31
|
* @property {string} url Base URL of the record scanning service (network path is appended by the SDK).
|
|
32
|
-
* @property {ApiAuthConfig} [auth] Explicit auth mode: `
|
|
33
|
-
* @property {string | { header: string, value: string }} [apiKey] Legacy: API key as a string (JWT
|
|
34
|
-
* @property {string} [consumerId] Legacy:
|
|
32
|
+
* @property {ApiAuthConfig} [auth] Explicit auth mode. edge.provable.com/api is unauthenticated and never uses JWTs: use `none` (default) or `api-key` with an optional provisioned key. `jwt` is for the legacy api.provable.com gateway. Wins over the legacy fields below, which cannot be combined with it.
|
|
33
|
+
* @property {string | { header: string, value: string }} [apiKey] Legacy: API key as a string (sent as `X-API-Key` on its own, or used to mint a JWT when paired with `consumerId`) or as a custom header name and value (keyed auth).
|
|
34
|
+
* @property {string} [consumerId] Legacy: pairs with a string `apiKey` to mint JWTs against api.provable.com. Do not set it for edge.provable.com, which has no JWT route.
|
|
35
35
|
* @property {RecordScannerJWTData} [jwtData] Legacy: optional JWT for auth. If omitted and apiKey + consumerId are set, JWT is refreshed when needed.
|
|
36
36
|
* @property {ViewKey[]} [viewKeys] Optional view keys to use for local scanning and decryption.
|
|
37
37
|
* @property {Account} [account] Optional account to use for local scanning and decryption.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@provablehq/sdk",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.10",
|
|
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.11.
|
|
94
|
+
"@provablehq/wasm": "^0.11.10",
|
|
95
95
|
"@scure/base": "^2.0.0",
|
|
96
96
|
"@serenity-kit/noble-sodium": "0.2.3",
|
|
97
97
|
"comlink": "^4.4.2",
|