@sentio/sdk 2.61.0 → 2.62.0-rc.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 (45) hide show
  1. package/lib/aptos/builtin/0x1.d.ts +31 -0
  2. package/lib/aptos/builtin/0x1.d.ts.map +1 -1
  3. package/lib/aptos/builtin/0x1.js +62 -1
  4. package/lib/aptos/builtin/0x1.js.map +1 -1
  5. package/lib/iota/builtin/0x1.d.ts +65 -110
  6. package/lib/iota/builtin/0x1.d.ts.map +1 -1
  7. package/lib/iota/builtin/0x1.js.map +1 -1
  8. package/lib/iota/builtin/0x2.d.ts +595 -853
  9. package/lib/iota/builtin/0x2.d.ts.map +1 -1
  10. package/lib/iota/builtin/0x2.js.map +1 -1
  11. package/lib/iota/builtin/0x3.d.ts +289 -405
  12. package/lib/iota/builtin/0x3.d.ts.map +1 -1
  13. package/lib/iota/builtin/0x3.js +42 -1
  14. package/lib/iota/builtin/0x3.js.map +1 -1
  15. package/lib/sui/builtin/0x1.d.ts +10 -0
  16. package/lib/sui/builtin/0x1.d.ts.map +1 -1
  17. package/lib/sui/builtin/0x1.js +109 -1
  18. package/lib/sui/builtin/0x1.js.map +1 -1
  19. package/lib/sui/builtin/0x2.d.ts +109 -0
  20. package/lib/sui/builtin/0x2.d.ts.map +1 -1
  21. package/lib/sui/builtin/0x2.js +437 -1
  22. package/lib/sui/builtin/0x2.js.map +1 -1
  23. package/lib/sui/builtin/0x3.d.ts +4 -0
  24. package/lib/sui/builtin/0x3.d.ts.map +1 -1
  25. package/lib/sui/builtin/0x3.js +41 -1
  26. package/lib/sui/builtin/0x3.js.map +1 -1
  27. package/lib/testing/test-processor-server.d.ts.map +1 -1
  28. package/lib/testing/test-processor-server.js +2 -2
  29. package/lib/testing/test-processor-server.js.map +1 -1
  30. package/lib/testing/test-provider.js +2 -2
  31. package/package.json +16 -16
  32. package/src/aptos/abis/0x1.json +111 -9
  33. package/src/aptos/builtin/0x1.ts +118 -1
  34. package/src/iota/abis/0x3.json +70 -0
  35. package/src/iota/builtin/0x1.ts +65 -110
  36. package/src/iota/builtin/0x2.ts +595 -853
  37. package/src/iota/builtin/0x3.ts +341 -404
  38. package/src/sui/abis/0x1.json +123 -0
  39. package/src/sui/abis/0x2.json +607 -32
  40. package/src/sui/abis/0x3.json +52 -0
  41. package/src/sui/builtin/0x1.ts +153 -1
  42. package/src/sui/builtin/0x2.ts +708 -44
  43. package/src/sui/builtin/0x3.ts +57 -1
  44. package/src/testing/test-processor-server.ts +2 -2
  45. package/src/testing/test-provider.ts +2 -2
@@ -4,34 +4,496 @@
4
4
  "address": "0x2",
5
5
  "name": "accumulator",
6
6
  "friends": [
7
+ {
8
+ "address": "0x2",
9
+ "name": "accumulator_metadata"
10
+ },
11
+ {
12
+ "address": "0x2",
13
+ "name": "accumulator_settlement"
14
+ },
7
15
  {
8
16
  "address": "0x2",
9
17
  "name": "balance"
10
18
  }
11
19
  ],
