@wgb5445/aptos-intent-npm 0.0.12 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/aptos_dynamic_transaction_composer.d.ts +224 -0
- package/dist/cjs/aptos_dynamic_transaction_composer_bg-BYt8TUnu.js +42 -0
- package/dist/cjs/entry.js +647 -289
- package/dist/esm/aptos_dynamic_transaction_composer.d.ts +223 -0
- package/dist/esm/aptos_dynamic_transaction_composer_bg-69aEwTzx.js +40 -0
- package/dist/esm/entry.js +636 -285
- package/entry.js +2 -2
- package/package.json +3 -3
- package/dist/aptos_intent.d.ts +0 -132
- package/dist/cjs/aptos_intent_bg-2V_b8N0G.js +0 -42
- package/dist/cjs/aptos_intent_bg-A1npHFCR.js +0 -42
- package/dist/cjs/aptos_intent_bg-Dke4lYNx.js +0 -42
- package/dist/esm/aptos_intent_bg-B4vpJSlo.js +0 -40
- package/dist/esm/aptos_intent_bg-CX0REmIg.js +0 -40
- package/dist/esm/aptos_intent_bg-vY0jOTb5.js +0 -40
package/entry.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
export * from "../pkg/
|
1
|
+
export * from "../pkg/aptos_dynamic_transaction_composer.js";
|
2
2
|
|
3
3
|
export async function get_wasm (){
|
4
|
-
return (await import("../pkg/
|
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.
|
7
|
+
"version": "0.1.1",
|
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/
|
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/
|
30
|
+
"types": "./dist/esm/aptos_dynamic_transaction_composer.d.ts",
|
31
31
|
"import": "./dist/esm/entry.js",
|
32
32
|
"default": "./dist/cjs/entry.js"
|
33
33
|
}
|
package/dist/aptos_intent.d.ts
DELETED
@@ -1,132 +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
|
-
* @param {Uint8Array} bytes
|
23
|
-
* @returns {BatchArgument}
|
24
|
-
*/
|
25
|
-
static new_bytes(bytes: Uint8Array): BatchArgument;
|
26
|
-
/**
|
27
|
-
* @param {number} signer_idx
|
28
|
-
* @returns {BatchArgument}
|
29
|
-
*/
|
30
|
-
static new_signer(signer_idx: number): BatchArgument;
|
31
|
-
/**
|
32
|
-
* @returns {BatchArgument}
|
33
|
-
*/
|
34
|
-
borrow(): BatchArgument;
|
35
|
-
/**
|
36
|
-
* @returns {BatchArgument}
|
37
|
-
*/
|
38
|
-
borrow_mut(): BatchArgument;
|
39
|
-
/**
|
40
|
-
* @returns {BatchArgument}
|
41
|
-
*/
|
42
|
-
copy(): BatchArgument;
|
43
|
-
}
|
44
|
-
/**
|
45
|
-
* Call a Move entry function.
|
46
|
-
*/
|
47
|
-
export class BatchedFunctionCall {
|
48
|
-
free(): void;
|
49
|
-
}
|
50
|
-
/**
|
51
|
-
*/
|
52
|
-
export class BatchedFunctionCallBuilder {
|
53
|
-
free(): void;
|
54
|
-
/**
|
55
|
-
* @returns {BatchedFunctionCallBuilder}
|
56
|
-
*/
|
57
|
-
static single_signer(): BatchedFunctionCallBuilder;
|
58
|
-
/**
|
59
|
-
* @param {number} signer_count
|
60
|
-
* @returns {BatchedFunctionCallBuilder}
|
61
|
-
*/
|
62
|
-
static multi_signer(signer_count: number): BatchedFunctionCallBuilder;
|
63
|
-
/**
|
64
|
-
* @param {string} module
|
65
|
-
* @param {string} _function
|
66
|
-
* @param {(string)[]} ty_args
|
67
|
-
* @param {(BatchArgument)[]} args
|
68
|
-
* @returns {(BatchArgument)[]}
|
69
|
-
*/
|
70
|
-
add_batched_call(module: string, _function: string, ty_args: (string)[], args: (BatchArgument)[]): (BatchArgument)[];
|
71
|
-
/**
|
72
|
-
* @returns {Uint8Array}
|
73
|
-
*/
|
74
|
-
generate_batched_calls(): Uint8Array;
|
75
|
-
/**
|
76
|
-
* @param {string} api_url
|
77
|
-
* @param {string} module_name
|
78
|
-
* @returns {Promise<void>}
|
79
|
-
*/
|
80
|
-
load_module(api_url: string, module_name: string): Promise<void>;
|
81
|
-
}
|
82
|
-
|
83
|
-
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
84
|
-
|
85
|
-
export interface InitOutput {
|
86
|
-
readonly memory: WebAssembly.Memory;
|
87
|
-
readonly generate_intent_payload_wasm: (a: number, b: number, c: number) => void;
|
88
|
-
readonly __wbg_batchargument_free: (a: number) => void;
|
89
|
-
readonly __wbg_batchedfunctioncallbuilder_free: (a: number) => void;
|
90
|
-
readonly batchedfunctioncallbuilder_single_signer: () => number;
|
91
|
-
readonly batchedfunctioncallbuilder_multi_signer: (a: number) => number;
|
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
|
-
readonly batchedfunctioncallbuilder_generate_batched_calls: (a: number, b: number) => void;
|
94
|
-
readonly batchedfunctioncallbuilder_load_module: (a: number, b: number, c: number, d: number, e: number) => number;
|
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
|
-
readonly __wbg_batchedfunctioncall_free: (a: number) => void;
|
101
|
-
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
102
|
-
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
103
|
-
readonly __wbindgen_export_2: WebAssembly.Table;
|
104
|
-
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h8273ed02fd8578ca: (a: number, b: number, c: number) => void;
|
105
|
-
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
106
|
-
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
107
|
-
readonly __wbindgen_exn_store: (a: number) => void;
|
108
|
-
readonly wasm_bindgen__convert__closures__invoke2_mut__h7a552e5a28352106: (a: number, b: number, c: number, d: number) => void;
|
109
|
-
}
|
110
|
-
|
111
|
-
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
112
|
-
/**
|
113
|
-
* Instantiates the given `module`, which can either be bytes or
|
114
|
-
* a precompiled `WebAssembly.Module`.
|
115
|
-
*
|
116
|
-
* @param {SyncInitInput} module
|
117
|
-
*
|
118
|
-
* @returns {InitOutput}
|
119
|
-
*/
|
120
|
-
export function initSync(module: SyncInitInput): InitOutput;
|
121
|
-
|
122
|
-
/**
|
123
|
-
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
124
|
-
* for everything else, calls `WebAssembly.instantiate` directly.
|
125
|
-
*
|
126
|
-
* @param {InitInput | Promise<InitInput>} module_or_path
|
127
|
-
*
|
128
|
-
* @returns {Promise<InitOutput>}
|
129
|
-
*/
|
130
|
-
export default function __wbg_init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
|
131
|
-
|
132
|
-
export function get_wasm(): Promise<any>;
|