@wgb5445/aptos-intent-npm 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/aptos_intent.d.ts +5 -27
- package/dist/cjs/aptos_intent_bg-2V_b8N0G.js +42 -0
- package/dist/cjs/entry.js +43 -23
- package/dist/esm/aptos_intent_bg-vY0jOTb5.js +40 -0
- package/dist/esm/entry.js +43 -24
- package/package.json +1 -1
package/dist/aptos_intent.d.ts
CHANGED
@@ -16,30 +16,8 @@ export enum BatchArgumentType {
|
|
16
16
|
/**
|
17
17
|
* Arguments for each function. Wasm bindgen only support C-style enum so use option to work around.
|
18
18
|
*/
|
19
|
-
export class
|
19
|
+
export class BatchArgument {
|
20
20
|
free(): void;
|
21
|
-
/**
|
22
|
-
* @param {Uint8Array} bytes
|
23
|
-
* @returns {BatchArgumentWASM}
|
24
|
-
*/
|
25
|
-
static new_bytes(bytes: Uint8Array): BatchArgumentWASM;
|
26
|
-
/**
|
27
|
-
* @param {number} signer_idx
|
28
|
-
* @returns {BatchArgumentWASM}
|
29
|
-
*/
|
30
|
-
static new_signer(signer_idx: number): BatchArgumentWASM;
|
31
|
-
/**
|
32
|
-
* @returns {BatchArgumentWASM}
|
33
|
-
*/
|
34
|
-
borrow(): BatchArgumentWASM;
|
35
|
-
/**
|
36
|
-
* @returns {BatchArgumentWASM}
|
37
|
-
*/
|
38
|
-
borrow_mut(): BatchArgumentWASM;
|
39
|
-
/**
|
40
|
-
* @returns {BatchArgumentWASM}
|
41
|
-
*/
|
42
|
-
copy(): BatchArgumentWASM;
|
43
21
|
}
|
44
22
|
/**
|
45
23
|
* Call a Move entry function.
|
@@ -64,10 +42,10 @@ export class BatchedFunctionCallBuilder {
|
|
64
42
|
* @param {string} module
|
65
43
|
* @param {string} _function
|
66
44
|
* @param {(string)[]} ty_args
|
67
|
-
* @param {(
|
68
|
-
* @returns {(
|
45
|
+
* @param {(BatchArgument)[]} args
|
46
|
+
* @returns {(BatchArgument)[]}
|
69
47
|
*/
|
70
|
-
add_batched_call(module: string, _function: string, ty_args: (string)[], args: (
|
48
|
+
add_batched_call(module: string, _function: string, ty_args: (string)[], args: (BatchArgument)[]): (BatchArgument)[];
|
71
49
|
/**
|
72
50
|
* @returns {Uint8Array}
|
73
51
|
*/
|
@@ -85,7 +63,7 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
85
63
|
export interface InitOutput {
|
86
64
|
readonly memory: WebAssembly.Memory;
|
87
65
|
readonly generate_intent_payload_wasm: (a: number, b: number, c: number) => void;
|
88
|
-
readonly
|
66
|
+
readonly __wbg_batchargument_free: (a: number) => void;
|
89
67
|
readonly __wbg_batchedfunctioncallbuilder_free: (a: number) => void;
|
90
68
|
readonly batchedfunctioncallbuilder_single_signer: () => number;
|
91
69
|
readonly batchedfunctioncallbuilder_multi_signer: (a: number) => number;
|