@typemove/aptos 2.0.0 → 2.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.
Files changed (73) hide show
  1. package/dist/esm/account-resource-client.d.ts +28 -0
  2. package/dist/esm/account-resource-client.d.ts.map +1 -0
  3. package/dist/esm/account-resource-client.js +47 -0
  4. package/dist/esm/account-resource-client.js.map +1 -0
  5. package/dist/esm/aptos-chain-adapter.d.ts +16 -0
  6. package/dist/esm/aptos-chain-adapter.d.ts.map +1 -0
  7. package/dist/esm/aptos-chain-adapter.js +104 -0
  8. package/dist/esm/aptos-chain-adapter.js.map +1 -0
  9. package/dist/esm/builtin/0x1.d.ts +7522 -0
  10. package/dist/esm/builtin/0x1.d.ts.map +1 -0
  11. package/dist/esm/builtin/0x1.js +11632 -0
  12. package/dist/esm/builtin/0x1.js.map +1 -0
  13. package/dist/esm/builtin/0x3.d.ts +1087 -0
  14. package/dist/esm/builtin/0x3.d.ts.map +1 -0
  15. package/dist/esm/builtin/0x3.js +926 -0
  16. package/dist/esm/builtin/0x3.js.map +1 -0
  17. package/dist/esm/builtin/0x4.d.ts +535 -0
  18. package/dist/esm/builtin/0x4.d.ts.map +1 -0
  19. package/dist/esm/builtin/0x4.js +884 -0
  20. package/dist/esm/builtin/0x4.js.map +1 -0
  21. package/dist/esm/builtin/index.d.ts +4 -0
  22. package/dist/esm/builtin/index.d.ts.map +1 -0
  23. package/dist/esm/builtin/index.js +7 -0
  24. package/dist/esm/builtin/index.js.map +1 -0
  25. package/dist/esm/codegen/codegen.d.ts +18 -0
  26. package/dist/esm/codegen/codegen.d.ts.map +1 -0
  27. package/dist/esm/codegen/codegen.js +161 -0
  28. package/dist/esm/codegen/codegen.js.map +1 -0
  29. package/dist/esm/codegen/index.d.ts +2 -0
  30. package/dist/esm/codegen/index.d.ts.map +1 -0
  31. package/dist/esm/codegen/index.js +2 -0
  32. package/dist/esm/codegen/index.js.map +1 -0
  33. package/dist/esm/codegen/run.d.ts +3 -0
  34. package/dist/esm/codegen/run.d.ts.map +1 -0
  35. package/dist/esm/codegen/run.js.map +1 -0
  36. package/dist/esm/coder-helpers.d.ts +6 -0
  37. package/dist/esm/coder-helpers.d.ts.map +1 -0
  38. package/dist/esm/coder-helpers.js +8 -0
  39. package/dist/esm/coder-helpers.js.map +1 -0
  40. package/dist/esm/index.d.ts +5 -0
  41. package/dist/esm/index.d.ts.map +1 -0
  42. package/dist/esm/index.js +5 -0
  43. package/dist/esm/index.js.map +1 -0
  44. package/dist/esm/models.d.ts +12 -0
  45. package/dist/esm/models.d.ts.map +1 -0
  46. package/dist/esm/models.js +2 -0
  47. package/dist/esm/models.js.map +1 -0
  48. package/dist/esm/move-coder.d.ts +17 -0
  49. package/dist/esm/move-coder.d.ts.map +1 -0
  50. package/dist/esm/move-coder.js +97 -0
  51. package/dist/esm/move-coder.js.map +1 -0
  52. package/dist/esm/to-internal.d.ts +7 -0
  53. package/dist/esm/to-internal.d.ts.map +1 -0
  54. package/dist/esm/to-internal.js +55 -0
  55. package/dist/esm/to-internal.js.map +1 -0
  56. package/package.json +6 -6
  57. package/src/abis/0x1.json +43414 -0
  58. package/src/abis/0x3.json +3976 -0
  59. package/src/abis/0x4.json +2844 -0
  60. package/src/account-resource-client.ts +69 -0
  61. package/src/aptos-chain-adapter.ts +132 -0
  62. package/src/builtin/0x1.ts +19976 -0
  63. package/src/builtin/0x3.ts +2083 -0
  64. package/src/builtin/0x4.ts +1503 -0
  65. package/src/builtin/index.ts +6 -0
  66. package/src/codegen/codegen.ts +190 -0
  67. package/src/codegen/index.ts +1 -0
  68. package/src/codegen/run.ts +67 -0
  69. package/src/coder-helpers.ts +15 -0
  70. package/src/index.ts +4 -0
  71. package/src/models.ts +23 -0
  72. package/src/move-coder.ts +124 -0
  73. package/src/to-internal.ts +71 -0
