@wgb5445/aptos-intent-npm 0.0.11 → 0.1.0

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/entry.js CHANGED
@@ -1,5 +1,5 @@
1
- export * from "../pkg/aptos_intent.js";
1
+ export * from "../pkg/aptos_dynamic_transaction_composer.js";
2
2
 
3
3
  export async function get_wasm (){
4
- return (await import("../pkg/aptos_intent_bg.wasm")).default()
4
+ return (await import("../pkg/aptos_dynamic_transaction_composer_bg.wasm")).default()
5
5
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "Aptos Labs <opensource@aptoslabs.com>"
5
5
  ],
6
6
  "description": "Generating Move Script from intent",
7
- "version": "0.0.11",
7
+ "version": "0.1.0",
8
8
  "type": "module",
9
9
  "license": "Apache-2.0",
10
10
  "repository": {
@@ -17,7 +17,7 @@
17
17
  "rollup.config.mjs"
18
18
  ],
19
19
  "module": "dist/esm/entry.js",
20
- "types": "dist/aptos_intent.d.ts",
20
+ "types": "dist/aptos_dynamic_transaction_composer.d.ts",
21
21
  "homepage": "https://aptoslabs.com",
22
22
  "sideEffects": [
23
23
  "./snippets/*"
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "exports": {
29
29
  ".": {
30
- "types": "./dist/aptos_intent.d.ts",
30
+ "types": "./dist/aptos_dynamic_transaction_composer.d.ts",
31
31
  "import": "./dist/esm/entry.js",
32
32
  "default": "./dist/cjs/entry.js"
33
33
  }
@@ -1,108 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * @param {Uint8Array} script
5
- * @returns {(BatchedFunctionCall)[]}
6
- */
7
- export function generate_intent_payload_wasm(script: Uint8Array): (BatchedFunctionCall)[];
8
- /**
9
- * Arguments for each function.
10
- */
11
- export enum BatchArgumentType {
12
- Raw = 0,
13
- Signer = 1,
14
- PreviousResult = 2,
15
- }
16
- /**
17
- * Arguments for each function. Wasm bindgen only support C-style enum so use option to work around.
18
- */
19
- export class BatchArgument {
20
- free(): void;
21
- }
22
- /**
23
- * Call a Move entry function.
24
- */
25
- export class BatchedFunctionCall {
26
- free(): void;
27
- }
28
- /**
29
- */
30
- export class BatchedFunctionCallBuilder {
31
- free(): void;
32
- /**
33
- * @returns {BatchedFunctionCallBuilder}
34
- */
35
- static single_signer(): BatchedFunctionCallBuilder;
36
- /**
37
- * @param {number} signer_count
38
- * @returns {BatchedFunctionCallBuilder}
39
- */
40
- static multi_signer(signer_count: number): BatchedFunctionCallBuilder;
41
- /**
42
- * @param {string} module
43
- * @param {string} _function
44
- * @param {(string)[]} ty_args
45
- * @param {(BatchArgument)[]} args
46
- * @returns {(BatchArgument)[]}
47
- */
48
- add_batched_call(module: string, _function: string, ty_args: (string)[], args: (BatchArgument)[]): (BatchArgument)[];
49
- /**
50
- * @returns {Uint8Array}
51
- */
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>;
59
- }
60
-
61
- export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
62
-
63
- export interface InitOutput {
64
- readonly memory: WebAssembly.Memory;
65
- readonly generate_intent_payload_wasm: (a: number, b: number, c: number) => void;
66
- readonly __wbg_batchargument_free: (a: number) => void;
67
- readonly __wbg_batchedfunctioncallbuilder_free: (a: number) => void;
68
- readonly batchedfunctioncallbuilder_single_signer: () => number;
69
- readonly batchedfunctioncallbuilder_multi_signer: (a: number) => number;
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;
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;
73
- readonly batchargumentwasm_new_bytes: (a: number, b: number) => number;
74
- readonly batchargumentwasm_new_signer: (a: number) => number;
75
- readonly batchargumentwasm_borrow: (a: number, b: number) => void;
76
- readonly batchargumentwasm_borrow_mut: (a: number, b: number) => void;
77
- readonly batchargumentwasm_copy: (a: number, b: number) => void;
78
- readonly __wbg_batchedfunctioncall_free: (a: number) => void;
79
- readonly __wbindgen_malloc: (a: number, b: number) => number;
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;
83
- readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
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;
87
- }
88
-
89
- export type SyncInitInput = BufferSource | WebAssembly.Module;
90
- /**
91
- * Instantiates the given `module`, which can either be bytes or
92
- * a precompiled `WebAssembly.Module`.
93
- *
94
- * @param {SyncInitInput} module
95
- *
96
- * @returns {InitOutput}
97
- */
98
- export function initSync(module: SyncInitInput): InitOutput;
99
-
100
- /**
101
- * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
102
- * for everything else, calls `WebAssembly.instantiate` directly.
103
- *
104
- * @param {InitInput | Promise<InitInput>} module_or_path
105
- *
106
- * @returns {Promise<InitOutput>}
107
- */
108
- export default function __wbg_init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;