@wgb5445/aptos-intent-npm 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/aptos_dynamic_transaction_composer.d.ts +56 -4
- package/dist/cjs/entry.js +96 -13
- package/dist/esm/entry.js +94 -13
- package/entry.js +3 -3
- package/package.json +1 -1
- package/rollup.config.mjs +1 -1
- package/dist/cjs/aptos_dynamic_transaction_composer_bg-BYt8TUnu.js +0 -42
- package/dist/esm/aptos_dynamic_transaction_composer_bg-69aEwTzx.js +0 -40
@@ -6,6 +6,28 @@
|
|
6
6
|
* @returns {(MoveFunctionCall)[]}
|
7
7
|
*/
|
8
8
|
export function generate_batched_call_payload_wasm(script: Uint8Array): (MoveFunctionCall)[];
|
9
|
+
/**
|
10
|
+
* How to consume the returned value coming from a previous `MoveFunctionCall`.
|
11
|
+
*/
|
12
|
+
export enum ArgumentOperation {
|
13
|
+
/**
|
14
|
+
* Move the returned value to the next caller. This can be used for values that don't have
|
15
|
+
* `copy` ability.
|
16
|
+
*/
|
17
|
+
Move = 0,
|
18
|
+
/**
|
19
|
+
* Copy the returned value and pass it to the next caller.
|
20
|
+
*/
|
21
|
+
Copy = 1,
|
22
|
+
/**
|
23
|
+
* Borrow an immutable reference from a returned value and pass it to the next caller.
|
24
|
+
*/
|
25
|
+
Borrow = 2,
|
26
|
+
/**
|
27
|
+
* Borrow a mutable reference from a returned value and pass it to the next caller.
|
28
|
+
*/
|
29
|
+
BorrowMut = 3,
|
30
|
+
}
|
9
31
|
export interface AllocatedLocal {
|
10
32
|
op_type: ArgumentOperation;
|
11
33
|
is_parameter: boolean;
|
@@ -15,8 +37,33 @@ export interface AllocatedLocal {
|
|
15
37
|
/**
|
16
38
|
* Arguments to the `MoveFunctionCall`.
|
17
39
|
*/
|
18
|
-
export type CallArgument = { Raw: number[] } | { Signer: number } | { PreviousResult: PreviousResult };
|
40
|
+
// export type CallArgument = { Raw: number[] } | { Signer: number } | { PreviousResult: PreviousResult };
|
19
41
|
|
42
|
+
export class CallArgument {
|
43
|
+
free(): void;
|
44
|
+
/**
|
45
|
+
* @param {Uint8Array} bytes
|
46
|
+
* @returns {CallArgument}
|
47
|
+
*/
|
48
|
+
static new_bytes(bytes: Uint8Array) : CallArgument;
|
49
|
+
/**
|
50
|
+
* @param {number} signer_idx
|
51
|
+
* @returns {CallArgument}
|
52
|
+
*/
|
53
|
+
static new_signer(signer_idx: number) : CallArgument
|
54
|
+
/**
|
55
|
+
* @returns {CallArgument}
|
56
|
+
*/
|
57
|
+
borrow(): CallArgument
|
58
|
+
/**
|
59
|
+
* @returns {CallArgument}
|
60
|
+
*/
|
61
|
+
borrow_mut() :CallArgument
|
62
|
+
/**
|
63
|
+
* @returns {CallArgument}
|
64
|
+
*/
|
65
|
+
copy() :CallArgument
|
66
|
+
}
|
20
67
|
export class AllocatedLocal {
|
21
68
|
free(): void;
|
22
69
|
}
|
@@ -83,6 +130,12 @@ export class PipeOptions {
|
|
83
130
|
readonly preventClose: boolean;
|
84
131
|
readonly signal: AbortSignal | undefined;
|
85
132
|
}
|
133
|
+
/**
|
134
|
+
* Representing a returned value from a previous list of `MoveFunctionCall`s.
|
135
|
+
*/
|
136
|
+
export class PreviousResult {
|
137
|
+
free(): void;
|
138
|
+
}
|
86
139
|
export class QueuingStrategy {
|
87
140
|
free(): void;
|
88
141
|
readonly highWaterMark: number;
|
@@ -160,13 +213,14 @@ export interface InitOutput {
|
|
160
213
|
readonly transactioncomposer_load_module: (a: number, b: number, c: number, d: number, e: number) => number;
|
161
214
|
readonly transactioncomposer_load_type_tag: (a: number, b: number, c: number, d: number, e: number) => number;
|
162
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;
|
163
218
|
readonly __wbg_movefunctioncall_free: (a: number, b: number) => void;
|
164
219
|
readonly callargument_new_bytes: (a: number, b: number) => number;
|
165
220
|
readonly callargument_new_signer: (a: number) => number;
|
166
221
|
readonly callargument_borrow: (a: number, b: number) => void;
|
167
222
|
readonly callargument_borrow_mut: (a: number, b: number) => void;
|
168
223
|
readonly callargument_copy: (a: number, b: number) => void;
|
169
|
-
readonly generate_batched_call_payload_wasm: (a: number, b: number, c: number) => void;
|
170
224
|
readonly __wbg_readablestreamgetreaderoptions_free: (a: number, b: number) => void;
|
171
225
|
readonly readablestreamgetreaderoptions_mode: (a: number) => number;
|
172
226
|
readonly __wbg_pipeoptions_free: (a: number, b: number) => void;
|
@@ -219,5 +273,3 @@ export function initSync(module: { module: SyncInitInput } | SyncInitInput): Ini
|
|
219
273
|
* @returns {Promise<InitOutput>}
|
220
274
|
*/
|
221
275
|
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|
222
|
-
|
223
|
-
export function set_wasm(): Promise<WebAssembly.Module>
|