@sentio/sdk 2.49.1-rc.3 → 2.49.1-rc.4

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.
@@ -41,14 +41,6 @@ export class token extends AptosBaseProcessor {
41
41
  return new token({ ...token.DEFAULT_OPTIONS, ...options });
42
42
  }
43
43
 
44
- onEventBurnRef(
45
- func: (event: token.BurnRefInstance, ctx: AptosContext) => void,
46
- fetchConfig?: Partial<MoveFetchConfig>,
47
- ): token {
48
- this.onMoveEvent(func, { type: "token::BurnRef" }, fetchConfig);
49
- return this;
50
- }
51
-
52
44
  onEventMutation(
53
45
  func: (event: token.MutationInstance, ctx: AptosContext) => void,
54
46
  fetchConfig?: Partial<MoveFetchConfig>,
@@ -64,14 +56,6 @@ export class token extends AptosBaseProcessor {
64
56
  this.onMoveEvent(func, { type: "token::MutationEvent" }, fetchConfig);
65
57
  return this;
66
58
  }
67
-
68
- onEventMutatorRef(
69
- func: (event: token.MutatorRefInstance, ctx: AptosContext) => void,
70
- fetchConfig?: Partial<MoveFetchConfig>,
71
- ): token {
72
- this.onMoveEvent(func, { type: "token::MutatorRef" }, fetchConfig);
73
- return this;
74
- }
75
59
  }
76
60
 
77
61
  export namespace token {
@@ -90,11 +74,6 @@ export namespace token {
90
74
  }
91
75
  }
92
76
 
93
- export interface BurnRefInstance extends TypedEventInstance<BurnRef> {
94
- data_decoded: BurnRef;
95
- type_arguments: [];
96
- }
97
-
98
77
  export interface ConcurrentTokenIdentifiers {
99
78
  index: _0x1.aggregator_v2.AggregatorSnapshot<bigint>;
100
79
  name: _0x1.aggregator_v2.AggregatorSnapshot<string>;
@@ -170,11 +149,6 @@ export namespace token {
170
149
  }
171
150
  }
172
151
 
173
- export interface MutatorRefInstance extends TypedEventInstance<MutatorRef> {
174
- data_decoded: MutatorRef;
175
- type_arguments: [];
176
- }
177
-
178
152
  export interface Token {
179
153
  collection: _0x1.object$.Object<collection.Collection>;
180
154
  index: bigint;
@@ -212,28 +186,6 @@ export namespace token {
212
186
  }
213
187
  }
214
188
 
