@wgb5445/aptos-intent-npm 0.0.10 → 0.0.12
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/aptos_intent.d.ts +22 -20
- package/dist/cjs/aptos_intent_bg-2V_b8N0G.js +42 -0
- package/dist/cjs/aptos_intent_bg-A1npHFCR.js +42 -0
- package/dist/cjs/entry.js +31 -31
- package/dist/esm/aptos_intent_bg-CX0REmIg.js +40 -0
- package/dist/esm/aptos_intent_bg-vY0jOTb5.js +40 -0
- package/dist/esm/entry.js +31 -31
- package/package.json +1 -1
package/dist/aptos_intent.d.ts
CHANGED
@@ -16,30 +16,30 @@ 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
21
|
/**
|
22
22
|
* @param {Uint8Array} bytes
|
23
|
-
* @returns {
|
23
|
+
* @returns {BatchArgument}
|
24
24
|
*/
|
25
|
-
static new_bytes(bytes: Uint8Array):
|
25
|
+
static new_bytes(bytes: Uint8Array): BatchArgument;
|
26
26
|
/**
|
27
27
|
* @param {number} signer_idx
|
28
|
-
* @returns {
|
28
|
+
* @returns {BatchArgument}
|
29
29
|
*/
|
30
|
-
static new_signer(signer_idx: number):
|
30
|
+
static new_signer(signer_idx: number): BatchArgument;
|
31
31
|
/**
|
32
|
-
* @returns {
|
32
|
+
* @returns {BatchArgument}
|
33
33
|
*/
|
34
|
-
borrow():
|
34
|
+
borrow(): BatchArgument;
|
35
35
|
/**
|
36
|
-
* @returns {
|
36
|
+
* @returns {BatchArgument}
|
37
37
|
*/
|
38
|
-
borrow_mut():
|
38
|
+
borrow_mut(): BatchArgument;
|
39
39
|
/**
|
40
|
-
* @returns {
|
40
|
+
* @returns {BatchArgument}
|
41
41
|
*/
|
42
|
-
copy():
|
42
|
+
copy(): BatchArgument;
|
43
43
|
}
|
44
44
|
/**
|
45
45
|
* Call a Move entry function.
|
@@ -64,10 +64,10 @@ export class BatchedFunctionCallBuilder {
|
|
64
64
|
* @param {string} module
|
65
65
|
* @param {string} _function
|
66
66
|
* @param {(string)[]} ty_args
|
67
|
-
* @param {(
|
68
|
-
* @returns {(
|
67
|
+
* @param {(BatchArgument)[]} args
|
68
|
+
* @returns {(BatchArgument)[]}
|
69
69
|
*/
|
70
|
-
add_batched_call(module: string, _function: string, ty_args: (string)[], args: (
|
70
|
+
add_batched_call(module: string, _function: string, ty_args: (string)[], args: (BatchArgument)[]): (BatchArgument)[];
|
71
71
|
/**
|
72
72
|
* @returns {Uint8Array}
|
73
73
|
*/
|
@@ -85,18 +85,18 @@ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembl
|
|
85
85
|
export interface InitOutput {
|
86
86
|
readonly memory: WebAssembly.Memory;
|
87
87
|
readonly generate_intent_payload_wasm: (a: number, b: number, c: number) => void;
|
88
|
-
readonly
|
88
|
+
readonly __wbg_batchargument_free: (a: number) => void;
|
89
89
|
readonly __wbg_batchedfunctioncallbuilder_free: (a: number) => void;
|
90
90
|
readonly batchedfunctioncallbuilder_single_signer: () => number;
|
91
91
|
readonly batchedfunctioncallbuilder_multi_signer: (a: number) => number;
|
92
92
|
readonly batchedfunctioncallbuilder_add_batched_call: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
|
93
93
|
readonly batchedfunctioncallbuilder_generate_batched_calls: (a: number, b: number) => void;
|
94
94
|
readonly batchedfunctioncallbuilder_load_module: (a: number, b: number, c: number, d: number, e: number) => number;
|
95
|
-
readonly
|
96
|
-
readonly
|
97
|
-
readonly
|
98
|
-
readonly
|
99
|
-
readonly
|
95
|
+
readonly batchargument_new_bytes: (a: number, b: number) => number;
|
96
|
+
readonly batchargument_new_signer: (a: number) => number;
|
97
|
+
readonly batchargument_borrow: (a: number, b: number) => void;
|
98
|
+
readonly batchargument_borrow_mut: (a: number, b: number) => void;
|
99
|
+
readonly batchargument_copy: (a: number, b: number) => void;
|
100
100
|
readonly __wbg_batchedfunctioncall_free: (a: number) => void;
|
101
101
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
102
102
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
@@ -128,3 +128,5 @@ export function initSync(module: SyncInitInput): InitOutput;
|
|
128
128
|
* @returns {Promise<InitOutput>}
|
129
129
|
*/
|
130
130
|
export default function __wbg_init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
|
131
|
+
|
132
|
+
export function get_wasm(): Promise<any>;
|