@sentio/sdk 2.13.0-rc.6 → 2.13.0-rc.8

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 (83) hide show
  1. package/lib/aptos/aptos-processor.js +7 -3
  2. package/lib/aptos/aptos-processor.js.map +1 -1
  3. package/lib/aptos/builtin/0x1.d.ts +1076 -431
  4. package/lib/aptos/builtin/0x1.js +1937 -1457
  5. package/lib/aptos/builtin/0x1.js.map +1 -1
  6. package/lib/aptos/builtin/0x3.d.ts +206 -83
  7. package/lib/aptos/builtin/0x3.js +371 -332
  8. package/lib/aptos/builtin/0x3.js.map +1 -1
  9. package/lib/aptos/codegen/codegen.d.ts +1 -1
  10. package/lib/aptos/codegen/codegen.js +2 -2
  11. package/lib/aptos/codegen/codegen.js.map +1 -1
  12. package/lib/aptos/codegen/run.js +1 -1
  13. package/lib/aptos/codegen/run.js.map +1 -1
  14. package/lib/aptos/index.d.ts +1 -0
  15. package/lib/aptos/index.js +1 -0
  16. package/lib/aptos/index.js.map +1 -1
  17. package/lib/aptos/models.d.ts +3 -11
  18. package/lib/aptos/models.js.map +1 -1
  19. package/lib/aptos/move-coder.d.ts +3 -2
  20. package/lib/aptos/move-coder.js +11 -4
  21. package/lib/aptos/move-coder.js.map +1 -1
  22. package/lib/eth/base-processor.d.ts +8 -8
  23. package/lib/eth/base-processor.js +0 -1
  24. package/lib/eth/base-processor.js.map +1 -1
  25. package/lib/eth/eth.d.ts +7 -2
  26. package/lib/eth/eth.js +8 -1
  27. package/lib/eth/eth.js.map +1 -1
  28. package/lib/move/abstract-codegen.d.ts +2 -2
  29. package/lib/move/abstract-codegen.js +36 -11
  30. package/lib/move/abstract-codegen.js.map +1 -1
  31. package/lib/move/abstract-move-coder.d.ts +3 -7
  32. package/lib/move/abstract-move-coder.js +3 -3
  33. package/lib/move/abstract-move-coder.js.map +1 -1
  34. package/lib/move/types.d.ts +22 -1
  35. package/lib/move/types.js +46 -17
  36. package/lib/move/types.js.map +1 -1
  37. package/lib/sui/builtin/0x1.d.ts +31 -12
  38. package/lib/sui/builtin/0x1.js +56 -31
  39. package/lib/sui/builtin/0x1.js.map +1 -1
  40. package/lib/sui/builtin/0x2.d.ts +256 -103
  41. package/lib/sui/builtin/0x2.js +461 -316
  42. package/lib/sui/builtin/0x2.js.map +1 -1
  43. package/lib/sui/builtin/0x3.d.ts +126 -51
  44. package/lib/sui/builtin/0x3.js +227 -271
  45. package/lib/sui/builtin/0x3.js.map +1 -1
  46. package/lib/sui/codegen/codegen.d.ts +1 -1
  47. package/lib/sui/codegen/codegen.js +3 -2
  48. package/lib/sui/codegen/codegen.js.map +1 -1
  49. package/lib/sui/codegen/run.js +1 -1
  50. package/lib/sui/codegen/run.js.map +1 -1
  51. package/lib/sui/index.d.ts +1 -0
  52. package/lib/sui/index.js +1 -0
  53. package/lib/sui/index.js.map +1 -1
  54. package/lib/sui/models.d.ts +3 -11
  55. package/lib/sui/models.js.map +1 -1
  56. package/lib/sui/move-coder.d.ts +5 -5
  57. package/lib/sui/move-coder.js +14 -7
  58. package/lib/sui/move-coder.js.map +1 -1
  59. package/lib/sui/sui-processor.js +6 -2
  60. package/lib/sui/sui-processor.js.map +1 -1
  61. package/package.json +4 -4
  62. package/src/aptos/aptos-processor.ts +8 -3
  63. package/src/aptos/builtin/0x1.ts +2688 -447
  64. package/src/aptos/builtin/0x3.ts +506 -84
  65. package/src/aptos/codegen/codegen.ts +7 -2
  66. package/src/aptos/codegen/run.ts +1 -1
  67. package/src/aptos/index.ts +2 -0
  68. package/src/aptos/models.ts +3 -13
  69. package/src/aptos/move-coder.ts +14 -4
  70. package/src/eth/base-processor.ts +8 -9
  71. package/src/eth/eth.ts +15 -2
  72. package/src/move/abstract-codegen.ts +39 -13
  73. package/src/move/abstract-move-coder.ts +11 -16
  74. package/src/move/types.ts +63 -18
  75. package/src/sui/builtin/0x1.ts +67 -13
  76. package/src/sui/builtin/0x2.ts +649 -103
  77. package/src/sui/builtin/0x3.ts +315 -51
  78. package/src/sui/codegen/codegen.ts +8 -2
  79. package/src/sui/codegen/run.ts +1 -1
  80. package/src/sui/index.ts +1 -0
  81. package/src/sui/models.ts +3 -13
  82. package/src/sui/move-coder.ts +22 -15
  83. package/src/sui/sui-processor.ts +7 -2
