@provablehq/sdk 0.6.13 → 0.7.1
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/README.md +20 -20
- package/dist/{account.d.ts → mainnet/account.d.ts} +10 -10
- package/dist/mainnet/browser.d.ts +20 -0
- package/dist/mainnet/browser.js +934 -0
- package/dist/mainnet/browser.js.map +1 -0
- package/dist/mainnet/constants.d.ts +34 -0
- package/dist/{function-key-provider.d.ts → mainnet/function-key-provider.d.ts} +58 -57
- package/dist/{network-client.d.ts → mainnet/network-client.d.ts} +29 -26
- package/dist/{node-polyfill.d.ts → mainnet/node-polyfill.d.ts} +1 -0
- package/dist/{node-polyfill.js → mainnet/node-polyfill.js} +1 -0
- package/dist/mainnet/node-polyfill.js.map +1 -0
- package/dist/mainnet/node.d.ts +2 -0
- package/dist/mainnet/node.js +13 -0
- package/dist/{node.js.map → mainnet/node.js.map} +1 -1
- package/dist/{offline-key-provider.d.ts → mainnet/offline-key-provider.d.ts} +23 -22
- package/dist/mainnet/polyfill/shared.d.ts +1 -0
- package/dist/mainnet/program-manager-6a377210.js +2200 -0
- package/dist/mainnet/program-manager-6a377210.js.map +1 -0
- package/dist/{program-manager.d.ts → mainnet/program-manager.d.ts} +63 -59
- package/dist/{record-provider.d.ts → mainnet/record-provider.d.ts} +22 -22
- package/dist/{utils.d.ts → mainnet/utils.d.ts} +2 -0
- package/dist/mainnet/wasm.d.ts +1 -0
- package/dist/{worker.d.ts → mainnet/worker.d.ts} +2 -1
- package/dist/mainnet/worker.js +78 -0
- package/dist/mainnet/worker.js.map +1 -0
- package/dist/testnet/account.d.ts +137 -0
- package/dist/testnet/browser.d.ts +20 -0
- package/dist/testnet/browser.js +934 -0
- package/dist/testnet/browser.js.map +1 -0
- package/dist/testnet/constants.d.ts +34 -0
- package/dist/testnet/function-key-provider.d.ts +349 -0
- package/dist/testnet/managed-worker.d.ts +3 -0
- package/dist/testnet/models/block.d.ts +21 -0
- package/dist/testnet/models/confirmed_transaction.d.ts +6 -0
- package/dist/testnet/models/execution.d.ts +5 -0
- package/dist/testnet/models/input.d.ts +10 -0
- package/dist/testnet/models/output.d.ts +6 -0
- package/dist/testnet/models/transactionModel.d.ts +6 -0
- package/dist/testnet/models/transition.d.ts +13 -0
- package/dist/testnet/network-client.d.ts +270 -0
- package/dist/testnet/node-polyfill.d.ts +5 -0
- package/dist/testnet/node-polyfill.js +303 -0
- package/dist/testnet/node-polyfill.js.map +1 -0
- package/dist/testnet/node.d.ts +2 -0
- package/dist/testnet/node.js +13 -0
- package/dist/testnet/node.js.map +1 -0
- package/dist/testnet/offline-key-provider.d.ts +348 -0
- package/dist/testnet/polyfill/crypto.d.ts +1 -0
- package/dist/testnet/polyfill/fetch.d.ts +1 -0
- package/dist/testnet/polyfill/shared.d.ts +1 -0
- package/dist/testnet/polyfill/worker.d.ts +1 -0
- package/dist/testnet/polyfill/xmlhttprequest.d.ts +1 -0
- package/dist/{index.js → testnet/program-manager-97ade0e6.js} +362 -1278
- package/dist/testnet/program-manager-97ade0e6.js.map +1 -0
- package/dist/testnet/program-manager.d.ts +640 -0
- package/dist/testnet/record-provider.d.ts +236 -0
- package/dist/testnet/utils.d.ts +4 -0
- package/dist/testnet/wasm.d.ts +1 -0
- package/dist/testnet/worker.d.ts +9 -0
- package/dist/testnet/worker.js +78 -0
- package/dist/testnet/worker.js.map +1 -0
- package/package.json +23 -13
- package/dist/index.d.ts +0 -52
- package/dist/index.js.map +0 -1
- package/dist/node-polyfill.js.map +0 -1
- package/dist/node.d.ts +0 -2
- package/dist/node.js +0 -11
- package/dist/worker.js +0 -74
- package/dist/worker.js.map +0 -1
- /package/dist/{managed-worker.d.ts → mainnet/managed-worker.d.ts} +0 -0
- /package/dist/{models → mainnet/models}/block.d.ts +0 -0
- /package/dist/{models → mainnet/models}/confirmed_transaction.d.ts +0 -0
- /package/dist/{models → mainnet/models}/execution.d.ts +0 -0
- /package/dist/{models → mainnet/models}/input.d.ts +0 -0
- /package/dist/{models → mainnet/models}/output.d.ts +0 -0
- /package/dist/{models → mainnet/models}/transactionModel.d.ts +0 -0
- /package/dist/{models → mainnet/models}/transition.d.ts +0 -0
- /package/dist/{polyfill → mainnet/polyfill}/crypto.d.ts +0 -0
- /package/dist/{polyfill → mainnet/polyfill}/fetch.d.ts +0 -0
- /package/dist/{polyfill → mainnet/polyfill}/worker.d.ts +0 -0
- /package/dist/{polyfill → mainnet/polyfill}/xmlhttprequest.d.ts +0 -0
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
</p>
|
|
5
5
|
|
|
6
6
|
<p align="center">
|
|
7
|
-
<a href="https://
|
|
7
|
+
<a href="https://docs.leo-lang.org"> <img alt="Website" src="https://img.shields.io/badge/Developer_Docs-online-blue"></a>
|
|
8
8
|
<a href="https://circleci.com/gh/ProvableHQ/sdk"><img src="https://circleci.com/gh/ProvableHQ/sdk.svg?style=svg"></a>
|
|
9
9
|
<a href="https://discord.com/invite/aleo"><img src="https://img.shields.io/discord/700454073459015690?logo=discord"/></a>
|
|
10
10
|
<a href="https://github.com/ProvableHQ/sdk#%EF%B8%8F-contributors"><img src="https://img.shields.io/badge/contributors-23-ee8449"/></a>
|
|
@@ -182,7 +182,7 @@ function hello:
|
|
|
182
182
|
The SDK provides the ability to execute Aleo programs 100% client-side within the browser.
|
|
183
183
|
|
|
184
184
|
The `ProgramManager` object encapsulates the functionality for executing programs and making zero-knowledge proofs about
|
|
185
|
-
them. Under the hood it uses cryptographic code compiled from [SnarkVM](https://
|
|
185
|
+
them. Under the hood it uses cryptographic code compiled from [SnarkVM](https://docs.leo-lang.org/aleo) into WebAssembly
|
|
186
186
|
with JavaScript bindings that allow for the execution of Aleo programs fully within the browser. Users interested in lower-level
|
|
187
187
|
details on how this is achieved can visit the [aleo-wasm](https://www.npmjs.com/package/@provablehq/wasm) crate.
|
|
188
188
|
|
|
@@ -275,7 +275,7 @@ import { Account, AleoNetworkClient, NetworkRecordProvider, ProgramManager, Aleo
|
|
|
275
275
|
const account = new Account();
|
|
276
276
|
|
|
277
277
|
// Create a network client to connect to the Aleo network
|
|
278
|
-
const networkClient = new AleoNetworkClient("https://api.explorer.
|
|
278
|
+
const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
|
|
279
279
|
|
|
280
280
|
// Create a key provider that will be used to find public proving & verifying keys for Aleo programs
|
|
281
281
|
const keyProvider = new AleoKeyProvider();
|
|
@@ -285,7 +285,7 @@ keyProvider.useCache = true;
|
|
|
285
285
|
const recordProvider = new NetworkRecordProvider(account, networkClient);
|
|
286
286
|
|
|
287
287
|
// Initialize a program manager to talk to the Aleo network with the configured key and record providers
|
|
288
|
-
const programManager = new ProgramManager("https://api.explorer.
|
|
288
|
+
const programManager = new ProgramManager("https://api.explorer.provable.com/v1", keyProvider, recordProvider);
|
|
289
289
|
|
|
290
290
|
// Set the account for the program manager
|
|
291
291
|
programManager.setAccount(account);
|
|
@@ -367,7 +367,7 @@ const keyProvider = new AleoKeyProvider();
|
|
|
367
367
|
keyProvider.useCache(true);
|
|
368
368
|
|
|
369
369
|
// Create a record provider that will be used to find records and transaction data for Aleo programs
|
|
370
|
-
const networkClient = new AleoNetworkClient("https://api.explorer.
|
|
370
|
+
const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
|
|
371
371
|
|
|
372
372
|
// Use existing account with funds
|
|
373
373
|
const account = new Account({
|
|
@@ -377,7 +377,7 @@ const account = new Account({
|
|
|
377
377
|
const recordProvider = new NetworkRecordProvider(account, networkClient);
|
|
378
378
|
|
|
379
379
|
// Initialize a program manager to talk to the Aleo network with the configured key and record providers
|
|
380
|
-
const programManager = new ProgramManager("https://api.explorer.
|
|
380
|
+
const programManager = new ProgramManager("https://api.explorer.provable.com/v1", keyProvider, recordProvider);
|
|
381
381
|
programManager.setAccount(account)
|
|
382
382
|
|
|
383
383
|
// Define an Aleo program to deploy
|
|
@@ -395,7 +395,7 @@ const transaction = await programManager.networkClient.getTransaction(tx_id);
|
|
|
395
395
|
|
|
396
396
|
The `NetworkRecordProvider` will attempt to scan the network for a fee record for the account provided. Doing a recent
|
|
397
397
|
public transfer to the deploying account will ensure a record is found quickly, or you can provide a fee record manually
|
|
398
|
-
by [scanning](https://
|
|
398
|
+
by [scanning](https://docs.leo-lang.org/testnet/getting_started/deploy_execute/#scan) for a record and passing it as a
|
|
399
399
|
string.
|
|
400
400
|
|
|
401
401
|
```typescript
|
|
@@ -429,7 +429,7 @@ A full example of this implementation can be found [here](https://github.com/Pro
|
|
|
429
429
|
|
|
430
430
|
Aleo Credits are used to access blockspace and computational resources on the network, with users paying Credits to submit transactions and have them processed.
|
|
431
431
|
|
|
432
|
-
Aleo credits are defined in the [credits.aleo](https://explorer.
|
|
432
|
+
Aleo credits are defined in the [credits.aleo](https://explorer.provable.com/program/credits.aleo) program. This program is
|
|
433
433
|
deployed to the Aleo network and defines data structures representing Aleo credits and the functions used to manage them.
|
|
434
434
|
|
|
435
435
|
There are two ways to hold Aleo credits:
|
|
@@ -544,13 +544,13 @@ import { Account, ProgramManager, AleoKeyProvider, NetworkRecordProvider, AleoNe
|
|
|
544
544
|
|
|
545
545
|
// Create a new NetworkClient, KeyProvider, and RecordProvider
|
|
546
546
|
const account = Account.from_string({privateKey: "user1PrivateKey"});
|
|
547
|
-
const networkClient = new AleoNetworkClient("https://api.explorer.
|
|
547
|
+
const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
|
|
548
548
|
const keyProvider = new AleoKeyProvider();
|
|
549
549
|
const recordProvider = new NetworkRecordProvider(account, networkClient);
|
|
550
550
|
|
|
551
551
|
// Initialize a program manager with the key provider to automatically fetch keys for executions
|
|
552
552
|
const USER_1_ADDRESS = "user1Address";
|
|
553
|
-
const programManager = new ProgramManager("https://api.explorer.
|
|
553
|
+
const programManager = new ProgramManager("https://api.explorer.provable.com/v1", keyProvider, recordProvider);
|
|
554
554
|
programManager.setAccount(account);
|
|
555
555
|
|
|
556
556
|
// Send a private transfer to yourself
|
|
@@ -585,7 +585,7 @@ assert(public_balance === 0);
|
|
|
585
585
|
As shown above, a public balance of any address can be checked with `getMappingValue` function of the `NetworkClient`.
|
|
586
586
|
|
|
587
587
|
```typescript
|
|
588
|
-
const networkClient = new AleoNetworkClient("https://api.explorer.
|
|
588
|
+
const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
|
|
589
589
|
const USER_1_ADDRESS = "user1Address";
|
|
590
590
|
const public_balance = networkClient.getMappingValue("credits.aleo", USER_1_ADDRESS);
|
|
591
591
|
```
|
|
@@ -674,13 +674,13 @@ import { Account, ProgramManager, AleoKeyProvider, NetworkRecordProvider, AleoNe
|
|
|
674
674
|
|
|
675
675
|
// Create a new NetworkClient, KeyProvider, and RecordProvider
|
|
676
676
|
const account = Account.from_string({privateKey: "user1PrivateKey"});
|
|
677
|
-
const networkClient = new AleoNetworkClient("https://api.explorer.
|
|
677
|
+
const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
|
|
678
678
|
const keyProvider = new AleoKeyProvider();
|
|
679
679
|
const recordProvider = new NetworkRecordProvider(account, networkClient);
|
|
680
680
|
|
|
681
681
|
// Initialize a program manager with the key provider to automatically fetch keys for executions
|
|
682
682
|
const USER_2_ADDRESS = "user2Address";
|
|
683
|
-
const programManager = new ProgramManager("https://api.explorer.
|
|
683
|
+
const programManager = new ProgramManager("https://api.explorer.provable.com/v1", keyProvider, recordProvider);
|
|
684
684
|
programManager.setAccount(account);
|
|
685
685
|
|
|
686
686
|
/// Send private transfer to User 2
|
|
@@ -695,12 +695,12 @@ import { Account, ProgramManager, AleoKeyProvider, NetworkRecordProvider, AleoNe
|
|
|
695
695
|
|
|
696
696
|
// Create a new NetworkClient, KeyProvider, and RecordProvider
|
|
697
697
|
const account = Account.from_string({privateKey: "user2PrivateKey"});
|
|
698
|
-
const networkClient = new AleoNetworkClient("https://api.explorer.
|
|
698
|
+
const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
|
|
699
699
|
const keyProvider = new AleoKeyProvider();
|
|
700
700
|
const recordProvider_User2 = new NetworkRecordProvider(account, networkClient);
|
|
701
701
|
|
|
702
702
|
// Initialize a program manager with the key provider to automatically fetch keys for executions
|
|
703
|
-
const programManager = new ProgramManager("https://api.explorer.
|
|
703
|
+
const programManager = new ProgramManager("https://api.explorer.provable.com/v1", keyProvider, recordProvider);
|
|
704
704
|
programManager.setAccount(account);
|
|
705
705
|
|
|
706
706
|
// Fetch the transaction from the network that user 1 sent
|
|
@@ -863,7 +863,7 @@ read the value of a specific key within a mapping.
|
|
|
863
863
|
```typescript
|
|
864
864
|
import { AleoNetworkClient } from '@provablehq/sdk';
|
|
865
865
|
|
|
866
|
-
const networkClient = new AleoNetworkClient("https://api.explorer.
|
|
866
|
+
const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
|
|
867
867
|
const creditsMappings = networkClient.getMappings("credits.aleo");
|
|
868
868
|
assert(creditsMappings === ["account"]);
|
|
869
869
|
|
|
@@ -903,20 +903,20 @@ by the Aleo network. All that the user of the SDK must do is ensure that the inp
|
|
|
903
903
|
If function inputs are invalid, the network will return an error, but the fee paid for the transaction will still be
|
|
904
904
|
consumed. Therefore, it is important to ensure that the inputs to a function are valid before executing it.
|
|
905
905
|
|
|
906
|
-
A simple example of a mapping update can be shown by simply executing
|
|
906
|
+
A simple example of a mapping update can be shown by simply executing `transfer_public` as shown below.
|
|
907
907
|
|
|
908
908
|
```typescript
|
|
909
909
|
import { Account, ProgramManager, AleoKeyProvider, NetworkRecordProvider, AleoNetworkClient } from '@provablehq/sdk';
|
|
910
910
|
|
|
911
911
|
// Create a new NetworkClient, KeyProvider, and RecordProvider
|
|
912
912
|
const account = Account.from_string({privateKey: "user1PrivateKey"});
|
|
913
|
-
const networkClient = new AleoNetworkClient("https://api.explorer.
|
|
913
|
+
const networkClient = new AleoNetworkClient("https://api.explorer.provable.com/v1");
|
|
914
914
|
const keyProvider = new AleoKeyProvider();
|
|
915
915
|
const recordProvider = new NetworkRecordProvider(account, networkClient);
|
|
916
916
|
|
|
917
917
|
// Initialize a program manager with the key provider to automatically fetch keys for executions
|
|
918
918
|
const RECIPIENT_ADDRESS = "user1Address";
|
|
919
|
-
const programManager = new ProgramManager("https://api.explorer.
|
|
919
|
+
const programManager = new ProgramManager("https://api.explorer.provable.com/v1", keyProvider, recordProvider);
|
|
920
920
|
programManager.setAccount(account);
|
|
921
921
|
|
|
922
922
|
// Update or initialize a public balance
|
|
@@ -930,7 +930,7 @@ Communication with the Aleo network is done through the `AleoNetworkClient` clas
|
|
|
930
930
|
data from Aleo network nodes and submit transactions to the Aleo network.
|
|
931
931
|
|
|
932
932
|
A full list of methods provided by the `AleoNetworkClient` class and usage examples can be found in the
|
|
933
|
-
[Network Client API documentation](https://
|
|
933
|
+
[Network Client API documentation](https://docs.leo-lang.org/sdk/typescript/aleo_network_client).
|
|
934
934
|
|
|
935
935
|
## Further Documentation
|
|
936
936
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Address, PrivateKey, Signature, ViewKey, PrivateKeyCiphertext, RecordCiphertext } from "./
|
|
1
|
+
import { Address, PrivateKey, Signature, ViewKey, PrivateKeyCiphertext, RecordCiphertext } from "./wasm";
|
|
2
2
|
interface AccountParam {
|
|
3
3
|
privateKey?: string;
|
|
4
4
|
seed?: Uint8Array;
|
|
@@ -41,7 +41,7 @@ export declare class Account {
|
|
|
41
41
|
* Attempts to create an account from a private key ciphertext
|
|
42
42
|
* @param {PrivateKeyCiphertext | string} ciphertext
|
|
43
43
|
* @param {string} password
|
|
44
|
-
* @returns {PrivateKey
|
|
44
|
+
* @returns {PrivateKey}
|
|
45
45
|
*
|
|
46
46
|
* @example
|
|
47
47
|
* const ciphertext = PrivateKey.newEncrypted("password");
|
|
@@ -52,7 +52,7 @@ export declare class Account {
|
|
|
52
52
|
privateKey(): PrivateKey;
|
|
53
53
|
viewKey(): ViewKey;
|
|
54
54
|
address(): Address;
|
|
55
|
-
toString():
|
|
55
|
+
toString(): any;
|
|
56
56
|
/**
|
|
57
57
|
* Encrypt the account's private key with a password
|
|
58
58
|
* @param {string} ciphertext
|
|
@@ -62,7 +62,7 @@ export declare class Account {
|
|
|
62
62
|
* const account = new Account();
|
|
63
63
|
* const ciphertext = account.encryptAccount("password");
|
|
64
64
|
*/
|
|
65
|
-
encryptAccount(password: string):
|
|
65
|
+
encryptAccount(password: string): any;
|
|
66
66
|
/**
|
|
67
67
|
* Decrypts a Record in ciphertext form into plaintext
|
|
68
68
|
* @param {string} ciphertext
|
|
@@ -72,7 +72,7 @@ export declare class Account {
|
|
|
72
72
|
* const account = new Account();
|
|
73
73
|
* const record = account.decryptRecord("record1ciphertext");
|
|
74
74
|
*/
|
|
75
|
-
decryptRecord(ciphertext: string):
|
|
75
|
+
decryptRecord(ciphertext: string): any;
|
|
76
76
|
/**
|
|
77
77
|
* Decrypts an array of Records in ciphertext form into plaintext
|
|
78
78
|
* @param {string[]} ciphertexts
|
|
@@ -82,7 +82,7 @@ export declare class Account {
|
|
|
82
82
|
* const account = new Account();
|
|
83
83
|
* const record = account.decryptRecords(["record1ciphertext", "record2ciphertext"]);
|
|
84
84
|
*/
|
|
85
|
-
decryptRecords(ciphertexts: string[]):
|
|
85
|
+
decryptRecords(ciphertexts: string[]): any[];
|
|
86
86
|
/**
|
|
87
87
|
* Determines whether the account owns a ciphertext record
|
|
88
88
|
* @param {RecordCipherText | string} ciphertext
|
|
@@ -90,7 +90,7 @@ export declare class Account {
|
|
|
90
90
|
*
|
|
91
91
|
* @example
|
|
92
92
|
* // Create a connection to the Aleo network and an account
|
|
93
|
-
* const connection = new
|
|
93
|
+
* const connection = new AleoNetworkClient("https://api.explorer.provable.com/v1");
|
|
94
94
|
* const account = Account.fromCiphertext("ciphertext", "password");
|
|
95
95
|
*
|
|
96
96
|
* // Get a record from the network
|
|
@@ -105,7 +105,7 @@ export declare class Account {
|
|
|
105
105
|
* // Etc.
|
|
106
106
|
* }
|
|
107
107
|
*/
|
|
108
|
-
ownsRecordCiphertext(ciphertext: RecordCiphertext | string):
|
|
108
|
+
ownsRecordCiphertext(ciphertext: RecordCiphertext | string): any;
|
|
109
109
|
/**
|
|
110
110
|
* Signs a message with the account's private key.
|
|
111
111
|
* Returns a Signature.
|
|
@@ -118,7 +118,7 @@ export declare class Account {
|
|
|
118
118
|
* const message = Uint8Array.from([104, 101, 108, 108, 111 119, 111, 114, 108, 100])
|
|
119
119
|
* account.sign(message);
|
|
120
120
|
*/
|
|
121
|
-
sign(message: Uint8Array):
|
|
121
|
+
sign(message: Uint8Array): any;
|
|
122
122
|
/**
|
|
123
123
|
* Verifies the Signature on a message.
|
|
124
124
|
*
|
|
@@ -132,6 +132,6 @@ export declare class Account {
|
|
|
132
132
|
* const signature = account.sign(message);
|
|
133
133
|
* account.verify(message, signature);
|
|
134
134
|
*/
|
|
135
|
-
verify(message: Uint8Array, signature: Signature):
|
|
135
|
+
verify(message: Uint8Array, signature: Signature): any;
|
|
136
136
|
}
|
|
137
137
|
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import "./polyfill/shared";
|
|
2
|
+
import { Account } from "./account";
|
|
3
|
+
import { AleoNetworkClient, ProgramImports } from "./network-client";
|
|
4
|
+
import { Block } from "./models/block";
|
|
5
|
+
import { Execution } from "./models/execution";
|
|
6
|
+
import { Input } from "./models/input";
|
|
7
|
+
import { Output } from "./models/output";
|
|
8
|
+
import { TransactionModel } from "./models/transactionModel";
|
|
9
|
+
import { Transition } from "./models/transition";
|
|
10
|
+
import { AleoKeyProvider, AleoKeyProviderParams, AleoKeyProviderInitParams, CachedKeyPair, FunctionKeyPair, FunctionKeyProvider, KeySearchParams } from "./function-key-provider";
|
|
11
|
+
import { OfflineKeyProvider, OfflineSearchParams } from "./offline-key-provider";
|
|
12
|
+
import { BlockHeightSearch, NetworkRecordProvider, RecordProvider, RecordSearchParams } from "./record-provider";
|
|
13
|
+
declare function initializeWasm(): Promise<void>;
|
|
14
|
+
export { createAleoWorker } from "./managed-worker";
|
|
15
|
+
export { ProgramManager } from "./program-manager";
|
|
16
|
+
export { logAndThrow } from "./utils";
|
|
17
|
+
export { Address, Execution as FunctionExecution, ExecutionResponse, Field, OfflineQuery, PrivateKey, PrivateKeyCiphertext, Program, ProgramManager as ProgramManagerBase, ProvingKey, RecordCiphertext, RecordPlaintext, Signature, Transaction, VerifyingKey, ViewKey, initThreadPool, verifyFunctionExecution, } from "./wasm";
|
|
18
|
+
export { initializeWasm };
|
|
19
|
+
export { Key, CREDITS_PROGRAM_KEYS, KEY_STORE, PRIVATE_TRANSFER, PRIVATE_TO_PUBLIC_TRANSFER, PRIVATE_TRANSFER_TYPES, PUBLIC_TRANSFER, PUBLIC_TRANSFER_AS_SIGNER, PUBLIC_TO_PRIVATE_TRANSFER, VALID_TRANSFER_TYPES, } from "./constants";
|
|
20
|
+
export { Account, AleoKeyProvider, AleoKeyProviderParams, AleoKeyProviderInitParams, AleoNetworkClient, Block, BlockHeightSearch, CachedKeyPair, Execution, FunctionKeyPair, FunctionKeyProvider, Input, KeySearchParams, NetworkRecordProvider, ProgramImports, OfflineKeyProvider, OfflineSearchParams, Output, RecordProvider, RecordSearchParams, TransactionModel, Transition, };
|