215
- export class royalty extends AptosBaseProcessor {
216
- constructor(options: AptosBindOptions) {
217
- super("royalty", options);
218
- }
219
- static DEFAULT_OPTIONS: AptosBindOptions = {
220
- address: "0x4",
221
- network: AptosNetwork.MAIN_NET,
222
- };
223
-
224
- static bind(options: Partial<AptosBindOptions> = {}): royalty {
225
- return new royalty({ ...royalty.DEFAULT_OPTIONS, ...options });
226
- }
227
-
228
- onEventMutatorRef(
229
- func: (event: royalty.MutatorRefInstance, ctx: AptosContext) => void,
230
- fetchConfig?: Partial<MoveFetchConfig>,
231
- ): royalty {
232
- this.onMoveEvent(func, { type: "royalty::MutatorRef" }, fetchConfig);
233
- return this;
234
- }
235
- }
236
-
237
189
  export namespace royalty {
238
190
  export interface MutatorRef {
239
191
  inner: _0x1.object$.ExtendRef;
@@ -249,11 +201,6 @@ export namespace royalty {
249
201
  }
250
202
  }
251
203
 
252
- export interface MutatorRefInstance extends TypedEventInstance<MutatorRef> {
253
- data_decoded: MutatorRef;
254
- type_arguments: [];
255
- }
256
-
257
204
  export interface Royalty {
258
205
  numerator: bigint;
259
206
  denominator: bigint;
@@ -292,14 +239,6 @@ export class collection extends AptosBaseProcessor {
292
239
  return this;
293
240
  }
294
241
 
295
- onEventBurnEvent(
296
- func: (event: collection.BurnEventInstance, ctx: AptosContext) => void,
297
- fetchConfig?: Partial<MoveFetchConfig>,
298
- ): collection {
299
- this.onMoveEvent(func, { type: "collection::BurnEvent" }, fetchConfig);
300
- return this;
301
- }
302
-
303
242
  onEventConcurrentBurnEvent(
304
243
  func: (
305
244
  event: collection.ConcurrentBurnEventInstance,
@@ -338,19 +277,19 @@ export class collection extends AptosBaseProcessor {
338
277
  return this;
339
278
  }
340
279
 
341
- onEventMintEvent(
342
- func: (event: collection.MintEventInstance, ctx: AptosContext) => void,
280
+ onEventMutation(
281
+ func: (event: collection.MutationInstance, ctx: AptosContext) => void,
343
282
  fetchConfig?: Partial<MoveFetchConfig>,
344
283
  ): collection {
345
- this.onMoveEvent(func, { type: "collection::MintEvent" }, fetchConfig);
284
+ this.onMoveEvent(func, { type: "collection::Mutation" }, fetchConfig);
346
285
  return this;
347
286
  }
348
287
 
349
- onEventMutation(
350
- func: (event: collection.MutationInstance, ctx: AptosContext) => void,
288
+ onEventSetMaxSupply(
289
+ func: (event: collection.SetMaxSupplyInstance, ctx: AptosContext) => void,
351
290
  fetchConfig?: Partial<MoveFetchConfig>,
352
291
  ): collection {
353
- this.onMoveEvent(func, { type: "collection::Mutation" }, fetchConfig);
292
+ this.onMoveEvent(func, { type: "collection::SetMaxSupply" }, fetchConfig);
354
293
  return this;
355
294
  }
356
295
 
@@ -362,19 +301,19 @@ export class collection extends AptosBaseProcessor {
362
301
  return this;
363
302
  }
364
303
 
365
- onEventMutatorRef(
366
- func: (event: collection.MutatorRefInstance, ctx: AptosContext) => void,
304
+ onEventBurnEvent(
305
+ func: (event: collection.BurnEventInstance, ctx: AptosContext) => void,
367
306
  fetchConfig?: Partial<MoveFetchConfig>,
368
307
  ): collection {
369
- this.onMoveEvent(func, { type: "collection::MutatorRef" }, fetchConfig);
308
+ this.onMoveEvent(func, { type: "collection::BurnEvent" }, fetchConfig);
370
309
  return this;
371
310
  }
372
311
 
373
- onEventSetMaxSupply(
374
- func: (event: collection.SetMaxSupplyInstance, ctx: AptosContext) => void,
312
+ onEventMintEvent(
313
+ func: (event: collection.MintEventInstance, ctx: AptosContext) => void,
375
314
  fetchConfig?: Partial<MoveFetchConfig>,
376
315
  ): collection {
377
- this.onMoveEvent(func, { type: "collection::SetMaxSupply" }, fetchConfig);
316
+ this.onMoveEvent(func, { type: "collection::MintEvent" }, fetchConfig);
378
317
  return this;
379
318
  }
380
319
  }
@@ -620,11 +559,6 @@ export namespace collection {
620
559
  }
621
560
  }
622
561
 
623
- export interface MutatorRefInstance extends TypedEventInstance<MutatorRef> {
624
- data_decoded: MutatorRef;
625
- type_arguments: [];
626
- }
627
-
628
562
  export interface SetMaxSupply {
629
563
  collection: _0x1.object$.Object<collection.Collection>;
630
564
  old_max_supply: bigint;
@@ -1195,43 +1129,6 @@ export namespace aptos_token {
1195
1129
  }
1196
1130
  }
1197
1131
 
1198
- export class property_map extends AptosBaseProcessor {
1199
- constructor(options: AptosBindOptions) {
1200
- super("property_map", options);
1201
- }
1202
- static DEFAULT_OPTIONS: AptosBindOptions = {
1203
- address: "0x4",
1204
- network: AptosNetwork.MAIN_NET,
1205
- };
1206
-
1207
- static bind(options: Partial<AptosBindOptions> = {}): property_map {
1208
- return new property_map({ ...property_map.DEFAULT_OPTIONS, ...options });
1209
- }
1210
-
1211
- onEventMutatorRef(
1212
- func: (event: property_map.MutatorRefInstance, ctx: AptosContext) => void,
1213
- fetchConfig?: Partial<MoveFetchConfig>,
1214
- ): property_map {
1215
- this.onMoveEvent(func, { type: "property_map::MutatorRef" }, fetchConfig);
1216
- return this;
1217
- }
1218
-
1219
- onEventPropertyValue(
1220
- func: (
1221
- event: property_map.PropertyValueInstance,
1222
- ctx: AptosContext,
1223
- ) => void,
1224
- fetchConfig?: Partial<MoveFetchConfig>,
1225
- ): property_map {
1226
- this.onMoveEvent(
1227
- func,
1228
- { type: "property_map::PropertyValue" },
1229
- fetchConfig,
1230
- );
1231
- return this;
1232
- }
1233
- }
1234
-
1235
1132
  export namespace property_map {
1236
1133
  export interface MutatorRef {
1237
1134
  self: MoveAddressType;
@@ -1247,11 +1144,6 @@ export namespace property_map {
1247
1144
  }
1248
1145
  }
1249
1146
 
1250
- export interface MutatorRefInstance extends TypedEventInstance<MutatorRef> {
1251
- data_decoded: MutatorRef;
1252
- type_arguments: [];
1253
- }
1254
-
1255
1147
  export interface PropertyMap {
1256
1148
  inner: _0x1.simple_map.SimpleMap<string, property_map.PropertyValue>;
1257
1149
  }
@@ -1280,12 +1172,6 @@ export namespace property_map {
1280
1172
  return TYPE.apply();
1281
1173
  }
1282
1174
  }
1283
-
1284
- export interface PropertyValueInstance
1285
- extends TypedEventInstance<PropertyValue> {
1286
- data_decoded: PropertyValue;
1287
- type_arguments: [];
1288
- }
1289
1175
  }
1290
1176
 
1291
1177
  const MODULES = JSON.parse(
@@ -1825,6 +1825,18 @@
1825
1825
  "type": "Bool"
1826
1826
  }
1827
1827
  ]
1828
+ },
1829
+ "UncompressedG1": {
1830
+ "abilities": {
1831
+ "abilities": []
1832
+ },
1833
+ "typeParameters": [],
1834
+ "fields": [
1835
+ {
1836
+ "name": "dummy_field",
1837
+ "type": "Bool"
1838
+ }
1839
+ ]
1828
1840
  }
1829
1841
  },
1830
1842
  "exposedFunctions": {
@@ -2328,6 +2340,51 @@
2328
2340
  }
2329
2341
  ]
2330
2342
  },
