@wgb5445/aptos-intent-npm 0.0.10 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 BatchArgumentWASM {
19
+ export class BatchArgument {
20
20
  free(): void;
21
21
  /**
22
22
  * @param {Uint8Array} bytes
23
- * @returns {BatchArgumentWASM}
23
+ * @returns {BatchArgument}
24
24
  */
25
- static new_bytes(bytes: Uint8Array): BatchArgumentWASM;
25
+ static new_bytes(bytes: Uint8Array): BatchArgument;
26
26
  /**
27
27
  * @param {number} signer_idx
28
- * @returns {BatchArgumentWASM}
28
+ * @returns {BatchArgument}
29
29
  */
30
- static new_signer(signer_idx: number): BatchArgumentWASM;
30
+ static new_signer(signer_idx: number): BatchArgument;
31
31
  /**
32
- * @returns {BatchArgumentWASM}
32
+ * @returns {BatchArgument}
33
33
  */
34
- borrow(): BatchArgumentWASM;
34
+ borrow(): BatchArgument;
35
35
  /**
36
- * @returns {BatchArgumentWASM}
36
+ * @returns {BatchArgument}
37
37
  */
38
- borrow_mut(): BatchArgumentWASM;
38
+ borrow_mut(): BatchArgument;
39
39
  /**
40
- * @returns {BatchArgumentWASM}
40
+ * @returns {BatchArgument}
41
41
  */
42
- copy(): BatchArgumentWASM;
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 {(BatchArgumentWASM)[]} args
68
- * @returns {(BatchArgumentWASM)[]}
67
+ * @param {(BatchArgument)[]} args
68
+ * @returns {(BatchArgument)[]}
69
69
  */
70
- add_batched_call(module: string, _function: string, ty_args: (string)[], args: (BatchArgumentWASM)[]): (BatchArgumentWASM)[];
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 __wbg_batchargumentwasm_free: (a: number) => void;
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 batchargumentwasm_new_bytes: (a: number, b: number) => number;
96
- readonly batchargumentwasm_new_signer: (a: number) => number;
97
- readonly batchargumentwasm_borrow: (a: number, b: number) => void;
98
- readonly batchargumentwasm_borrow_mut: (a: number, b: number) => void;
99
- readonly batchargumentwasm_copy: (a: number, b: number) => void;
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>;