@wgb5445/aptos-intent-npm 0.0.9 → 0.0.11

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.
@@ -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 BatchArgumentWASM {
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,37 +42,48 @@ export class BatchedFunctionCallBuilder {
64
42
  * @param {string} module
65
43
  * @param {string} _function
66
44
  * @param {(string)[]} ty_args
67
- * @param {(BatchArgumentWASM)[]} args
68
- * @returns {(BatchArgumentWASM)[]}
45
+ * @param {(BatchArgument)[]} args
46
+ * @returns {(BatchArgument)[]}
69
47
  */
70
- add_batched_call(module: string, _function: string, ty_args: (string)[], args: (BatchArgumentWASM)[]): (BatchArgumentWASM)[];
48
+ add_batched_call(module: string, _function: string, ty_args: (string)[], args: (BatchArgument)[]): (BatchArgument)[];
71
49
  /**
72
50
  * @returns {Uint8Array}
73
51
  */
74
52
  generate_batched_calls(): Uint8Array;
53
+ /**
54
+ * @param {string} api_url
55
+ * @param {string} module_name
56
+ * @returns {Promise<void>}
57
+ */
58
+ load_module(api_url: string, module_name: string): Promise<void>;
75
59
  }
76
60
 
77
61
  export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
78
62
 
79
63
  export interface InitOutput {
80
64
  readonly memory: WebAssembly.Memory;
81
- readonly __wbg_batchargumentwasm_free: (a: number) => void;
65
+ readonly generate_intent_payload_wasm: (a: number, b: number, c: number) => void;
66
+ readonly __wbg_batchargument_free: (a: number) => void;
82
67
  readonly __wbg_batchedfunctioncallbuilder_free: (a: number) => void;
83
68
  readonly batchedfunctioncallbuilder_single_signer: () => number;
84
69
  readonly batchedfunctioncallbuilder_multi_signer: (a: number) => number;
85
70
  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;
86
71
  readonly batchedfunctioncallbuilder_generate_batched_calls: (a: number, b: number) => void;
72
+ readonly batchedfunctioncallbuilder_load_module: (a: number, b: number, c: number, d: number, e: number) => number;
87
73
  readonly batchargumentwasm_new_bytes: (a: number, b: number) => number;
88
74
  readonly batchargumentwasm_new_signer: (a: number) => number;
89
75
  readonly batchargumentwasm_borrow: (a: number, b: number) => void;
90
76
  readonly batchargumentwasm_borrow_mut: (a: number, b: number) => void;
91
77
  readonly batchargumentwasm_copy: (a: number, b: number) => void;
92
- readonly generate_intent_payload_wasm: (a: number, b: number, c: number) => void;
93
78
  readonly __wbg_batchedfunctioncall_free: (a: number) => void;
94
79
  readonly __wbindgen_malloc: (a: number, b: number) => number;
95
80
  readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
81
+ readonly __wbindgen_export_2: WebAssembly.Table;
82
+ readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8273ed02fd8578ca: (a: number, b: number, c: number) => void;
96
83
  readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
97
84
  readonly __wbindgen_free: (a: number, b: number, c: number) => void;
85
+ readonly __wbindgen_exn_store: (a: number) => void;
86
+ readonly wasm_bindgen__convert__closures__invoke2_mut__h7a552e5a28352106: (a: number, b: number, c: number, d: number) => void;
98
87
  }
99
88
 
100
89
  export type SyncInitInput = BufferSource | WebAssembly.Module;