2343
+ "g1_to_uncompressed_g1": {
2344
+ "visibility": "Public",
2345
+ "isEntry": false,
2346
+ "typeParameters": [],
2347
+ "parameters": [
2348
+ {
2349
+ "Reference": {
2350
+ "Struct": {
2351
+ "address": "0x2",
2352
+ "module": "group_ops",
2353
+ "name": "Element",
2354
+ "typeArguments": [
2355
+ {
2356
+ "Struct": {
2357
+ "address": "0x2",
2358
+ "module": "bls12381",
2359
+ "name": "G1",
2360
+ "typeArguments": []
2361
+ }
2362
+ }
2363
+ ]
2364
+ }
2365
+ }
2366
+ }
2367
+ ],
2368
+ "return": [
2369
+ {
2370
+ "Struct": {
2371
+ "address": "0x2",
2372
+ "module": "group_ops",
2373
+ "name": "Element",
2374
+ "typeArguments": [
2375
+ {
2376
+ "Struct": {
2377
+ "address": "0x2",
2378
+ "module": "bls12381",
2379
+ "name": "UncompressedG1",
2380
+ "typeArguments": []
2381
+ }
2382
+ }
2383
+ ]
2384
+ }
2385
+ }
2386
+ ]
2387
+ },
2331
2388
  "g2_add": {
2332
2389
  "visibility": "Public",
2333
2390
  "isEntry": false,
@@ -3708,6 +3765,98 @@
3708
3765
  }
3709
3766
  }
3710
3767
  ]
