@wgb5445/aptos-intent-npm 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -64,8 +64,6 @@ export class CallArgument {
64
64
  */
65
65
  copy() :CallArgument
66
66
  }
67
-
68
-
69
67
  export class AllocatedLocal {
70
68
  free(): void;
71
69
  }
@@ -201,3 +199,77 @@ export class TransactionComposer {
201
199
  */
202
200
  add_batched_call(module: string, _function: string, ty_args: (string)[], args: (CallArgument)[]): (CallArgument)[];
203
201
  }
202
+
203
+ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
204
+
205
+ export interface InitOutput {
206
+ readonly memory: WebAssembly.Memory;
207
+ readonly __wbg_allocatedlocal_free: (a: number, b: number) => void;
208
+ readonly __wbg_buildercall_free: (a: number, b: number) => void;
209
+ readonly __wbg_transactioncomposer_free: (a: number, b: number) => void;
210
+ readonly transactioncomposer_single_signer: () => number;
211
+ readonly transactioncomposer_multi_signer: (a: number) => number;
212
+ readonly transactioncomposer_generate_batched_calls: (a: number, b: number, c: number) => void;
213
+ readonly transactioncomposer_load_module: (a: number, b: number, c: number, d: number, e: number) => number;
214
+ readonly transactioncomposer_load_type_tag: (a: number, b: number, c: number, d: number, e: number) => number;
215
+ readonly transactioncomposer_add_batched_call: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number, i: number, j: number) => void;
216
+ readonly generate_batched_call_payload_wasm: (a: number, b: number, c: number) => void;
217
+ readonly __wbg_previousresult_free: (a: number, b: number) => void;
218
+ readonly __wbg_movefunctioncall_free: (a: number, b: number) => void;
219
+ readonly callargument_new_bytes: (a: number, b: number) => number;
220
+ readonly callargument_new_signer: (a: number) => number;
221
+ readonly callargument_borrow: (a: number, b: number) => void;
222
+ readonly callargument_borrow_mut: (a: number, b: number) => void;
223
+ readonly callargument_copy: (a: number, b: number) => void;
224
+ readonly __wbg_readablestreamgetreaderoptions_free: (a: number, b: number) => void;
225
+ readonly readablestreamgetreaderoptions_mode: (a: number) => number;
226
+ readonly __wbg_pipeoptions_free: (a: number, b: number) => void;
227
+ readonly pipeoptions_preventClose: (a: number) => number;
228
+ readonly pipeoptions_preventCancel: (a: number) => number;
229
+ readonly pipeoptions_preventAbort: (a: number) => number;
230
+ readonly pipeoptions_signal: (a: number) => number;
231
+ readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
232
+ readonly intounderlyingsource_pull: (a: number, b: number) => number;
233
+ readonly intounderlyingsource_cancel: (a: number) => void;
234
+ readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
235
+ readonly intounderlyingbytesource_type: (a: number, b: number) => void;
236
+ readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
237
+ readonly intounderlyingbytesource_start: (a: number, b: number) => void;
238
+ readonly intounderlyingbytesource_pull: (a: number, b: number) => number;
239
+ readonly intounderlyingbytesource_cancel: (a: number) => void;
240
+ readonly __wbg_queuingstrategy_free: (a: number, b: number) => void;
241
+ readonly queuingstrategy_highWaterMark: (a: number) => number;
242
+ readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
243
+ readonly intounderlyingsink_write: (a: number, b: number) => number;
244
+ readonly intounderlyingsink_close: (a: number) => number;
245
+ readonly intounderlyingsink_abort: (a: number, b: number) => number;
246
+ readonly __wbindgen_malloc: (a: number, b: number) => number;
247
+ readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
248
+ readonly __wbindgen_export_2: WebAssembly.Table;
249
+ readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h9d36ae248074657d: (a: number, b: number, c: number) => void;
250
+ readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
251
+ readonly __wbindgen_free: (a: number, b: number, c: number) => void;
252
+ readonly __wbindgen_exn_store: (a: number) => void;
253
+ readonly wasm_bindgen__convert__closures__invoke2_mut__h0d57cb0f99d3b458: (a: number, b: number, c: number, d: number) => void;
254
+ }
255
+
256
+ export type SyncInitInput = BufferSource | WebAssembly.Module;
257
+ /**
258
+ * Instantiates the given `module`, which can either be bytes or
259
+ * a precompiled `WebAssembly.Module`.
260
+ *
261
+ * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
262
+ *
263
+ * @returns {InitOutput}
264
+ */
265
+ export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
266
+
267
+ /**
268
+ * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
269
+ * for everything else, calls `WebAssembly.instantiate` directly.
270
+ *
271
+ * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
272
+ *
273
+ * @returns {Promise<InitOutput>}
274
+ */
275
+ export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;