12
20
  "structs": {
13
- "AccumulatorRoot": {
21
+ "AccumulatorRoot": {
22
+ "abilities": {
23
+ "abilities": [
24
+ "Key"
25
+ ]
26
+ },
27
+ "typeParameters": [],
28
+ "fields": [
29
+ {
30
+ "name": "id",
31
+ "type": {
32
+ "Struct": {
33
+ "address": "0x2",
34
+ "module": "object",
35
+ "name": "UID",
36
+ "typeArguments": []
37
+ }
38
+ }
39
+ }
40
+ ]
41
+ },
42
+ "Key": {
43
+ "abilities": {
44
+ "abilities": [
45
+ "Copy",
46
+ "Drop",
47
+ "Store"
48
+ ]
49
+ },
50
+ "typeParameters": [
51
+ {
52
+ "constraints": {
53
+ "abilities": []
54
+ },
55
+ "isPhantom": true
56
+ }
57
+ ],
58
+ "fields": [
59
+ {
60
+ "name": "address",
61
+ "type": "Address"
62
+ }
63
+ ]
64
+ },
65
+ "U128": {
66
+ "abilities": {
67
+ "abilities": [
68
+ "Store"
69
+ ]
70
+ },
71
+ "typeParameters": [],
72
+ "fields": [
73
+ {
74
+ "name": "value",
75
+ "type": "U128"
76
+ }
77
+ ]
78
+ }
79
+ },
80
+ "exposedFunctions": {
81
+ "accumulator_address": {
82
+ "visibility": "Friend",
83
+ "isEntry": false,
84
+ "typeParameters": [
85
+ {
86
+ "abilities": []
87
+ }
88
+ ],
89
+ "parameters": [
90
+ "Address"
91
+ ],
92
+ "return": [
93
+ "Address"
94
+ ]
95
+ },
96
+ "accumulator_key": {
97
+ "visibility": "Friend",
98
+ "isEntry": false,
99
+ "typeParameters": [
100
+ {
101
+ "abilities": []
102
+ }
103
+ ],
104
+ "parameters": [
105
+ "Address"
106
+ ],
107
+ "return": [
108
+ {
109
+ "Struct": {
110
+ "address": "0x2",
111
+ "module": "accumulator",
112
+ "name": "Key",
113
+ "typeArguments": [
114
+ {
115
+ "TypeParameter": 0
116
+ }
117
+ ]
118
+ }
119
+ }
120
+ ]
121
+ },
122
+ "create_u128": {
123
+ "visibility": "Friend",
124
+ "isEntry": false,
125
+ "typeParameters": [],
126
+ "parameters": [
127
+ "U128"
128
+ ],
129
+ "return": [
130
+ {
131
+ "Struct": {
132
+ "address": "0x2",
133
+ "module": "accumulator",
134
+ "name": "U128",
135
+ "typeArguments": []
136
+ }
137
+ }
138
+ ]
139
+ },
140
+ "destroy_u128": {
141
+ "visibility": "Friend",
142
+ "isEntry": false,
143
+ "typeParameters": [],
144
+ "parameters": [
145
+ {
146
+ "Struct": {
147
+ "address": "0x2",
148
+ "module": "accumulator",
149
+ "name": "U128",
150
+ "typeArguments": []
151
+ }
152
+ }
153
+ ],
154
+ "return": []
155
+ },
156
+ "emit_deposit_event": {
157
+ "visibility": "Friend",
158
+ "isEntry": false,
159
+ "typeParameters": [
160
+ {
161
+ "abilities": []
162
+ }
163
+ ],
164
+ "parameters": [
165
+ "Address",
166
+ "Address",
167
+ "U64"
168
+ ],
169
+ "return": []
170
+ },
171
+ "emit_withdraw_event": {
172
+ "visibility": "Friend",
173
+ "isEntry": false,
174
+ "typeParameters": [
175
+ {
176
+ "abilities": []
177
+ }
178
+ ],
179
+ "parameters": [
180
+ "Address",
181
+ "Address",
182
+ "U64"
183
+ ],
184
+ "return": []
185
+ },
186
+ "is_zero_u128": {
187
+ "visibility": "Friend",
188
+ "isEntry": false,
189
+ "typeParameters": [],
190
+ "parameters": [
191
+ {
192
+ "Reference": {
193
+ "Struct": {
194
+ "address": "0x2",
195
+ "module": "accumulator",
196
+ "name": "U128",
197
+ "typeArguments": []
198
+ }
199
+ }
200
+ }
201
+ ],
202
+ "return": [
203
+ "Bool"
204
+ ]
205
+ },
206
+ "root_add_accumulator": {
207
+ "visibility": "Friend",
208
+ "isEntry": false,
209
+ "typeParameters": [
210
+ {
211
+ "abilities": []
212
+ },
213
+ {
214
+ "abilities": [
215
+ "Store"
216
+ ]
217
+ }
218
+ ],
219
+ "parameters": [
220
+ {
221
+ "MutableReference": {
222
+ "Struct": {
223
+ "address": "0x2",
224
+ "module": "accumulator",
225
+ "name": "AccumulatorRoot",
226
+ "typeArguments": []
227
+ }
228
+ }
229
+ },
230
+ {
231
+ "Struct": {
232
+ "address": "0x2",
233
+ "module": "accumulator",
234
+ "name": "Key",
235
+ "typeArguments": [
236
+ {
237
+ "TypeParameter": 0
238
+ }
239
+ ]
240
+ }
241
+ },
242
+ {
243
+ "TypeParameter": 1
244
+ }
245
+ ],
246
+ "return": []
247
+ },
248
+ "root_borrow_accumulator_mut": {
249
+ "visibility": "Friend",
250
+ "isEntry": false,
251
+ "typeParameters": [
252
+ {
253
+ "abilities": []
254
+ },
255
+ {
256
+ "abilities": [
257
+ "Store"
258
+ ]
259
+ }
260
+ ],
261
+ "parameters": [
262
+ {
263
+ "MutableReference": {
264
+ "Struct": {
265
+ "address": "0x2",
266
+ "module": "accumulator",
267
+ "name": "AccumulatorRoot",
268
+ "typeArguments": []
269
+ }
270
+ }
271
+ },
272
+ {
273
+ "Struct": {
274
+ "address": "0x2",
275
+ "module": "accumulator",
276
+ "name": "Key",
277
+ "typeArguments": [
278
+ {
279
+ "TypeParameter": 0
280
+ }
281
+ ]
282
+ }
283
+ }
284
+ ],
285
+ "return": [
286
+ {
287
+ "MutableReference": {
288
+ "TypeParameter": 1
289
+ }
290
+ }
291
+ ]
292
+ },
293
+ "root_has_accumulator": {
294
+ "visibility": "Friend",
295
+ "isEntry": false,
296
+ "typeParameters": [
297
+ {
298
+ "abilities": []
299
+ },
300
+ {
301
+ "abilities": [
302
+ "Store"
303
+ ]
304
+ }
305
+ ],
306
+ "parameters": [
307
+ {
308
+ "Reference": {
309
+ "Struct": {
310
+ "address": "0x2",
311
+ "module": "accumulator",
312
+ "name": "AccumulatorRoot",
313
+ "typeArguments": []
314
+ }
315
+ }
316
+ },
317
+ {
318
+ "Struct": {
319
+ "address": "0x2",
320
+ "module": "accumulator",
321
+ "name": "Key",
322
+ "typeArguments": [
323
+ {
324
+ "TypeParameter": 0
325
+ }
326
+ ]
327
+ }
328
+ }
329
+ ],
330
+ "return": [
331
+ "Bool"
332
+ ]
333
+ },
334
+ "root_id": {
335
+ "visibility": "Friend",
336
+ "isEntry": false,
337
+ "typeParameters": [],
338
+ "parameters": [
339
+ {
340
+ "Reference": {
341
+ "Struct": {
342
+ "address": "0x2",
343
+ "module": "accumulator",
344
+ "name": "AccumulatorRoot",
345
+ "typeArguments": []
346
+ }
347
+ }
348
+ }
349
+ ],
350
+ "return": [
351
+ {
352
+ "Reference": {
353
+ "Struct": {
354
+ "address": "0x2",
355
+ "module": "object",
356
+ "name": "UID",
357
+ "typeArguments": []
358
+ }
359
+ }
360
+ }
361
+ ]
362
+ },
363
+ "root_id_mut": {
364
+ "visibility": "Friend",
365
+ "isEntry": false,
366
+ "typeParameters": [],
367
+ "parameters": [
368
+ {
369
+ "MutableReference": {
370
+ "Struct": {
371
+ "address": "0x2",
372
+ "module": "accumulator",
373
+ "name": "AccumulatorRoot",
374
+ "typeArguments": []
375
+ }
376
+ }
377
+ }
378
+ ],
379
+ "return": [
380
+ {
381
+ "MutableReference": {
382
+ "Struct": {
383
+ "address": "0x2",
384
+ "module": "object",
385
+ "name": "UID",
386
+ "typeArguments": []
387
+ }
388
+ }
389
+ }
390
+ ]
391
+ },
392
+ "root_remove_accumulator": {
393
+ "visibility": "Friend",
394
+ "isEntry": false,
395
+ "typeParameters": [
396
+ {
397
+ "abilities": []
398
+ },
399
+ {
400
+ "abilities": [
401
+ "Store"
402
+ ]
403
+ }
404
+ ],
405
+ "parameters": [
406
+ {
407
+ "MutableReference": {
408
+ "Struct": {
409
+ "address": "0x2",
410
+ "module": "accumulator",
411
+ "name": "AccumulatorRoot",
412
+ "typeArguments": []
413
+ }
414
+ }
415
+ },
416
+ {
417
+ "Struct": {
418
+ "address": "0x2",
419
+ "module": "accumulator",
420
+ "name": "Key",
421
+ "typeArguments": [
422
+ {
423
+ "TypeParameter": 0
424
+ }
425
+ ]
426
+ }
427
+ }
428
+ ],
429
+ "return": [
430
+ {
431
+ "TypeParameter": 1
432
+ }
433
+ ]
434
+ },
435
+ "update_u128": {
436
+ "visibility": "Friend",
437
+ "isEntry": false,
438
+ "typeParameters": [],
439
+ "parameters": [
440
+ {
441
+ "MutableReference": {
442
+ "Struct": {
443
+ "address": "0x2",
444
+ "module": "accumulator",
445
+ "name": "U128",
446
+ "typeArguments": []
447
+ }
448
+ }
449
+ },
450
+ "U128",
451
+ "U128"
452
+ ],
453
+ "return": []
454
+ }
455
+ }
456
+ },
457
+ "accumulator_metadata": {
458
+ "fileFormatVersion": 6,
459
+ "address": "0x2",
460
+ "name": "accumulator_metadata",
461
+ "friends": [
462
+ {
463
+ "address": "0x2",
464
+ "name": "accumulator_settlement"
465
+ }
466
+ ],
467
+ "structs": {
468
+ "Metadata": {
14
469
  "abilities": {
15
470
  "abilities": [
16
- "Key"
471
+ "Store"
17
472
  ]
18
473
  },
19
- "typeParameters": [],
474
+ "typeParameters": [
475
+ {
476
+ "constraints": {
477
+ "abilities": []
478
+ },
479
+ "isPhantom": true
480
+ }
481
+ ],
20
482
  "fields": [
21
483
  {
22
- "name": "id",
484
+ "name": "fields",
23
485
  "type": {
24
486
  "Struct": {
25
487
  "address": "0x2",
26
- "module": "object",
27
- "name": "UID",
488
+ "module": "bag",
489
+ "name": "Bag",
28
490
  "typeArguments": []
29
491
  }
30
492
  }
31
493
  }
32
494
  ]
33
495
  },
34
- "Key": {
496
+ "MetadataKey": {
35
497
  "abilities": {
36
498
  "abilities": [
37
499
  "Copy",
@@ -49,28 +511,55 @@
49
511
  ],
50
512
  "fields": [
51
513
  {
52
- "name": "address",
514
+ "name": "dummy_field",
515
+ "type": "Bool"
516
+ }
517
+ ]
518
+ },
519
+ "Owner": {
520
+ "abilities": {
521
+ "abilities": [
522
+ "Store"
523
+ ]
524
+ },
525
+ "typeParameters": [],
526
+ "fields": [
527
+ {
528
+ "name": "balances",
529
+ "type": {
530
+ "Struct": {
531
+ "address": "0x2",
532
+ "module": "bag",
533
+ "name": "Bag",
534
+ "typeArguments": []
535
+ }
536
+ }
537
+ },
538
+ {
539
+ "name": "owner",
53
540
  "type": "Address"
54
541
  }
55
542
  ]
56
543
  },
57
- "U128": {
544
+ "OwnerKey": {
58
545
  "abilities": {
59
546
  "abilities": [
547
+ "Copy",
548
+ "Drop",
60
549
  "Store"
61
550
  ]
62
551
  },
63
552
  "typeParameters": [],
64
553
  "fields": [
65
554
  {
66
- "name": "value",
67
- "type": "U128"
555
+ "name": "owner",
556
+ "type": "Address"
68
557
  }
69
558
  ]
70
559
  }
71
560
  },
72
561
  "exposedFunctions": {
73
- "accumulator_address": {
562
+ "create_accumulator_metadata": {
74
563
  "visibility": "Friend",
75
564
  "isEntry": false,
76
565
  "typeParameters": [
@@ -79,28 +568,31 @@
79
568
  }
80
569
  ],
81
570
  "parameters": [
82
- "Address"
83
- ],
84
- "return": [
85
- "Address"
86
- ]
87
- },
88
- "emit_deposit_event": {
89
- "visibility": "Friend",
90
- "isEntry": false,
91
- "typeParameters": [
92
571
  {
93
- "abilities": []
94
- }
95
- ],
96
- "parameters": [
97
- "Address",
572
+ "MutableReference": {
573
+ "Struct": {
574
+ "address": "0x2",
575
+ "module": "accumulator",
576
+ "name": "AccumulatorRoot",
577
+ "typeArguments": []
578
+ }
579
+ }
580
+ },
98
581
  "Address",
99
- "U64"
582
+ {
583
+ "MutableReference": {
584
+ "Struct": {
585
+ "address": "0x2",
586
+ "module": "tx_context",
587
+ "name": "TxContext",
588
+ "typeArguments": []
589
+ }
590
+ }
591
+ }
100
592
  ],
101
593
  "return": []
102
594
  },
103
- "emit_withdraw_event": {
595
+ "remove_accumulator_metadata": {
104
596
  "visibility": "Friend",
105
597
  "isEntry": false,
106
598
  "typeParameters": [
@@ -109,14 +601,30 @@
109
601
  }
110
602
  ],
111
603
  "parameters": [
112
- "Address",
113
- "Address",
114
- "U64"
604
+ {
605
+ "MutableReference": {
606
+ "Struct": {
607
+ "address": "0x2",
608
+ "module": "accumulator",
609
+ "name": "AccumulatorRoot",
610
+ "typeArguments": []
611
+ }
612
+ }
613
+ },
614
+ "Address"
115
615
  ],
116
616
  "return": []
117
617
  }
118
618
  }
119
619
  },
620
+ "accumulator_settlement": {
621
+ "fileFormatVersion": 6,
622
+ "address": "0x2",
623
+ "name": "accumulator_settlement",
624
+ "friends": [],
625
+ "structs": {},
626
+ "exposedFunctions": {}
627
+ },
120
628
  "address": {
121
629
  "fileFormatVersion": 6,
122
630
  "address": "0x2",
@@ -23724,6 +24232,42 @@
23724
24232
  }
23725
24233
  ]
23726
24234
  },
