@wgb5445/aptos-intent-npm 0.0.8 → 0.0.9
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/dist/aptos_intent.d.ts +28 -52
- package/dist/cjs/aptos_intent_bg-pteHxyaL.js +42 -0
- package/dist/cjs/entry.js +69 -397
- package/dist/esm/aptos_intent_bg-DEdT9YzH.js +40 -0
- package/dist/esm/entry.js +68 -395
- package/package.json +1 -1
package/dist/aptos_intent.d.ts
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
/* tslint:disable */
|
2
2
|
/* eslint-disable */
|
3
|
-
|
4
|
-
|
5
|
-
|
3
|
+
/**
|
4
|
+
* @param {Uint8Array} script
|
5
|
+
* @returns {(BatchedFunctionCall)[]}
|
6
|
+
*/
|
7
|
+
export function generate_intent_payload_wasm(script: Uint8Array): (BatchedFunctionCall)[];
|
6
8
|
/**
|
7
9
|
* Arguments for each function.
|
8
10
|
*/
|
@@ -12,40 +14,32 @@ export enum BatchArgumentType {
|
|
12
14
|
PreviousResult = 2,
|
13
15
|
}
|
14
16
|
/**
|
15
|
-
*/
|
16
|
-
export enum ArgumentOperation {
|
17
|
-
Move = 0,
|
18
|
-
Copy = 1,
|
19
|
-
Borrow = 2,
|
20
|
-
BorrowMut = 3,
|
21
|
-
}
|
22
|
-
/**
|
23
17
|
* Arguments for each function. Wasm bindgen only support C-style enum so use option to work around.
|
24
18
|
*/
|
25
|
-
export class
|
19
|
+
export class BatchArgumentWASM {
|
26
20
|
free(): void;
|
27
21
|
/**
|
28
22
|
* @param {Uint8Array} bytes
|
29
|
-
* @returns {
|
23
|
+
* @returns {BatchArgumentWASM}
|
30
24
|
*/
|
31
|
-
static new_bytes(bytes: Uint8Array):
|
25
|
+
static new_bytes(bytes: Uint8Array): BatchArgumentWASM;
|
32
26
|
/**
|
33
27
|
* @param {number} signer_idx
|
34
|
-
* @returns {
|
28
|
+
* @returns {BatchArgumentWASM}
|
35
29
|
*/
|
36
|
-
static new_signer(signer_idx: number):
|
30
|
+
static new_signer(signer_idx: number): BatchArgumentWASM;
|
37
31
|
/**
|
38
|
-
* @returns {
|
32
|
+
* @returns {BatchArgumentWASM}
|
39
33
|
*/
|
40
|
-
borrow():
|
34
|
+
borrow(): BatchArgumentWASM;
|
41
35
|
/**
|
42
|
-
* @returns {
|
36
|
+
* @returns {BatchArgumentWASM}
|
43
37
|
*/
|
44
|
-
borrow_mut():
|
38
|
+
borrow_mut(): BatchArgumentWASM;
|
45
39
|
/**
|
46
|
-
* @returns {
|
40
|
+
* @returns {BatchArgumentWASM}
|
47
41
|
*/
|
48
|
-
copy():
|
42
|
+
copy(): BatchArgumentWASM;
|
49
43
|
}
|
50
44
|
/**
|
51
45
|
* Call a Move entry function.
|
@@ -70,53 +64,37 @@ export class BatchedFunctionCallBuilder {
|
|
70
64
|
* @param {string} module
|
71
65
|
* @param {string} _function
|
72
66
|
* @param {(string)[]} ty_args
|
73
|
-
* @param {(
|
74
|
-
* @returns {(
|
67
|
+
* @param {(BatchArgumentWASM)[]} args
|
68
|
+
* @returns {(BatchArgumentWASM)[]}
|
75
69
|
*/
|
76
|
-
add_batched_call(module: string, _function: string, ty_args: (string)[], args: (
|
70
|
+
add_batched_call(module: string, _function: string, ty_args: (string)[], args: (BatchArgumentWASM)[]): (BatchArgumentWASM)[];
|
77
71
|
/**
|
78
72
|
* @returns {Uint8Array}
|
79
73
|
*/
|
80
74
|
generate_batched_calls(): Uint8Array;
|
81
|
-
/**
|
82
|
-
* @param {string} api_url
|
83
|
-
* @param {string} module_name
|
84
|
-
* @returns {Promise<void>}
|
85
|
-
*/
|
86
|
-
load_module(api_url: string, module_name: string): Promise<void>;
|
87
|
-
}
|
88
|
-
/**
|
89
|
-
*/
|
90
|
-
export class PreviousResult {
|
91
|
-
free(): void;
|
92
75
|
}
|
93
76
|
|
94
77
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
95
78
|
|
96
79
|
export interface InitOutput {
|
97
80
|
readonly memory: WebAssembly.Memory;
|
98
|
-
readonly
|
99
|
-
readonly __wbg_batchargument_free: (a: number) => void;
|
100
|
-
readonly __wbg_batchedfunctioncall_free: (a: number) => void;
|
81
|
+
readonly __wbg_batchargumentwasm_free: (a: number) => void;
|
101
82
|
readonly __wbg_batchedfunctioncallbuilder_free: (a: number) => void;
|
102
83
|
readonly batchedfunctioncallbuilder_single_signer: () => number;
|
103
84
|
readonly batchedfunctioncallbuilder_multi_signer: (a: number) => number;
|
104
85
|
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;
|
105
86
|
readonly batchedfunctioncallbuilder_generate_batched_calls: (a: number, b: number) => void;
|
106
|
-
readonly
|
107
|
-
readonly
|
108
|
-
readonly
|
109
|
-
readonly
|
110
|
-
readonly
|
111
|
-
readonly
|
87
|
+
readonly batchargumentwasm_new_bytes: (a: number, b: number) => number;
|
88
|
+
readonly batchargumentwasm_new_signer: (a: number) => number;
|
89
|
+
readonly batchargumentwasm_borrow: (a: number, b: number) => void;
|
90
|
+
readonly batchargumentwasm_borrow_mut: (a: number, b: number) => void;
|
91
|
+
readonly batchargumentwasm_copy: (a: number, b: number) => void;
|
92
|
+
readonly generate_intent_payload_wasm: (a: number, b: number, c: number) => void;
|
93
|
+
readonly __wbg_batchedfunctioncall_free: (a: number) => void;
|
112
94
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
113
95
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
114
|
-
readonly __wbindgen_export_2: WebAssembly.Table;
|
115
|
-
readonly _dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h09acdaa8b02601d5: (a: number, b: number, c: number) => void;
|
116
96
|
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
117
97
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
118
|
-
readonly __wbindgen_exn_store: (a: number) => void;
|
119
|
-
readonly wasm_bindgen__convert__closures__invoke2_mut__h4c0838795c3445c5: (a: number, b: number, c: number, d: number) => void;
|
120
98
|
}
|
121
99
|
|
122
100
|
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
@@ -138,6 +116,4 @@ export function initSync(module: SyncInitInput): InitOutput;
|
|
138
116
|
*
|
139
117
|
* @returns {Promise<InitOutput>}
|
140
118
|
*/
|
141
|
-
export function __wbg_init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
|
142
|
-
|
143
|
-
export function get_wasm(): any
|
119
|
+
export default function __wbg_init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
|