@puzzlehq/aleo-wasm-web 0.6.18 → 0.7.0
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 +8 -6
- package/dist/mainnet/aleo_wasm.js +62 -62
- package/dist/mainnet/aleo_wasm.js.map +1 -1
- package/dist/mainnet/aleo_wasm.wasm +0 -0
- package/dist/mainnet/index.js +62 -62
- package/dist/mainnet/index.js.map +1 -1
- package/dist/mainnet/worker.js +62 -62
- package/dist/mainnet/worker.js.map +1 -1
- package/dist/testnet/aleo_wasm.js +57 -57
- package/dist/testnet/aleo_wasm.js.map +1 -1
- package/dist/testnet/aleo_wasm.wasm +0 -0
- package/dist/testnet/index.js +57 -57
- package/dist/testnet/index.js.map +1 -1
- package/dist/testnet/worker.js +57 -57
- package/dist/testnet/worker.js.map +1 -1
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
[](https://crates.io/crates/aleo-wasm)
|
|
2
|
+
[](https://provable.com)
|
|
3
|
+
[](./LICENSE.md)
|
|
2
4
|
|
|
3
5
|
- Update the package version in `Cargo.toml` to one patch version above the current one
|
|
4
6
|
- Run `./build-puzzle.sh`
|
|
@@ -14,9 +16,9 @@ To build and publish WASM pacakges for nodejs and web:
|
|
|
14
16
|
|
|
15
17
|
Aleo JavaScript and WebAssembly bindings for building zero-knowledge web applications.
|
|
16
18
|
|
|
17
|
-
`Rust` compiles easily to `WebAssembly`, but creating the glue code necessary to use compiled WebAssembly binaries
|
|
18
|
-
from other languages such as JavaScript is a challenging task. `wasm-bindgen` is a tool that simplifies this process by
|
|
19
|
-
auto-generating JavaScript bindings to Rust code that has been compiled into WebAssembly.
|
|
19
|
+
`Rust` compiles easily to `WebAssembly`, but creating the glue code necessary to use compiled WebAssembly binaries
|
|
20
|
+
from other languages such as JavaScript is a challenging task. `wasm-bindgen` is a tool that simplifies this process by
|
|
21
|
+
auto-generating JavaScript bindings to Rust code that has been compiled into WebAssembly.
|
|
20
22
|
|
|
21
23
|
This crate uses `wasm-bindgen` to create JavaScript bindings to Aleo source code so that it can be used to create zero-knowledge proofs directly within web browsers and `Node.js`.
|
|
22
24
|
|
|
@@ -58,7 +60,7 @@ wasm-pack test --[firefox/chrome/safari]
|
|
|
58
60
|
|
|
59
61
|
## Building Web Apps
|
|
60
62
|
|
|
61
|
-
Further documentation and tutorials as to how to use the modules built from this crate to build web apps will be built
|
|
63
|
+
Further documentation and tutorials as to how to use the modules built from this crate to build web apps will be built
|
|
62
64
|
in the future. However, in the meantime, the [provable.tools](https://provable.tools) website is a good
|
|
63
|
-
example of how to use these modules to build a web app. Its source code can be found in the
|
|
65
|
+
example of how to use these modules to build a web app. Its source code can be found in the
|
|
64
66
|
[Aleo SDK](https://github.com/ProvableHQ/sdk) repo in the `website` folder.
|
|
@@ -238,7 +238,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
238
238
|
return real;
|
|
239
239
|
}
|
|
240
240
|
function __wbg_adapter_34(arg0, arg1, arg2) {
|
|
241
|
-
wasm.
|
|
241
|
+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb887fb78cf4afc7c(arg0, arg1, addHeapObject(arg2));
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
function _assertClass(instance, klass) {
|
|
@@ -326,7 +326,7 @@ function handleError(f, args) {
|
|
|
326
326
|
}
|
|
327
327
|
}
|
|
328
328
|
function __wbg_adapter_292(arg0, arg1, arg2, arg3) {
|
|
329
|
-
wasm.
|
|
329
|
+
wasm.wasm_bindgen__convert__closures__invoke2_mut__hb42c7228f362340d(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
330
330
|
}
|
|
331
331
|
|
|
332
332
|
const AddressFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
@@ -812,7 +812,7 @@ class KeyPair {
|
|
|
812
812
|
/**
|
|
813
813
|
* Get the proving key. This method will remove the proving key from the key pair
|
|
814
814
|
*
|
|
815
|
-
* @returns {ProvingKey
|
|
815
|
+
* @returns {ProvingKey}
|
|
816
816
|
* @returns {ProvingKey}
|
|
817
817
|
*/
|
|
818
818
|
provingKey() {
|
|
@@ -833,7 +833,7 @@ class KeyPair {
|
|
|
833
833
|
/**
|
|
834
834
|
* Get the verifying key. This method will remove the verifying key from the key pair
|
|
835
835
|
*
|
|
836
|
-
* @returns {VerifyingKey
|
|
836
|
+
* @returns {VerifyingKey}
|
|
837
837
|
* @returns {VerifyingKey}
|
|
838
838
|
*/
|
|
839
839
|
verifyingKey() {
|
|
@@ -1517,7 +1517,7 @@ class PrivateKey {
|
|
|
1517
1517
|
* and will be needed to decrypt the private key later, so it should be stored securely
|
|
1518
1518
|
*
|
|
1519
1519
|
* @param {string} secret Secret used to encrypt the private key
|
|
1520
|
-
* @returns {PrivateKeyCiphertext
|
|
1520
|
+
* @returns {PrivateKeyCiphertext} Ciphertext representation of the private key
|
|
1521
1521
|
* @param {string} secret
|
|
1522
1522
|
* @returns {PrivateKeyCiphertext}
|
|
1523
1523
|
*/
|
|
@@ -1543,7 +1543,7 @@ class PrivateKey {
|
|
|
1543
1543
|
* decrypt the private key later, so it should be stored securely
|
|
1544
1544
|
*
|
|
1545
1545
|
* @param {string} secret Secret used to encrypt the private key
|
|
1546
|
-
* @returns {PrivateKeyCiphertext
|
|
1546
|
+
* @returns {PrivateKeyCiphertext} Ciphertext representation of the private key
|
|
1547
1547
|
* @param {string} secret
|
|
1548
1548
|
* @returns {PrivateKeyCiphertext}
|
|
1549
1549
|
*/
|
|
@@ -1569,7 +1569,7 @@ class PrivateKey {
|
|
|
1569
1569
|
*
|
|
1570
1570
|
* @param {PrivateKeyCiphertext} ciphertext Ciphertext representation of the private key
|
|
1571
1571
|
* @param {string} secret Secret originally used to encrypt the private key
|
|
1572
|
-
* @returns {PrivateKey
|
|
1572
|
+
* @returns {PrivateKey} Private key
|
|
1573
1573
|
* @param {PrivateKeyCiphertext} ciphertext
|
|
1574
1574
|
* @param {string} secret
|
|
1575
1575
|
* @returns {PrivateKey}
|
|
@@ -1627,7 +1627,7 @@ class PrivateKeyCiphertext {
|
|
|
1627
1627
|
*
|
|
1628
1628
|
* @param {PrivateKey} private_key Private key to encrypt
|
|
1629
1629
|
* @param {string} secret Secret to encrypt the private key with
|
|
1630
|
-
* @returns {PrivateKeyCiphertext
|
|
1630
|
+
* @returns {PrivateKeyCiphertext} Private key ciphertext
|
|
1631
1631
|
* @param {PrivateKey} private_key
|
|
1632
1632
|
* @param {string} secret
|
|
1633
1633
|
* @returns {PrivateKeyCiphertext}
|
|
@@ -1655,7 +1655,7 @@ class PrivateKeyCiphertext {
|
|
|
1655
1655
|
* encrypt the private key
|
|
1656
1656
|
*
|
|
1657
1657
|
* @param {string} secret Secret used to encrypt the private key
|
|
1658
|
-
* @returns {PrivateKey
|
|
1658
|
+
* @returns {PrivateKey} Private key
|
|
1659
1659
|
* @param {string} secret
|
|
1660
1660
|
* @returns {PrivateKey}
|
|
1661
1661
|
*/
|
|
@@ -1702,7 +1702,7 @@ class PrivateKeyCiphertext {
|
|
|
1702
1702
|
* Creates a PrivateKeyCiphertext from a string
|
|
1703
1703
|
*
|
|
1704
1704
|
* @param {string} ciphertext Ciphertext string
|
|
1705
|
-
* @returns {PrivateKeyCiphertext
|
|
1705
|
+
* @returns {PrivateKeyCiphertext} Private key ciphertext
|
|
1706
1706
|
* @param {string} ciphertext
|
|
1707
1707
|
* @returns {PrivateKeyCiphertext}
|
|
1708
1708
|
*/
|
|
@@ -1756,7 +1756,7 @@ class Program {
|
|
|
1756
1756
|
* Create a program from a program string
|
|
1757
1757
|
*
|
|
1758
1758
|
* @param {string} program Aleo program source code
|
|
1759
|
-
* @returns {Program
|
|
1759
|
+
* @returns {Program} Program object
|
|
1760
1760
|
* @param {string} program
|
|
1761
1761
|
* @returns {Program}
|
|
1762
1762
|
*/
|
|
@@ -1844,7 +1844,7 @@ class Program {
|
|
|
1844
1844
|
* to generate a web form to capture user inputs for an execution of a function.
|
|
1845
1845
|
*
|
|
1846
1846
|
* @param {string} function_name Name of the function to get inputs for
|
|
1847
|
-
* @returns {Array
|
|
1847
|
+
* @returns {Array} Array of function inputs
|
|
1848
1848
|
*
|
|
1849
1849
|
* @example
|
|
1850
1850
|
* const expected_inputs = [
|
|
@@ -1899,7 +1899,7 @@ class Program {
|
|
|
1899
1899
|
/**
|
|
1900
1900
|
* Get a the list of a program's mappings and the names/types of their keys and values.
|
|
1901
1901
|
*
|
|
1902
|
-
* @returns {Array
|
|
1902
|
+
* @returns {Array} - An array of objects representing the mappings in the program
|
|
1903
1903
|
* @example
|
|
1904
1904
|
* const expected_mappings = [
|
|
1905
1905
|
* {
|
|
@@ -1935,7 +1935,7 @@ class Program {
|
|
|
1935
1935
|
* Get a javascript object representation of a program record and its types
|
|
1936
1936
|
*
|
|
1937
1937
|
* @param {string} record_name Name of the record to get members for
|
|
1938
|
-
* @returns {Object
|
|
1938
|
+
* @returns {Object} Object containing the record name, type, and members
|
|
1939
1939
|
*
|
|
1940
1940
|
* @example
|
|
1941
1941
|
*
|
|
@@ -1983,7 +1983,7 @@ class Program {
|
|
|
1983
1983
|
* Get a javascript object representation of a program struct and its types
|
|
1984
1984
|
*
|
|
1985
1985
|
* @param {string} struct_name Name of the struct to get members for
|
|
1986
|
-
* @returns {Array
|
|
1986
|
+
* @returns {Array} Array containing the struct members
|
|
1987
1987
|
*
|
|
1988
1988
|
* @example
|
|
1989
1989
|
*
|
|
@@ -2178,7 +2178,7 @@ class ProgramManager {
|
|
|
2178
2178
|
* are a string representing the program source code \{ "hello.aleo": "hello.aleo source code" \}
|
|
2179
2179
|
* @param fee_proving_key (optional) Provide a proving key to use for the fee execution
|
|
2180
2180
|
* @param fee_verifying_key (optional) Provide a verifying key to use for the fee execution
|
|
2181
|
-
* @returns {Transaction
|
|
2181
|
+
* @returns {Transaction}
|
|
2182
2182
|
* @param {PrivateKey} private_key
|
|
2183
2183
|
* @param {string} program
|
|
2184
2184
|
* @param {number} fee_credits
|
|
@@ -2228,7 +2228,7 @@ class ProgramManager {
|
|
|
2228
2228
|
* @param imports (optional) Provide a list of imports to use for the deployment fee estimation
|
|
2229
2229
|
* in the form of a javascript object where the keys are a string of the program name and the values
|
|
2230
2230
|
* are a string representing the program source code \{ "hello.aleo": "hello.aleo source code" \}
|
|
2231
|
-
* @returns {u64
|
|
2231
|
+
* @returns {u64}
|
|
2232
2232
|
* @param {string} program
|
|
2233
2233
|
* @param {object | undefined} [imports]
|
|
2234
2234
|
* @returns {Promise<bigint>}
|
|
@@ -2247,7 +2247,7 @@ class ProgramManager {
|
|
|
2247
2247
|
* Disclaimer: Fee estimation is experimental and may not represent a correct estimate on any current or future network
|
|
2248
2248
|
*
|
|
2249
2249
|
* @param name The name of the program to be deployed
|
|
2250
|
-
* @returns {u64
|
|
2250
|
+
* @returns {u64}
|
|
2251
2251
|
* @param {string} name
|
|
2252
2252
|
* @returns {bigint}
|
|
2253
2253
|
*/
|
|
@@ -2369,7 +2369,7 @@ class ProgramManager {
|
|
|
2369
2369
|
* @param verifying_key (optional) Provide a verifying key to use for the function execution
|
|
2370
2370
|
* @param fee_proving_key (optional) Provide a proving key to use for the fee execution
|
|
2371
2371
|
* @param fee_verifying_key (optional) Provide a verifying key to use for the fee execution
|
|
2372
|
-
* @returns {Transaction
|
|
2372
|
+
* @returns {Transaction}
|
|
2373
2373
|
* @param {PrivateKey} private_key
|
|
2374
2374
|
* @param {string} program
|
|
2375
2375
|
* @param {string} _function
|
|
@@ -2443,7 +2443,7 @@ class ProgramManager {
|
|
|
2443
2443
|
* are a string representing the program source code \{ "hello.aleo": "hello.aleo source code" \}
|
|
2444
2444
|
* @param proving_key (optional) Provide a verifying key to use for the fee estimation
|
|
2445
2445
|
* @param verifying_key (optional) Provide a verifying key to use for the fee estimation
|
|
2446
|
-
* @returns {u64
|
|
2446
|
+
* @returns {u64} Fee in microcredits
|
|
2447
2447
|
* @param {PrivateKey} private_key
|
|
2448
2448
|
* @param {string} program
|
|
2449
2449
|
* @param {string} _function
|
|
@@ -2490,7 +2490,7 @@ class ProgramManager {
|
|
|
2490
2490
|
*
|
|
2491
2491
|
* @param program The program containing the function to estimate the finalize fee for
|
|
2492
2492
|
* @param function The function to estimate the finalize fee for
|
|
2493
|
-
* @returns {u64
|
|
2493
|
+
* @returns {u64} Fee in microcredits
|
|
2494
2494
|
* @param {string} program
|
|
2495
2495
|
* @param {string} _function
|
|
2496
2496
|
* @returns {bigint}
|
|
@@ -2528,7 +2528,7 @@ class ProgramManager {
|
|
|
2528
2528
|
* @param join_verifying_key (optional) Provide a verifying key to use for the join function
|
|
2529
2529
|
* @param fee_proving_key (optional) Provide a proving key to use for the fee execution
|
|
2530
2530
|
* @param fee_verifying_key (optional) Provide a verifying key to use for the fee execution
|
|
2531
|
-
* @returns {Transaction
|
|
2531
|
+
* @returns {Transaction} Transaction object
|
|
2532
2532
|
* @param {PrivateKey} private_key
|
|
2533
2533
|
* @param {RecordPlaintext} record_1
|
|
2534
2534
|
* @param {RecordPlaintext} record_2
|
|
@@ -2593,7 +2593,7 @@ class ProgramManager {
|
|
|
2593
2593
|
* @param url The url of the Aleo network node to send the transaction to
|
|
2594
2594
|
* @param split_proving_key (optional) Provide a proving key to use for the split function
|
|
2595
2595
|
* @param split_verifying_key (optional) Provide a verifying key to use for the split function
|
|
2596
|
-
* @returns {Transaction
|
|
2596
|
+
* @returns {Transaction} Transaction object
|
|
2597
2597
|
* @param {PrivateKey} private_key
|
|
2598
2598
|
* @param {number} split_amount
|
|
2599
2599
|
* @param {RecordPlaintext} amount_record
|
|
@@ -2642,7 +2642,7 @@ class ProgramManager {
|
|
|
2642
2642
|
* function
|
|
2643
2643
|
* @param fee_proving_key (optional) Provide a proving key to use for the fee execution
|
|
2644
2644
|
* @param fee_verifying_key (optional) Provide a verifying key to use for the fee execution
|
|
2645
|
-
* @returns {Transaction
|
|
2645
|
+
* @returns {Transaction}
|
|
2646
2646
|
* @param {PrivateKey} private_key
|
|
2647
2647
|
* @param {number} amount_credits
|
|
2648
2648
|
* @param {string} recipient
|
|
@@ -3002,7 +3002,7 @@ class ProvingKey {
|
|
|
3002
3002
|
* Construct a new proving key from a byte array
|
|
3003
3003
|
*
|
|
3004
3004
|
* @param {Uint8Array} bytes Byte array representation of a proving key
|
|
3005
|
-
* @returns {ProvingKey
|
|
3005
|
+
* @returns {ProvingKey}
|
|
3006
3006
|
* @param {Uint8Array} bytes
|
|
3007
3007
|
* @returns {ProvingKey}
|
|
3008
3008
|
*/
|
|
@@ -3026,7 +3026,7 @@ class ProvingKey {
|
|
|
3026
3026
|
/**
|
|
3027
3027
|
* Create a proving key from string
|
|
3028
3028
|
*
|
|
3029
|
-
* @param {string
|
|
3029
|
+
* @param {string} String representation of the proving key
|
|
3030
3030
|
* @param {string} string
|
|
3031
3031
|
* @returns {ProvingKey}
|
|
3032
3032
|
*/
|
|
@@ -3050,7 +3050,7 @@ class ProvingKey {
|
|
|
3050
3050
|
/**
|
|
3051
3051
|
* Return the byte representation of a proving key
|
|
3052
3052
|
*
|
|
3053
|
-
* @returns {Uint8Array
|
|
3053
|
+
* @returns {Uint8Array} Byte array representation of a proving key
|
|
3054
3054
|
* @returns {Uint8Array}
|
|
3055
3055
|
*/
|
|
3056
3056
|
toBytes() {
|
|
@@ -3126,7 +3126,7 @@ class RecordCiphertext {
|
|
|
3126
3126
|
* Create a record ciphertext from a string
|
|
3127
3127
|
*
|
|
3128
3128
|
* @param {string} record String representation of a record ciphertext
|
|
3129
|
-
* @returns {RecordCiphertext
|
|
3129
|
+
* @returns {RecordCiphertext} Record ciphertext
|
|
3130
3130
|
* @param {string} record
|
|
3131
3131
|
* @returns {RecordCiphertext}
|
|
3132
3132
|
*/
|
|
@@ -3174,7 +3174,7 @@ class RecordCiphertext {
|
|
|
3174
3174
|
* decrypt if the record was encrypted by the account corresponding to the view key
|
|
3175
3175
|
*
|
|
3176
3176
|
* @param {ViewKey} view_key View key used to decrypt the ciphertext
|
|
3177
|
-
* @returns {RecordPlaintext
|
|
3177
|
+
* @returns {RecordPlaintext} Record plaintext object
|
|
3178
3178
|
* @param {ViewKey} view_key
|
|
3179
3179
|
* @returns {RecordPlaintext}
|
|
3180
3180
|
*/
|
|
@@ -3264,7 +3264,7 @@ class RecordPlaintext {
|
|
|
3264
3264
|
* Return a record plaintext from a string.
|
|
3265
3265
|
*
|
|
3266
3266
|
* @param {string} record String representation of a plaintext representation of an Aleo record
|
|
3267
|
-
* @returns {RecordPlaintext
|
|
3267
|
+
* @returns {RecordPlaintext} Record plaintext
|
|
3268
3268
|
* @param {string} record
|
|
3269
3269
|
* @returns {RecordPlaintext}
|
|
3270
3270
|
*/
|
|
@@ -3345,7 +3345,7 @@ class RecordPlaintext {
|
|
|
3345
3345
|
* @param {PrivateKey} private_key Private key of the account that owns the record
|
|
3346
3346
|
* @param {string} program_id Program ID of the program that the record is associated with
|
|
3347
3347
|
* @param {string} record_name Name of the record
|
|
3348
|
-
* @returns {string
|
|
3348
|
+
* @returns {string} Serial number of the record
|
|
3349
3349
|
* @param {PrivateKey} private_key
|
|
3350
3350
|
* @param {string} program_id
|
|
3351
3351
|
* @param {string} record_name
|
|
@@ -3515,7 +3515,7 @@ class Transaction {
|
|
|
3515
3515
|
* Create a transaction from a string
|
|
3516
3516
|
*
|
|
3517
3517
|
* @param {string} transaction String representation of a transaction
|
|
3518
|
-
* @returns {Transaction
|
|
3518
|
+
* @returns {Transaction}
|
|
3519
3519
|
* @param {string} transaction
|
|
3520
3520
|
* @returns {Transaction}
|
|
3521
3521
|
*/
|
|
@@ -3972,7 +3972,7 @@ class VerifyingKey {
|
|
|
3972
3972
|
* Construct a new verifying key from a byte array
|
|
3973
3973
|
*
|
|
3974
3974
|
* @param {Uint8Array} bytes Byte representation of a verifying key
|
|
3975
|
-
* @returns {VerifyingKey
|
|
3975
|
+
* @returns {VerifyingKey}
|
|
3976
3976
|
* @param {Uint8Array} bytes
|
|
3977
3977
|
* @returns {VerifyingKey}
|
|
3978
3978
|
*/
|
|
@@ -3997,7 +3997,7 @@ class VerifyingKey {
|
|
|
3997
3997
|
* Create a verifying key from string
|
|
3998
3998
|
*
|
|
3999
3999
|
* @param {String} string String representation of a verifying key
|
|
4000
|
-
* @returns {VerifyingKey
|
|
4000
|
+
* @returns {VerifyingKey}
|
|
4001
4001
|
* @param {string} string
|
|
4002
4002
|
* @returns {VerifyingKey}
|
|
4003
4003
|
*/
|
|
@@ -4021,7 +4021,7 @@ class VerifyingKey {
|
|
|
4021
4021
|
/**
|
|
4022
4022
|
* Create a byte array from a verifying key
|
|
4023
4023
|
*
|
|
4024
|
-
* @returns {Uint8Array
|
|
4024
|
+
* @returns {Uint8Array} Byte representation of a verifying key
|
|
4025
4025
|
* @returns {Uint8Array}
|
|
4026
4026
|
*/
|
|
4027
4027
|
toBytes() {
|
|
@@ -4395,25 +4395,17 @@ function __wbg_get_imports() {
|
|
|
4395
4395
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
4396
4396
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
4397
4397
|
};
|
|
4398
|
-
imports.wbg.
|
|
4398
|
+
imports.wbg.__wbg_log_9388602cb1684929 = function(arg0, arg1) {
|
|
4399
4399
|
console.log(getStringFromWasm0(arg0, arg1));
|
|
4400
4400
|
};
|
|
4401
|
-
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
4402
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
4403
|
-
return addHeapObject(ret);
|
|
4404
|
-
};
|
|
4405
|
-
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
4406
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
4407
|
-
return addHeapObject(ret);
|
|
4408
|
-
};
|
|
4409
|
-
imports.wbg.__wbg_call_89af060b4e1523f2 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
4410
|
-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
4411
|
-
return addHeapObject(ret);
|
|
4412
|
-
}, arguments) };
|
|
4413
4401
|
imports.wbg.__wbg_newwithlength_b5660ad84eb3e8a9 = function(arg0) {
|
|
4414
4402
|
const ret = new Array(arg0 >>> 0);
|
|
4415
4403
|
return addHeapObject(ret);
|
|
4416
4404
|
};
|
|
4405
|
+
imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
|
|
4406
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
4407
|
+
return addHeapObject(ret);
|
|
4408
|
+
};
|
|
4417
4409
|
imports.wbg.__wbg_set_673dda6c73d19609 = function(arg0, arg1, arg2) {
|
|
4418
4410
|
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
4419
4411
|
};
|
|
@@ -4421,16 +4413,12 @@ function __wbg_get_imports() {
|
|
|
4421
4413
|
const ret = Transaction.__wrap(arg0);
|
|
4422
4414
|
return addHeapObject(ret);
|
|
4423
4415
|
};
|
|
4424
|
-
imports.wbg.
|
|
4425
|
-
const ret =
|
|
4426
|
-
return addHeapObject(ret);
|
|
4427
|
-
};
|
|
4428
|
-
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
4429
|
-
const ret = getObject(arg0);
|
|
4416
|
+
imports.wbg.__wbg_call_89af060b4e1523f2 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
4417
|
+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
4430
4418
|
return addHeapObject(ret);
|
|
4431
|
-
};
|
|
4432
|
-
imports.wbg.
|
|
4433
|
-
const ret =
|
|
4419
|
+
}, arguments) };
|
|
4420
|
+
imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
|
|
4421
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
4434
4422
|
return addHeapObject(ret);
|
|
4435
4423
|
};
|
|
4436
4424
|
imports.wbg.__wbindgen_module = function() {
|
|
@@ -4441,7 +4429,7 @@ function __wbg_get_imports() {
|
|
|
4441
4429
|
const ret = wasm.memory;
|
|
4442
4430
|
return addHeapObject(ret);
|
|
4443
4431
|
};
|
|
4444
|
-
imports.wbg.
|
|
4432
|
+
imports.wbg.__wbg_spawnWorker_df78bbd4c32ac5b6 = function(arg0, arg1, arg2, arg3) {
|
|
4445
4433
|
const ret = spawnWorker(getObject(arg0), getObject(arg1), getObject(arg2), arg3 >>> 0);
|
|
4446
4434
|
return addHeapObject(ret);
|
|
4447
4435
|
};
|
|
@@ -4449,6 +4437,18 @@ function __wbg_get_imports() {
|
|
|
4449
4437
|
const ret = KeyPair.__wrap(arg0);
|
|
4450
4438
|
return addHeapObject(ret);
|
|
4451
4439
|
};
|
|
4440
|
+
imports.wbg.__wbindgen_object_clone_ref = function(arg0) {
|
|
4441
|
+
const ret = getObject(arg0);
|
|
4442
|
+
return addHeapObject(ret);
|
|
4443
|
+
};
|
|
4444
|
+
imports.wbg.__wbg_authorizationresponse_new = function(arg0) {
|
|
4445
|
+
const ret = AuthorizationResponse.__wrap(arg0);
|
|
4446
|
+
return addHeapObject(ret);
|
|
4447
|
+
};
|
|
4448
|
+
imports.wbg.__wbg_executionresponse_new = function(arg0) {
|
|
4449
|
+
const ret = ExecutionResponse.__wrap(arg0);
|
|
4450
|
+
return addHeapObject(ret);
|
|
4451
|
+
};
|
|
4452
4452
|
imports.wbg.__wbindgen_cb_drop = function(arg0) {
|
|
4453
4453
|
const obj = takeObject(arg0).original;
|
|
4454
4454
|
if (obj.cnt-- == 1) {
|
|
@@ -4722,12 +4722,12 @@ function __wbg_get_imports() {
|
|
|
4722
4722
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
4723
4723
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
4724
4724
|
}, arguments) };
|
|
4725
|
-
imports.wbg.
|
|
4726
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4725
|
+
imports.wbg.__wbindgen_closure_wrapper6038 = function(arg0, arg1, arg2) {
|
|
4726
|
+
const ret = makeMutClosure(arg0, arg1, 622, __wbg_adapter_34);
|
|
4727
4727
|
return addHeapObject(ret);
|
|
4728
4728
|
};
|
|
4729
|
-
imports.wbg.
|
|
4730
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
4729
|
+
imports.wbg.__wbindgen_closure_wrapper6065 = function(arg0, arg1, arg2) {
|
|
4730
|
+
const ret = makeMutClosure(arg0, arg1, 622, __wbg_adapter_34);
|
|
4731
4731
|
return addHeapObject(ret);
|
|
4732
4732
|
};
|
|
4733
4733
|
|