@@ -0,0 +1,1503 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+
5
+ /* Generated types for 0x4, original address 0x4 */
6
+
7
+ import { TypeDescriptor, ANY_TYPE } from "@typemove/move";
8
+ import { MoveCoder, TypedEventInstance } from "@typemove/aptos";
9
+
10
+ import { defaultMoveCoder } from "@typemove/aptos";
11
+
12
+ import {
13
+ Aptos,
14
+ Account as AptosAccount,
15
+ MoveAddressType,
16
+ PendingTransactionResponse,
17
+ InputGenerateTransactionOptions,
18
+ MoveStructId,
19
+ InputViewFunctionData,
20
+ InputViewFunctionJsonData,
21
+ } from "@aptos-labs/ts-sdk";
22
+
23
+ import * as _0x1 from "./0x1.js";
24
+
25
+ export namespace token {
26
+ export interface BurnRef {
27
+ inner: _0x1.option.Option<_0x1.object$.DeleteRef>;
28
+ self: _0x1.option.Option<MoveAddressType>;
29
+ }
30
+
31
+ export namespace BurnRef {
32
+ export const TYPE_QNAME = "0x4::token::BurnRef";
33
+
34
+ const TYPE = new TypeDescriptor<BurnRef>(BurnRef.TYPE_QNAME);
35
+
36
+ export function type(): TypeDescriptor<BurnRef> {
37
+ return TYPE.apply();
38
+ }
39
+ }
40
+
41
+ export type BurnRefInstance = TypedEventInstance<BurnRef> & {
42
+ data_decoded: BurnRef;
43
+ type_arguments: [];
44
+ };
45
+
46
+ export interface MutatorRef {
47
+ self: MoveAddressType;
48
+ }
49
+
50
+ export namespace MutatorRef {
51
+ export const TYPE_QNAME = "0x4::token::MutatorRef";
52
+
53
+ const TYPE = new TypeDescriptor<MutatorRef>(MutatorRef.TYPE_QNAME);
54
+
55
+ export function type(): TypeDescriptor<MutatorRef> {
56
+ return TYPE.apply();
57
+ }
58
+ }
59
+
60
+ export type MutatorRefInstance = TypedEventInstance<MutatorRef> & {
61
+ data_decoded: MutatorRef;
62
+ type_arguments: [];
63
+ };
64
+
65
+ export interface Mutation {
66
+ token_address: MoveAddressType;
67
+ mutated_field_name: string;
68
+ old_value: string;
69
+ new_value: string;
70
+ }
71
+
72
+ export namespace Mutation {
73
+ export const TYPE_QNAME = "0x4::token::Mutation";
74
+
75
+ const TYPE = new TypeDescriptor<Mutation>(Mutation.TYPE_QNAME);
76
+
77
+ export function type(): TypeDescriptor<Mutation> {
78
+ return TYPE.apply();
79
+ }
80
+ }
81
+
82
+ export type MutationInstance = TypedEventInstance<Mutation> & {
83
+ data_decoded: Mutation;
84
+ type_arguments: [];
85
+ };
86
+
87
+ export interface MutationEvent {
88
+ mutated_field_name: string;
89
+ old_value: string;
90
+ new_value: string;
91
+ }
92
+
93
+ export namespace MutationEvent {
94
+ export const TYPE_QNAME = "0x4::token::MutationEvent";
95
+
96
+ const TYPE = new TypeDescriptor<MutationEvent>(MutationEvent.TYPE_QNAME);
97
+
98
+ export function type(): TypeDescriptor<MutationEvent> {
99
+ return TYPE.apply();
100
+ }
101
+ }
102
+
103
+ export type MutationEventInstance = TypedEventInstance<MutationEvent> & {
104
+ data_decoded: MutationEvent;
105
+ type_arguments: [];
106
+ };
107
+
108
+ export interface ConcurrentTokenIdentifiers {
109
+ index: _0x1.aggregator_v2.AggregatorSnapshot<bigint>;
110
+ name: _0x1.aggregator_v2.AggregatorSnapshot<string>;
111
+ }
112
+
113
+ export namespace ConcurrentTokenIdentifiers {
114
+ export const TYPE_QNAME = "0x4::token::ConcurrentTokenIdentifiers";
115
+
116
+ const TYPE = new TypeDescriptor<ConcurrentTokenIdentifiers>(
117
+ ConcurrentTokenIdentifiers.TYPE_QNAME,
118
+ );
119
+
120
+ export function type(): TypeDescriptor<ConcurrentTokenIdentifiers> {
121
+ return TYPE.apply();
122
+ }
123
+ }
124
+
125
+ export interface Token {
126
+ collection: _0x1.object$.Object<collection.Collection>;
127
+ index: bigint;
128
+ description: string;
129
+ name: string;
130
+ uri: string;
131
+ mutation_events: _0x1.event.EventHandle<token.MutationEvent>;
132
+ }
133
+
134
+ export namespace Token {
135
+ export const TYPE_QNAME = "0x4::token::Token";
136
+
137
+ const TYPE = new TypeDescriptor<Token>(Token.TYPE_QNAME);
138
+
139
+ export function type(): TypeDescriptor<Token> {
140
+ return TYPE.apply();
141
+ }
142
+ }
143
+
144
+ export interface TokenIdentifiers {
145
+ index: _0x1.aggregator_v2.AggregatorSnapshot<bigint>;
146
+ name: _0x1.aggregator_v2.DerivedStringSnapshot;
147
+ }
148
+
149
+ export namespace TokenIdentifiers {
150
+ export const TYPE_QNAME = "0x4::token::TokenIdentifiers";
151
+
152
+ const TYPE = new TypeDescriptor<TokenIdentifiers>(
153
+ TokenIdentifiers.TYPE_QNAME,
154
+ );
155
+
156
+ export function type(): TypeDescriptor<TokenIdentifiers> {
157
+ return TYPE.apply();
158
+ }
159
+ }
160
+
161
+ export namespace entry {}
162
+ export namespace view {
163
+ export async function royalty<T0 = any>(
164
+ client: Aptos,
165
+ request: {
166
+ typeArguments: [MoveStructId];
167
+ functionArguments: [_0x1.object$.Object<T0>];
168
+ },
169
+ version?: bigint,
170
+ ): Promise<[_0x1.option.Option<royalty.Royalty>]> {
171
+ const coder = defaultMoveCoder(client.config);
172
+ const data: InputViewFunctionData = {
173
+ function: "0x4::token::royalty",
174
+ functionArguments: coder.encodeArray(request.functionArguments),
175
+ typeArguments: request.typeArguments,
176
+ };
177
+ const res = await client.view({
178
+ payload: data,
179
+ options: { ledgerVersion: version },
180
+ });
181
+ const type = await coder.getMoveFunction("0x4::token::royalty");
182
+ return (await coder.decodeArray(res, type.return)) as any;
183
+ }
184
+ export async function index<T0 = any>(
185
+ client: Aptos,
186
+ request: {
187
+ typeArguments: [MoveStructId];
188
+ functionArguments: [_0x1.object$.Object<T0>];
189
+ },
190
+ version?: bigint,
191
+ ): Promise<[bigint]> {
192
+ const coder = defaultMoveCoder(client.config);
193
+ const data: InputViewFunctionData = {
194
+ function: "0x4::token::index",
195
+ functionArguments: coder.encodeArray(request.functionArguments),
196
+ typeArguments: request.typeArguments,
197
+ };
198
+ const res = await client.view({
199
+ payload: data,
200
+ options: { ledgerVersion: version },
201
+ });
202
+ const type = await coder.getMoveFunction("0x4::token::index");
203
+ return (await coder.decodeArray(res, type.return)) as any;
204
+ }
205
+
206
+ export async function creator<T0 = any>(
207
+ client: Aptos,
208
+ request: {
209
+ typeArguments: [MoveStructId];
210
+ functionArguments: [_0x1.object$.Object<T0>];
211
+ },
212
+ version?: bigint,
213
+ ): Promise<[MoveAddressType]> {
214
+ const coder = defaultMoveCoder(client.config);
215
+ const data: InputViewFunctionData = {
216
+ function: "0x4::token::creator",
217
+ functionArguments: coder.encodeArray(request.functionArguments),
218
+ typeArguments: request.typeArguments,
219
+ };
220
+ const res = await client.view({
221
+ payload: data,
222
+ options: { ledgerVersion: version },
223
+ });
224
+ const type = await coder.getMoveFunction("0x4::token::creator");
225
+ return (await coder.decodeArray(res, type.return)) as any;
226
+ }
227
+ export async function name<T0 = any>(
228
+ client: Aptos,
229
+ request: {
230
+ typeArguments: [MoveStructId];
231
+ functionArguments: [_0x1.object$.Object<T0>];
232
+ },
233
+ version?: bigint,
234
+ ): Promise<[string]> {
235
+ const coder = defaultMoveCoder(client.config);
236
+ const data: InputViewFunctionData = {
237
+ function: "0x4::token::name",
238
+ functionArguments: coder.encodeArray(request.functionArguments),
239
+ typeArguments: request.typeArguments,
240
+ };
241
+ const res = await client.view({
242
+ payload: data,
243
+ options: { ledgerVersion: version },
244
+ });
245
+ const type = await coder.getMoveFunction("0x4::token::name");
246
+ return (await coder.decodeArray(res, type.return)) as any;
247
+ }
248
+
249
+ export async function description<T0 = any>(
250
+ client: Aptos,
251
+ request: {
252
+ typeArguments: [MoveStructId];
253
+ functionArguments: [_0x1.object$.Object<T0>];
254
+ },
255
+ version?: bigint,
256
+ ): Promise<[string]> {
257
+ const coder = defaultMoveCoder(client.config);
258
+ const data: InputViewFunctionData = {
259
+ function: "0x4::token::description",
260
+ functionArguments: coder.encodeArray(request.functionArguments),
261
+ typeArguments: request.typeArguments,
262
+ };
263
+ const res = await client.view({
264
+ payload: data,
265
+ options: { ledgerVersion: version },
266
+ });
267
+ const type = await coder.getMoveFunction("0x4::token::description");
268
+ return (await coder.decodeArray(res, type.return)) as any;
269
+ }
270
+ export async function uri<T0 = any>(
271
+ client: Aptos,
272
+ request: {
273
+ typeArguments: [MoveStructId];
274
+ functionArguments: [_0x1.object$.Object<T0>];
275
+ },
276
+ version?: bigint,
277
+ ): Promise<[string]> {
278
+ const coder = defaultMoveCoder(client.config);
279
+ const data: InputViewFunctionData = {
280
+ function: "0x4::token::uri",
281
+ functionArguments: coder.encodeArray(request.functionArguments),
282
+ typeArguments: request.typeArguments,
283
+ };
284
+ const res = await client.view({
285
+ payload: data,
286
+ options: { ledgerVersion: version },
287
+ });
288
+ const type = await coder.getMoveFunction("0x4::token::uri");
289
+ return (await coder.decodeArray(res, type.return)) as any;
290
+ }
291
+
292
+ export async function collectionName<T0 = any>(
293
+ client: Aptos,
294
+ request: {
295
+ typeArguments: [MoveStructId];
296
+ functionArguments: [_0x1.object$.Object<T0>];
297
+ },
298
+ version?: bigint,
299
+ ): Promise<[string]> {
300
+ const coder = defaultMoveCoder(client.config);
301
+ const data: InputViewFunctionData = {
302
+ function: "0x4::token::collection_name",
303
+ functionArguments: coder.encodeArray(request.functionArguments),
304
+ typeArguments: request.typeArguments,
305
+ };
306
+ const res = await client.view({
307
+ payload: data,
308
+ options: { ledgerVersion: version },
309
+ });
310
+ const type = await coder.getMoveFunction("0x4::token::collection_name");
311
+ return (await coder.decodeArray(res, type.return)) as any;
312
+ }
313
+ export async function collectionObject<T0 = any>(
314
+ client: Aptos,
315
+ request: {
316
+ typeArguments: [MoveStructId];
317
+ functionArguments: [_0x1.object$.Object<T0>];
318
+ },
319
+ version?: bigint,
320
+ ): Promise<[_0x1.object$.Object<collection.Collection>]> {
321
+ const coder = defaultMoveCoder(client.config);
322
+ const data: InputViewFunctionData = {
323
+ function: "0x4::token::collection_object",
324
+ functionArguments: coder.encodeArray(request.functionArguments),
325
+ typeArguments: request.typeArguments,
326
+ };
327
+ const res = await client.view({
328
+ payload: data,
329
+ options: { ledgerVersion: version },
330
+ });
331
+ const type = await coder.getMoveFunction("0x4::token::collection_object");
332
+ return (await coder.decodeArray(res, type.return)) as any;
333
+ }
334
+
335
+ export async function createTokenAddressWithSeed(
336
+ client: Aptos,
337
+ request: {
338
+ functionArguments: [MoveAddressType, string, string, string];
339
+ },
340
+ version?: bigint,
341
+ ): Promise<[MoveAddressType]> {
342
+ const coder = defaultMoveCoder(client.config);
343
+ const data: InputViewFunctionData = {
344
+ function: "0x4::token::create_token_address_with_seed",
345
+ functionArguments: coder.encodeArray(request.functionArguments),
346
+ typeArguments: [],
347
+ };
348
+ const res = await client.view({
349
+ payload: data,
350
+ options: { ledgerVersion: version },
351
+ });
352
+ const type = await coder.getMoveFunction(
353
+ "0x4::token::create_token_address_with_seed",
354
+ );
355
+ return (await coder.decodeArray(res, type.return)) as any;
356
+ }
357
+ }
358
+ }
359
+
360
+ export namespace royalty {
361
+ export interface MutatorRef {
362
+ inner: _0x1.object$.ExtendRef;
363
+ }
364
+
365
+ export namespace MutatorRef {
366
+ export const TYPE_QNAME = "0x4::royalty::MutatorRef";
367
+
368
+ const TYPE = new TypeDescriptor<MutatorRef>(MutatorRef.TYPE_QNAME);
369
+
370
+ export function type(): TypeDescriptor<MutatorRef> {
371
+ return TYPE.apply();
372
+ }
373
+ }
374
+
375
+ export type MutatorRefInstance = TypedEventInstance<MutatorRef> & {
376
+ data_decoded: MutatorRef;
377
+ type_arguments: [];
378
+ };
379
+
380
+ export interface Royalty {
381
+ numerator: bigint;
382
+ denominator: bigint;
383
+ payee_address: MoveAddressType;
384
+ }
385
+
386
+ export namespace Royalty {
387
+ export const TYPE_QNAME = "0x4::royalty::Royalty";
388
+
389
+ const TYPE = new TypeDescriptor<Royalty>(Royalty.TYPE_QNAME);
390
+
391
+ export function type(): TypeDescriptor<Royalty> {
392
+ return TYPE.apply();
393
+ }
394
+ }
395
+
396
+ export namespace entry {}
397
+ export namespace view {}
398
+ }
399
+
400
+ export namespace collection {
401
+ export interface ConcurrentSupply {
402
+ current_supply: _0x1.aggregator_v2.Aggregator<bigint>;
403
+ total_minted: _0x1.aggregator_v2.Aggregator<bigint>;
404
+ }
405
+
406
+ export namespace ConcurrentSupply {
407
+ export const TYPE_QNAME = "0x4::collection::ConcurrentSupply";
408
+
409
+ const TYPE = new TypeDescriptor<ConcurrentSupply>(
410
+ ConcurrentSupply.TYPE_QNAME,
411
+ );
412
+
413
+ export function type(): TypeDescriptor<ConcurrentSupply> {
414
+ return TYPE.apply();
415
+ }
416
+ }
417
+
418
+ export interface MutatorRef {
419
+ self: MoveAddressType;
420
+ }
421
+
422
+ export namespace MutatorRef {
423
+ export const TYPE_QNAME = "0x4::collection::MutatorRef";
424
+
425
+ const TYPE = new TypeDescriptor<MutatorRef>(MutatorRef.TYPE_QNAME);
426
+
427
+ export function type(): TypeDescriptor<MutatorRef> {
428
+ return TYPE.apply();
429
+ }
430
+ }
431
+
432
+ export type MutatorRefInstance = TypedEventInstance<MutatorRef> & {
433
+ data_decoded: MutatorRef;
434
+ type_arguments: [];
435
+ };
436
+
437
+ export interface Burn {
438
+ collection: MoveAddressType;
439
+ index: bigint;
440
+ token: MoveAddressType;
441
+ previous_owner: MoveAddressType;
442
+ }
443
+
444
+ export namespace Burn {
445
+ export const TYPE_QNAME = "0x4::collection::Burn";
446
+
447
+ const TYPE = new TypeDescriptor<Burn>(Burn.TYPE_QNAME);
448
+
449
+ export function type(): TypeDescriptor<Burn> {
450
+ return TYPE.apply();
451
+ }
452
+ }
453
+
454
+ export type BurnInstance = TypedEventInstance<Burn> & {
455
+ data_decoded: Burn;
456
+ type_arguments: [];
457
+ };
458
+
459
+ export interface BurnEvent {
460
+ index: bigint;
461
+ token: MoveAddressType;
462
+ }
463
+
464
+ export namespace BurnEvent {
465
+ export const TYPE_QNAME = "0x4::collection::BurnEvent";
466
+
467
+ const TYPE = new TypeDescriptor<BurnEvent>(BurnEvent.TYPE_QNAME);
468
+
469
+ export function type(): TypeDescriptor<BurnEvent> {
470
+ return TYPE.apply();
471
+ }
472
+ }
473
+
474
+ export type BurnEventInstance = TypedEventInstance<BurnEvent> & {
475
+ data_decoded: BurnEvent;
476
+ type_arguments: [];
477
+ };
478
+
479
+ export interface Collection {
480
+ creator: MoveAddressType;
481
+ description: string;
482
+ name: string;
483
+ uri: string;
484
+ mutation_events: _0x1.event.EventHandle<collection.MutationEvent>;
485
+ }
486
+
487
+ export namespace Collection {
488
+ export const TYPE_QNAME = "0x4::collection::Collection";
489
+
490
+ const TYPE = new TypeDescriptor<Collection>(Collection.TYPE_QNAME);
491
+
492
+ export function type(): TypeDescriptor<Collection> {
493
+ return TYPE.apply();
494
+ }
495
+ }
496
+
497
+ export interface ConcurrentBurnEvent {
498
+ collection_addr: MoveAddressType;
499
+ index: bigint;
500
+ token: MoveAddressType;
501
+ }
502
+
503
+ export namespace ConcurrentBurnEvent {
504
+ export const TYPE_QNAME = "0x4::collection::ConcurrentBurnEvent";
505
+
506
+ const TYPE = new TypeDescriptor<ConcurrentBurnEvent>(
507
+ ConcurrentBurnEvent.TYPE_QNAME,
508
+ );
509
+
510
+ export function type(): TypeDescriptor<ConcurrentBurnEvent> {
511
+ return TYPE.apply();
512
+ }
513
+ }
514
+
515
+ export type ConcurrentBurnEventInstance =
516
+ TypedEventInstance<ConcurrentBurnEvent> & {
517
+ data_decoded: ConcurrentBurnEvent;
518
+ type_arguments: [];
519
+ };
520
+
521
+ export interface ConcurrentMintEvent {
522
+ collection_addr: MoveAddressType;
523
+ index: _0x1.aggregator_v2.AggregatorSnapshot<bigint>;
524
+ token: MoveAddressType;
525
+ }
526
+
527
+ export namespace ConcurrentMintEvent {
528
+ export const TYPE_QNAME = "0x4::collection::ConcurrentMintEvent";
529
+
530
+ const TYPE = new TypeDescriptor<ConcurrentMintEvent>(
531
+ ConcurrentMintEvent.TYPE_QNAME,
532
+ );
533
+
534
+ export function type(): TypeDescriptor<ConcurrentMintEvent> {
535
+ return TYPE.apply();
536
+ }
537
+ }
538
+
539
+ export type ConcurrentMintEventInstance =
540
+ TypedEventInstance<ConcurrentMintEvent> & {
541
+ data_decoded: ConcurrentMintEvent;
542
+ type_arguments: [];
543
+ };
544
+
545
+ export interface FixedSupply {
546
+ current_supply: bigint;
547
+ max_supply: bigint;
548
+ total_minted: bigint;
549
+ burn_events: _0x1.event.EventHandle<collection.BurnEvent>;
550
+ mint_events: _0x1.event.EventHandle<collection.MintEvent>;
551
+ }
552
+
553
+ export namespace FixedSupply {
554
+ export const TYPE_QNAME = "0x4::collection::FixedSupply";
555
+
556
+ const TYPE = new TypeDescriptor<FixedSupply>(FixedSupply.TYPE_QNAME);
557
+
558
+ export function type(): TypeDescriptor<FixedSupply> {
559
+ return TYPE.apply();
560
+ }
561
+ }
562
+
563
+ export interface Mint {
564
+ collection: MoveAddressType;
565
+ index: _0x1.aggregator_v2.AggregatorSnapshot<bigint>;
566
+ token: MoveAddressType;
567
+ }
568
+
569
+ export namespace Mint {
570
+ export const TYPE_QNAME = "0x4::collection::Mint";
571
+
572
+ const TYPE = new TypeDescriptor<Mint>(Mint.TYPE_QNAME);
573
+
574
+ export function type(): TypeDescriptor<Mint> {
575
+ return TYPE.apply();
576
+ }
577
+ }
578
+
579
+ export type MintInstance = TypedEventInstance<Mint> & {
580
+ data_decoded: Mint;
581
+ type_arguments: [];
582
+ };
583
+
584
+ export interface MintEvent {
585
+ index: bigint;
586
+ token: MoveAddressType;
587
+ }
588
+
589
+ export namespace MintEvent {
590
+ export const TYPE_QNAME = "0x4::collection::MintEvent";
591
+
592
+ const TYPE = new TypeDescriptor<MintEvent>(MintEvent.TYPE_QNAME);
593
+
594
+ export function type(): TypeDescriptor<MintEvent> {
595
+ return TYPE.apply();
596
+ }
597
+ }
598
+
599
+ export type MintEventInstance = TypedEventInstance<MintEvent> & {
600
+ data_decoded: MintEvent;
601
+ type_arguments: [];
602
+ };
603
+
604
+ export interface Mutation {
605
+ mutated_field_name: string;
606
+ collection: _0x1.object$.Object<collection.Collection>;
607
+ old_value: string;
608
+ new_value: string;
609
+ }
610
+
611
+ export namespace Mutation {
612
+ export const TYPE_QNAME = "0x4::collection::Mutation";
613
+
614
+ const TYPE = new TypeDescriptor<Mutation>(Mutation.TYPE_QNAME);
615
+
616
+ export function type(): TypeDescriptor<Mutation> {
617
+ return TYPE.apply();
618
+ }
619
+ }
620
+
621
+ export type MutationInstance = TypedEventInstance<Mutation> & {
622
+ data_decoded: Mutation;
623
+ type_arguments: [];
624
+ };
625
+
626
+ export interface MutationEvent {
627
+ mutated_field_name: string;
628
+ }
629
+
630
+ export namespace MutationEvent {
631
+ export const TYPE_QNAME = "0x4::collection::MutationEvent";
632
+
633
+ const TYPE = new TypeDescriptor<MutationEvent>(MutationEvent.TYPE_QNAME);
634
+
635
+ export function type(): TypeDescriptor<MutationEvent> {
636
+ return TYPE.apply();
637
+ }
638
+ }
639
+
640
+ export type MutationEventInstance = TypedEventInstance<MutationEvent> & {
641
+ data_decoded: MutationEvent;
642
+ type_arguments: [];
643
+ };
644
+
645
+ export interface SetMaxSupply {
646
+ collection: _0x1.object$.Object<collection.Collection>;
647
+ old_max_supply: bigint;
648
+ new_max_supply: bigint;
649
+ }
650
+
651
+ export namespace SetMaxSupply {
652
+ export const TYPE_QNAME = "0x4::collection::SetMaxSupply";
653
+
654
+ const TYPE = new TypeDescriptor<SetMaxSupply>(SetMaxSupply.TYPE_QNAME);
655
+
656
+ export function type(): TypeDescriptor<SetMaxSupply> {
657
+ return TYPE.apply();
658
+ }
659
+ }
660
+
661
+ export type SetMaxSupplyInstance = TypedEventInstance<SetMaxSupply> & {
662
+ data_decoded: SetMaxSupply;
663
+ type_arguments: [];
664
+ };
665
+
666
+ export interface UnlimitedSupply {
667
+ current_supply: bigint;
668
+ total_minted: bigint;
669
+ burn_events: _0x1.event.EventHandle<collection.BurnEvent>;
670
+ mint_events: _0x1.event.EventHandle<collection.MintEvent>;
671
+ }
672
+
673
+ export namespace UnlimitedSupply {
674
+ export const TYPE_QNAME = "0x4::collection::UnlimitedSupply";
675
+
676
+ const TYPE = new TypeDescriptor<UnlimitedSupply>(
677
+ UnlimitedSupply.TYPE_QNAME,
678
+ );
679
+
680
+ export function type(): TypeDescriptor<UnlimitedSupply> {
681
+ return TYPE.apply();
682
+ }
683
+ }
684
+
685
+ export namespace entry {}
686
+ export namespace view {
687
+ export async function count<T0 = any>(
688
+ client: Aptos,
689
+ request: {
690
+ typeArguments: [MoveStructId];
691
+ functionArguments: [_0x1.object$.Object<T0>];
692
+ },
693
+ version?: bigint,
694
+ ): Promise<[_0x1.option.Option<bigint>]> {
695
+ const coder = defaultMoveCoder(client.config);
696
+ const data: InputViewFunctionData = {
697
+ function: "0x4::collection::count",
698
+ functionArguments: coder.encodeArray(request.functionArguments),
699
+ typeArguments: request.typeArguments,
700
+ };
701
+ const res = await client.view({
702
+ payload: data,
703
+ options: { ledgerVersion: version },
704
+ });
705
+ const type = await coder.getMoveFunction("0x4::collection::count");
706
+ return (await coder.decodeArray(res, type.return)) as any;
707
+ }
708
+ export async function creator<T0 = any>(
709
+ client: Aptos,
710
+ request: {
711
+ typeArguments: [MoveStructId];
712
+ functionArguments: [_0x1.object$.Object<T0>];
713
+ },
714
+ version?: bigint,
715
+ ): Promise<[MoveAddressType]> {
716
+ const coder = defaultMoveCoder(client.config);
717
+ const data: InputViewFunctionData = {
718
+ function: "0x4::collection::creator",
719
+ functionArguments: coder.encodeArray(request.functionArguments),
720
+ typeArguments: request.typeArguments,
721
+ };
722
+ const res = await client.view({
723
+ payload: data,
724
+ options: { ledgerVersion: version },
725
+ });
726
+ const type = await coder.getMoveFunction("0x4::collection::creator");
727
+ return (await coder.decodeArray(res, type.return)) as any;
728
+ }
729
+ export async function name<T0 = any>(
730
+ client: Aptos,
731
+ request: {
732
+ typeArguments: [MoveStructId];
733
+ functionArguments: [_0x1.object$.Object<T0>];
734
+ },
735
+ version?: bigint,
736
+ ): Promise<[string]> {
737
+ const coder = defaultMoveCoder(client.config);
738
+ const data: InputViewFunctionData = {
739
+ function: "0x4::collection::name",
740
+ functionArguments: coder.encodeArray(request.functionArguments),
741
+ typeArguments: request.typeArguments,
742
+ };
743
+ const res = await client.view({
744
+ payload: data,
745
+ options: { ledgerVersion: version },
746
+ });
747
+ const type = await coder.getMoveFunction("0x4::collection::name");
748
+ return (await coder.decodeArray(res, type.return)) as any;
749
+ }
750
+
751
+ export async function description<T0 = any>(
752
+ client: Aptos,
753
+ request: {
754
+ typeArguments: [MoveStructId];
755
+ functionArguments: [_0x1.object$.Object<T0>];
756
+ },
757
+ version?: bigint,
758
+ ): Promise<[string]> {
759
+ const coder = defaultMoveCoder(client.config);
760
+ const data: InputViewFunctionData = {
761
+ function: "0x4::collection::description",
762
+ functionArguments: coder.encodeArray(request.functionArguments),
763
+ typeArguments: request.typeArguments,
764
+ };
765
+ const res = await client.view({
766
+ payload: data,
767
+ options: { ledgerVersion: version },
768
+ });
769
+ const type = await coder.getMoveFunction("0x4::collection::description");
770
+ return (await coder.decodeArray(res, type.return)) as any;
771
+ }
772
+ export async function uri<T0 = any>(
773
+ client: Aptos,
774
+ request: {
775
+ typeArguments: [MoveStructId];
776
+ functionArguments: [_0x1.object$.Object<T0>];
777
+ },
778
+ version?: bigint,
779
+ ): Promise<[string]> {
780
+ const coder = defaultMoveCoder(client.config);
781
+ const data: InputViewFunctionData = {
782
+ function: "0x4::collection::uri",
783
+ functionArguments: coder.encodeArray(request.functionArguments),
784
+ typeArguments: request.typeArguments,
785
+ };
786
+ const res = await client.view({
787
+ payload: data,
788
+ options: { ledgerVersion: version },
789
+ });
790
+ const type = await coder.getMoveFunction("0x4::collection::uri");
791
+ return (await coder.decodeArray(res, type.return)) as any;
792
+ }
793
+ }
794
+ }
795
+
796
+ export namespace aptos_token {
797
+ export interface AptosCollection {
798
+ mutator_ref: _0x1.option.Option<collection.MutatorRef>;
799
+ royalty_mutator_ref: _0x1.option.Option<royalty.MutatorRef>;
800
+ mutable_description: boolean;
801
+ mutable_uri: boolean;
802
+ mutable_token_description: boolean;
803
+ mutable_token_name: boolean;
804
+ mutable_token_properties: boolean;
805
+ mutable_token_uri: boolean;
806
+ tokens_burnable_by_creator: boolean;
807
+ tokens_freezable_by_creator: boolean;
808
+ }
809
+
810
+ export namespace AptosCollection {
811
+ export const TYPE_QNAME = "0x4::aptos_token::AptosCollection";
812
+
813
+ const TYPE = new TypeDescriptor<AptosCollection>(
814
+ AptosCollection.TYPE_QNAME,
815
+ );
816
+
817
+ export function type(): TypeDescriptor<AptosCollection> {
818
+ return TYPE.apply();
819
+ }
820
+ }
821
+
822
+ export interface AptosToken {
823
+ burn_ref: _0x1.option.Option<token.BurnRef>;
824
+ transfer_ref: _0x1.option.Option<_0x1.object$.TransferRef>;
825
+ mutator_ref: _0x1.option.Option<token.MutatorRef>;
826
+ property_mutator_ref: property_map.MutatorRef;
827
+ }
828
+
829
+ export namespace AptosToken {
830
+ export const TYPE_QNAME = "0x4::aptos_token::AptosToken";
831
+
832
+ const TYPE = new TypeDescriptor<AptosToken>(AptosToken.TYPE_QNAME);
833
+
834
+ export function type(): TypeDescriptor<AptosToken> {
835
+ return TYPE.apply();
836
+ }
837
+ }
838
+
839
+ export namespace entry {
840
+ export async function burn<T0 = any>(
841
+ client: Aptos,
842
+ account: AptosAccount,
843
+ request: {
844
+ typeArguments: [MoveStructId];
845
+ functionArguments: [_0x1.object$.Object<T0>];
846
+ },
847
+ options?: InputGenerateTransactionOptions,
848
+ ): Promise<PendingTransactionResponse> {
849
+ const coder = defaultMoveCoder(client.config);
850
+ const transaction = await client.transaction.build.simple({
851
+ sender: account.accountAddress,
852
+ data: {
853
+ function: "0x4::aptos_token::burn",
854
+ functionArguments: coder.encodeArray(request.functionArguments),
855
+ typeArguments: request.typeArguments,
856
+ },
857
+ options,
858
+ });
859
+ return await client.signAndSubmitTransaction({
860
+ signer: account,
861
+ transaction,
862
+ });
863
+ }
864
+ export async function mint(
865
+ client: Aptos,
866
+ account: AptosAccount,
867
+ request: {
868
+ typeArguments: [];
869
+ functionArguments: [
870
+ string,
871
+ string,
872
+ string,
873
+ string,
874
+ string[],
875
+ string[],
876
+ string[],
877
+ ];
878
+ },
879
+ options?: InputGenerateTransactionOptions,
880
+ ): Promise<PendingTransactionResponse> {
881
+ const coder = defaultMoveCoder(client.config);
882
+ const transaction = await client.transaction.build.simple({
883
+ sender: account.accountAddress,
884
+ data: {
885
+ function: "0x4::aptos_token::mint",
886
+ functionArguments: coder.encodeArray(request.functionArguments),
887
+ typeArguments: [],
888
+ },
889
+ options,
890
+ });
891
+ return await client.signAndSubmitTransaction({
892
+ signer: account,
893
+ transaction,
894
+ });
895
+ }
896
+ export async function setDescription<T0 = any>(
897
+ client: Aptos,
898
+ account: AptosAccount,
899
+ request: {
900
+ typeArguments: [MoveStructId];
901
+ functionArguments: [_0x1.object$.Object<T0>, string];
902
+ },
903
+ options?: InputGenerateTransactionOptions,
904
+ ): Promise<PendingTransactionResponse> {
905
+ const coder = defaultMoveCoder(client.config);
906
+ const transaction = await client.transaction.build.simple({
907
+ sender: account.accountAddress,
908
+ data: {
909
+ function: "0x4::aptos_token::set_description",
910
+ functionArguments: coder.encodeArray(request.functionArguments),
911
+ typeArguments: request.typeArguments,
912
+ },
913
+ options,
914
+ });
915
+ return await client.signAndSubmitTransaction({
916
+ signer: account,
917
+ transaction,
918
+ });
919
+ }
920
+ export async function setName<T0 = any>(
921
+ client: Aptos,
922
+ account: AptosAccount,
923
+ request: {
924
+ typeArguments: [MoveStructId];
925
+ functionArguments: [_0x1.object$.Object<T0>, string];
926
+ },
927
+ options?: InputGenerateTransactionOptions,
928
+ ): Promise<PendingTransactionResponse> {
929
+ const coder = defaultMoveCoder(client.config);
930
+ const transaction = await client.transaction.build.simple({
931
+ sender: account.accountAddress,
932
+ data: {
933
+ function: "0x4::aptos_token::set_name",
934
+ functionArguments: coder.encodeArray(request.functionArguments),
935
+ typeArguments: request.typeArguments,
936
+ },
937
+ options,
938
+ });
939
+ return await client.signAndSubmitTransaction({
940
+ signer: account,
941
+ transaction,
942
+ });
943
+ }
944
+ export async function setUri<T0 = any>(
945
+ client: Aptos,
946
+ account: AptosAccount,
947
+ request: {
948
+ typeArguments: [MoveStructId];
949
+ functionArguments: [_0x1.object$.Object<T0>, string];
950
+ },
951
+ options?: InputGenerateTransactionOptions,
952
+ ): Promise<PendingTransactionResponse> {
953
+ const coder = defaultMoveCoder(client.config);
954
+ const transaction = await client.transaction.build.simple({
955
+ sender: account.accountAddress,
956
+ data: {
957
+ function: "0x4::aptos_token::set_uri",
958
+ functionArguments: coder.encodeArray(request.functionArguments),
959
+ typeArguments: request.typeArguments,
960
+ },
961
+ options,
962
+ });
963
+ return await client.signAndSubmitTransaction({
964
+ signer: account,
965
+ transaction,
966
+ });
967
+ }
968
+ export async function addProperty<T0 = any>(
969
+ client: Aptos,
970
+ account: AptosAccount,
971
+ request: {
972
+ typeArguments: [MoveStructId];
973
+ functionArguments: [_0x1.object$.Object<T0>, string, string, string];
974
+ },
975
+ options?: InputGenerateTransactionOptions,
976
+ ): Promise<PendingTransactionResponse> {
977
+ const coder = defaultMoveCoder(client.config);
978
+ const transaction = await client.transaction.build.simple({
979
+ sender: account.accountAddress,
980
+ data: {
981
+ function: "0x4::aptos_token::add_property",
982
+ functionArguments: coder.encodeArray(request.functionArguments),
983
+ typeArguments: request.typeArguments,
984
+ },
985
+ options,
986
+ });
987
+ return await client.signAndSubmitTransaction({
988
+ signer: account,
989
+ transaction,
990
+ });
991
+ }
992
+ export async function addTypedProperty<T0 = any, T1 = any>(
993
+ client: Aptos,
994
+ account: AptosAccount,
995
+ request: {
996
+ typeArguments: [MoveStructId, MoveStructId];
997
+ functionArguments: [_0x1.object$.Object<T0>, string, T1];
998
+ },
999
+ options?: InputGenerateTransactionOptions,
1000
+ ): Promise<PendingTransactionResponse> {
1001
+ const coder = defaultMoveCoder(client.config);
1002
+ const transaction = await client.transaction.build.simple({
1003
+ sender: account.accountAddress,
1004
+ data: {
1005
+ function: "0x4::aptos_token::add_typed_property",
1006
+ functionArguments: coder.encodeArray(request.functionArguments),
1007
+ typeArguments: request.typeArguments,
1008
+ },
1009
+ options,
1010
+ });
1011
+ return await client.signAndSubmitTransaction({
1012
+ signer: account,
1013
+ transaction,
1014
+ });
1015
+ }
1016
+
1017
+ export async function createCollection(
1018
+ client: Aptos,
1019
+ account: AptosAccount,
1020
+ request: {
1021
+ typeArguments: [];
1022
+ functionArguments: [
1023
+ string,
1024
+ bigint,
1025
+ string,
1026
+ string,
1027
+ boolean,
1028
+ boolean,
1029
+ boolean,
1030
+ boolean,
1031
+ boolean,
1032
+ boolean,
1033
+ boolean,
1034
+ boolean,
1035
+ boolean,
1036
+ bigint,
1037
+ bigint,
1038
+ ];
1039
+ },
1040
+ options?: InputGenerateTransactionOptions,
1041
+ ): Promise<PendingTransactionResponse> {
1042
+ const coder = defaultMoveCoder(client.config);
1043
+ const transaction = await client.transaction.build.simple({
1044
+ sender: account.accountAddress,
1045
+ data: {
1046
+ function: "0x4::aptos_token::create_collection",
1047
+ functionArguments: coder.encodeArray(request.functionArguments),
1048
+ typeArguments: [],
1049
+ },
1050
+ options,
1051
+ });
1052
+ return await client.signAndSubmitTransaction({
1053
+ signer: account,
1054
+ transaction,
1055
+ });
1056
+ }
1057
+
1058
+ export async function freezeTransfer<T0 = any>(
1059
+ client: Aptos,
1060
+ account: AptosAccount,
1061
+ request: {
1062
+ typeArguments: [MoveStructId];
1063
+ functionArguments: [_0x1.object$.Object<T0>];
1064
+ },
1065
+ options?: InputGenerateTransactionOptions,
1066
+ ): Promise<PendingTransactionResponse> {
1067
+ const coder = defaultMoveCoder(client.config);
1068
+ const transaction = await client.transaction.build.simple({
1069
+ sender: account.accountAddress,
1070
+ data: {
1071
+ function: "0x4::aptos_token::freeze_transfer",
1072
+ functionArguments: coder.encodeArray(request.functionArguments),
1073
+ typeArguments: request.typeArguments,
1074
+ },
1075
+ options,
1076
+ });
1077
+ return await client.signAndSubmitTransaction({
1078
+ signer: account,
1079
+ transaction,
1080
+ });
1081
+ }
1082
+
1083
+ export async function mintSoulBound(
1084
+ client: Aptos,
1085
+ account: AptosAccount,
1086
+ request: {
1087
+ typeArguments: [];
1088
+ functionArguments: [
1089
+ string,
1090
+ string,
1091
+ string,
1092
+ string,
1093
+ string[],
1094
+ string[],
1095
+ string[],
1096
+ MoveAddressType,
1097
+ ];
1098
+ },
1099
+ options?: InputGenerateTransactionOptions,
1100
+ ): Promise<PendingTransactionResponse> {
1101
+ const coder = defaultMoveCoder(client.config);
1102
+ const transaction = await client.transaction.build.simple({
1103
+ sender: account.accountAddress,
1104
+ data: {
1105
+ function: "0x4::aptos_token::mint_soul_bound",
1106
+ functionArguments: coder.encodeArray(request.functionArguments),
1107
+ typeArguments: [],
1108
+ },
1109
+ options,
1110
+ });
1111
+ return await client.signAndSubmitTransaction({
1112
+ signer: account,
1113
+ transaction,
1114
+ });
1115
+ }
1116
+
1117
+ export async function removeProperty<T0 = any>(
1118
+ client: Aptos,
1119
+ account: AptosAccount,
1120
+ request: {
1121
+ typeArguments: [MoveStructId];
1122
+ functionArguments: [_0x1.object$.Object<T0>, string];
1123
+ },
1124
+ options?: InputGenerateTransactionOptions,
1125
+ ): Promise<PendingTransactionResponse> {
1126
+ const coder = defaultMoveCoder(client.config);
1127
+ const transaction = await client.transaction.build.simple({
1128
+ sender: account.accountAddress,
1129
+ data: {
1130
+ function: "0x4::aptos_token::remove_property",
1131
+ functionArguments: coder.encodeArray(request.functionArguments),
1132
+ typeArguments: request.typeArguments,
1133
+ },
1134
+ options,
1135
+ });
1136
+ return await client.signAndSubmitTransaction({
1137
+ signer: account,
1138
+ transaction,
1139
+ });
1140
+ }
1141
+ export async function setCollectionDescription<T0 = any>(
1142
+ client: Aptos,
1143
+ account: AptosAccount,
1144
+ request: {
1145
+ typeArguments: [MoveStructId];
1146
+ functionArguments: [_0x1.object$.Object<T0>, string];
1147
+ },
1148
+ options?: InputGenerateTransactionOptions,
1149
+ ): Promise<PendingTransactionResponse> {
1150
+ const coder = defaultMoveCoder(client.config);
1151
+ const transaction = await client.transaction.build.simple({
1152
+ sender: account.accountAddress,
1153
+ data: {
1154
+ function: "0x4::aptos_token::set_collection_description",
1155
+ functionArguments: coder.encodeArray(request.functionArguments),
1156
+ typeArguments: request.typeArguments,
1157
+ },
1158
+ options,
1159
+ });
1160
+ return await client.signAndSubmitTransaction({
1161
+ signer: account,
1162
+ transaction,
1163
+ });
1164
+ }
1165
+
1166
+ export async function setCollectionRoyaltiesCall<T0 = any>(
1167
+ client: Aptos,
1168
+ account: AptosAccount,
1169
+ request: {
1170
+ typeArguments: [MoveStructId];
1171
+ functionArguments: [
1172
+ _0x1.object$.Object<T0>,
1173
+ bigint,
1174
+ bigint,
1175
+ MoveAddressType,
1176
+ ];
1177
+ },
1178
+ options?: InputGenerateTransactionOptions,
1179
+ ): Promise<PendingTransactionResponse> {
1180
+ const coder = defaultMoveCoder(client.config);
1181
+ const transaction = await client.transaction.build.simple({
1182
+ sender: account.accountAddress,
1183
+ data: {
1184
+ function: "0x4::aptos_token::set_collection_royalties_call",
1185
+ functionArguments: coder.encodeArray(request.functionArguments),
1186
+ typeArguments: request.typeArguments,
1187
+ },
1188
+ options,
1189
+ });
1190
+ return await client.signAndSubmitTransaction({
1191
+ signer: account,
1192
+ transaction,
1193
+ });
1194
+ }
1195
+ export async function setCollectionUri<T0 = any>(
1196
+ client: Aptos,
1197
+ account: AptosAccount,
1198
+ request: {
1199
+ typeArguments: [MoveStructId];
1200
+ functionArguments: [_0x1.object$.Object<T0>, string];
1201
+ },
1202
+ options?: InputGenerateTransactionOptions,
1203
+ ): Promise<PendingTransactionResponse> {
1204
+ const coder = defaultMoveCoder(client.config);
1205
+ const transaction = await client.transaction.build.simple({
1206
+ sender: account.accountAddress,
1207
+ data: {
1208
+ function: "0x4::aptos_token::set_collection_uri",
1209
+ functionArguments: coder.encodeArray(request.functionArguments),
1210
+ typeArguments: request.typeArguments,
1211
+ },
1212
+ options,
1213
+ });
1214
+ return await client.signAndSubmitTransaction({
1215
+ signer: account,
1216
+ transaction,
1217
+ });
1218
+ }
1219
+ export async function unfreezeTransfer<T0 = any>(
1220
+ client: Aptos,
1221
+ account: AptosAccount,
1222
+ request: {
1223
+ typeArguments: [MoveStructId];
1224
+ functionArguments: [_0x1.object$.Object<T0>];
1225
+ },
1226
+ options?: InputGenerateTransactionOptions,
1227
+ ): Promise<PendingTransactionResponse> {
1228
+ const coder = defaultMoveCoder(client.config);
1229
+ const transaction = await client.transaction.build.simple({
1230
+ sender: account.accountAddress,
1231
+ data: {
1232
+ function: "0x4::aptos_token::unfreeze_transfer",
1233
+ functionArguments: coder.encodeArray(request.functionArguments),
1234
+ typeArguments: request.typeArguments,
1235
+ },
1236
+ options,
1237
+ });
1238
+ return await client.signAndSubmitTransaction({
1239
+ signer: account,
1240
+ transaction,
1241
+ });
1242
+ }
1243
+ export async function updateProperty<T0 = any>(
1244
+ client: Aptos,
1245
+ account: AptosAccount,
1246
+ request: {
1247
+ typeArguments: [MoveStructId];
1248
+ functionArguments: [_0x1.object$.Object<T0>, string, string, string];
1249
+ },
1250
+ options?: InputGenerateTransactionOptions,
1251
+ ): Promise<PendingTransactionResponse> {
1252
+ const coder = defaultMoveCoder(client.config);
1253
+ const transaction = await client.transaction.build.simple({
1254
+ sender: account.accountAddress,
1255
+ data: {
1256
+ function: "0x4::aptos_token::update_property",
1257
+ functionArguments: coder.encodeArray(request.functionArguments),
1258
+ typeArguments: request.typeArguments,
1259
+ },
1260
+ options,
1261
+ });
1262
+ return await client.signAndSubmitTransaction({
1263
+ signer: account,
1264
+ transaction,
1265
+ });
1266
+ }
1267
+ export async function updateTypedProperty<T0 = any, T1 = any>(
1268
+ client: Aptos,
1269
+ account: AptosAccount,
1270
+ request: {
1271
+ typeArguments: [MoveStructId, MoveStructId];
1272
+ functionArguments: [_0x1.object$.Object<T0>, string, T1];
1273
+ },
1274
+ options?: InputGenerateTransactionOptions,
1275
+ ): Promise<PendingTransactionResponse> {
1276
+ const coder = defaultMoveCoder(client.config);
1277
+ const transaction = await client.transaction.build.simple({
1278
+ sender: account.accountAddress,
1279
+ data: {
1280
+ function: "0x4::aptos_token::update_typed_property",
1281
+ functionArguments: coder.encodeArray(request.functionArguments),
1282
+ typeArguments: request.typeArguments,
1283
+ },
1284
+ options,
1285
+ });
1286
+ return await client.signAndSubmitTransaction({
1287
+ signer: account,
1288
+ transaction,
1289
+ });
1290
+ }
1291
+ }
1292
+ export namespace view {
1293
+ export async function arePropertiesMutable<T0 = any>(
1294
+ client: Aptos,
1295
+ request: {
1296
+ typeArguments: [MoveStructId];
1297
+ functionArguments: [_0x1.object$.Object<T0>];
1298
+ },
1299
+ version?: bigint,
1300
+ ): Promise<[boolean]> {
1301
+ const coder = defaultMoveCoder(client.config);
1302
+ const data: InputViewFunctionData = {
1303
+ function: "0x4::aptos_token::are_properties_mutable",
1304
+ functionArguments: coder.encodeArray(request.functionArguments),
1305
+ typeArguments: request.typeArguments,
1306
+ };
1307
+ const res = await client.view({
1308
+ payload: data,
1309
+ options: { ledgerVersion: version },
1310
+ });
1311
+ const type = await coder.getMoveFunction(
1312
+ "0x4::aptos_token::are_properties_mutable",
1313
+ );
1314
+ return (await coder.decodeArray(res, type.return)) as any;
1315
+ }
1316
+
1317
+ export async function isBurnable<T0 = any>(
1318
+ client: Aptos,
1319
+ request: {
1320
+ typeArguments: [MoveStructId];
1321
+ functionArguments: [_0x1.object$.Object<T0>];
1322
+ },
1323
+ version?: bigint,
1324
+ ): Promise<[boolean]> {
1325
+ const coder = defaultMoveCoder(client.config);
1326
+ const data: InputViewFunctionData = {
1327
+ function: "0x4::aptos_token::is_burnable",
1328
+ functionArguments: coder.encodeArray(request.functionArguments),
1329
+ typeArguments: request.typeArguments,
1330
+ };
1331
+ const res = await client.view({
1332
+ payload: data,
1333
+ options: { ledgerVersion: version },
1334
+ });
1335
+ const type = await coder.getMoveFunction("0x4::aptos_token::is_burnable");
1336
+ return (await coder.decodeArray(res, type.return)) as any;
1337
+ }
1338
+ export async function isFreezableByCreator<T0 = any>(
1339
+ client: Aptos,
1340
+ request: {
1341
+ typeArguments: [MoveStructId];
1342
+ functionArguments: [_0x1.object$.Object<T0>];
1343
+ },
1344
+ version?: bigint,
1345
+ ): Promise<[boolean]> {
1346
+ const coder = defaultMoveCoder(client.config);
1347
+ const data: InputViewFunctionData = {
1348
+ function: "0x4::aptos_token::is_freezable_by_creator",
1349
+ functionArguments: coder.encodeArray(request.functionArguments),
1350
+ typeArguments: request.typeArguments,
1351
+ };
1352
+ const res = await client.view({
1353
+ payload: data,
1354
+ options: { ledgerVersion: version },
1355
+ });
1356
+ const type = await coder.getMoveFunction(
1357
+ "0x4::aptos_token::is_freezable_by_creator",
1358
+ );
1359
+ return (await coder.decodeArray(res, type.return)) as any;
1360
+ }
1361
+
1362
+ export async function isMutableDescription<T0 = any>(
1363
+ client: Aptos,
1364
+ request: {
1365
+ typeArguments: [MoveStructId];
1366
+ functionArguments: [_0x1.object$.Object<T0>];
1367
+ },
1368
+ version?: bigint,
1369
+ ): Promise<[boolean]> {
1370
+ const coder = defaultMoveCoder(client.config);
1371
+ const data: InputViewFunctionData = {
1372
+ function: "0x4::aptos_token::is_mutable_description",
1373
+ functionArguments: coder.encodeArray(request.functionArguments),
1374
+ typeArguments: request.typeArguments,
1375
+ };
1376
+ const res = await client.view({
1377
+ payload: data,
1378
+ options: { ledgerVersion: version },
1379
+ });
1380
+ const type = await coder.getMoveFunction(
1381
+ "0x4::aptos_token::is_mutable_description",
1382
+ );
1383
+ return (await coder.decodeArray(res, type.return)) as any;
1384
+ }
1385
+ export async function isMutableName<T0 = any>(
1386
+ client: Aptos,
1387
+ request: {
1388
+ typeArguments: [MoveStructId];
1389
+ functionArguments: [_0x1.object$.Object<T0>];
1390
+ },
1391
+ version?: bigint,
1392
+ ): Promise<[boolean]> {
1393
+ const coder = defaultMoveCoder(client.config);
1394
+ const data: InputViewFunctionData = {
1395
+ function: "0x4::aptos_token::is_mutable_name",
1396
+ functionArguments: coder.encodeArray(request.functionArguments),
1397
+ typeArguments: request.typeArguments,
1398
+ };
1399
+ const res = await client.view({
1400
+ payload: data,
1401
+ options: { ledgerVersion: version },
1402
+ });
1403
+ const type = await coder.getMoveFunction(
1404
+ "0x4::aptos_token::is_mutable_name",
1405
+ );
1406
+ return (await coder.decodeArray(res, type.return)) as any;
1407
+ }
1408
+ export async function isMutableUri<T0 = any>(
1409
+ client: Aptos,
1410
+ request: {
1411
+ typeArguments: [MoveStructId];
1412
+ functionArguments: [_0x1.object$.Object<T0>];
1413
+ },
1414
+ version?: bigint,
1415
+ ): Promise<[boolean]> {
1416
+ const coder = defaultMoveCoder(client.config);
1417
+ const data: InputViewFunctionData = {
1418
+ function: "0x4::aptos_token::is_mutable_uri",
1419
+ functionArguments: coder.encodeArray(request.functionArguments),
1420
+ typeArguments: request.typeArguments,
1421
+ };
1422
+ const res = await client.view({
1423
+ payload: data,
1424
+ options: { ledgerVersion: version },
1425
+ });
1426
+ const type = await coder.getMoveFunction(
1427
+ "0x4::aptos_token::is_mutable_uri",
1428
+ );
1429
+ return (await coder.decodeArray(res, type.return)) as any;
1430
+ }
1431
+ }
1432
+ }
1433
+
1434
+ export namespace property_map {
1435
+ export interface MutatorRef {
1436
+ self: MoveAddressType;
1437
+ }
1438
+
1439
+ export namespace MutatorRef {
1440
+ export const TYPE_QNAME = "0x4::property_map::MutatorRef";
1441
+
1442
+ const TYPE = new TypeDescriptor<MutatorRef>(MutatorRef.TYPE_QNAME);
1443
+
1444
+ export function type(): TypeDescriptor<MutatorRef> {
1445
+ return TYPE.apply();
1446
+ }
1447
+ }
1448
+
1449
+ export type MutatorRefInstance = TypedEventInstance<MutatorRef> & {
1450
+ data_decoded: MutatorRef;
1451
+ type_arguments: [];
1452
+ };
1453
+
1454
+ export interface PropertyMap {
1455
+ inner: _0x1.simple_map.SimpleMap<string, property_map.PropertyValue>;
1456
+ }
1457
+
1458
+ export namespace PropertyMap {
1459
+ export const TYPE_QNAME = "0x4::property_map::PropertyMap";
1460
+
1461
+ const TYPE = new TypeDescriptor<PropertyMap>(PropertyMap.TYPE_QNAME);
1462
+
1463
+ export function type(): TypeDescriptor<PropertyMap> {
1464
+ return TYPE.apply();
1465
+ }
1466
+ }
1467
+
1468
+ export interface PropertyValue {
1469
+ type: number;
1470
+ value: string;
1471
+ }
1472
+
1473
+ export namespace PropertyValue {
1474
+ export const TYPE_QNAME = "0x4::property_map::PropertyValue";
1475
+
1476
+ const TYPE = new TypeDescriptor<PropertyValue>(PropertyValue.TYPE_QNAME);
1477
+
1478
+ export function type(): TypeDescriptor<PropertyValue> {
1479
+ return TYPE.apply();
1480
+ }
1481
+ }
1482
+
1483
+ export type PropertyValueInstance = TypedEventInstance<PropertyValue> & {
1484
+ data_decoded: PropertyValue;
1485
+ type_arguments: [];
1486
+ };
1487
+
1488
+ export namespace entry {}
1489
+ export namespace view {}
1490
+ }
1491
+
1492
+ const MODULES = JSON.parse(
1493
+ '[{"abi":{"address":"0x4","name":"token","friends":[],"exposed_functions":[{"name":"royalty","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["0x1::option::Option<0x4::royalty::Royalty>"]},{"name":"index","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["u64"]},{"name":"create","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","0x1::string::String","0x1::string::String","0x1::option::Option<0x4::royalty::Royalty>","0x1::string::String"],"return":["0x1::object::ConstructorRef"]},{"name":"burn","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["0x4::token::BurnRef"],"return":[]},{"name":"creator","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["address"]},{"name":"name","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["0x1::string::String"]},{"name":"generate_burn_ref","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x1::object::ConstructorRef"],"return":["0x4::token::BurnRef"]},{"name":"generate_mutator_ref","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x1::object::ConstructorRef"],"return":["0x4::token::MutatorRef"]},{"name":"description","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["0x1::string::String"]},{"name":"uri","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["0x1::string::String"]},{"name":"set_description","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x4::token::MutatorRef","0x1::string::String"],"return":[]},{"name":"set_name","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x4::token::MutatorRef","0x1::string::String"],"return":[]},{"name":"set_uri","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x4::token::MutatorRef","0x1::string::String"],"return":[]},{"name":"address_from_burn_ref","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x4::token::BurnRef"],"return":["address"]},{"name":"collection_name","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["0x1::string::String"]},{"name":"collection_object","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["0x1::object::Object<0x4::collection::Collection>"]},{"name":"create_from_account","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","0x1::string::String","0x1::string::String","0x1::option::Option<0x4::royalty::Royalty>","0x1::string::String"],"return":["0x1::object::ConstructorRef"]},{"name":"create_named_token","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","0x1::string::String","0x1::string::String","0x1::option::Option<0x4::royalty::Royalty>","0x1::string::String"],"return":["0x1::object::ConstructorRef"]},{"name":"create_named_token_as_collection_owner","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::object::Object<0x4::collection::Collection>","0x1::string::String","0x1::string::String","0x1::option::Option<0x4::royalty::Royalty>","0x1::string::String"],"return":["0x1::object::ConstructorRef"]},{"name":"create_named_token_from_seed","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::object::Object<0x4::collection::Collection>","0x1::string::String","0x1::string::String","0x1::string::String","0x1::option::Option<0x4::royalty::Royalty>","0x1::string::String"],"return":["0x1::object::ConstructorRef"]},{"name":"create_named_token_from_seed_as_collection_owner","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::object::Object<0x4::collection::Collection>","0x1::string::String","0x1::string::String","0x1::string::String","0x1::option::Option<0x4::royalty::Royalty>","0x1::string::String"],"return":["0x1::object::ConstructorRef"]},{"name":"create_named_token_object","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::object::Object<0x4::collection::Collection>","0x1::string::String","0x1::string::String","0x1::option::Option<0x4::royalty::Royalty>","0x1::string::String"],"return":["0x1::object::ConstructorRef"]},{"name":"create_numbered_token","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","0x1::string::String","0x1::string::String","0x1::string::String","0x1::option::Option<0x4::royalty::Royalty>","0x1::string::String"],"return":["0x1::object::ConstructorRef"]},{"name":"create_numbered_token_as_collection_owner","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::object::Object<0x4::collection::Collection>","0x1::string::String","0x1::string::String","0x1::string::String","0x1::option::Option<0x4::royalty::Royalty>","0x1::string::String"],"return":["0x1::object::ConstructorRef"]},{"name":"create_numbered_token_object","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::object::Object<0x4::collection::Collection>","0x1::string::String","0x1::string::String","0x1::string::String","0x1::option::Option<0x4::royalty::Royalty>","0x1::string::String"],"return":["0x1::object::ConstructorRef"]},{"name":"create_token","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::object::Object<0x4::collection::Collection>","0x1::string::String","0x1::string::String","0x1::option::Option<0x4::royalty::Royalty>","0x1::string::String"],"return":["0x1::object::ConstructorRef"]},{"name":"create_token_address","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&address","&0x1::string::String","&0x1::string::String"],"return":["address"]},{"name":"create_token_address_with_seed","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[],"params":["address","0x1::string::String","0x1::string::String","0x1::string::String"],"return":["address"]},{"name":"create_token_as_collection_owner","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::object::Object<0x4::collection::Collection>","0x1::string::String","0x1::string::String","0x1::option::Option<0x4::royalty::Royalty>","0x1::string::String"],"return":["0x1::object::ConstructorRef"]},{"name":"create_token_name_with_seed","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x1::string::String","&0x1::string::String","&0x1::string::String"],"return":["vector<u8>"]},{"name":"create_token_seed","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x1::string::String","&0x1::string::String"],"return":["vector<u8>"]}],"structs":[{"name":"BurnRef","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"inner","type":"0x1::option::Option<0x1::object::DeleteRef>"},{"name":"self","type":"0x1::option::Option<address>"}],"variants":[]},{"name":"MutatorRef","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"self","type":"address"}],"variants":[]},{"name":"Mutation","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"token_address","type":"address"},{"name":"mutated_field_name","type":"0x1::string::String"},{"name":"old_value","type":"0x1::string::String"},{"name":"new_value","type":"0x1::string::String"}],"variants":[]},{"name":"MutationEvent","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"mutated_field_name","type":"0x1::string::String"},{"name":"old_value","type":"0x1::string::String"},{"name":"new_value","type":"0x1::string::String"}],"variants":[]},{"name":"ConcurrentTokenIdentifiers","is_native":false,"is_event":false,"is_enum":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"index","type":"0x1::aggregator_v2::AggregatorSnapshot<u64>"},{"name":"name","type":"0x1::aggregator_v2::AggregatorSnapshot<0x1::string::String>"}],"variants":[]},{"name":"Token","is_native":false,"is_event":false,"is_enum":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"collection","type":"0x1::object::Object<0x4::collection::Collection>"},{"name":"index","type":"u64"},{"name":"description","type":"0x1::string::String"},{"name":"name","type":"0x1::string::String"},{"name":"uri","type":"0x1::string::String"},{"name":"mutation_events","type":"0x1::event::EventHandle<0x4::token::MutationEvent>"}],"variants":[]},{"name":"TokenIdentifiers","is_native":false,"is_event":false,"is_enum":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"index","type":"0x1::aggregator_v2::AggregatorSnapshot<u64>"},{"name":"name","type":"0x1::aggregator_v2::DerivedStringSnapshot"}],"variants":[]}]}},{"abi":{"address":"0x4","name":"royalty","friends":["0x4::token"],"exposed_functions":[{"name":"update","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x4::royalty::MutatorRef","0x4::royalty::Royalty"],"return":[]},{"name":"init","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x1::object::ConstructorRef","0x4::royalty::Royalty"],"return":[]},{"name":"get","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["0x1::option::Option<0x4::royalty::Royalty>"]},{"name":"numerator","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x4::royalty::Royalty"],"return":["u64"]},{"name":"denominator","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x4::royalty::Royalty"],"return":["u64"]},{"name":"create","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["u64","u64","address"],"return":["0x4::royalty::Royalty"]},{"name":"exists_at","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["address"],"return":["bool"]},{"name":"delete","visibility":"friend","is_entry":false,"is_view":false,"generic_type_params":[],"params":["address"],"return":[]},{"name":"payee_address","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x4::royalty::Royalty"],"return":["address"]},{"name":"generate_mutator_ref","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["0x1::object::ExtendRef"],"return":["0x4::royalty::MutatorRef"]}],"structs":[{"name":"MutatorRef","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"inner","type":"0x1::object::ExtendRef"}],"variants":[]},{"name":"Royalty","is_native":false,"is_event":false,"is_enum":false,"abilities":["copy","drop","key"],"generic_type_params":[],"fields":[{"name":"numerator","type":"u64"},{"name":"denominator","type":"u64"},{"name":"payee_address","type":"address"}],"variants":[]}]}},{"abi":{"address":"0x4","name":"collection","friends":["0x4::token"],"exposed_functions":[{"name":"count","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["0x1::option::Option<u64>"]},{"name":"creator","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["address"]},{"name":"name","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["0x1::string::String"]},{"name":"upgrade_to_concurrent","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x1::object::ExtendRef"],"return":[]},{"name":"generate_mutator_ref","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x1::object::ConstructorRef"],"return":["0x4::collection::MutatorRef"]},{"name":"create_collection_address","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&address","&0x1::string::String"],"return":["address"]},{"name":"description","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["0x1::string::String"]},{"name":"uri","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["0x1::string::String"]},{"name":"create_collection_seed","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x1::string::String"],"return":["vector<u8>"]},{"name":"create_fixed_collection","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","u64","0x1::string::String","0x1::option::Option<0x4::royalty::Royalty>","0x1::string::String"],"return":["0x1::object::ConstructorRef"]},{"name":"create_fixed_collection_as_owner","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","u64","0x1::string::String","0x1::option::Option<0x4::royalty::Royalty>","0x1::string::String"],"return":["0x1::object::ConstructorRef"]},{"name":"create_unlimited_collection","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","0x1::string::String","0x1::option::Option<0x4::royalty::Royalty>","0x1::string::String"],"return":["0x1::object::ConstructorRef"]},{"name":"create_unlimited_collection_as_owner","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","0x1::string::String","0x1::option::Option<0x4::royalty::Royalty>","0x1::string::String"],"return":["0x1::object::ConstructorRef"]},{"name":"decrement_supply","visibility":"friend","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x1::object::Object<0x4::collection::Collection>","address","0x1::option::Option<u64>","address"],"return":[]},{"name":"increment_supply","visibility":"friend","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x1::object::Object<0x4::collection::Collection>","address"],"return":["0x1::option::Option<0x1::aggregator_v2::AggregatorSnapshot<u64>>"]},{"name":"set_description","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x4::collection::MutatorRef","0x1::string::String"],"return":[]},{"name":"set_max_supply","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x4::collection::MutatorRef","u64"],"return":[]},{"name":"set_name","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x4::collection::MutatorRef","0x1::string::String"],"return":[]},{"name":"set_uri","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x4::collection::MutatorRef","0x1::string::String"],"return":[]}],"structs":[{"name":"ConcurrentSupply","is_native":false,"is_event":false,"is_enum":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"current_supply","type":"0x1::aggregator_v2::Aggregator<u64>"},{"name":"total_minted","type":"0x1::aggregator_v2::Aggregator<u64>"}],"variants":[]},{"name":"MutatorRef","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"self","type":"address"}],"variants":[]},{"name":"Burn","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"collection","type":"address"},{"name":"index","type":"u64"},{"name":"token","type":"address"},{"name":"previous_owner","type":"address"}],"variants":[]},{"name":"BurnEvent","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"index","type":"u64"},{"name":"token","type":"address"}],"variants":[]},{"name":"Collection","is_native":false,"is_event":false,"is_enum":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"creator","type":"address"},{"name":"description","type":"0x1::string::String"},{"name":"name","type":"0x1::string::String"},{"name":"uri","type":"0x1::string::String"},{"name":"mutation_events","type":"0x1::event::EventHandle<0x4::collection::MutationEvent>"}],"variants":[]},{"name":"ConcurrentBurnEvent","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"collection_addr","type":"address"},{"name":"index","type":"u64"},{"name":"token","type":"address"}],"variants":[]},{"name":"ConcurrentMintEvent","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"collection_addr","type":"address"},{"name":"index","type":"0x1::aggregator_v2::AggregatorSnapshot<u64>"},{"name":"token","type":"address"}],"variants":[]},{"name":"FixedSupply","is_native":false,"is_event":false,"is_enum":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"current_supply","type":"u64"},{"name":"max_supply","type":"u64"},{"name":"total_minted","type":"u64"},{"name":"burn_events","type":"0x1::event::EventHandle<0x4::collection::BurnEvent>"},{"name":"mint_events","type":"0x1::event::EventHandle<0x4::collection::MintEvent>"}],"variants":[]},{"name":"Mint","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"collection","type":"address"},{"name":"index","type":"0x1::aggregator_v2::AggregatorSnapshot<u64>"},{"name":"token","type":"address"}],"variants":[]},{"name":"MintEvent","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"index","type":"u64"},{"name":"token","type":"address"}],"variants":[]},{"name":"Mutation","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"mutated_field_name","type":"0x1::string::String"},{"name":"collection","type":"0x1::object::Object<0x4::collection::Collection>"},{"name":"old_value","type":"0x1::string::String"},{"name":"new_value","type":"0x1::string::String"}],"variants":[]},{"name":"MutationEvent","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"mutated_field_name","type":"0x1::string::String"}],"variants":[]},{"name":"SetMaxSupply","is_native":false,"is_event":true,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"collection","type":"0x1::object::Object<0x4::collection::Collection>"},{"name":"old_max_supply","type":"u64"},{"name":"new_max_supply","type":"u64"}],"variants":[]},{"name":"UnlimitedSupply","is_native":false,"is_event":false,"is_enum":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"current_supply","type":"u64"},{"name":"total_minted","type":"u64"},{"name":"burn_events","type":"0x1::event::EventHandle<0x4::collection::BurnEvent>"},{"name":"mint_events","type":"0x1::event::EventHandle<0x4::collection::MintEvent>"}],"variants":[]}]}},{"abi":{"address":"0x4","name":"aptos_token","friends":[],"exposed_functions":[{"name":"burn","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&signer","0x1::object::Object<T0>"],"return":[]},{"name":"mint","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","0x1::string::String","0x1::string::String","0x1::string::String","vector<0x1::string::String>","vector<0x1::string::String>","vector<vector<u8>>"],"return":[]},{"name":"set_description","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&signer","0x1::object::Object<T0>","0x1::string::String"],"return":[]},{"name":"set_name","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&signer","0x1::object::Object<T0>","0x1::string::String"],"return":[]},{"name":"set_uri","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&signer","0x1::object::Object<T0>","0x1::string::String"],"return":[]},{"name":"add_property","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&signer","0x1::object::Object<T0>","0x1::string::String","0x1::string::String","vector<u8>"],"return":[]},{"name":"add_typed_property","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[{"constraints":["key"]},{"constraints":["drop"]}],"params":["&signer","0x1::object::Object<T0>","0x1::string::String","T1"],"return":[]},{"name":"are_collection_tokens_burnable","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["bool"]},{"name":"are_collection_tokens_freezable","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["bool"]},{"name":"are_properties_mutable","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["bool"]},{"name":"create_collection","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","u64","0x1::string::String","0x1::string::String","bool","bool","bool","bool","bool","bool","bool","bool","bool","u64","u64"],"return":[]},{"name":"create_collection_object","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","u64","0x1::string::String","0x1::string::String","bool","bool","bool","bool","bool","bool","bool","bool","bool","u64","u64"],"return":["0x1::object::Object<0x4::aptos_token::AptosCollection>"]},{"name":"freeze_transfer","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&signer","0x1::object::Object<T0>"],"return":[]},{"name":"is_burnable","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["bool"]},{"name":"is_freezable_by_creator","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["bool"]},{"name":"is_mutable_collection_description","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["bool"]},{"name":"is_mutable_collection_royalty","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["bool"]},{"name":"is_mutable_collection_token_description","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["bool"]},{"name":"is_mutable_collection_token_name","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["bool"]},{"name":"is_mutable_collection_token_properties","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["bool"]},{"name":"is_mutable_collection_token_uri","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["bool"]},{"name":"is_mutable_collection_uri","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["bool"]},{"name":"is_mutable_description","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["bool"]},{"name":"is_mutable_name","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["bool"]},{"name":"is_mutable_uri","visibility":"public","is_entry":false,"is_view":true,"generic_type_params":[{"constraints":["key"]}],"params":["0x1::object::Object<T0>"],"return":["bool"]},{"name":"mint_soul_bound","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","0x1::string::String","0x1::string::String","0x1::string::String","vector<0x1::string::String>","vector<0x1::string::String>","vector<vector<u8>>","address"],"return":[]},{"name":"mint_soul_bound_token_object","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","0x1::string::String","0x1::string::String","0x1::string::String","vector<0x1::string::String>","vector<0x1::string::String>","vector<vector<u8>>","address"],"return":["0x1::object::Object<0x4::aptos_token::AptosToken>"]},{"name":"mint_token_object","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&signer","0x1::string::String","0x1::string::String","0x1::string::String","0x1::string::String","vector<0x1::string::String>","vector<0x1::string::String>","vector<vector<u8>>"],"return":["0x1::object::Object<0x4::aptos_token::AptosToken>"]},{"name":"remove_property","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&signer","0x1::object::Object<T0>","0x1::string::String"],"return":[]},{"name":"set_collection_description","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&signer","0x1::object::Object<T0>","0x1::string::String"],"return":[]},{"name":"set_collection_royalties","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&signer","0x1::object::Object<T0>","0x4::royalty::Royalty"],"return":[]},{"name":"set_collection_royalties_call","visibility":"private","is_entry":true,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&signer","0x1::object::Object<T0>","u64","u64","address"],"return":[]},{"name":"set_collection_uri","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&signer","0x1::object::Object<T0>","0x1::string::String"],"return":[]},{"name":"unfreeze_transfer","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&signer","0x1::object::Object<T0>"],"return":[]},{"name":"update_property","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&signer","0x1::object::Object<T0>","0x1::string::String","0x1::string::String","vector<u8>"],"return":[]},{"name":"update_typed_property","visibility":"public","is_entry":true,"is_view":false,"generic_type_params":[{"constraints":["key"]},{"constraints":["drop"]}],"params":["&signer","0x1::object::Object<T0>","0x1::string::String","T1"],"return":[]}],"structs":[{"name":"AptosCollection","is_native":false,"is_event":false,"is_enum":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"mutator_ref","type":"0x1::option::Option<0x4::collection::MutatorRef>"},{"name":"royalty_mutator_ref","type":"0x1::option::Option<0x4::royalty::MutatorRef>"},{"name":"mutable_description","type":"bool"},{"name":"mutable_uri","type":"bool"},{"name":"mutable_token_description","type":"bool"},{"name":"mutable_token_name","type":"bool"},{"name":"mutable_token_properties","type":"bool"},{"name":"mutable_token_uri","type":"bool"},{"name":"tokens_burnable_by_creator","type":"bool"},{"name":"tokens_freezable_by_creator","type":"bool"}],"variants":[]},{"name":"AptosToken","is_native":false,"is_event":false,"is_enum":false,"abilities":["key"],"generic_type_params":[],"fields":[{"name":"burn_ref","type":"0x1::option::Option<0x4::token::BurnRef>"},{"name":"transfer_ref","type":"0x1::option::Option<0x1::object::TransferRef>"},{"name":"mutator_ref","type":"0x1::option::Option<0x4::token::MutatorRef>"},{"name":"property_mutator_ref","type":"0x4::property_map::MutatorRef"}],"variants":[]}]}},{"abi":{"address":"0x4","name":"property_map","friends":[],"exposed_functions":[{"name":"update","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x4::property_map::MutatorRef","&0x1::string::String","0x1::string::String","vector<u8>"],"return":[]},{"name":"init","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x1::object::ConstructorRef","0x4::property_map::PropertyMap"],"return":[]},{"name":"length","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&0x1::object::Object<T0>"],"return":["u64"]},{"name":"remove","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x4::property_map::MutatorRef","&0x1::string::String"],"return":[]},{"name":"add","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x4::property_map::MutatorRef","0x1::string::String","0x1::string::String","vector<u8>"],"return":[]},{"name":"burn","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["0x4::property_map::MutatorRef"],"return":[]},{"name":"read","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&0x1::object::Object<T0>","&0x1::string::String"],"return":["0x1::string::String","vector<u8>"]},{"name":"contains_key","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&0x1::object::Object<T0>","&0x1::string::String"],"return":["bool"]},{"name":"generate_mutator_ref","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x1::object::ConstructorRef"],"return":["0x4::property_map::MutatorRef"]},{"name":"add_typed","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["drop"]}],"params":["&0x4::property_map::MutatorRef","0x1::string::String","T0"],"return":[]},{"name":"extend","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["&0x1::object::ExtendRef","0x4::property_map::PropertyMap"],"return":[]},{"name":"prepare_input","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[],"params":["vector<0x1::string::String>","vector<0x1::string::String>","vector<vector<u8>>"],"return":["0x4::property_map::PropertyMap"]},{"name":"read_address","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&0x1::object::Object<T0>","&0x1::string::String"],"return":["address"]},{"name":"read_bool","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&0x1::object::Object<T0>","&0x1::string::String"],"return":["bool"]},{"name":"read_bytes","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&0x1::object::Object<T0>","&0x1::string::String"],"return":["vector<u8>"]},{"name":"read_string","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&0x1::object::Object<T0>","&0x1::string::String"],"return":["0x1::string::String"]},{"name":"read_u128","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&0x1::object::Object<T0>","&0x1::string::String"],"return":["u128"]},{"name":"read_u16","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&0x1::object::Object<T0>","&0x1::string::String"],"return":["u16"]},{"name":"read_u256","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&0x1::object::Object<T0>","&0x1::string::String"],"return":["u256"]},{"name":"read_u32","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&0x1::object::Object<T0>","&0x1::string::String"],"return":["u32"]},{"name":"read_u64","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&0x1::object::Object<T0>","&0x1::string::String"],"return":["u64"]},{"name":"read_u8","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["key"]}],"params":["&0x1::object::Object<T0>","&0x1::string::String"],"return":["u8"]},{"name":"update_typed","visibility":"public","is_entry":false,"is_view":false,"generic_type_params":[{"constraints":["drop"]}],"params":["&0x4::property_map::MutatorRef","&0x1::string::String","T0"],"return":[]}],"structs":[{"name":"MutatorRef","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"self","type":"address"}],"variants":[]},{"name":"PropertyMap","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","key"],"generic_type_params":[],"fields":[{"name":"inner","type":"0x1::simple_map::SimpleMap<0x1::string::String, 0x4::property_map::PropertyValue>"}],"variants":[]},{"name":"PropertyValue","is_native":false,"is_event":false,"is_enum":false,"abilities":["drop","store"],"generic_type_params":[],"fields":[{"name":"type","type":"u8"},{"name":"value","type":"vector<u8>"}],"variants":[]}]}}]',
1494
+ );
1495
+
1496
+ export function loadAllTypes(coder: MoveCoder) {
1497
+ _0x1.loadAllTypes(coder);
1498
+ for (const m of Object.values(MODULES)) {
1499
+ coder.load(m as any, "0x4");
1500
+ }
1501
+ }
1502
+
1503
+ loadAllTypes(defaultMoveCoder());