@mysten/pas 0.0.1
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/README.md +1 -0
- package/dist/client.d.mts +117 -0
- package/dist/client.d.mts.map +1 -0
- package/dist/client.mjs +89 -0
- package/dist/client.mjs.map +1 -0
- package/dist/constants.mjs +9 -0
- package/dist/constants.mjs.map +1 -0
- package/dist/contracts/pas/deps/std/type_name.mjs +17 -0
- package/dist/contracts/pas/deps/std/type_name.mjs.map +1 -0
- package/dist/contracts/pas/deps/sui/vec_map.mjs +37 -0
- package/dist/contracts/pas/deps/sui/vec_map.mjs.map +1 -0
- package/dist/contracts/pas/deps/sui/vec_set.mjs +26 -0
- package/dist/contracts/pas/deps/sui/vec_set.mjs.map +1 -0
- package/dist/contracts/pas/policy.mjs +33 -0
- package/dist/contracts/pas/policy.mjs.map +1 -0
- package/dist/contracts/pas/versioning.mjs +25 -0
- package/dist/contracts/pas/versioning.mjs.map +1 -0
- package/dist/contracts/ptb/ptb.mjs +162 -0
- package/dist/contracts/ptb/ptb.mjs.map +1 -0
- package/dist/contracts/sui/dynamic_field.mjs +22 -0
- package/dist/contracts/sui/dynamic_field.mjs.map +1 -0
- package/dist/contracts/utils/index.mjs +37 -0
- package/dist/contracts/utils/index.mjs.map +1 -0
- package/dist/derivation.mjs +70 -0
- package/dist/derivation.mjs.map +1 -0
- package/dist/error.d.mts +16 -0
- package/dist/error.d.mts.map +1 -0
- package/dist/error.mjs +26 -0
- package/dist/error.mjs.map +1 -0
- package/dist/index.d.mts +4 -0
- package/dist/index.mjs +4 -0
- package/dist/intents.mjs +494 -0
- package/dist/intents.mjs.map +1 -0
- package/dist/resolution.mjs +185 -0
- package/dist/resolution.mjs.map +1 -0
- package/dist/types.d.mts +34 -0
- package/dist/types.d.mts.map +1 -0
- package/package.json +59 -0
- package/src/client.ts +173 -0
- package/src/constants.ts +15 -0
- package/src/contracts/pas/account.ts +343 -0
- package/src/contracts/pas/clawback_funds.ts +114 -0
- package/src/contracts/pas/deps/std/type_name.ts +24 -0
- package/src/contracts/pas/deps/sui/vec_map.ts +33 -0
- package/src/contracts/pas/deps/sui/vec_set.ts +22 -0
- package/src/contracts/pas/keys.ts +90 -0
- package/src/contracts/pas/namespace.ts +207 -0
- package/src/contracts/pas/policy.ts +212 -0
- package/src/contracts/pas/request.ts +87 -0
- package/src/contracts/pas/send_funds.ts +174 -0
- package/src/contracts/pas/templates.ts +101 -0
- package/src/contracts/pas/unlock_funds.ts +155 -0
- package/src/contracts/pas/versioning.ts +69 -0
- package/src/contracts/ptb/ptb.ts +821 -0
- package/src/contracts/sui/dynamic_field.ts +171 -0
- package/src/contracts/utils/index.ts +235 -0
- package/src/derivation.ts +107 -0
- package/src/error.ts +29 -0
- package/src/index.ts +6 -0
- package/src/intents.ts +852 -0
- package/src/resolution.ts +294 -0
- package/src/types.ts +34 -0
|
@@ -0,0 +1,821 @@
|
|
|
1
|
+
/**************************************************************
|
|
2
|
+
* THIS FILE IS GENERATED AND SHOULD NOT BE MANUALLY MODIFIED *
|
|
3
|
+
**************************************************************/
|
|
4
|
+
|
|
5
|
+
/** Module: ptb */
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
MoveTuple,
|
|
9
|
+
MoveStruct,
|
|
10
|
+
MoveEnum,
|
|
11
|
+
normalizeMoveArguments,
|
|
12
|
+
type RawTransactionArgument,
|
|
13
|
+
} from '../utils/index.js';
|
|
14
|
+
import { bcs, type BcsType } from '@mysten/sui/bcs';
|
|
15
|
+
import { type Transaction as Transaction_1 } from '@mysten/sui/transactions';
|
|
16
|
+
const $moduleName = '@mysten/ptb::ptb';
|
|
17
|
+
export const Command = new MoveTuple({
|
|
18
|
+
name: `${$moduleName}::Command`,
|
|
19
|
+
fields: [bcs.u8(), bcs.vector(bcs.u8())],
|
|
20
|
+
});
|
|
21
|
+
export const Transaction = new MoveStruct({
|
|
22
|
+
name: `${$moduleName}::Transaction`,
|
|
23
|
+
fields: {
|
|
24
|
+
commands: bcs.vector(Command),
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
/**
|
|
28
|
+
* Defines a simplified `ObjectArg` type for the `Transaction`.
|
|
29
|
+
*
|
|
30
|
+
* Differences with canonical Sui `ObjectArg` type:
|
|
31
|
+
*
|
|
32
|
+
* - Uses `address` type as a fixed-length sequence of bytes without length prefix.
|
|
33
|
+
* - Extends the number of variants to support off-chain resolution.
|
|
34
|
+
*/
|
|
35
|
+
export const ObjectArg = new MoveEnum({
|
|
36
|
+
name: `${$moduleName}::ObjectArg`,
|
|
37
|
+
fields: {
|
|
38
|
+
ImmOrOwnedObject: new MoveStruct({
|
|
39
|
+
name: `ObjectArg.ImmOrOwnedObject`,
|
|
40
|
+
fields: {
|
|
41
|
+
object_id: bcs.Address,
|
|
42
|
+
sequence_number: bcs.u64(),
|
|
43
|
+
digest: bcs.Address,
|
|
44
|
+
},
|
|
45
|
+
}),
|
|
46
|
+
SharedObject: new MoveStruct({
|
|
47
|
+
name: `ObjectArg.SharedObject`,
|
|
48
|
+
fields: {
|
|
49
|
+
object_id: bcs.Address,
|
|
50
|
+
initial_shared_version: bcs.u64(),
|
|
51
|
+
is_mutable: bcs.bool(),
|
|
52
|
+
},
|
|
53
|
+
}),
|
|
54
|
+
Receiving: new MoveStruct({
|
|
55
|
+
name: `ObjectArg.Receiving`,
|
|
56
|
+
fields: {
|
|
57
|
+
object_id: bcs.Address,
|
|
58
|
+
sequence_number: bcs.u64(),
|
|
59
|
+
digest: bcs.Address,
|
|
60
|
+
},
|
|
61
|
+
}),
|
|
62
|
+
Ext: bcs.string(),
|
|
63
|
+
},
|
|
64
|
+
});
|
|
65
|
+
export const WithdrawFrom = new MoveEnum({
|
|
66
|
+
name: `${$moduleName}::WithdrawFrom`,
|
|
67
|
+
fields: {
|
|
68
|
+
Sender: null,
|
|
69
|
+
Sponsor: null,
|
|
70
|
+
},
|
|
71
|
+
});
|
|
72
|
+
/**
|
|
73
|
+
* Defines a simplified `CallArg` type for `Transaction`.
|
|
74
|
+
*
|
|
75
|
+
* Differences with canonical Sui `CallArg` type:
|
|
76
|
+
*
|
|
77
|
+
* - ObjectArg is a simplified, unresolved representation of Object arguments;
|
|
78
|
+
* - Ext(...) is a custom extension for the `CallArg` which allows off-chain
|
|
79
|
+
* resolvers to convert them into the appropriate values for context.
|
|
80
|
+
*/
|
|
81
|
+
export const CallArg = new MoveEnum({
|
|
82
|
+
name: `${$moduleName}::CallArg`,
|
|
83
|
+
fields: {
|
|
84
|
+
Pure: bcs.vector(bcs.u8()),
|
|
85
|
+
Object: ObjectArg,
|
|
86
|
+
FundsWithdrawal: new MoveStruct({
|
|
87
|
+
name: `CallArg.FundsWithdrawal`,
|
|
88
|
+
fields: {
|
|
89
|
+
amount: bcs.u64(),
|
|
90
|
+
type_name: bcs.string(),
|
|
91
|
+
withdraw_from: WithdrawFrom,
|
|
92
|
+
},
|
|
93
|
+
}),
|
|
94
|
+
/**
|
|
95
|
+
* Extended arguments for off-chain resolution. Can be created and registered in a
|
|
96
|
+
* transaction through `ext_input`.
|
|
97
|
+
*
|
|
98
|
+
* Extended arguments are namespaced by Type associated with them. In an
|
|
99
|
+
* application, this can be the root object, or a special type used for off chain
|
|
100
|
+
* resolution.
|
|
101
|
+
*/
|
|
102
|
+
Ext: new MoveTuple({ name: `CallArg.Ext`, fields: [bcs.string(), bcs.string()] }),
|
|
103
|
+
},
|
|
104
|
+
});
|
|
105
|
+
/** Defines a simplified `Argument` type for the `Transaction`. */
|
|
106
|
+
export const Argument = new MoveEnum({
|
|
107
|
+
name: `${$moduleName}::Argument`,
|
|
108
|
+
fields: {
|
|
109
|
+
GasCoin: null,
|
|
110
|
+
Input: CallArg,
|
|
111
|
+
Result: bcs.u16(),
|
|
112
|
+
NestedResult: new MoveTuple({ name: `Argument.NestedResult`, fields: [bcs.u16(), bcs.u16()] }),
|
|
113
|
+
/**
|
|
114
|
+
* Extended arguments for off-chain resolution. Cannot be constructed directly,
|
|
115
|
+
* only through future extensions.
|
|
116
|
+
*/
|
|
117
|
+
Ext: bcs.vector(bcs.u8()),
|
|
118
|
+
},
|
|
119
|
+
});
|
|
120
|
+
export const MoveCall = new MoveStruct({
|
|
121
|
+
name: `${$moduleName}::MoveCall`,
|
|
122
|
+
fields: {
|
|
123
|
+
package_id: bcs.string(),
|
|
124
|
+
module_name: bcs.string(),
|
|
125
|
+
function: bcs.string(),
|
|
126
|
+
arguments: bcs.vector(Argument),
|
|
127
|
+
type_arguments: bcs.vector(bcs.string()),
|
|
128
|
+
},
|
|
129
|
+
});
|
|
130
|
+
export const TransferObjects = new MoveStruct({
|
|
131
|
+
name: `${$moduleName}::TransferObjects`,
|
|
132
|
+
fields: {
|
|
133
|
+
objects: bcs.vector(Argument),
|
|
134
|
+
to: Argument,
|
|
135
|
+
},
|
|
136
|
+
});
|
|
137
|
+
export const SplitCoins = new MoveStruct({
|
|
138
|
+
name: `${$moduleName}::SplitCoins`,
|
|
139
|
+
fields: {
|
|
140
|
+
coin: Argument,
|
|
141
|
+
amounts: bcs.vector(Argument),
|
|
142
|
+
},
|
|
143
|
+
});
|
|
144
|
+
export const MergeCoins = new MoveStruct({
|
|
145
|
+
name: `${$moduleName}::MergeCoins`,
|
|
146
|
+
fields: {
|
|
147
|
+
coin: Argument,
|
|
148
|
+
coins: bcs.vector(Argument),
|
|
149
|
+
},
|
|
150
|
+
});
|
|
151
|
+
export const Publish = new MoveStruct({
|
|
152
|
+
name: `${$moduleName}::Publish`,
|
|
153
|
+
fields: {
|
|
154
|
+
modules_bytes: bcs.vector(bcs.vector(bcs.u8())),
|
|
155
|
+
dependencies: bcs.vector(bcs.Address),
|
|
156
|
+
},
|
|
157
|
+
});
|
|
158
|
+
export const MakeMoveVec = new MoveStruct({
|
|
159
|
+
name: `${$moduleName}::MakeMoveVec`,
|
|
160
|
+
fields: {
|
|
161
|
+
element_type: bcs.option(bcs.string()),
|
|
162
|
+
elements: bcs.vector(Argument),
|
|
163
|
+
},
|
|
164
|
+
});
|
|
165
|
+
export const Upgrade = new MoveStruct({
|
|
166
|
+
name: `${$moduleName}::Upgrade`,
|
|
167
|
+
fields: {
|
|
168
|
+
modules_bytes: bcs.vector(bcs.vector(bcs.u8())),
|
|
169
|
+
dependencies: bcs.vector(bcs.Address),
|
|
170
|
+
object_id: bcs.Address,
|
|
171
|
+
upgrade_ticket: Argument,
|
|
172
|
+
},
|
|
173
|
+
});
|
|
174
|
+
export interface NewOptions {
|
|
175
|
+
package?: string;
|
|
176
|
+
arguments?: [];
|
|
177
|
+
}
|
|
178
|
+
/** Create a new Transaction builder. */
|
|
179
|
+
export function _new(options: NewOptions = {}) {
|
|
180
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
181
|
+
return (tx: Transaction_1) =>
|
|
182
|
+
tx.moveCall({
|
|
183
|
+
package: packageAddress,
|
|
184
|
+
module: 'ptb',
|
|
185
|
+
function: 'new',
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
export interface ClockOptions {
|
|
189
|
+
package?: string;
|
|
190
|
+
arguments?: [];
|
|
191
|
+
}
|
|
192
|
+
/** Shorthand for `object_by_id` with `0x6` (Clock). */
|
|
193
|
+
export function clock(options: ClockOptions = {}) {
|
|
194
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
195
|
+
return (tx: Transaction_1) =>
|
|
196
|
+
tx.moveCall({
|
|
197
|
+
package: packageAddress,
|
|
198
|
+
module: 'ptb',
|
|
199
|
+
function: 'clock',
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
export interface RandomOptions {
|
|
203
|
+
package?: string;
|
|
204
|
+
arguments?: [];
|
|
205
|
+
}
|
|
206
|
+
/** Shorthand for `object_by_id` with `0x8` (Random). */
|
|
207
|
+
export function random(options: RandomOptions = {}) {
|
|
208
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
209
|
+
return (tx: Transaction_1) =>
|
|
210
|
+
tx.moveCall({
|
|
211
|
+
package: packageAddress,
|
|
212
|
+
module: 'ptb',
|
|
213
|
+
function: 'random',
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
export interface DisplayOptions {
|
|
217
|
+
package?: string;
|
|
218
|
+
arguments?: [];
|
|
219
|
+
}
|
|
220
|
+
/** Shorthand for `object_by_id` with `0xD` (DisplayRegistry). */
|
|
221
|
+
export function display(options: DisplayOptions = {}) {
|
|
222
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
223
|
+
return (tx: Transaction_1) =>
|
|
224
|
+
tx.moveCall({
|
|
225
|
+
package: packageAddress,
|
|
226
|
+
module: 'ptb',
|
|
227
|
+
function: 'display',
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
export interface DenyListOptions {
|
|
231
|
+
package?: string;
|
|
232
|
+
arguments?: [];
|
|
233
|
+
}
|
|
234
|
+
/** Shorthand for `object_by_id` with `0x403` (DenyList). */
|
|
235
|
+
export function denyList(options: DenyListOptions = {}) {
|
|
236
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
237
|
+
return (tx: Transaction_1) =>
|
|
238
|
+
tx.moveCall({
|
|
239
|
+
package: packageAddress,
|
|
240
|
+
module: 'ptb',
|
|
241
|
+
function: 'deny_list',
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
export interface CoinRegistryOptions {
|
|
245
|
+
package?: string;
|
|
246
|
+
arguments?: [];
|
|
247
|
+
}
|
|
248
|
+
/** Shorthand for `object_by_id` with `0xC` (CoinRegistry). */
|
|
249
|
+
export function coinRegistry(options: CoinRegistryOptions = {}) {
|
|
250
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
251
|
+
return (tx: Transaction_1) =>
|
|
252
|
+
tx.moveCall({
|
|
253
|
+
package: packageAddress,
|
|
254
|
+
module: 'ptb',
|
|
255
|
+
function: 'coin_registry',
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
export interface AccumulatorRootOptions {
|
|
259
|
+
package?: string;
|
|
260
|
+
arguments?: [];
|
|
261
|
+
}
|
|
262
|
+
/** Shorthand for `object_by_id` with `0xACC` (AccumulatorRoot). */
|
|
263
|
+
export function accumulatorRoot(options: AccumulatorRootOptions = {}) {
|
|
264
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
265
|
+
return (tx: Transaction_1) =>
|
|
266
|
+
tx.moveCall({
|
|
267
|
+
package: packageAddress,
|
|
268
|
+
module: 'ptb',
|
|
269
|
+
function: 'accumulator_root',
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
export interface GasOptions {
|
|
273
|
+
package?: string;
|
|
274
|
+
arguments?: [];
|
|
275
|
+
}
|
|
276
|
+
/** Create a gas coin input. */
|
|
277
|
+
export function gas(options: GasOptions = {}) {
|
|
278
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
279
|
+
return (tx: Transaction_1) =>
|
|
280
|
+
tx.moveCall({
|
|
281
|
+
package: packageAddress,
|
|
282
|
+
module: 'ptb',
|
|
283
|
+
function: 'gas',
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
export interface PureArguments<T extends BcsType<any>> {
|
|
287
|
+
value: RawTransactionArgument<T>;
|
|
288
|
+
}
|
|
289
|
+
export interface PureOptions<T extends BcsType<any>> {
|
|
290
|
+
package?: string;
|
|
291
|
+
arguments: PureArguments<T> | [value: RawTransactionArgument<T>];
|
|
292
|
+
typeArguments: [string];
|
|
293
|
+
}
|
|
294
|
+
/** Create a pure input. */
|
|
295
|
+
export function pure<T extends BcsType<any>>(options: PureOptions<T>) {
|
|
296
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
297
|
+
const argumentsTypes = [`${options.typeArguments[0]}`] satisfies (string | null)[];
|
|
298
|
+
const parameterNames = ['value'];
|
|
299
|
+
return (tx: Transaction_1) =>
|
|
300
|
+
tx.moveCall({
|
|
301
|
+
package: packageAddress,
|
|
302
|
+
module: 'ptb',
|
|
303
|
+
function: 'pure',
|
|
304
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
305
|
+
typeArguments: options.typeArguments,
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
export interface ObjectRefArguments {
|
|
309
|
+
objectId: RawTransactionArgument<string>;
|
|
310
|
+
sequenceNumber: RawTransactionArgument<number | bigint>;
|
|
311
|
+
digest: RawTransactionArgument<string>;
|
|
312
|
+
}
|
|
313
|
+
export interface ObjectRefOptions {
|
|
314
|
+
package?: string;
|
|
315
|
+
arguments:
|
|
316
|
+
| ObjectRefArguments
|
|
317
|
+
| [
|
|
318
|
+
objectId: RawTransactionArgument<string>,
|
|
319
|
+
sequenceNumber: RawTransactionArgument<number | bigint>,
|
|
320
|
+
digest: RawTransactionArgument<string>,
|
|
321
|
+
];
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* Create a fully-resolved immutable or owned object argument. Should be used with
|
|
325
|
+
* caution, yet for immutable or owned objects refs can be stored. For automatic
|
|
326
|
+
* version resolution, use `object_by_id`.
|
|
327
|
+
*/
|
|
328
|
+
export function objectRef(options: ObjectRefOptions) {
|
|
329
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
330
|
+
const argumentsTypes = ['0x2::object::ID', 'u64', 'address'] satisfies (string | null)[];
|
|
331
|
+
const parameterNames = ['objectId', 'sequenceNumber', 'digest'];
|
|
332
|
+
return (tx: Transaction_1) =>
|
|
333
|
+
tx.moveCall({
|
|
334
|
+
package: packageAddress,
|
|
335
|
+
module: 'ptb',
|
|
336
|
+
function: 'object_ref',
|
|
337
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
export interface SharedObjectRefArguments {
|
|
341
|
+
objectId: RawTransactionArgument<string>;
|
|
342
|
+
initialSharedVersion: RawTransactionArgument<number | bigint>;
|
|
343
|
+
isMutable: RawTransactionArgument<boolean>;
|
|
344
|
+
}
|
|
345
|
+
export interface SharedObjectRefOptions {
|
|
346
|
+
package?: string;
|
|
347
|
+
arguments:
|
|
348
|
+
| SharedObjectRefArguments
|
|
349
|
+
| [
|
|
350
|
+
objectId: RawTransactionArgument<string>,
|
|
351
|
+
initialSharedVersion: RawTransactionArgument<number | bigint>,
|
|
352
|
+
isMutable: RawTransactionArgument<boolean>,
|
|
353
|
+
];
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* Create a fully-resolved shared object argument. Should be used with caution, yet
|
|
357
|
+
* for shared objects refs can be stored. For automatic version resolution, use
|
|
358
|
+
* `shared_object_by_id`.
|
|
359
|
+
*
|
|
360
|
+
* TODO: should it be named `consensus_managed_object_ref`? NOTE: the naming is
|
|
361
|
+
* changing elsewhere
|
|
362
|
+
*/
|
|
363
|
+
export function sharedObjectRef(options: SharedObjectRefOptions) {
|
|
364
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
365
|
+
const argumentsTypes = ['0x2::object::ID', 'u64', 'bool'] satisfies (string | null)[];
|
|
366
|
+
const parameterNames = ['objectId', 'initialSharedVersion', 'isMutable'];
|
|
367
|
+
return (tx: Transaction_1) =>
|
|
368
|
+
tx.moveCall({
|
|
369
|
+
package: packageAddress,
|
|
370
|
+
module: 'ptb',
|
|
371
|
+
function: 'shared_object_ref',
|
|
372
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
export interface ReceivingObjectRefArguments {
|
|
376
|
+
objectId: RawTransactionArgument<string>;
|
|
377
|
+
sequenceNumber: RawTransactionArgument<number | bigint>;
|
|
378
|
+
digest: RawTransactionArgument<string>;
|
|
379
|
+
}
|
|
380
|
+
export interface ReceivingObjectRefOptions {
|
|
381
|
+
package?: string;
|
|
382
|
+
arguments:
|
|
383
|
+
| ReceivingObjectRefArguments
|
|
384
|
+
| [
|
|
385
|
+
objectId: RawTransactionArgument<string>,
|
|
386
|
+
sequenceNumber: RawTransactionArgument<number | bigint>,
|
|
387
|
+
digest: RawTransactionArgument<string>,
|
|
388
|
+
];
|
|
389
|
+
}
|
|
390
|
+
/**
|
|
391
|
+
* Create a fully-resolved receiving object argument. Should be used with caution,
|
|
392
|
+
* since the version of the object is dynamic. For automatic version resolution,
|
|
393
|
+
* use `object_by_id`.
|
|
394
|
+
*/
|
|
395
|
+
export function receivingObjectRef(options: ReceivingObjectRefOptions) {
|
|
396
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
397
|
+
const argumentsTypes = ['0x2::object::ID', 'u64', 'address'] satisfies (string | null)[];
|
|
398
|
+
const parameterNames = ['objectId', 'sequenceNumber', 'digest'];
|
|
399
|
+
return (tx: Transaction_1) =>
|
|
400
|
+
tx.moveCall({
|
|
401
|
+
package: packageAddress,
|
|
402
|
+
module: 'ptb',
|
|
403
|
+
function: 'receiving_object_ref',
|
|
404
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
export interface ObjectByTypeOptions {
|
|
408
|
+
package?: string;
|
|
409
|
+
arguments?: [];
|
|
410
|
+
typeArguments: [string];
|
|
411
|
+
}
|
|
412
|
+
/** Create an off-chain input handler for a given type T. */
|
|
413
|
+
export function objectByType(options: ObjectByTypeOptions) {
|
|
414
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
415
|
+
return (tx: Transaction_1) =>
|
|
416
|
+
tx.moveCall({
|
|
417
|
+
package: packageAddress,
|
|
418
|
+
module: 'ptb',
|
|
419
|
+
function: 'object_by_type',
|
|
420
|
+
typeArguments: options.typeArguments,
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
export interface ObjectByTypeStringArguments {
|
|
424
|
+
typeName: RawTransactionArgument<string>;
|
|
425
|
+
}
|
|
426
|
+
export interface ObjectByTypeStringOptions {
|
|
427
|
+
package?: string;
|
|
428
|
+
arguments: ObjectByTypeStringArguments | [typeName: RawTransactionArgument<string>];
|
|
429
|
+
}
|
|
430
|
+
/** Create an off-chain input handler for a given type as a String. */
|
|
431
|
+
export function objectByTypeString(options: ObjectByTypeStringOptions) {
|
|
432
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
433
|
+
const argumentsTypes = ['0x1::string::String'] satisfies (string | null)[];
|
|
434
|
+
const parameterNames = ['typeName'];
|
|
435
|
+
return (tx: Transaction_1) =>
|
|
436
|
+
tx.moveCall({
|
|
437
|
+
package: packageAddress,
|
|
438
|
+
module: 'ptb',
|
|
439
|
+
function: 'object_by_type_string',
|
|
440
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
441
|
+
});
|
|
442
|
+
}
|
|
443
|
+
export interface ObjectByIdArguments {
|
|
444
|
+
id: RawTransactionArgument<string>;
|
|
445
|
+
}
|
|
446
|
+
export interface ObjectByIdOptions {
|
|
447
|
+
package?: string;
|
|
448
|
+
arguments: ObjectByIdArguments | [id: RawTransactionArgument<string>];
|
|
449
|
+
}
|
|
450
|
+
/** Create an off-chain input handler for an object with a specific ID. */
|
|
451
|
+
export function objectById(options: ObjectByIdOptions) {
|
|
452
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
453
|
+
const argumentsTypes = ['0x2::object::ID'] satisfies (string | null)[];
|
|
454
|
+
const parameterNames = ['id'];
|
|
455
|
+
return (tx: Transaction_1) =>
|
|
456
|
+
tx.moveCall({
|
|
457
|
+
package: packageAddress,
|
|
458
|
+
module: 'ptb',
|
|
459
|
+
function: 'object_by_id',
|
|
460
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
461
|
+
});
|
|
462
|
+
}
|
|
463
|
+
export interface ReceivingObjectByIdArguments {
|
|
464
|
+
id: RawTransactionArgument<string>;
|
|
465
|
+
}
|
|
466
|
+
export interface ReceivingObjectByIdOptions {
|
|
467
|
+
package?: string;
|
|
468
|
+
arguments: ReceivingObjectByIdArguments | [id: RawTransactionArgument<string>];
|
|
469
|
+
}
|
|
470
|
+
/** Create an off-chain input handler for a receiving object with a specific ID. */
|
|
471
|
+
export function receivingObjectById(options: ReceivingObjectByIdOptions) {
|
|
472
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
473
|
+
const argumentsTypes = ['0x2::object::ID'] satisfies (string | null)[];
|
|
474
|
+
const parameterNames = ['id'];
|
|
475
|
+
return (tx: Transaction_1) =>
|
|
476
|
+
tx.moveCall({
|
|
477
|
+
package: packageAddress,
|
|
478
|
+
module: 'ptb',
|
|
479
|
+
function: 'receiving_object_by_id',
|
|
480
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
export interface ExtInputArguments {
|
|
484
|
+
name: RawTransactionArgument<string>;
|
|
485
|
+
}
|
|
486
|
+
export interface ExtInputOptions {
|
|
487
|
+
package?: string;
|
|
488
|
+
arguments: ExtInputArguments | [name: RawTransactionArgument<string>];
|
|
489
|
+
typeArguments: [string];
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* Create an external input handler. Expected to be understood by the off-chain
|
|
493
|
+
* tooling.
|
|
494
|
+
*/
|
|
495
|
+
export function extInput(options: ExtInputOptions) {
|
|
496
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
497
|
+
const argumentsTypes = ['0x1::string::String'] satisfies (string | null)[];
|
|
498
|
+
const parameterNames = ['name'];
|
|
499
|
+
return (tx: Transaction_1) =>
|
|
500
|
+
tx.moveCall({
|
|
501
|
+
package: packageAddress,
|
|
502
|
+
module: 'ptb',
|
|
503
|
+
function: 'ext_input',
|
|
504
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
505
|
+
typeArguments: options.typeArguments,
|
|
506
|
+
});
|
|
507
|
+
}
|
|
508
|
+
export interface ExtInputRawArguments {
|
|
509
|
+
namespace: RawTransactionArgument<string>;
|
|
510
|
+
name: RawTransactionArgument<string>;
|
|
511
|
+
}
|
|
512
|
+
export interface ExtInputRawOptions {
|
|
513
|
+
package?: string;
|
|
514
|
+
arguments:
|
|
515
|
+
| ExtInputRawArguments
|
|
516
|
+
| [namespace: RawTransactionArgument<string>, name: RawTransactionArgument<string>];
|
|
517
|
+
}
|
|
518
|
+
/**
|
|
519
|
+
* Create an external input handler for a given type T. This can be used to
|
|
520
|
+
* hardcode the namespace value without having access to `T`.
|
|
521
|
+
*/
|
|
522
|
+
export function extInputRaw(options: ExtInputRawOptions) {
|
|
523
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
524
|
+
const argumentsTypes = ['0x1::string::String', '0x1::string::String'] satisfies (string | null)[];
|
|
525
|
+
const parameterNames = ['namespace', 'name'];
|
|
526
|
+
return (tx: Transaction_1) =>
|
|
527
|
+
tx.moveCall({
|
|
528
|
+
package: packageAddress,
|
|
529
|
+
module: 'ptb',
|
|
530
|
+
function: 'ext_input_raw',
|
|
531
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
532
|
+
});
|
|
533
|
+
}
|
|
534
|
+
export interface CommandArguments {
|
|
535
|
+
self: RawTransactionArgument<string>;
|
|
536
|
+
command: RawTransactionArgument<string>;
|
|
537
|
+
}
|
|
538
|
+
export interface CommandOptions {
|
|
539
|
+
package?: string;
|
|
540
|
+
arguments:
|
|
541
|
+
| CommandArguments
|
|
542
|
+
| [self: RawTransactionArgument<string>, command: RawTransactionArgument<string>];
|
|
543
|
+
}
|
|
544
|
+
/**
|
|
545
|
+
* Register a command in the Transaction builder. Returns the Argument, which is
|
|
546
|
+
* treated as the `Result(idx)` of the command, and can be turned into a nested
|
|
547
|
+
* result `NestedResult(idx, idx)`.
|
|
548
|
+
*/
|
|
549
|
+
export function command(options: CommandOptions) {
|
|
550
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
551
|
+
const argumentsTypes = [null, null] satisfies (string | null)[];
|
|
552
|
+
const parameterNames = ['self', 'command'];
|
|
553
|
+
return (tx: Transaction_1) =>
|
|
554
|
+
tx.moveCall({
|
|
555
|
+
package: packageAddress,
|
|
556
|
+
module: 'ptb',
|
|
557
|
+
function: 'command',
|
|
558
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
559
|
+
});
|
|
560
|
+
}
|
|
561
|
+
export interface NestedArguments {
|
|
562
|
+
self: RawTransactionArgument<string>;
|
|
563
|
+
subIdx: RawTransactionArgument<number>;
|
|
564
|
+
}
|
|
565
|
+
export interface NestedOptions {
|
|
566
|
+
package?: string;
|
|
567
|
+
arguments:
|
|
568
|
+
| NestedArguments
|
|
569
|
+
| [self: RawTransactionArgument<string>, subIdx: RawTransactionArgument<number>];
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* Spawn a nested result out of a (just) `Result`. Simple result is a command
|
|
573
|
+
* output.
|
|
574
|
+
*/
|
|
575
|
+
export function nested(options: NestedOptions) {
|
|
576
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
577
|
+
const argumentsTypes = [null, 'u16'] satisfies (string | null)[];
|
|
578
|
+
const parameterNames = ['self', 'subIdx'];
|
|
579
|
+
return (tx: Transaction_1) =>
|
|
580
|
+
tx.moveCall({
|
|
581
|
+
package: packageAddress,
|
|
582
|
+
module: 'ptb',
|
|
583
|
+
function: 'nested',
|
|
584
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
585
|
+
});
|
|
586
|
+
}
|
|
587
|
+
export interface MoveCallArguments {
|
|
588
|
+
packageId: RawTransactionArgument<string>;
|
|
589
|
+
moduleName: RawTransactionArgument<string>;
|
|
590
|
+
function: RawTransactionArgument<string>;
|
|
591
|
+
arguments: RawTransactionArgument<string[]>;
|
|
592
|
+
typeArguments: RawTransactionArgument<string[]>;
|
|
593
|
+
}
|
|
594
|
+
export interface MoveCallOptions {
|
|
595
|
+
package?: string;
|
|
596
|
+
arguments:
|
|
597
|
+
| MoveCallArguments
|
|
598
|
+
| [
|
|
599
|
+
packageId: RawTransactionArgument<string>,
|
|
600
|
+
moduleName: RawTransactionArgument<string>,
|
|
601
|
+
function: RawTransactionArgument<string>,
|
|
602
|
+
arguments: RawTransactionArgument<string[]>,
|
|
603
|
+
typeArguments: RawTransactionArgument<string[]>,
|
|
604
|
+
];
|
|
605
|
+
}
|
|
606
|
+
/** Create a `MoveCall` command. */
|
|
607
|
+
export function moveCall(options: MoveCallOptions) {
|
|
608
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
609
|
+
const argumentsTypes = [
|
|
610
|
+
'0x1::string::String',
|
|
611
|
+
'0x1::string::String',
|
|
612
|
+
'0x1::string::String',
|
|
613
|
+
'vector<null>',
|
|
614
|
+
'vector<0x1::string::String>',
|
|
615
|
+
] satisfies (string | null)[];
|
|
616
|
+
const parameterNames = ['packageId', 'moduleName', 'function', 'arguments', 'typeArguments'];
|
|
617
|
+
return (tx: Transaction_1) =>
|
|
618
|
+
tx.moveCall({
|
|
619
|
+
package: packageAddress,
|
|
620
|
+
module: 'ptb',
|
|
621
|
+
function: 'move_call',
|
|
622
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
623
|
+
});
|
|
624
|
+
}
|
|
625
|
+
export interface TransferObjectsArguments {
|
|
626
|
+
objects: RawTransactionArgument<string[]>;
|
|
627
|
+
to: RawTransactionArgument<string>;
|
|
628
|
+
}
|
|
629
|
+
export interface TransferObjectsOptions {
|
|
630
|
+
package?: string;
|
|
631
|
+
arguments:
|
|
632
|
+
| TransferObjectsArguments
|
|
633
|
+
| [objects: RawTransactionArgument<string[]>, to: RawTransactionArgument<string>];
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* Create a `TransferObjects` command Expects a vector of arguments to transfer and
|
|
637
|
+
* an address value for destination.
|
|
638
|
+
*/
|
|
639
|
+
export function transferObjects(options: TransferObjectsOptions) {
|
|
640
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
641
|
+
const argumentsTypes = ['vector<null>', null] satisfies (string | null)[];
|
|
642
|
+
const parameterNames = ['objects', 'to'];
|
|
643
|
+
return (tx: Transaction_1) =>
|
|
644
|
+
tx.moveCall({
|
|
645
|
+
package: packageAddress,
|
|
646
|
+
module: 'ptb',
|
|
647
|
+
function: 'transfer_objects',
|
|
648
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
export interface SplitCoinsArguments {
|
|
652
|
+
coin: RawTransactionArgument<string>;
|
|
653
|
+
amounts: RawTransactionArgument<string[]>;
|
|
654
|
+
}
|
|
655
|
+
export interface SplitCoinsOptions {
|
|
656
|
+
package?: string;
|
|
657
|
+
arguments:
|
|
658
|
+
| SplitCoinsArguments
|
|
659
|
+
| [coin: RawTransactionArgument<string>, amounts: RawTransactionArgument<string[]>];
|
|
660
|
+
}
|
|
661
|
+
/** Create a `SplitCoins` command. */
|
|
662
|
+
export function splitCoins(options: SplitCoinsOptions) {
|
|
663
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
664
|
+
const argumentsTypes = [null, 'vector<null>'] satisfies (string | null)[];
|
|
665
|
+
const parameterNames = ['coin', 'amounts'];
|
|
666
|
+
return (tx: Transaction_1) =>
|
|
667
|
+
tx.moveCall({
|
|
668
|
+
package: packageAddress,
|
|
669
|
+
module: 'ptb',
|
|
670
|
+
function: 'split_coins',
|
|
671
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
672
|
+
});
|
|
673
|
+
}
|
|
674
|
+
export interface MergeCoinsArguments {
|
|
675
|
+
coin: RawTransactionArgument<string>;
|
|
676
|
+
coins: RawTransactionArgument<string[]>;
|
|
677
|
+
}
|
|
678
|
+
export interface MergeCoinsOptions {
|
|
679
|
+
package?: string;
|
|
680
|
+
arguments:
|
|
681
|
+
| MergeCoinsArguments
|
|
682
|
+
| [coin: RawTransactionArgument<string>, coins: RawTransactionArgument<string[]>];
|
|
683
|
+
}
|
|
684
|
+
/**
|
|
685
|
+
* Create a `MergeCoins` command. Takes a Coin Argument and a vector of other coin
|
|
686
|
+
* arguments to merge into it.
|
|
687
|
+
*/
|
|
688
|
+
export function mergeCoins(options: MergeCoinsOptions) {
|
|
689
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
690
|
+
const argumentsTypes = [null, 'vector<null>'] satisfies (string | null)[];
|
|
691
|
+
const parameterNames = ['coin', 'coins'];
|
|
692
|
+
return (tx: Transaction_1) =>
|
|
693
|
+
tx.moveCall({
|
|
694
|
+
package: packageAddress,
|
|
695
|
+
module: 'ptb',
|
|
696
|
+
function: 'merge_coins',
|
|
697
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
export interface PublishArguments {
|
|
701
|
+
modulesBytes: RawTransactionArgument<number[][]>;
|
|
702
|
+
dependencies: RawTransactionArgument<string[]>;
|
|
703
|
+
}
|
|
704
|
+
export interface PublishOptions {
|
|
705
|
+
package?: string;
|
|
706
|
+
arguments:
|
|
707
|
+
| PublishArguments
|
|
708
|
+
| [
|
|
709
|
+
modulesBytes: RawTransactionArgument<number[][]>,
|
|
710
|
+
dependencies: RawTransactionArgument<string[]>,
|
|
711
|
+
];
|
|
712
|
+
}
|
|
713
|
+
/**
|
|
714
|
+
* Create a `Publish` command. Takes a vector of modules' bytes and a vector of
|
|
715
|
+
* dependencies.
|
|
716
|
+
*/
|
|
717
|
+
export function publish(options: PublishOptions) {
|
|
718
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
719
|
+
const argumentsTypes = ['vector<vector<u8>>', 'vector<0x2::object::ID>'] satisfies (
|
|
720
|
+
| string
|
|
721
|
+
| null
|
|
722
|
+
)[];
|
|
723
|
+
const parameterNames = ['modulesBytes', 'dependencies'];
|
|
724
|
+
return (tx: Transaction_1) =>
|
|
725
|
+
tx.moveCall({
|
|
726
|
+
package: packageAddress,
|
|
727
|
+
module: 'ptb',
|
|
728
|
+
function: 'publish',
|
|
729
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
730
|
+
});
|
|
731
|
+
}
|
|
732
|
+
export interface MakeMoveVecArguments {
|
|
733
|
+
elementType: RawTransactionArgument<string | null>;
|
|
734
|
+
elements: RawTransactionArgument<string[]>;
|
|
735
|
+
}
|
|
736
|
+
export interface MakeMoveVecOptions {
|
|
737
|
+
package?: string;
|
|
738
|
+
arguments:
|
|
739
|
+
| MakeMoveVecArguments
|
|
740
|
+
| [
|
|
741
|
+
elementType: RawTransactionArgument<string | null>,
|
|
742
|
+
elements: RawTransactionArgument<string[]>,
|
|
743
|
+
];
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* Create a `MakeMoveVec` command. Takes an optional element type and a vector of
|
|
747
|
+
* elements to make into a vector.
|
|
748
|
+
*/
|
|
749
|
+
export function makeMoveVec(options: MakeMoveVecOptions) {
|
|
750
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
751
|
+
const argumentsTypes = ['0x1::option::Option<0x1::string::String>', 'vector<null>'] satisfies (
|
|
752
|
+
| string
|
|
753
|
+
| null
|
|
754
|
+
)[];
|
|
755
|
+
const parameterNames = ['elementType', 'elements'];
|
|
756
|
+
return (tx: Transaction_1) =>
|
|
757
|
+
tx.moveCall({
|
|
758
|
+
package: packageAddress,
|
|
759
|
+
module: 'ptb',
|
|
760
|
+
function: 'make_move_vec',
|
|
761
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
762
|
+
});
|
|
763
|
+
}
|
|
764
|
+
export interface UpgradeArguments {
|
|
765
|
+
modulesBytes: RawTransactionArgument<number[][]>;
|
|
766
|
+
dependencies: RawTransactionArgument<string[]>;
|
|
767
|
+
objectId: RawTransactionArgument<string>;
|
|
768
|
+
upgradeTicket: RawTransactionArgument<string>;
|
|
769
|
+
}
|
|
770
|
+
export interface UpgradeOptions {
|
|
771
|
+
package?: string;
|
|
772
|
+
arguments:
|
|
773
|
+
| UpgradeArguments
|
|
774
|
+
| [
|
|
775
|
+
modulesBytes: RawTransactionArgument<number[][]>,
|
|
776
|
+
dependencies: RawTransactionArgument<string[]>,
|
|
777
|
+
objectId: RawTransactionArgument<string>,
|
|
778
|
+
upgradeTicket: RawTransactionArgument<string>,
|
|
779
|
+
];
|
|
780
|
+
}
|
|
781
|
+
/**
|
|
782
|
+
* Create a `Upgrade` command. Takes a vector of modules' bytes, a vector of
|
|
783
|
+
* dependencies, an updated package ID, and an upgrade ticket.
|
|
784
|
+
*/
|
|
785
|
+
export function upgrade(options: UpgradeOptions) {
|
|
786
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
787
|
+
const argumentsTypes = [
|
|
788
|
+
'vector<vector<u8>>',
|
|
789
|
+
'vector<0x2::object::ID>',
|
|
790
|
+
'0x2::object::ID',
|
|
791
|
+
null,
|
|
792
|
+
] satisfies (string | null)[];
|
|
793
|
+
const parameterNames = ['modulesBytes', 'dependencies', 'objectId', 'upgradeTicket'];
|
|
794
|
+
return (tx: Transaction_1) =>
|
|
795
|
+
tx.moveCall({
|
|
796
|
+
package: packageAddress,
|
|
797
|
+
module: 'ptb',
|
|
798
|
+
function: 'upgrade',
|
|
799
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
800
|
+
});
|
|
801
|
+
}
|
|
802
|
+
export interface ExtArguments {
|
|
803
|
+
data: RawTransactionArgument<number[]>;
|
|
804
|
+
}
|
|
805
|
+
export interface ExtOptions {
|
|
806
|
+
package?: string;
|
|
807
|
+
arguments: ExtArguments | [data: RawTransactionArgument<number[]>];
|
|
808
|
+
}
|
|
809
|
+
/** Create an `Ext` command. */
|
|
810
|
+
export function ext(options: ExtOptions) {
|
|
811
|
+
const packageAddress = options.package ?? '@mysten/ptb';
|
|
812
|
+
const argumentsTypes = ['vector<u8>'] satisfies (string | null)[];
|
|
813
|
+
const parameterNames = ['data'];
|
|
814
|
+
return (tx: Transaction_1) =>
|
|
815
|
+
tx.moveCall({
|
|
816
|
+
package: packageAddress,
|
|
817
|
+
module: 'ptb',
|
|
818
|
+
function: 'ext',
|
|
819
|
+
arguments: normalizeMoveArguments(options.arguments, argumentsTypes, parameterNames),
|
|
820
|
+
});
|
|
821
|
+
}
|