3768
+ },
3769
+ "uncompressed_g1_sum": {
3770
+ "visibility": "Public",
3771
+ "isEntry": false,
3772
+ "typeParameters": [],
3773
+ "parameters": [
3774
+ {
3775
+ "Reference": {
3776
+ "Vector": {
3777
+ "Struct": {
3778
+ "address": "0x2",
3779
+ "module": "group_ops",
3780
+ "name": "Element",
3781
+ "typeArguments": [
3782
+ {
3783
+ "Struct": {
3784
+ "address": "0x2",
3785
+ "module": "bls12381",
3786
+ "name": "UncompressedG1",
3787
+ "typeArguments": []
3788
+ }
3789
+ }
3790
+ ]
3791
+ }
3792
+ }
3793
+ }
3794
+ }
3795
+ ],
3796
+ "return": [
3797
+ {
3798
+ "Struct": {
3799
+ "address": "0x2",
3800
+ "module": "group_ops",
3801
+ "name": "Element",
3802
+ "typeArguments": [
3803
+ {
3804
+ "Struct": {
3805
+ "address": "0x2",
3806
+ "module": "bls12381",
3807
+ "name": "UncompressedG1",
3808
+ "typeArguments": []
3809
+ }
3810
+ }
3811
+ ]
3812
+ }
3813
+ }
3814
+ ]
3815
+ },
3816
+ "uncompressed_g1_to_g1": {
3817
+ "visibility": "Public",
3818
+ "isEntry": false,
3819
+ "typeParameters": [],
3820
+ "parameters": [
3821
+ {
3822
+ "Reference": {
3823
+ "Struct": {
3824
+ "address": "0x2",
3825
+ "module": "group_ops",
3826
+ "name": "Element",
3827
+ "typeArguments": [
3828
+ {
3829
+ "Struct": {
3830
+ "address": "0x2",
3831
+ "module": "bls12381",
3832
+ "name": "UncompressedG1",
3833
+ "typeArguments": []
3834
+ }
3835
+ }
3836
+ ]
3837
+ }
3838
+ }
3839
+ }
3840
+ ],
3841
+ "return": [
3842
+ {
3843
+ "Struct": {
3844
+ "address": "0x2",
3845
+ "module": "group_ops",
3846
+ "name": "Element",
3847
+ "typeArguments": [
3848
+ {
3849
+ "Struct": {
3850
+ "address": "0x2",
3851
+ "module": "bls12381",
3852
+ "name": "G1",
3853
+ "typeArguments": []
3854
+ }
3855
+ }
3856
+ ]
3857
+ }
3858
+ }
3859
+ ]
3711
3860
  }
3712
3861
  }
3713
3862
  },
@@ -9841,6 +9990,50 @@
9841
9990
  }
9842
9991
  ]
9843
9992
  },
9993
+ "convert": {
9994
+ "visibility": "Friend",
9995
+ "isEntry": false,
9996
+ "typeParameters": [
9997
+ {
9998
+ "abilities": []
9999
+ },
10000
+ {
10001
+ "abilities": []
10002
+ }
10003
+ ],
10004
+ "parameters": [
10005
+ "U8",
10006
+ "U8",
10007
+ {
10008
+ "Reference": {
10009
+ "Struct": {
10010
+ "address": "0x2",
10011
+ "module": "group_ops",
10012
+ "name": "Element",
10013
+ "typeArguments": [
10014
+ {
10015
+ "TypeParameter": 0
10016
+ }
10017
+ ]
10018
+ }
10019
+ }
10020
+ }
10021
+ ],
10022
+ "return": [
10023
+ {
10024
+ "Struct": {
10025
+ "address": "0x2",
10026
+ "module": "group_ops",
10027
+ "name": "Element",
10028
+ "typeArguments": [
10029
+ {
10030
+ "TypeParameter": 1
10031
+ }
10032
+ ]
10033
+ }
10034
+ }
10035
+ ]
10036
+ },
9844
10037
  "div": {
9845
10038
  "visibility": "Friend",
9846
10039
  "isEntry": false,
@@ -10249,6 +10442,48 @@
10249
10442
  }
10250
10443
  }
10251
10444
  ]
10445
+ },
10446
+ "sum": {
10447
+ "visibility": "Friend",
10448
+ "isEntry": false,
10449
+ "typeParameters": [
10450
+ {
10451
+ "abilities": []
10452
+ }
10453
+ ],
10454
+ "parameters": [
10455
+ "U8",
10456
+ {
10457
+ "Reference": {
10458
+ "Vector": {
10459
+ "Struct": {
10460
+ "address": "0x2",
10461
+ "module": "group_ops",
10462
+ "name": "Element",
10463
+ "typeArguments": [
10464
+ {
10465
+ "TypeParameter": 0
10466
+ }
10467
+ ]
10468
+ }
10469
+ }
10470
+ }
10471
+ }
10472
+ ],
10473
+ "return": [
10474
+ {
10475
+ "Struct": {
10476
+ "address": "0x2",
10477
+ "module": "group_ops",
10478
+ "name": "Element",
10479
+ "typeArguments": [
10480
+ {
10481
+ "TypeParameter": 0
10482
+ }
10483
+ ]
10484
+ }
10485
+ }
10486
+ ]
10252
10487
  }
10253
10488
  }
10254
10489
  },