24235
+ "length": {
24236
+ "visibility": "Public",
24237
+ "isEntry": false,
24238
+ "typeParameters": [
24239
+ {
24240
+ "abilities": [
24241
+ "Copy"
24242
+ ]
24243
+ },
24244
+ {
24245
+ "abilities": []
24246
+ }
24247
+ ],
24248
+ "parameters": [
24249
+ {
24250
+ "Reference": {
24251
+ "Struct": {
24252
+ "address": "0x2",
24253
+ "module": "vec_map",
24254
+ "name": "VecMap",
24255
+ "typeArguments": [
24256
+ {
24257
+ "TypeParameter": 0
24258
+ },
24259
+ {
24260
+ "TypeParameter": 1
24261
+ }
24262
+ ]
24263
+ }
24264
+ }
24265
+ }
24266
+ ],
24267
+ "return": [
24268
+ "U64"
24269
+ ]
24270
+ },
23727
24271
  "pop": {
23728
24272
  "visibility": "Public",
23729
24273
  "isEntry": false,
@@ -24212,6 +24756,37 @@
24212
24756
  }
24213
24757
  ]
24214
24758
  },
24759
+ "length": {
24760
+ "visibility": "Public",
24761
+ "isEntry": false,
24762
+ "typeParameters": [
24763
+ {
24764
+ "abilities": [
24765
+ "Copy",
24766
+ "Drop"
24767
+ ]
24768
+ }
24769
+ ],
24770
+ "parameters": [
24771
+ {
24772
+ "Reference": {
24773
+ "Struct": {
24774
+ "address": "0x2",
24775
+ "module": "vec_set",
24776
+ "name": "VecSet",
24777
+ "typeArguments": [
24778
+ {
24779
+ "TypeParameter": 0
24780
+ }
24781
+ ]
24782
+ }
24783
+ }
24784
+ }
24785
+ ],
24786
+ "return": [
24787
+ "U64"
24788
+ ]
24789
+ },
24215
24790
  "remove": {
24216
24791
  "visibility": "Public",
24217
24792
  "isEntry": false,