@@ -1,4 +1,4 @@
1
- import { CallFilter } from "@sentio/sdk/move";
1
+ import { CallFilter, TypeDescriptor } from "@sentio/sdk/move";
2
2
  import { MoveCoder, AptosBindOptions, AptosBaseProcessor, TypedEventInstance, TypedFunctionPayload, AptosContext } from "@sentio/sdk/aptos";
3
3
  import { MoveFetchConfig } from "@sentio/protos";
4
4
  import { Address } from "@sentio/sdk/aptos";
@@ -26,17 +26,19 @@ export declare class token extends AptosBaseProcessor {
26
26
  onEventMutateTokenPropertyMapEvent(func: (event: token.MutateTokenPropertyMapEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): token;
27
27
  }
28
28
  export declare namespace token {
29
- class BurnTokenEvent {
30
- static TYPE_QNAME: string;
29
+ interface BurnTokenEvent {
31
30
  id: token.TokenId;
32
31
  amount: bigint;
33
32
  }
33
+ namespace BurnTokenEvent {
34
+ const TYPE_QNAME = "0x3::token::BurnTokenEvent";
35
+ function type(): TypeDescriptor<BurnTokenEvent>;
36
+ }
34
37
  interface BurnTokenEventInstance extends TypedEventInstance<BurnTokenEvent> {
35
38
  data_decoded: BurnTokenEvent;
36
39
  type_arguments: [];
37
40
  }
38
- class CollectionData {
39
- static TYPE_QNAME: string;
41
+ interface CollectionData {
40
42
  description: string;
41
43
  name: string;
42
44
  uri: string;
@@ -44,34 +46,46 @@ export declare namespace token {
44
46
  maximum: bigint;
45
47
  mutability_config: token.CollectionMutabilityConfig;
46
48
  }
47
- class CollectionMutabilityConfig {
48
- static TYPE_QNAME: string;
49
+ namespace CollectionData {
50
+ const TYPE_QNAME = "0x3::token::CollectionData";
51
+ function type(): TypeDescriptor<CollectionData>;
52
+ }
53
+ interface CollectionMutabilityConfig {
49
54
  description: Boolean;
50
55
  uri: Boolean;
51
56
  maximum: Boolean;
52
57
  }
53
- class Collections {
54
- static TYPE_QNAME: string;
58
+ namespace CollectionMutabilityConfig {
59
+ const TYPE_QNAME = "0x3::token::CollectionMutabilityConfig";
60
+ function type(): TypeDescriptor<CollectionMutabilityConfig>;
61
+ }
62
+ interface Collections {
55
63
  collection_data: _0x1.table.Table<string, token.CollectionData>;
56
64
  token_data: _0x1.table.Table<token.TokenDataId, token.TokenData>;
57
65
  create_collection_events: _0x1.event.EventHandle<token.CreateCollectionEvent>;
58
66
  create_token_data_events: _0x1.event.EventHandle<token.CreateTokenDataEvent>;
59
67
  mint_token_events: _0x1.event.EventHandle<token.MintTokenEvent>;
60
68
  }
61
- class CreateCollectionEvent {
62
- static TYPE_QNAME: string;
69
+ namespace Collections {
70
+ const TYPE_QNAME = "0x3::token::Collections";
71
+ function type(): TypeDescriptor<Collections>;
72
+ }
73
+ interface CreateCollectionEvent {
63
74
  creator: Address;
64
75
  collection_name: string;
65
76
  uri: string;
66
77
  description: string;
67
78
  maximum: bigint;
68
79
  }
80
+ namespace CreateCollectionEvent {
81
+ const TYPE_QNAME = "0x3::token::CreateCollectionEvent";
82
+ function type(): TypeDescriptor<CreateCollectionEvent>;
83
+ }
69
84
  interface CreateCollectionEventInstance extends TypedEventInstance<CreateCollectionEvent> {
70
85
  data_decoded: CreateCollectionEvent;
71
86
  type_arguments: [];
72
87
  }
73
- class CreateTokenDataEvent {
74
- static TYPE_QNAME: string;
88
+ interface CreateTokenDataEvent {
75
89
  id: token.TokenDataId;
76
90
  description: string;
77
91
  maximum: bigint;
@@ -85,54 +99,72 @@ export declare namespace token {
85
99
  property_values: string[];
86
100
  property_types: string[];
87
101
  }
102
+ namespace CreateTokenDataEvent {
103
+ const TYPE_QNAME = "0x3::token::CreateTokenDataEvent";
104
+ function type(): TypeDescriptor<CreateTokenDataEvent>;
105
+ }
88
106
  interface CreateTokenDataEventInstance extends TypedEventInstance<CreateTokenDataEvent> {
89
107
  data_decoded: CreateTokenDataEvent;
90
108
  type_arguments: [];
91
109
  }
92
- class DepositEvent {
93
- static TYPE_QNAME: string;
110
+ interface DepositEvent {
94
111
  id: token.TokenId;
95
112
  amount: bigint;
96
113
  }
114
+ namespace DepositEvent {
115
+ const TYPE_QNAME = "0x3::token::DepositEvent";
116
+ function type(): TypeDescriptor<DepositEvent>;
117
+ }
97
118
  interface DepositEventInstance extends TypedEventInstance<DepositEvent> {
98
119
  data_decoded: DepositEvent;
99
120
  type_arguments: [];
100
121
  }
101
- class MintTokenEvent {
102
- static TYPE_QNAME: string;
122
+ interface MintTokenEvent {
103
123
  id: token.TokenDataId;
104
124
  amount: bigint;
105
125
  }
126
+ namespace MintTokenEvent {
127
+ const TYPE_QNAME = "0x3::token::MintTokenEvent";
128
+ function type(): TypeDescriptor<MintTokenEvent>;
129
+ }
106
130
  interface MintTokenEventInstance extends TypedEventInstance<MintTokenEvent> {
107
131
  data_decoded: MintTokenEvent;
108
132
  type_arguments: [];
109
133
  }
110
- class MutateTokenPropertyMapEvent {
111
- static TYPE_QNAME: string;
134
+ interface MutateTokenPropertyMapEvent {
112
135
  old_id: token.TokenId;
113
136
  new_id: token.TokenId;
114
137
  keys: string[];
115
138
  values: string[];
116
139
  types: string[];
117
140
  }
141
+ namespace MutateTokenPropertyMapEvent {
142
+ const TYPE_QNAME = "0x3::token::MutateTokenPropertyMapEvent";
143
+ function type(): TypeDescriptor<MutateTokenPropertyMapEvent>;
144
+ }
118
145
  interface MutateTokenPropertyMapEventInstance extends TypedEventInstance<MutateTokenPropertyMapEvent> {
119
146
  data_decoded: MutateTokenPropertyMapEvent;
120
147
  type_arguments: [];
121
148
  }
122
- class Royalty {
123
- static TYPE_QNAME: string;
149
+ interface Royalty {
124
150
  royalty_points_numerator: bigint;
125
151
  royalty_points_denominator: bigint;
126
152
  payee_address: Address;
127
153
  }
128
- class Token {
129
- static TYPE_QNAME: string;
154
+ namespace Royalty {
155
+ const TYPE_QNAME = "0x3::token::Royalty";
156
+ function type(): TypeDescriptor<Royalty>;
157
+ }
158
+ interface Token {
130
159
  id: token.TokenId;
131
160
  amount: bigint;
132
161
  token_properties: property_map.PropertyMap;
133
162
  }
134
- class TokenData {
135
- static TYPE_QNAME: string;
163
+ namespace Token {
164
+ const TYPE_QNAME = "0x3::token::Token";
165
+ function type(): TypeDescriptor<Token>;
166
+ }
167
+ interface TokenData {
136
168
  maximum: bigint;
137
169
  largest_property_version: bigint;
138
170
  supply: bigint;
@@ -143,27 +175,39 @@ export declare namespace token {
143
175
  default_properties: property_map.PropertyMap;
144
176
  mutability_config: token.TokenMutabilityConfig;
145
177
  }
146
- class TokenDataId {
147
- static TYPE_QNAME: string;
178
+ namespace TokenData {
179
+ const TYPE_QNAME = "0x3::token::TokenData";
180
+ function type(): TypeDescriptor<TokenData>;
181
+ }
182
+ interface TokenDataId {
148
183
  creator: Address;
149
184
  collection: string;
150
185
  name: string;
151
186
  }
152
- class TokenId {
153
- static TYPE_QNAME: string;
187
+ namespace TokenDataId {
188
+ const TYPE_QNAME = "0x3::token::TokenDataId";
189
+ function type(): TypeDescriptor<TokenDataId>;
190
+ }
191
+ interface TokenId {
154
192
  token_data_id: token.TokenDataId;
155
193
  property_version: bigint;
156
194
  }
157
- class TokenMutabilityConfig {
158
- static TYPE_QNAME: string;
195
+ namespace TokenId {
196
+ const TYPE_QNAME = "0x3::token::TokenId";
197
+ function type(): TypeDescriptor<TokenId>;
198
+ }
199
+ interface TokenMutabilityConfig {
159
200
  maximum: Boolean;
160
201
  uri: Boolean;
161
202
  royalty: Boolean;
162
203
  description: Boolean;
163
204
  properties: Boolean;
164
205
  }
165
- class TokenStore {
166
- static TYPE_QNAME: string;
206
+ namespace TokenMutabilityConfig {
207
+ const TYPE_QNAME = "0x3::token::TokenMutabilityConfig";
208
+ function type(): TypeDescriptor<TokenMutabilityConfig>;
209
+ }
210
+ interface TokenStore {
167
211
  tokens: _0x1.table.Table<token.TokenId, token.Token>;
168
212
  direct_transfer: Boolean;
169
213
  deposit_events: _0x1.event.EventHandle<token.DepositEvent>;
@@ -171,18 +215,28 @@ export declare namespace token {
171
215
  burn_events: _0x1.event.EventHandle<token.BurnTokenEvent>;
172
216
  mutate_token_property_events: _0x1.event.EventHandle<token.MutateTokenPropertyMapEvent>;
173
217
  }
174
- class WithdrawCapability {
175
- static TYPE_QNAME: string;
218
+ namespace TokenStore {
219
+ const TYPE_QNAME = "0x3::token::TokenStore";
220
+ function type(): TypeDescriptor<TokenStore>;
221
+ }
222
+ interface WithdrawCapability {
176
223
  token_owner: Address;
177
224
  token_id: token.TokenId;
178
225
  amount: bigint;
179
226
  expiration_sec: bigint;
180
227
  }
181
- class WithdrawEvent {
182
- static TYPE_QNAME: string;
228
+ namespace WithdrawCapability {
229
+ const TYPE_QNAME = "0x3::token::WithdrawCapability";
230
+ function type(): TypeDescriptor<WithdrawCapability>;
231
+ }
232
+ interface WithdrawEvent {
183
233
  id: token.TokenId;
184
234
  amount: bigint;
185
235
  }
236
+ namespace WithdrawEvent {
237
+ const TYPE_QNAME = "0x3::token::WithdrawEvent";
238
+ function type(): TypeDescriptor<WithdrawEvent>;
239
+ }
186
240
  interface WithdrawEventInstance extends TypedEventInstance<WithdrawEvent> {
187
241
  data_decoded: WithdrawEvent;
188
242
  type_arguments: [];
@@ -291,15 +345,21 @@ export declare namespace token {
291
345
  }
292
346
  }
293
347
  export declare namespace property_map {
294
- class PropertyMap {
295
- static TYPE_QNAME: string;
348
+ interface PropertyMap {
296
349
  map: _0x1.simple_map.SimpleMap<string, property_map.PropertyValue>;
297
350
  }
298
- class PropertyValue {
299
- static TYPE_QNAME: string;
351
+ namespace PropertyMap {
352
+ const TYPE_QNAME = "0x3::property_map::PropertyMap";
353
+ function type(): TypeDescriptor<PropertyMap>;
354
+ }
355
+ interface PropertyValue {
300
356
  value: string;
301
357
  type: string;
302
358
  }
359
+ namespace PropertyValue {
360
+ const TYPE_QNAME = "0x3::property_map::PropertyValue";
361
+ function type(): TypeDescriptor<PropertyValue>;
362
+ }
303
363
  }
304
364
  export declare class token_coin_swap extends AptosBaseProcessor {
305
365
  constructor(options: AptosBindOptions);
@@ -310,46 +370,64 @@ export declare class token_coin_swap extends AptosBaseProcessor {
310
370
  onEventTokenSwapEvent(func: (event: token_coin_swap.TokenSwapEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): token_coin_swap;
311
371
  }
312
372
  export declare namespace token_coin_swap {
313
- class TokenCoinSwap<T0> {
314
- static TYPE_QNAME: string;
373
+ interface TokenCoinSwap<T0> {
315
374
  token_amount: bigint;
316
375
  min_price_per_token: bigint;
317
376
  }
318
- class TokenEscrow {
319
- static TYPE_QNAME: string;
377
+ namespace TokenCoinSwap {
378
+ const TYPE_QNAME = "0x3::token_coin_swap::TokenCoinSwap";
379
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<TokenCoinSwap<T0>>;
380
+ }
381
+ interface TokenEscrow {
320
382
  token: token.Token;
321
383
  locked_until_secs: bigint;
322
384
  }
323
- class TokenListingEvent {
324
- static TYPE_QNAME: string;
385
+ namespace TokenEscrow {
386
+ const TYPE_QNAME = "0x3::token_coin_swap::TokenEscrow";
387
+ function type(): TypeDescriptor<TokenEscrow>;
388
+ }
389
+ interface TokenListingEvent {
325
390
  token_id: token.TokenId;
326
391
  amount: bigint;
327
392
  min_price: bigint;
328
393
  locked_until_secs: bigint;
329
394
  coin_type_info: _0x1.type_info.TypeInfo;
330
395
  }
396
+ namespace TokenListingEvent {
397
+ const TYPE_QNAME = "0x3::token_coin_swap::TokenListingEvent";
398
+ function type(): TypeDescriptor<TokenListingEvent>;
399
+ }
331
400
  interface TokenListingEventInstance extends TypedEventInstance<TokenListingEvent> {
332
401
  data_decoded: TokenListingEvent;
333
402
  type_arguments: [];
334
403
  }
335
- class TokenListings<T0> {
336
- static TYPE_QNAME: string;
404
+ interface TokenListings<T0> {
337
405
  listings: _0x1.table.Table<token.TokenId, token_coin_swap.TokenCoinSwap<T0>>;
338
406
  listing_events: _0x1.event.EventHandle<token_coin_swap.TokenListingEvent>;
339
407
  swap_events: _0x1.event.EventHandle<token_coin_swap.TokenSwapEvent>;
340
408
  }
341
- class TokenStoreEscrow {
342
- static TYPE_QNAME: string;
409
+ namespace TokenListings {
410
+ const TYPE_QNAME = "0x3::token_coin_swap::TokenListings";
411
+ function type<T0>(arg0?: TypeDescriptor<T0>): TypeDescriptor<TokenListings<T0>>;
412
+ }
413
+ interface TokenStoreEscrow {
343
414
  token_escrows: _0x1.table.Table<token.TokenId, token_coin_swap.TokenEscrow>;
344
415
  }
345
- class TokenSwapEvent {
346
- static TYPE_QNAME: string;
416
+ namespace TokenStoreEscrow {
417
+ const TYPE_QNAME = "0x3::token_coin_swap::TokenStoreEscrow";
418
+ function type(): TypeDescriptor<TokenStoreEscrow>;
419
+ }
420
+ interface TokenSwapEvent {
347
421
  token_id: token.TokenId;
348
422
  token_buyer: Address;
349
423
  token_amount: bigint;
350
424
  coin_amount: bigint;
351
425
  coin_type_info: _0x1.type_info.TypeInfo;
352
426
  }
427
+ namespace TokenSwapEvent {
428
+ const TYPE_QNAME = "0x3::token_coin_swap::TokenSwapEvent";
429
+ function type(): TypeDescriptor<TokenSwapEvent>;
430
+ }
353
431
  interface TokenSwapEventInstance extends TypedEventInstance<TokenSwapEvent> {
354
432
  data_decoded: TokenSwapEvent;
355
433
  type_arguments: [];
@@ -387,48 +465,63 @@ export declare class token_transfers extends AptosBaseProcessor {
387
465
  onEventTokenClaimEvent(func: (event: token_transfers.TokenClaimEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): token_transfers;
388
466
  }
389
467
  export declare namespace token_transfers {
390
- class PendingClaims {
391
- static TYPE_QNAME: string;
468
+ interface PendingClaims {
392
469
  pending_claims: _0x1.table.Table<token_transfers.TokenOfferId, token.Token>;
393
470
  offer_events: _0x1.event.EventHandle<token_transfers.TokenOfferEvent>;
394
471
  cancel_offer_events: _0x1.event.EventHandle<token_transfers.TokenCancelOfferEvent>;
395
472
  claim_events: _0x1.event.EventHandle<token_transfers.TokenClaimEvent>;
396
473
  }
397
- class TokenCancelOfferEvent {
398
- static TYPE_QNAME: string;
474
+ namespace PendingClaims {
475
+ const TYPE_QNAME = "0x3::token_transfers::PendingClaims";
476
+ function type(): TypeDescriptor<PendingClaims>;
477
+ }
478
+ interface TokenCancelOfferEvent {
399
479
  to_address: Address;
400
480
  token_id: token.TokenId;
401
481
  amount: bigint;
402
482
  }
483
+ namespace TokenCancelOfferEvent {
484
+ const TYPE_QNAME = "0x3::token_transfers::TokenCancelOfferEvent";
485
+ function type(): TypeDescriptor<TokenCancelOfferEvent>;
486
+ }
403
487
  interface TokenCancelOfferEventInstance extends TypedEventInstance<TokenCancelOfferEvent> {
404
488
  data_decoded: TokenCancelOfferEvent;
405
489
  type_arguments: [];
406
490
  }
407
- class TokenClaimEvent {
408
- static TYPE_QNAME: string;
491
+ interface TokenClaimEvent {
409
492
  to_address: Address;
410
493
  token_id: token.TokenId;
411
494
  amount: bigint;
412
495
  }
496
+ namespace TokenClaimEvent {
497
+ const TYPE_QNAME = "0x3::token_transfers::TokenClaimEvent";
498
+ function type(): TypeDescriptor<TokenClaimEvent>;
499
+ }
413
500
  interface TokenClaimEventInstance extends TypedEventInstance<TokenClaimEvent> {
414
501
  data_decoded: TokenClaimEvent;
415
502
  type_arguments: [];
416
503
  }
417
- class TokenOfferEvent {
418
- static TYPE_QNAME: string;
504
+ interface TokenOfferEvent {
419
505
  to_address: Address;
420
506
  token_id: token.TokenId;
421
507
  amount: bigint;
422
508
  }
509
+ namespace TokenOfferEvent {
510
+ const TYPE_QNAME = "0x3::token_transfers::TokenOfferEvent";
511
+ function type(): TypeDescriptor<TokenOfferEvent>;
512
+ }
423
513
  interface TokenOfferEventInstance extends TypedEventInstance<TokenOfferEvent> {
424
514
  data_decoded: TokenOfferEvent;
425
515
  type_arguments: [];
426
516
  }
427
- class TokenOfferId {
428
- static TYPE_QNAME: string;
517
+ interface TokenOfferId {
429
518
  to_addr: Address;
430
519
  token_id: token.TokenId;
431
520
  }
521
+ namespace TokenOfferId {
522
+ const TYPE_QNAME = "0x3::token_transfers::TokenOfferId";
523
+ function type(): TypeDescriptor<TokenOfferId>;
524
+ }
432
525
  interface CancelOfferScriptPayload extends TypedFunctionPayload<[
433
526
  Address,
434
527
  Address,
@@ -487,41 +580,49 @@ export declare class token_event_store extends AptosBaseProcessor {
487
580
  onEventMaxiumMutateEvent(func: (event: token_event_store.MaxiumMutateEventInstance, ctx: AptosContext) => void, fetchConfig?: Partial<MoveFetchConfig>): token_event_store;
488
581
  }
489
582
  export declare namespace token_event_store {
490
- class CollectionDescriptionMutateEvent {
491
- static TYPE_QNAME: string;
583
+ interface CollectionDescriptionMutateEvent {
492
584
  creator_addr: Address;
493
585
  collection_name: string;
494
586
  old_description: string;
495
587
  new_description: string;
496
588
  }
589
+ namespace CollectionDescriptionMutateEvent {
590
+ const TYPE_QNAME = "0x3::token_event_store::CollectionDescriptionMutateEvent";
591
+ function type(): TypeDescriptor<CollectionDescriptionMutateEvent>;
592
+ }
497
593
  interface CollectionDescriptionMutateEventInstance extends TypedEventInstance<CollectionDescriptionMutateEvent> {
498
594
  data_decoded: CollectionDescriptionMutateEvent;
499
595
  type_arguments: [];
500
596
  }
501
- class CollectionMaxiumMutateEvent {
502
- static TYPE_QNAME: string;
597
+ interface CollectionMaxiumMutateEvent {
503
598
  creator_addr: Address;
504
599
  collection_name: string;
505
600
  old_maximum: bigint;
506
601
  new_maximum: bigint;
507
602
  }
603
+ namespace CollectionMaxiumMutateEvent {
604
+ const TYPE_QNAME = "0x3::token_event_store::CollectionMaxiumMutateEvent";
605
+ function type(): TypeDescriptor<CollectionMaxiumMutateEvent>;
606
+ }
508
607
  interface CollectionMaxiumMutateEventInstance extends TypedEventInstance<CollectionMaxiumMutateEvent> {
509
608
  data_decoded: CollectionMaxiumMutateEvent;
510
609
  type_arguments: [];
511
610
  }
512
- class CollectionUriMutateEvent {
513
- static TYPE_QNAME: string;
611
+ interface CollectionUriMutateEvent {
514
612
  creator_addr: Address;
515
613
  collection_name: string;
516
614
  old_uri: string;
517
615
  new_uri: string;
518
616
  }
617
+ namespace CollectionUriMutateEvent {
618
+ const TYPE_QNAME = "0x3::token_event_store::CollectionUriMutateEvent";
619
+ function type(): TypeDescriptor<CollectionUriMutateEvent>;
620
+ }
519
621
  interface CollectionUriMutateEventInstance extends TypedEventInstance<CollectionUriMutateEvent> {
520
622
  data_decoded: CollectionUriMutateEvent;
521
623
  type_arguments: [];
522
624
  }
523
- class DefaultPropertyMutateEvent {
524
- static TYPE_QNAME: string;
625
+ interface DefaultPropertyMutateEvent {
525
626
  creator: Address;
526
627
  collection: string;
527
628
  token: string;
@@ -529,44 +630,56 @@ export declare namespace token_event_store {
529
630
  old_values: _0x1.option.Option<property_map.PropertyValue>[];
530
631
  new_values: property_map.PropertyValue[];
531
632
  }
633
+ namespace DefaultPropertyMutateEvent {
634
+ const TYPE_QNAME = "0x3::token_event_store::DefaultPropertyMutateEvent";
635
+ function type(): TypeDescriptor<DefaultPropertyMutateEvent>;
636
+ }
532
637
  interface DefaultPropertyMutateEventInstance extends TypedEventInstance<DefaultPropertyMutateEvent> {
533
638
  data_decoded: DefaultPropertyMutateEvent;
534
639
  type_arguments: [];
535
640
  }
536
- class DescriptionMutateEvent {
537
- static TYPE_QNAME: string;
641
+ interface DescriptionMutateEvent {
538
642
  creator: Address;
539
643
  collection: string;
540
644
  token: string;
541
645
  old_description: string;
542
646
  new_description: string;
543
647
  }
648
+ namespace DescriptionMutateEvent {
649
+ const TYPE_QNAME = "0x3::token_event_store::DescriptionMutateEvent";
650
+ function type(): TypeDescriptor<DescriptionMutateEvent>;
651
+ }
544
652
  interface DescriptionMutateEventInstance extends TypedEventInstance<DescriptionMutateEvent> {
545
653
  data_decoded: DescriptionMutateEvent;
546
654
  type_arguments: [];
547
655
  }
548
- class MaxiumMutateEvent {
549
- static TYPE_QNAME: string;
656
+ interface MaxiumMutateEvent {
550
657
  creator: Address;
551
658
  collection: string;
552
659
  token: string;
553
660
  old_maximum: bigint;
554
661
  new_maximum: bigint;
555
662
  }
663
+ namespace MaxiumMutateEvent {
664
+ const TYPE_QNAME = "0x3::token_event_store::MaxiumMutateEvent";
665
+ function type(): TypeDescriptor<MaxiumMutateEvent>;
666
+ }
556
667
  interface MaxiumMutateEventInstance extends TypedEventInstance<MaxiumMutateEvent> {
557
668
  data_decoded: MaxiumMutateEvent;
558
669
  type_arguments: [];
559
670
  }
560
- class OptInTransferEvent {
561
- static TYPE_QNAME: string;
671
+ interface OptInTransferEvent {
562
672
  opt_in: Boolean;
563
673
  }
674
+ namespace OptInTransferEvent {
675
+ const TYPE_QNAME = "0x3::token_event_store::OptInTransferEvent";
676
+ function type(): TypeDescriptor<OptInTransferEvent>;
677
+ }
564
678
  interface OptInTransferEventInstance extends TypedEventInstance<OptInTransferEvent> {
565
679
  data_decoded: OptInTransferEvent;
566
680
  type_arguments: [];
567
681
  }
568
- class RoyaltyMutateEvent {
569
- static TYPE_QNAME: string;
682
+ interface RoyaltyMutateEvent {
570
683
  creator: Address;
571
684
  collection: string;
572
685
  token: string;
@@ -577,12 +690,15 @@ export declare namespace token_event_store {
577
690
  new_royalty_denominator: bigint;
578
691
  new_royalty_payee_addr: Address;
579
692
  }
693
+ namespace RoyaltyMutateEvent {
694
+ const TYPE_QNAME = "0x3::token_event_store::RoyaltyMutateEvent";
695
+ function type(): TypeDescriptor<RoyaltyMutateEvent>;
696
+ }
580
697
  interface RoyaltyMutateEventInstance extends TypedEventInstance<RoyaltyMutateEvent> {
581
698
  data_decoded: RoyaltyMutateEvent;
582
699
  type_arguments: [];
583
700
  }
584
- class TokenEventStoreV1 {
585
- static TYPE_QNAME: string;
701
+ interface TokenEventStoreV1 {
586
702
  collection_uri_mutate_events: _0x1.event.EventHandle<token_event_store.CollectionUriMutateEvent>;
587
703
  collection_maximum_mutate_events: _0x1.event.EventHandle<token_event_store.CollectionMaxiumMutateEvent>;
588
704
  collection_description_mutate_events: _0x1.event.EventHandle<token_event_store.CollectionDescriptionMutateEvent>;
@@ -594,14 +710,21 @@ export declare namespace token_event_store {
594
710
  maximum_mutate_events: _0x1.event.EventHandle<token_event_store.MaxiumMutateEvent>;
595
711
  extension: _0x1.option.Option<_0x1.any_.Any>;
596
712
  }
597
- class UriMutationEvent {
598
- static TYPE_QNAME: string;
713
+ namespace TokenEventStoreV1 {
714
+ const TYPE_QNAME = "0x3::token_event_store::TokenEventStoreV1";
715
+ function type(): TypeDescriptor<TokenEventStoreV1>;
716
+ }
717
+ interface UriMutationEvent {
599
718
  creator: Address;
600
719
  collection: string;
601
720
  token: string;
602
721
  old_uri: string;
603
722
  new_uri: string;
604
723
  }
724
+ namespace UriMutationEvent {
725
+ const TYPE_QNAME = "0x3::token_event_store::UriMutationEvent";
726
+ function type(): TypeDescriptor<UriMutationEvent>;
727
+ }
605
728
  interface UriMutationEventInstance extends TypedEventInstance<UriMutationEvent> {
606
729
  data_decoded: UriMutationEvent;
607
730
  type_arguments: [];