@sentio/sdk 3.4.0-rc.1 → 3.4.0

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 (76) hide show
  1. package/lib/aptos/builtin/0x1.d.ts +111 -0
  2. package/lib/aptos/builtin/0x1.d.ts.map +1 -1
  3. package/lib/aptos/builtin/0x1.js +131 -1
  4. package/lib/aptos/builtin/0x1.js.map +1 -1
  5. package/lib/aptos/builtin/0x3.js +1 -1
  6. package/lib/aptos/builtin/0x3.js.map +1 -1
  7. package/lib/aptos/builtin/0x4.js +1 -1
  8. package/lib/aptos/builtin/0x4.js.map +1 -1
  9. package/lib/iota/builtin/0x2.d.ts +573 -0
  10. package/lib/iota/builtin/0x2.d.ts.map +1 -1
  11. package/lib/iota/builtin/0x2.js +3905 -1823
  12. package/lib/iota/builtin/0x2.js.map +1 -1
  13. package/lib/iota/builtin/0x3.d.ts +46 -7
  14. package/lib/iota/builtin/0x3.d.ts.map +1 -1
  15. package/lib/iota/builtin/0x3.js +16 -7
  16. package/lib/iota/builtin/0x3.js.map +1 -1
  17. package/lib/sui/builtin/0x1.d.ts +354 -197
  18. package/lib/sui/builtin/0x1.d.ts.map +1 -1
  19. package/lib/sui/builtin/0x1.js +1599 -67
  20. package/lib/sui/builtin/0x1.js.map +1 -1
  21. package/lib/sui/builtin/0x2.d.ts +1130 -623
  22. package/lib/sui/builtin/0x2.d.ts.map +1 -1
  23. package/lib/sui/builtin/0x2.js +2105 -79
  24. package/lib/sui/builtin/0x2.js.map +1 -1
  25. package/lib/sui/builtin/0x3.d.ts +305 -269
  26. package/lib/sui/builtin/0x3.d.ts.map +1 -1
  27. package/lib/sui/builtin/0x3.js +92 -1
  28. package/lib/sui/builtin/0x3.js.map +1 -1
  29. package/lib/sui/context.d.ts +4 -4
  30. package/lib/sui/context.d.ts.map +1 -1
  31. package/lib/sui/ext/move-dex.d.ts +1 -1
  32. package/lib/sui/ext/move-dex.d.ts.map +1 -1
  33. package/lib/sui/models.d.ts +1 -1
  34. package/lib/sui/models.d.ts.map +1 -1
  35. package/lib/sui/network.d.ts +2 -2
  36. package/lib/sui/network.d.ts.map +1 -1
  37. package/lib/sui/network.js +13 -2
  38. package/lib/sui/network.js.map +1 -1
  39. package/lib/sui/sui-object-processor-template.d.ts +1 -1
  40. package/lib/sui/sui-object-processor-template.d.ts.map +1 -1
  41. package/lib/sui/sui-object-processor.d.ts +1 -1
  42. package/lib/sui/sui-object-processor.d.ts.map +1 -1
  43. package/lib/sui/sui-processor.d.ts +1 -1
  44. package/lib/sui/sui-processor.d.ts.map +1 -1
  45. package/lib/sui/utils.d.ts +1 -1
  46. package/lib/sui/utils.d.ts.map +1 -1
  47. package/lib/testing/sui-facet.d.ts +1 -1
  48. package/lib/testing/sui-facet.d.ts.map +1 -1
  49. package/package.json +11 -11
  50. package/src/aptos/abis/0x1.json +1694 -323
  51. package/src/aptos/abis/0x3.json +75 -5
  52. package/src/aptos/abis/0x4.json +48 -20
  53. package/src/aptos/builtin/0x1.ts +233 -1
  54. package/src/aptos/builtin/0x3.ts +1 -1
  55. package/src/aptos/builtin/0x4.ts +1 -1
  56. package/src/iota/abis/0x2.json +8847 -5376
  57. package/src/iota/abis/0x3.json +25 -2
  58. package/src/iota/builtin/0x2.ts +4722 -1344
  59. package/src/iota/builtin/0x3.ts +60 -11
  60. package/src/sui/abis/0x1.json +1643 -220
  61. package/src/sui/abis/0x2.json +3768 -372
  62. package/src/sui/abis/0x3.json +114 -0
  63. package/src/sui/builtin/0x1.ts +2448 -333
  64. package/src/sui/builtin/0x2.ts +4356 -1214
  65. package/src/sui/builtin/0x3.ts +449 -270
  66. package/src/sui/codegen/codegen.ts +1 -1
  67. package/src/sui/context.ts +5 -5
  68. package/src/sui/ext/coin.ts +1 -1
  69. package/src/sui/ext/move-dex.ts +1 -1
  70. package/src/sui/models.ts +1 -1
  71. package/src/sui/network.ts +11 -3
  72. package/src/sui/sui-object-processor-template.ts +1 -1
  73. package/src/sui/sui-object-processor.ts +1 -1
  74. package/src/sui/sui-processor.ts +1 -1
  75. package/src/sui/utils.ts +1 -1
  76. package/src/testing/sui-facet.ts +1 -1
@@ -907,11 +907,99 @@
907
907
  }
908
908
  }
909
909
  },
910
+ "internal": {
911
+ "fileFormatVersion": 6,
912
+ "address": "0x1",
913
+ "name": "internal",
914
+ "friends": [],
915
+ "structs": {
916
+ "Permit": {
917
+ "abilities": {
918
+ "abilities": [
919
+ "Drop"
920
+ ]
921
+ },
922
+ "typeParameters": [
923
+ {
924
+ "constraints": {
925
+ "abilities": []
926
+ },
927
+ "isPhantom": true
928
+ }
929
+ ],
930
+ "fields": [
931
+ {
932
+ "name": "dummy_field",
933
+ "type": "Bool"
934
+ }
935
+ ]
936
+ }
937
+ },
938
+ "exposedFunctions": {
939
+ "permit": {
940
+ "visibility": "Public",
941
+ "isEntry": false,
942
+ "typeParameters": [
943
+ {
944
+ "abilities": []
945
+ }
946
+ ],
947
+ "parameters": [],
948
+ "return": [
949
+ {
950
+ "Struct": {
951
+ "address": "0x1",
952
+ "module": "internal",
953
+ "name": "Permit",
954
+ "typeArguments": [
955
+ {
956
+ "TypeParameter": 0
957
+ }
958
+ ]
959
+ }
960
+ }
961
+ ]
962
+ }
963
+ }
964
+ },
910
965
  "macros": {
911
966
  "fileFormatVersion": 6,
912
967
  "address": "0x1",
913
968
  "name": "macros",
914
- "friends": [],
969
+ "friends": [
970
+ {
971
+ "address": "0x1",
972
+ "name": "u128"
973
+ },
974
+ {
975
+ "address": "0x1",
976
+ "name": "u16"
977
+ },
978
+ {
979
+ "address": "0x1",
980
+ "name": "u256"
981
+ },
982
+ {
983
+ "address": "0x1",
984
+ "name": "u32"
985
+ },
986
+ {
987
+ "address": "0x1",
988
+ "name": "u64"
989
+ },
990
+ {
991
+ "address": "0x1",
992
+ "name": "u8"
993
+ },
994
+ {
995
+ "address": "0x1",
996
+ "name": "uq32_32"
997
+ },
998
+ {
999
+ "address": "0x1",
1000
+ "name": "uq64_64"
1001
+ }
1002
+ ],
915
1003
  "structs": {},
916
1004
  "exposedFunctions": {}
917
1005
  },
@@ -1992,6 +2080,33 @@
1992
2080
  }
1993
2081
  ]
1994
2082
  },
2083
+ "datatype_string": {
2084
+ "visibility": "Public",
2085
+ "isEntry": false,
2086
+ "typeParameters": [],
2087
+ "parameters": [
2088
+ {
2089
+ "Reference": {
2090
+ "Struct": {
2091
+ "address": "0x1",
2092
+ "module": "type_name",
2093
+ "name": "TypeName",
2094
+ "typeArguments": []
2095
+ }
2096
+ }
2097
+ }
2098
+ ],
2099
+ "return": [
2100
+ {
2101
+ "Struct": {
2102
+ "address": "0x1",
2103
+ "module": "ascii",
2104
+ "name": "String",
2105
+ "typeArguments": []
2106
+ }
2107
+ }
2108
+ ]
2109
+ },
1995
2110
  "defining_id": {
1996
2111
  "visibility": "Public",
1997
2112
  "isEntry": false,
@@ -2244,7 +2359,7 @@
2244
2359
  "U128"
2245
2360
  ]
2246
2361
  },
2247
- "diff": {
2362
+ "checked_add": {
2248
2363
  "visibility": "Public",
2249
2364
  "isEntry": false,
2250
2365
  "typeParameters": [],
@@ -2253,10 +2368,19 @@
2253
2368
  "U128"
2254
2369
  ],
2255
2370
  "return": [
2256
- "U128"
2371
+ {
2372
+ "Struct": {
2373
+ "address": "0x1",
2374
+ "module": "option",
2375
+ "name": "Option",
2376
+ "typeArguments": [
2377
+ "U128"
2378
+ ]
2379
+ }
2380
+ }
2257
2381
  ]
2258
2382
  },
2259
- "divide_and_round_up": {
2383
+ "checked_div": {
2260
2384
  "visibility": "Public",
2261
2385
  "isEntry": false,
2262
2386
  "typeParameters": [],
@@ -2265,10 +2389,19 @@
2265
2389
  "U128"
2266
2390
  ],
2267
2391
  "return": [
2268
- "U128"
2392
+ {
2393
+ "Struct": {
2394
+ "address": "0x1",
2395
+ "module": "option",
2396
+ "name": "Option",
2397
+ "typeArguments": [
2398
+ "U128"
2399
+ ]
2400
+ }
2401
+ }
2269
2402
  ]
2270
2403
  },
2271
- "max": {
2404
+ "checked_mul": {
2272
2405
  "visibility": "Public",
2273
2406
  "isEntry": false,
2274
2407
  "typeParameters": [],
@@ -2277,22 +2410,40 @@
2277
2410
  "U128"
2278
2411
  ],
2279
2412
  "return": [
2280
- "U128"
2413
+ {
2414
+ "Struct": {
2415
+ "address": "0x1",
2416
+ "module": "option",
2417
+ "name": "Option",
2418
+ "typeArguments": [
2419
+ "U128"
2420
+ ]
2421
+ }
2422
+ }
2281
2423
  ]
2282
2424
  },
2283
- "min": {
2425
+ "checked_shl": {
2284
2426
  "visibility": "Public",
2285
2427
  "isEntry": false,
2286
2428
  "typeParameters": [],
2287
2429
  "parameters": [
2288
2430
  "U128",
2289
- "U128"
2431
+ "U8"
2290
2432
  ],
2291
2433
  "return": [
2292
- "U128"
2434
+ {
2435
+ "Struct": {
2436
+ "address": "0x1",
2437
+ "module": "option",
2438
+ "name": "Option",
2439
+ "typeArguments": [
2440
+ "U128"
2441
+ ]
2442
+ }
2443
+ }
2293
2444
  ]
2294
2445
  },
2295
- "pow": {
2446
+ "checked_shr": {
2296
2447
  "visibility": "Public",
2297
2448
  "isEntry": false,
2298
2449
  "typeParameters": [],
@@ -2301,63 +2452,69 @@
2301
2452
  "U8"
2302
2453
  ],
2303
2454
  "return": [
2304
- "U128"
2455
+ {
2456
+ "Struct": {
2457
+ "address": "0x1",
2458
+ "module": "option",
2459
+ "name": "Option",
2460
+ "typeArguments": [
2461
+ "U128"
2462
+ ]
2463
+ }
2464
+ }
2305
2465
  ]
2306
2466
  },
2307
- "sqrt": {
2467
+ "checked_sub": {
2308
2468
  "visibility": "Public",
2309
2469
  "isEntry": false,
2310
2470
  "typeParameters": [],
2311
2471
  "parameters": [
2472
+ "U128",
2312
2473
  "U128"
2313
2474
  ],
2314
2475
  "return": [
2315
- "U128"
2476
+ {
2477
+ "Struct": {
2478
+ "address": "0x1",
2479
+ "module": "option",
2480
+ "name": "Option",
2481
+ "typeArguments": [
2482
+ "U128"
2483
+ ]
2484
+ }
2485
+ }
2316
2486
  ]
2317
2487
  },
2318
- "to_string": {
2488
+ "diff": {
2319
2489
  "visibility": "Public",
2320
2490
  "isEntry": false,
2321
2491
  "typeParameters": [],
2322
2492
  "parameters": [
2493
+ "U128",
2323
2494
  "U128"
2324
2495
  ],
2325
2496
  "return": [
2326
- {
2327
- "Struct": {
2328
- "address": "0x1",
2329
- "module": "string",
2330
- "name": "String",
2331
- "typeArguments": []
2332
- }
2333
- }
2497
+ "U128"
2334
2498
  ]
2335
2499
  },
2336
- "try_as_u16": {
2500
+ "divide_and_round_up": {
2337
2501
  "visibility": "Public",
2338
2502
  "isEntry": false,
2339
2503
  "typeParameters": [],
2340
2504
  "parameters": [
2505
+ "U128",
2341
2506
  "U128"
2342
2507
  ],
2343
2508
  "return": [
2344
- {
2345
- "Struct": {
2346
- "address": "0x1",
2347
- "module": "option",
2348
- "name": "Option",
2349
- "typeArguments": [
2350
- "U16"
2351
- ]
2352
- }
2353
- }
2509
+ "U128"
2354
2510
  ]
2355
2511
  },
2356
- "try_as_u32": {
2512
+ "lossless_div": {
2357
2513
  "visibility": "Public",
2358
2514
  "isEntry": false,
2359
2515
  "typeParameters": [],
2360
2516
  "parameters": [
2517
+ "U128",
2361
2518
  "U128"
2362
2519
  ],
2363
2520
  "return": [
@@ -2367,18 +2524,19 @@
2367
2524
  "module": "option",
2368
2525
  "name": "Option",
2369
2526
  "typeArguments": [
2370
- "U32"
2527
+ "U128"
2371
2528
  ]
2372
2529
  }
2373
2530
  }
2374
2531
  ]
2375
2532
  },
2376
- "try_as_u64": {
2533
+ "lossless_shl": {
2377
2534
  "visibility": "Public",
2378
2535
  "isEntry": false,
2379
2536
  "typeParameters": [],
2380
2537
  "parameters": [
2381
- "U128"
2538
+ "U128",
2539
+ "U8"
2382
2540
  ],
2383
2541
  "return": [
2384
2542
  {
@@ -2387,18 +2545,19 @@
2387
2545
  "module": "option",
2388
2546
  "name": "Option",
2389
2547
  "typeArguments": [
2390
- "U64"
2548
+ "U128"
2391
2549
  ]
2392
2550
  }
2393
2551
  }
2394
2552
  ]
2395
2553
  },
2396
- "try_as_u8": {
2554
+ "lossless_shr": {
2397
2555
  "visibility": "Public",
2398
2556
  "isEntry": false,
2399
2557
  "typeParameters": [],
2400
2558
  "parameters": [
2401
- "U128"
2559
+ "U128",
2560
+ "U8"
2402
2561
  ],
2403
2562
  "return": [
2404
2563
  {
@@ -2407,90 +2566,82 @@
2407
2566
  "module": "option",
2408
2567
  "name": "Option",
2409
2568
  "typeArguments": [
2410
- "U8"
2569
+ "U128"
2411
2570
  ]
2412
2571
  }
2413
2572
  }
2414
2573
  ]
2415
- }
2416
- }
2417
- },
2418
- "u16": {
2419
- "fileFormatVersion": 6,
2420
- "address": "0x1",
2421
- "name": "u16",
2422
- "friends": [],
2423
- "structs": {},
2424
- "exposedFunctions": {
2425
- "bitwise_not": {
2574
+ },
2575
+ "max": {
2426
2576
  "visibility": "Public",
2427
2577
  "isEntry": false,
2428
2578
  "typeParameters": [],
2429
2579
  "parameters": [
2430
- "U16"
2580
+ "U128",
2581
+ "U128"
2431
2582
  ],
2432
2583
  "return": [
2433
- "U16"
2584
+ "U128"
2434
2585
  ]
2435
2586
  },
2436
- "diff": {
2587
+ "min": {
2437
2588
  "visibility": "Public",
2438
2589
  "isEntry": false,
2439
2590
  "typeParameters": [],
2440
2591
  "parameters": [
2441
- "U16",
2442
- "U16"
2592
+ "U128",
2593
+ "U128"
2443
2594
  ],
2444
2595
  "return": [
2445
- "U16"
2596
+ "U128"
2446
2597
  ]
2447
2598
  },
2448
- "divide_and_round_up": {
2599
+ "pow": {
2449
2600
  "visibility": "Public",
2450
2601
  "isEntry": false,
2451
2602
  "typeParameters": [],
2452
2603
  "parameters": [
2453
- "U16",
2454
- "U16"
2604
+ "U128",
2605
+ "U8"
2455
2606
  ],
2456
2607
  "return": [
2457
- "U16"
2608
+ "U128"
2458
2609
  ]
2459
2610
  },
2460
- "max": {
2611
+ "saturating_add": {
2461
2612
  "visibility": "Public",
2462
2613
  "isEntry": false,
2463
2614
  "typeParameters": [],
2464
2615
  "parameters": [
2465
- "U16",
2466
- "U16"
2616
+ "U128",
2617
+ "U128"
2467
2618
  ],
2468
2619
  "return": [
2469
- "U16"
2620
+ "U128"
2470
2621
  ]
2471
2622
  },
2472
- "min": {
2623
+ "saturating_mul": {
2473
2624
  "visibility": "Public",
2474
2625
  "isEntry": false,
2475
2626
  "typeParameters": [],
2476
2627
  "parameters": [
2477
- "U16",
2478
- "U16"
2628
+ "U128",
2629
+ "U128"
2479
2630
  ],
2480
2631
  "return": [
2481
- "U16"
2632
+ "U128"
2482
2633
  ]
2483
2634
  },
2484
- "pow": {
2635
+ "saturating_sub": {
2485
2636
  "visibility": "Public",
2486
2637
  "isEntry": false,
2487
2638
  "typeParameters": [],
2488
2639
  "parameters": [
2489
- "U16",
2490
- "U8"
2640
+ "U128",
2641
+ "U128"
2491
2642
  ],
2492
2643
  "return": [
2493
- "U16"
2644
+ "U128"
2494
2645
  ]
2495
2646
  },
2496
2647
  "sqrt": {
@@ -2498,10 +2649,10 @@
2498
2649
  "isEntry": false,
2499
2650
  "typeParameters": [],
2500
2651
  "parameters": [
2501
- "U16"
2652
+ "U128"
2502
2653
  ],
2503
2654
  "return": [
2504
- "U16"
2655
+ "U128"
2505
2656
  ]
2506
2657
  },
2507
2658
  "to_string": {
@@ -2509,7 +2660,7 @@
2509
2660
  "isEntry": false,
2510
2661
  "typeParameters": [],
2511
2662
  "parameters": [
2512
- "U16"
2663
+ "U128"
2513
2664
  ],
2514
2665
  "return": [
2515
2666
  {
@@ -2522,12 +2673,12 @@
2522
2673
  }
2523
2674
  ]
2524
2675
  },
2525
- "try_as_u8": {
2676
+ "try_as_u16": {
2526
2677
  "visibility": "Public",
2527
2678
  "isEntry": false,
2528
2679
  "typeParameters": [],
2529
2680
  "parameters": [
2530
- "U16"
2681
+ "U128"
2531
2682
  ],
2532
2683
  "return": [
2533
2684
  {
@@ -2536,7 +2687,67 @@
2536
2687
  "module": "option",
2537
2688
  "name": "Option",
2538
2689
  "typeArguments": [
2539
- "U8"
2690
+ "U16"
2691
+ ]
2692
+ }
2693
+ }
2694
+ ]
2695
+ },
2696
+ "try_as_u32": {
2697
+ "visibility": "Public",
2698
+ "isEntry": false,
2699
+ "typeParameters": [],
2700
+ "parameters": [
2701
+ "U128"
2702
+ ],
2703
+ "return": [
2704
+ {
2705
+ "Struct": {
2706
+ "address": "0x1",
2707
+ "module": "option",
2708
+ "name": "Option",
2709
+ "typeArguments": [
2710
+ "U32"
2711
+ ]
2712
+ }
2713
+ }
2714
+ ]
2715
+ },
2716
+ "try_as_u64": {
2717
+ "visibility": "Public",
2718
+ "isEntry": false,
2719
+ "typeParameters": [],
2720
+ "parameters": [
2721
+ "U128"
2722
+ ],
2723
+ "return": [
2724
+ {
2725
+ "Struct": {
2726
+ "address": "0x1",
2727
+ "module": "option",
2728
+ "name": "Option",
2729
+ "typeArguments": [
2730
+ "U64"
2731
+ ]
2732
+ }
2733
+ }
2734
+ ]
2735
+ },
2736
+ "try_as_u8": {
2737
+ "visibility": "Public",
2738
+ "isEntry": false,
2739
+ "typeParameters": [],
2740
+ "parameters": [
2741
+ "U128"
2742
+ ],
2743
+ "return": [
2744
+ {
2745
+ "Struct": {
2746
+ "address": "0x1",
2747
+ "module": "option",
2748
+ "name": "Option",
2749
+ "typeArguments": [
2750
+ "U8"
2540
2751
  ]
2541
2752
  }
2542
2753
  }
@@ -2544,10 +2755,10 @@
2544
2755
  }
2545
2756
  }
2546
2757
  },
2547
- "u256": {
2758
+ "u16": {
2548
2759
  "fileFormatVersion": 6,
2549
2760
  "address": "0x1",
2550
- "name": "u256",
2761
+ "name": "u16",
2551
2762
  "friends": [],
2552
2763
  "structs": {},
2553
2764
  "exposedFunctions": {
@@ -2556,96 +2767,169 @@
2556
2767
  "isEntry": false,
2557
2768
  "typeParameters": [],
2558
2769
  "parameters": [
2559
- "U256"
2770
+ "U16"
2560
2771
  ],
2561
2772
  "return": [
2562
- "U256"
2773
+ "U16"
2563
2774
  ]
2564
2775
  },
2565
- "diff": {
2776
+ "checked_add": {
2566
2777
  "visibility": "Public",
2567
2778
  "isEntry": false,
2568
2779
  "typeParameters": [],
2569
2780
  "parameters": [
2570
- "U256",
2571
- "U256"
2781
+ "U16",
2782
+ "U16"
2572
2783
  ],
2573
2784
  "return": [
2574
- "U256"
2785
+ {
2786
+ "Struct": {
2787
+ "address": "0x1",
2788
+ "module": "option",
2789
+ "name": "Option",
2790
+ "typeArguments": [
2791
+ "U16"
2792
+ ]
2793
+ }
2794
+ }
2575
2795
  ]
2576
2796
  },
2577
- "divide_and_round_up": {
2797
+ "checked_div": {
2578
2798
  "visibility": "Public",
2579
2799
  "isEntry": false,
2580
2800
  "typeParameters": [],
2581
2801
  "parameters": [
2582
- "U256",
2583
- "U256"
2802
+ "U16",
2803
+ "U16"
2584
2804
  ],
2585
2805
  "return": [
2586
- "U256"
2806
+ {
2807
+ "Struct": {
2808
+ "address": "0x1",
2809
+ "module": "option",
2810
+ "name": "Option",
2811
+ "typeArguments": [
2812
+ "U16"
2813
+ ]
2814
+ }
2815
+ }
2587
2816
  ]
2588
2817
  },
2589
- "max": {
2818
+ "checked_mul": {
2590
2819
  "visibility": "Public",
2591
2820
  "isEntry": false,
2592
2821
  "typeParameters": [],
2593
2822
  "parameters": [
2594
- "U256",
2595
- "U256"
2823
+ "U16",
2824
+ "U16"
2596
2825
  ],
2597
2826
  "return": [
2598
- "U256"
2827
+ {
2828
+ "Struct": {
2829
+ "address": "0x1",
2830
+ "module": "option",
2831
+ "name": "Option",
2832
+ "typeArguments": [
2833
+ "U16"
2834
+ ]
2835
+ }
2836
+ }
2599
2837
  ]
2600
2838
  },
2601
- "min": {
2839
+ "checked_shl": {
2602
2840
  "visibility": "Public",
2603
2841
  "isEntry": false,
2604
2842
  "typeParameters": [],
2605
2843
  "parameters": [
2606
- "U256",
2607
- "U256"
2844
+ "U16",
2845
+ "U8"
2608
2846
  ],
2609
2847
  "return": [
2610
- "U256"
2848
+ {
2849
+ "Struct": {
2850
+ "address": "0x1",
2851
+ "module": "option",
2852
+ "name": "Option",
2853
+ "typeArguments": [
2854
+ "U16"
2855
+ ]
2856
+ }
2857
+ }
2611
2858
  ]
2612
2859
  },
2613
- "pow": {
2860
+ "checked_shr": {
2614
2861
  "visibility": "Public",
2615
2862
  "isEntry": false,
2616
2863
  "typeParameters": [],
2617
2864
  "parameters": [
2618
- "U256",
2865
+ "U16",
2619
2866
  "U8"
2620
2867
  ],
2621
2868
  "return": [
2622
- "U256"
2869
+ {
2870
+ "Struct": {
2871
+ "address": "0x1",
2872
+ "module": "option",
2873
+ "name": "Option",
2874
+ "typeArguments": [
2875
+ "U16"
2876
+ ]
2877
+ }
2878
+ }
2623
2879
  ]
2624
2880
  },
2625
- "to_string": {
2881
+ "checked_sub": {
2626
2882
  "visibility": "Public",
2627
2883
  "isEntry": false,
2628
2884
  "typeParameters": [],
2629
2885
  "parameters": [
2630
- "U256"
2886
+ "U16",
2887
+ "U16"
2631
2888
  ],
2632
2889
  "return": [
2633
2890
  {
2634
2891
  "Struct": {
2635
2892
  "address": "0x1",
2636
- "module": "string",
2637
- "name": "String",
2638
- "typeArguments": []
2893
+ "module": "option",
2894
+ "name": "Option",
2895
+ "typeArguments": [
2896
+ "U16"
2897
+ ]
2639
2898
  }
2640
2899
  }
2641
2900
  ]
2642
2901
  },
2643
- "try_as_u128": {
2902
+ "diff": {
2644
2903
  "visibility": "Public",
2645
2904
  "isEntry": false,
2646
2905
  "typeParameters": [],
2647
2906
  "parameters": [
2648
- "U256"
2907
+ "U16",
2908
+ "U16"
2909
+ ],
2910
+ "return": [
2911
+ "U16"
2912
+ ]
2913
+ },
2914
+ "divide_and_round_up": {
2915
+ "visibility": "Public",
2916
+ "isEntry": false,
2917
+ "typeParameters": [],
2918
+ "parameters": [
2919
+ "U16",
2920
+ "U16"
2921
+ ],
2922
+ "return": [
2923
+ "U16"
2924
+ ]
2925
+ },
2926
+ "lossless_div": {
2927
+ "visibility": "Public",
2928
+ "isEntry": false,
2929
+ "typeParameters": [],
2930
+ "parameters": [
2931
+ "U16",
2932
+ "U16"
2649
2933
  ],
2650
2934
  "return": [
2651
2935
  {
@@ -2654,18 +2938,19 @@
2654
2938
  "module": "option",
2655
2939
  "name": "Option",
2656
2940
  "typeArguments": [
2657
- "U128"
2941
+ "U16"
2658
2942
  ]
2659
2943
  }
2660
2944
  }
2661
2945
  ]
2662
2946
  },
2663
- "try_as_u16": {
2947
+ "lossless_shl": {
2664
2948
  "visibility": "Public",
2665
2949
  "isEntry": false,
2666
2950
  "typeParameters": [],
2667
2951
  "parameters": [
2668
- "U256"
2952
+ "U16",
2953
+ "U8"
2669
2954
  ],
2670
2955
  "return": [
2671
2956
  {
@@ -2680,12 +2965,13 @@
2680
2965
  }
2681
2966
  ]
2682
2967
  },
2683
- "try_as_u32": {
2968
+ "lossless_shr": {
2684
2969
  "visibility": "Public",
2685
2970
  "isEntry": false,
2686
2971
  "typeParameters": [],
2687
2972
  "parameters": [
2688
- "U256"
2973
+ "U16",
2974
+ "U8"
2689
2975
  ],
2690
2976
  "return": [
2691
2977
  {
@@ -2694,18 +2980,1086 @@
2694
2980
  "module": "option",
2695
2981
  "name": "Option",
2696
2982
  "typeArguments": [
2697
- "U32"
2983
+ "U16"
2698
2984
  ]
2699
2985
  }
2700
2986
  }
2701
2987
  ]
2702
2988
  },
2703
- "try_as_u64": {
2989
+ "max": {
2704
2990
  "visibility": "Public",
2705
2991
  "isEntry": false,
2706
2992
  "typeParameters": [],
2707
2993
  "parameters": [
2708
- "U256"
2994
+ "U16",
2995
+ "U16"
2996
+ ],
2997
+ "return": [
2998
+ "U16"
2999
+ ]
3000
+ },
3001
+ "min": {
3002
+ "visibility": "Public",
3003
+ "isEntry": false,
3004
+ "typeParameters": [],
3005
+ "parameters": [
3006
+ "U16",
3007
+ "U16"
3008
+ ],
3009
+ "return": [
3010
+ "U16"
3011
+ ]
3012
+ },
3013
+ "pow": {
3014
+ "visibility": "Public",
3015
+ "isEntry": false,
3016
+ "typeParameters": [],
3017
+ "parameters": [
3018
+ "U16",
3019
+ "U8"
3020
+ ],
3021
+ "return": [
3022
+ "U16"
3023
+ ]
3024
+ },
3025
+ "saturating_add": {
3026
+ "visibility": "Public",
3027
+ "isEntry": false,
3028
+ "typeParameters": [],
3029
+ "parameters": [
3030
+ "U16",
3031
+ "U16"
3032
+ ],
3033
+ "return": [
3034
+ "U16"
3035
+ ]
3036
+ },
3037
+ "saturating_mul": {
3038
+ "visibility": "Public",
3039
+ "isEntry": false,
3040
+ "typeParameters": [],
3041
+ "parameters": [
3042
+ "U16",
3043
+ "U16"
3044
+ ],
3045
+ "return": [
3046
+ "U16"
3047
+ ]
3048
+ },
3049
+ "saturating_sub": {
3050
+ "visibility": "Public",
3051
+ "isEntry": false,
3052
+ "typeParameters": [],
3053
+ "parameters": [
3054
+ "U16",
3055
+ "U16"
3056
+ ],
3057
+ "return": [
3058
+ "U16"
3059
+ ]
3060
+ },
3061
+ "sqrt": {
3062
+ "visibility": "Public",
3063
+ "isEntry": false,
3064
+ "typeParameters": [],
3065
+ "parameters": [
3066
+ "U16"
3067
+ ],
3068
+ "return": [
3069
+ "U16"
3070
+ ]
3071
+ },
3072
+ "to_string": {
3073
+ "visibility": "Public",
3074
+ "isEntry": false,
3075
+ "typeParameters": [],
3076
+ "parameters": [
3077
+ "U16"
3078
+ ],
3079
+ "return": [
3080
+ {
3081
+ "Struct": {
3082
+ "address": "0x1",
3083
+ "module": "string",
3084
+ "name": "String",
3085
+ "typeArguments": []
3086
+ }
3087
+ }
3088
+ ]
3089
+ },
3090
+ "try_as_u8": {
3091
+ "visibility": "Public",
3092
+ "isEntry": false,
3093
+ "typeParameters": [],
3094
+ "parameters": [
3095
+ "U16"
3096
+ ],
3097
+ "return": [
3098
+ {
3099
+ "Struct": {
3100
+ "address": "0x1",
3101
+ "module": "option",
3102
+ "name": "Option",
3103
+ "typeArguments": [
3104
+ "U8"
3105
+ ]
3106
+ }
3107
+ }
3108
+ ]
3109
+ }
3110
+ }
3111
+ },
3112
+ "u256": {
3113
+ "fileFormatVersion": 6,
3114
+ "address": "0x1",
3115
+ "name": "u256",
3116
+ "friends": [],
3117
+ "structs": {},
3118
+ "exposedFunctions": {
3119
+ "bitwise_not": {
3120
+ "visibility": "Public",
3121
+ "isEntry": false,
3122
+ "typeParameters": [],
3123
+ "parameters": [
3124
+ "U256"
3125
+ ],
3126
+ "return": [
3127
+ "U256"
3128
+ ]
3129
+ },
3130
+ "checked_add": {
3131
+ "visibility": "Public",
3132
+ "isEntry": false,
3133
+ "typeParameters": [],
3134
+ "parameters": [
3135
+ "U256",
3136
+ "U256"
3137
+ ],
3138
+ "return": [
3139
+ {
3140
+ "Struct": {
3141
+ "address": "0x1",
3142
+ "module": "option",
3143
+ "name": "Option",
3144
+ "typeArguments": [
3145
+ "U256"
3146
+ ]
3147
+ }
3148
+ }
3149
+ ]
3150
+ },
3151
+ "checked_div": {
3152
+ "visibility": "Public",
3153
+ "isEntry": false,
3154
+ "typeParameters": [],
3155
+ "parameters": [
3156
+ "U256",
3157
+ "U256"
3158
+ ],
3159
+ "return": [
3160
+ {
3161
+ "Struct": {
3162
+ "address": "0x1",
3163
+ "module": "option",
3164
+ "name": "Option",
3165
+ "typeArguments": [
3166
+ "U256"
3167
+ ]
3168
+ }
3169
+ }
3170
+ ]
3171
+ },
3172
+ "checked_mul": {
3173
+ "visibility": "Public",
3174
+ "isEntry": false,
3175
+ "typeParameters": [],
3176
+ "parameters": [
3177
+ "U256",
3178
+ "U256"
3179
+ ],
3180
+ "return": [
3181
+ {
3182
+ "Struct": {
3183
+ "address": "0x1",
3184
+ "module": "option",
3185
+ "name": "Option",
3186
+ "typeArguments": [
3187
+ "U256"
3188
+ ]
3189
+ }
3190
+ }
3191
+ ]
3192
+ },
3193
+ "checked_sub": {
3194
+ "visibility": "Public",
3195
+ "isEntry": false,
3196
+ "typeParameters": [],
3197
+ "parameters": [
3198
+ "U256",
3199
+ "U256"
3200
+ ],
3201
+ "return": [
3202
+ {
3203
+ "Struct": {
3204
+ "address": "0x1",
3205
+ "module": "option",
3206
+ "name": "Option",
3207
+ "typeArguments": [
3208
+ "U256"
3209
+ ]
3210
+ }
3211
+ }
3212
+ ]
3213
+ },
3214
+ "diff": {
3215
+ "visibility": "Public",
3216
+ "isEntry": false,
3217
+ "typeParameters": [],
3218
+ "parameters": [
3219
+ "U256",
3220
+ "U256"
3221
+ ],
3222
+ "return": [
3223
+ "U256"
3224
+ ]
3225
+ },
3226
+ "divide_and_round_up": {
3227
+ "visibility": "Public",
3228
+ "isEntry": false,
3229
+ "typeParameters": [],
3230
+ "parameters": [
3231
+ "U256",
3232
+ "U256"
3233
+ ],
3234
+ "return": [
3235
+ "U256"
3236
+ ]
3237
+ },
3238
+ "lossless_div": {
3239
+ "visibility": "Public",
3240
+ "isEntry": false,
3241
+ "typeParameters": [],
3242
+ "parameters": [
3243
+ "U256",
3244
+ "U256"
3245
+ ],
3246
+ "return": [
3247
+ {
3248
+ "Struct": {
3249
+ "address": "0x1",
3250
+ "module": "option",
3251
+ "name": "Option",
3252
+ "typeArguments": [
3253
+ "U256"
3254
+ ]
3255
+ }
3256
+ }
3257
+ ]
3258
+ },
3259
+ "lossless_shl": {
3260
+ "visibility": "Public",
3261
+ "isEntry": false,
3262
+ "typeParameters": [],
3263
+ "parameters": [
3264
+ "U256",
3265
+ "U8"
3266
+ ],
3267
+ "return": [
3268
+ {
3269
+ "Struct": {
3270
+ "address": "0x1",
3271
+ "module": "option",
3272
+ "name": "Option",
3273
+ "typeArguments": [
3274
+ "U256"
3275
+ ]
3276
+ }
3277
+ }
3278
+ ]
3279
+ },
3280
+ "lossless_shr": {
3281
+ "visibility": "Public",
3282
+ "isEntry": false,
3283
+ "typeParameters": [],
3284
+ "parameters": [
3285
+ "U256",
3286
+ "U8"
3287
+ ],
3288
+ "return": [
3289
+ {
3290
+ "Struct": {
3291
+ "address": "0x1",
3292
+ "module": "option",
3293
+ "name": "Option",
3294
+ "typeArguments": [
3295
+ "U256"
3296
+ ]
3297
+ }
3298
+ }
3299
+ ]
3300
+ },
3301
+ "max": {
3302
+ "visibility": "Public",
3303
+ "isEntry": false,
3304
+ "typeParameters": [],
3305
+ "parameters": [
3306
+ "U256",
3307
+ "U256"
3308
+ ],
3309
+ "return": [
3310
+ "U256"
3311
+ ]
3312
+ },
3313
+ "min": {
3314
+ "visibility": "Public",
3315
+ "isEntry": false,
3316
+ "typeParameters": [],
3317
+ "parameters": [
3318
+ "U256",
3319
+ "U256"
3320
+ ],
3321
+ "return": [
3322
+ "U256"
3323
+ ]
3324
+ },
3325
+ "pow": {
3326
+ "visibility": "Public",
3327
+ "isEntry": false,
3328
+ "typeParameters": [],
3329
+ "parameters": [
3330
+ "U256",
3331
+ "U8"
3332
+ ],
3333
+ "return": [
3334
+ "U256"
3335
+ ]
3336
+ },
3337
+ "saturating_add": {
3338
+ "visibility": "Public",
3339
+ "isEntry": false,
3340
+ "typeParameters": [],
3341
+ "parameters": [
3342
+ "U256",
3343
+ "U256"
3344
+ ],
3345
+ "return": [
3346
+ "U256"
3347
+ ]
3348
+ },
3349
+ "saturating_mul": {
3350
+ "visibility": "Public",
3351
+ "isEntry": false,
3352
+ "typeParameters": [],
3353
+ "parameters": [
3354
+ "U256",
3355
+ "U256"
3356
+ ],
3357
+ "return": [
3358
+ "U256"
3359
+ ]
3360
+ },
3361
+ "saturating_sub": {
3362
+ "visibility": "Public",
3363
+ "isEntry": false,
3364
+ "typeParameters": [],
3365
+ "parameters": [
3366
+ "U256",
3367
+ "U256"
3368
+ ],
3369
+ "return": [
3370
+ "U256"
3371
+ ]
3372
+ },
3373
+ "to_string": {
3374
+ "visibility": "Public",
3375
+ "isEntry": false,
3376
+ "typeParameters": [],
3377
+ "parameters": [
3378
+ "U256"
3379
+ ],
3380
+ "return": [
3381
+ {
3382
+ "Struct": {
3383
+ "address": "0x1",
3384
+ "module": "string",
3385
+ "name": "String",
3386
+ "typeArguments": []
3387
+ }
3388
+ }
3389
+ ]
3390
+ },
3391
+ "try_as_u128": {
3392
+ "visibility": "Public",
3393
+ "isEntry": false,
3394
+ "typeParameters": [],
3395
+ "parameters": [
3396
+ "U256"
3397
+ ],
3398
+ "return": [
3399
+ {
3400
+ "Struct": {
3401
+ "address": "0x1",
3402
+ "module": "option",
3403
+ "name": "Option",
3404
+ "typeArguments": [
3405
+ "U128"
3406
+ ]
3407
+ }
3408
+ }
3409
+ ]
3410
+ },
3411
+ "try_as_u16": {
3412
+ "visibility": "Public",
3413
+ "isEntry": false,
3414
+ "typeParameters": [],
3415
+ "parameters": [
3416
+ "U256"
3417
+ ],
3418
+ "return": [
3419
+ {
3420
+ "Struct": {
3421
+ "address": "0x1",
3422
+ "module": "option",
3423
+ "name": "Option",
3424
+ "typeArguments": [
3425
+ "U16"
3426
+ ]
3427
+ }
3428
+ }
3429
+ ]
3430
+ },
3431
+ "try_as_u32": {
3432
+ "visibility": "Public",
3433
+ "isEntry": false,
3434
+ "typeParameters": [],
3435
+ "parameters": [
3436
+ "U256"
3437
+ ],
3438
+ "return": [
3439
+ {
3440
+ "Struct": {
3441
+ "address": "0x1",
3442
+ "module": "option",
3443
+ "name": "Option",
3444
+ "typeArguments": [
3445
+ "U32"
3446
+ ]
3447
+ }
3448
+ }
3449
+ ]
3450
+ },
3451
+ "try_as_u64": {
3452
+ "visibility": "Public",
3453
+ "isEntry": false,
3454
+ "typeParameters": [],
3455
+ "parameters": [
3456
+ "U256"
3457
+ ],
3458
+ "return": [
3459
+ {
3460
+ "Struct": {
3461
+ "address": "0x1",
3462
+ "module": "option",
3463
+ "name": "Option",
3464
+ "typeArguments": [
3465
+ "U64"
3466
+ ]
3467
+ }
3468
+ }
3469
+ ]
3470
+ },
3471
+ "try_as_u8": {
3472
+ "visibility": "Public",
3473
+ "isEntry": false,
3474
+ "typeParameters": [],
3475
+ "parameters": [
3476
+ "U256"
3477
+ ],
3478
+ "return": [
3479
+ {
3480
+ "Struct": {
3481
+ "address": "0x1",
3482
+ "module": "option",
3483
+ "name": "Option",
3484
+ "typeArguments": [
3485
+ "U8"
3486
+ ]
3487
+ }
3488
+ }
3489
+ ]
3490
+ }
3491
+ }
3492
+ },
3493
+ "u32": {
3494
+ "fileFormatVersion": 6,
3495
+ "address": "0x1",
3496
+ "name": "u32",
3497
+ "friends": [],
3498
+ "structs": {},
3499
+ "exposedFunctions": {
3500
+ "bitwise_not": {
3501
+ "visibility": "Public",
3502
+ "isEntry": false,
3503
+ "typeParameters": [],
3504
+ "parameters": [
3505
+ "U32"
3506
+ ],
3507
+ "return": [
3508
+ "U32"
3509
+ ]
3510
+ },
3511
+ "checked_add": {
3512
+ "visibility": "Public",
3513
+ "isEntry": false,
3514
+ "typeParameters": [],
3515
+ "parameters": [
3516
+ "U32",
3517
+ "U32"
3518
+ ],
3519
+ "return": [
3520
+ {
3521
+ "Struct": {
3522
+ "address": "0x1",
3523
+ "module": "option",
3524
+ "name": "Option",
3525
+ "typeArguments": [
3526
+ "U32"
3527
+ ]
3528
+ }
3529
+ }
3530
+ ]
3531
+ },
3532
+ "checked_div": {
3533
+ "visibility": "Public",
3534
+ "isEntry": false,
3535
+ "typeParameters": [],
3536
+ "parameters": [
3537
+ "U32",
3538
+ "U32"
3539
+ ],
3540
+ "return": [
3541
+ {
3542
+ "Struct": {
3543
+ "address": "0x1",
3544
+ "module": "option",
3545
+ "name": "Option",
3546
+ "typeArguments": [
3547
+ "U32"
3548
+ ]
3549
+ }
3550
+ }
3551
+ ]
3552
+ },
3553
+ "checked_mul": {
3554
+ "visibility": "Public",
3555
+ "isEntry": false,
3556
+ "typeParameters": [],
3557
+ "parameters": [
3558
+ "U32",
3559
+ "U32"
3560
+ ],
3561
+ "return": [
3562
+ {
3563
+ "Struct": {
3564
+ "address": "0x1",
3565
+ "module": "option",
3566
+ "name": "Option",
3567
+ "typeArguments": [
3568
+ "U32"
3569
+ ]
3570
+ }
3571
+ }
3572
+ ]
3573
+ },
3574
+ "checked_shl": {
3575
+ "visibility": "Public",
3576
+ "isEntry": false,
3577
+ "typeParameters": [],
3578
+ "parameters": [
3579
+ "U32",
3580
+ "U8"
3581
+ ],
3582
+ "return": [
3583
+ {
3584
+ "Struct": {
3585
+ "address": "0x1",
3586
+ "module": "option",
3587
+ "name": "Option",
3588
+ "typeArguments": [
3589
+ "U32"
3590
+ ]
3591
+ }
3592
+ }
3593
+ ]
3594
+ },
3595
+ "checked_shr": {
3596
+ "visibility": "Public",
3597
+ "isEntry": false,
3598
+ "typeParameters": [],
3599
+ "parameters": [
3600
+ "U32",
3601
+ "U8"
3602
+ ],
3603
+ "return": [
3604
+ {
3605
+ "Struct": {
3606
+ "address": "0x1",
3607
+ "module": "option",
3608
+ "name": "Option",
3609
+ "typeArguments": [
3610
+ "U32"
3611
+ ]
3612
+ }
3613
+ }
3614
+ ]
3615
+ },
3616
+ "checked_sub": {
3617
+ "visibility": "Public",
3618
+ "isEntry": false,
3619
+ "typeParameters": [],
3620
+ "parameters": [
3621
+ "U32",
3622
+ "U32"
3623
+ ],
3624
+ "return": [
3625
+ {
3626
+ "Struct": {
3627
+ "address": "0x1",
3628
+ "module": "option",
3629
+ "name": "Option",
3630
+ "typeArguments": [
3631
+ "U32"
3632
+ ]
3633
+ }
3634
+ }
3635
+ ]
3636
+ },
3637
+ "diff": {
3638
+ "visibility": "Public",
3639
+ "isEntry": false,
3640
+ "typeParameters": [],
3641
+ "parameters": [
3642
+ "U32",
3643
+ "U32"
3644
+ ],
3645
+ "return": [
3646
+ "U32"
3647
+ ]
3648
+ },
3649
+ "divide_and_round_up": {
3650
+ "visibility": "Public",
3651
+ "isEntry": false,
3652
+ "typeParameters": [],
3653
+ "parameters": [
3654
+ "U32",
3655
+ "U32"
3656
+ ],
3657
+ "return": [
3658
+ "U32"
3659
+ ]
3660
+ },
3661
+ "lossless_div": {
3662
+ "visibility": "Public",
3663
+ "isEntry": false,
3664
+ "typeParameters": [],
3665
+ "parameters": [
3666
+ "U32",
3667
+ "U32"
3668
+ ],
3669
+ "return": [
3670
+ {
3671
+ "Struct": {
3672
+ "address": "0x1",
3673
+ "module": "option",
3674
+ "name": "Option",
3675
+ "typeArguments": [
3676
+ "U32"
3677
+ ]
3678
+ }
3679
+ }
3680
+ ]
3681
+ },
3682
+ "lossless_shl": {
3683
+ "visibility": "Public",
3684
+ "isEntry": false,
3685
+ "typeParameters": [],
3686
+ "parameters": [
3687
+ "U32",
3688
+ "U8"
3689
+ ],
3690
+ "return": [
3691
+ {
3692
+ "Struct": {
3693
+ "address": "0x1",
3694
+ "module": "option",
3695
+ "name": "Option",
3696
+ "typeArguments": [
3697
+ "U32"
3698
+ ]
3699
+ }
3700
+ }
3701
+ ]
3702
+ },
3703
+ "lossless_shr": {
3704
+ "visibility": "Public",
3705
+ "isEntry": false,
3706
+ "typeParameters": [],
3707
+ "parameters": [
3708
+ "U32",
3709
+ "U8"
3710
+ ],
3711
+ "return": [
3712
+ {
3713
+ "Struct": {
3714
+ "address": "0x1",
3715
+ "module": "option",
3716
+ "name": "Option",
3717
+ "typeArguments": [
3718
+ "U32"
3719
+ ]
3720
+ }
3721
+ }
3722
+ ]
3723
+ },
3724
+ "max": {
3725
+ "visibility": "Public",
3726
+ "isEntry": false,
3727
+ "typeParameters": [],
3728
+ "parameters": [
3729
+ "U32",
3730
+ "U32"
3731
+ ],
3732
+ "return": [
3733
+ "U32"
3734
+ ]
3735
+ },
3736
+ "min": {
3737
+ "visibility": "Public",
3738
+ "isEntry": false,
3739
+ "typeParameters": [],
3740
+ "parameters": [
3741
+ "U32",
3742
+ "U32"
3743
+ ],
3744
+ "return": [
3745
+ "U32"
3746
+ ]
3747
+ },
3748
+ "pow": {
3749
+ "visibility": "Public",
3750
+ "isEntry": false,
3751
+ "typeParameters": [],
3752
+ "parameters": [
3753
+ "U32",
3754
+ "U8"
3755
+ ],
3756
+ "return": [
3757
+ "U32"
3758
+ ]
3759
+ },
3760
+ "saturating_add": {
3761
+ "visibility": "Public",
3762
+ "isEntry": false,
3763
+ "typeParameters": [],
3764
+ "parameters": [
3765
+ "U32",
3766
+ "U32"
3767
+ ],
3768
+ "return": [
3769
+ "U32"
3770
+ ]
3771
+ },
3772
+ "saturating_mul": {
3773
+ "visibility": "Public",
3774
+ "isEntry": false,
3775
+ "typeParameters": [],
3776
+ "parameters": [
3777
+ "U32",
3778
+ "U32"
3779
+ ],
3780
+ "return": [
3781
+ "U32"
3782
+ ]
3783
+ },
3784
+ "saturating_sub": {
3785
+ "visibility": "Public",
3786
+ "isEntry": false,
3787
+ "typeParameters": [],
3788
+ "parameters": [
3789
+ "U32",
3790
+ "U32"
3791
+ ],
3792
+ "return": [
3793
+ "U32"
3794
+ ]
3795
+ },
3796
+ "sqrt": {
3797
+ "visibility": "Public",
3798
+ "isEntry": false,
3799
+ "typeParameters": [],
3800
+ "parameters": [
3801
+ "U32"
3802
+ ],
3803
+ "return": [
3804
+ "U32"
3805
+ ]
3806
+ },
3807
+ "to_string": {
3808
+ "visibility": "Public",
3809
+ "isEntry": false,
3810
+ "typeParameters": [],
3811
+ "parameters": [
3812
+ "U32"
3813
+ ],
3814
+ "return": [
3815
+ {
3816
+ "Struct": {
3817
+ "address": "0x1",
3818
+ "module": "string",
3819
+ "name": "String",
3820
+ "typeArguments": []
3821
+ }
3822
+ }
3823
+ ]
3824
+ },
3825
+ "try_as_u16": {
3826
+ "visibility": "Public",
3827
+ "isEntry": false,
3828
+ "typeParameters": [],
3829
+ "parameters": [
3830
+ "U32"
3831
+ ],
3832
+ "return": [
3833
+ {
3834
+ "Struct": {
3835
+ "address": "0x1",
3836
+ "module": "option",
3837
+ "name": "Option",
3838
+ "typeArguments": [
3839
+ "U16"
3840
+ ]
3841
+ }
3842
+ }
3843
+ ]
3844
+ },
3845
+ "try_as_u8": {
3846
+ "visibility": "Public",
3847
+ "isEntry": false,
3848
+ "typeParameters": [],
3849
+ "parameters": [
3850
+ "U32"
3851
+ ],
3852
+ "return": [
3853
+ {
3854
+ "Struct": {
3855
+ "address": "0x1",
3856
+ "module": "option",
3857
+ "name": "Option",
3858
+ "typeArguments": [
3859
+ "U8"
3860
+ ]
3861
+ }
3862
+ }
3863
+ ]
3864
+ }
3865
+ }
3866
+ },
3867
+ "u64": {
3868
+ "fileFormatVersion": 6,
3869
+ "address": "0x1",
3870
+ "name": "u64",
3871
+ "friends": [],
3872
+ "structs": {},
3873
+ "exposedFunctions": {
3874
+ "bitwise_not": {
3875
+ "visibility": "Public",
3876
+ "isEntry": false,
3877
+ "typeParameters": [],
3878
+ "parameters": [
3879
+ "U64"
3880
+ ],
3881
+ "return": [
3882
+ "U64"
3883
+ ]
3884
+ },
3885
+ "checked_add": {
3886
+ "visibility": "Public",
3887
+ "isEntry": false,
3888
+ "typeParameters": [],
3889
+ "parameters": [
3890
+ "U64",
3891
+ "U64"
3892
+ ],
3893
+ "return": [
3894
+ {
3895
+ "Struct": {
3896
+ "address": "0x1",
3897
+ "module": "option",
3898
+ "name": "Option",
3899
+ "typeArguments": [
3900
+ "U64"
3901
+ ]
3902
+ }
3903
+ }
3904
+ ]
3905
+ },
3906
+ "checked_div": {
3907
+ "visibility": "Public",
3908
+ "isEntry": false,
3909
+ "typeParameters": [],
3910
+ "parameters": [
3911
+ "U64",
3912
+ "U64"
3913
+ ],
3914
+ "return": [
3915
+ {
3916
+ "Struct": {
3917
+ "address": "0x1",
3918
+ "module": "option",
3919
+ "name": "Option",
3920
+ "typeArguments": [
3921
+ "U64"
3922
+ ]
3923
+ }
3924
+ }
3925
+ ]
3926
+ },
3927
+ "checked_mul": {
3928
+ "visibility": "Public",
3929
+ "isEntry": false,
3930
+ "typeParameters": [],
3931
+ "parameters": [
3932
+ "U64",
3933
+ "U64"
3934
+ ],
3935
+ "return": [
3936
+ {
3937
+ "Struct": {
3938
+ "address": "0x1",
3939
+ "module": "option",
3940
+ "name": "Option",
3941
+ "typeArguments": [
3942
+ "U64"
3943
+ ]
3944
+ }
3945
+ }
3946
+ ]
3947
+ },
3948
+ "checked_shl": {
3949
+ "visibility": "Public",
3950
+ "isEntry": false,
3951
+ "typeParameters": [],
3952
+ "parameters": [
3953
+ "U64",
3954
+ "U8"
3955
+ ],
3956
+ "return": [
3957
+ {
3958
+ "Struct": {
3959
+ "address": "0x1",
3960
+ "module": "option",
3961
+ "name": "Option",
3962
+ "typeArguments": [
3963
+ "U64"
3964
+ ]
3965
+ }
3966
+ }
3967
+ ]
3968
+ },
3969
+ "checked_shr": {
3970
+ "visibility": "Public",
3971
+ "isEntry": false,
3972
+ "typeParameters": [],
3973
+ "parameters": [
3974
+ "U64",
3975
+ "U8"
3976
+ ],
3977
+ "return": [
3978
+ {
3979
+ "Struct": {
3980
+ "address": "0x1",
3981
+ "module": "option",
3982
+ "name": "Option",
3983
+ "typeArguments": [
3984
+ "U64"
3985
+ ]
3986
+ }
3987
+ }
3988
+ ]
3989
+ },
3990
+ "checked_sub": {
3991
+ "visibility": "Public",
3992
+ "isEntry": false,
3993
+ "typeParameters": [],
3994
+ "parameters": [
3995
+ "U64",
3996
+ "U64"
3997
+ ],
3998
+ "return": [
3999
+ {
4000
+ "Struct": {
4001
+ "address": "0x1",
4002
+ "module": "option",
4003
+ "name": "Option",
4004
+ "typeArguments": [
4005
+ "U64"
4006
+ ]
4007
+ }
4008
+ }
4009
+ ]
4010
+ },
4011
+ "diff": {
4012
+ "visibility": "Public",
4013
+ "isEntry": false,
4014
+ "typeParameters": [],
4015
+ "parameters": [
4016
+ "U64",
4017
+ "U64"
4018
+ ],
4019
+ "return": [
4020
+ "U64"
4021
+ ]
4022
+ },
4023
+ "divide_and_round_up": {
4024
+ "visibility": "Public",
4025
+ "isEntry": false,
4026
+ "typeParameters": [],
4027
+ "parameters": [
4028
+ "U64",
4029
+ "U64"
4030
+ ],
4031
+ "return": [
4032
+ "U64"
4033
+ ]
4034
+ },
4035
+ "lossless_div": {
4036
+ "visibility": "Public",
4037
+ "isEntry": false,
4038
+ "typeParameters": [],
4039
+ "parameters": [
4040
+ "U64",
4041
+ "U64"
4042
+ ],
4043
+ "return": [
4044
+ {
4045
+ "Struct": {
4046
+ "address": "0x1",
4047
+ "module": "option",
4048
+ "name": "Option",
4049
+ "typeArguments": [
4050
+ "U64"
4051
+ ]
4052
+ }
4053
+ }
4054
+ ]
4055
+ },
4056
+ "lossless_shl": {
4057
+ "visibility": "Public",
4058
+ "isEntry": false,
4059
+ "typeParameters": [],
4060
+ "parameters": [
4061
+ "U64",
4062
+ "U8"
2709
4063
  ],
2710
4064
  "return": [
2711
4065
  {
@@ -2720,12 +4074,13 @@
2720
4074
  }
2721
4075
  ]
2722
4076
  },
2723
- "try_as_u8": {
4077
+ "lossless_shr": {
2724
4078
  "visibility": "Public",
2725
4079
  "isEntry": false,
2726
4080
  "typeParameters": [],
2727
4081
  "parameters": [
2728
- "U256"
4082
+ "U64",
4083
+ "U8"
2729
4084
  ],
2730
4085
  "return": [
2731
4086
  {
@@ -2734,90 +4089,82 @@
2734
4089
  "module": "option",
2735
4090
  "name": "Option",
2736
4091
  "typeArguments": [
2737
- "U8"
4092
+ "U64"
2738
4093
  ]
2739
4094
  }
2740
4095
  }
2741
4096
  ]
2742
- }
2743
- }
2744
- },
2745
- "u32": {
2746
- "fileFormatVersion": 6,
2747
- "address": "0x1",
2748
- "name": "u32",
2749
- "friends": [],
2750
- "structs": {},
2751
- "exposedFunctions": {
2752
- "bitwise_not": {
4097
+ },
4098
+ "max": {
2753
4099
  "visibility": "Public",
2754
4100
  "isEntry": false,
2755
4101
  "typeParameters": [],
2756
4102
  "parameters": [
2757
- "U32"
4103
+ "U64",
4104
+ "U64"
2758
4105
  ],
2759
4106
  "return": [
2760
- "U32"
4107
+ "U64"
2761
4108
  ]
2762
4109
  },
2763
- "diff": {
4110
+ "min": {
2764
4111
  "visibility": "Public",
2765
4112
  "isEntry": false,
2766
4113
  "typeParameters": [],
2767
4114
  "parameters": [
2768
- "U32",
2769
- "U32"
4115
+ "U64",
4116
+ "U64"
2770
4117
  ],
2771
4118
  "return": [
2772
- "U32"
4119
+ "U64"
2773
4120
  ]
2774
4121
  },
2775
- "divide_and_round_up": {
4122
+ "pow": {
2776
4123
  "visibility": "Public",
2777
4124
  "isEntry": false,
2778
4125
  "typeParameters": [],
2779
4126
  "parameters": [
2780
- "U32",
2781
- "U32"
4127
+ "U64",
4128
+ "U8"
2782
4129
  ],
2783
4130
  "return": [
2784
- "U32"
4131
+ "U64"
2785
4132
  ]
2786
4133
  },
2787
- "max": {
4134
+ "saturating_add": {
2788
4135
  "visibility": "Public",
2789
4136
  "isEntry": false,
2790
4137
  "typeParameters": [],
2791
4138
  "parameters": [
2792
- "U32",
2793
- "U32"
4139
+ "U64",
4140
+ "U64"
2794
4141
  ],
2795
4142
  "return": [
2796
- "U32"
4143
+ "U64"
2797
4144
  ]
2798
4145
  },
2799
- "min": {
4146
+ "saturating_mul": {
2800
4147
  "visibility": "Public",
2801
4148
  "isEntry": false,
2802
4149
  "typeParameters": [],
2803
4150
  "parameters": [
2804
- "U32",
2805
- "U32"
4151
+ "U64",
4152
+ "U64"
2806
4153
  ],
2807
4154
  "return": [
2808
- "U32"
4155
+ "U64"
2809
4156
  ]
2810
4157
  },
2811
- "pow": {
4158
+ "saturating_sub": {
2812
4159
  "visibility": "Public",
2813
4160
  "isEntry": false,
2814
4161
  "typeParameters": [],
2815
4162
  "parameters": [
2816
- "U32",
2817
- "U8"
4163
+ "U64",
4164
+ "U64"
2818
4165
  ],
2819
4166
  "return": [
2820
- "U32"
4167
+ "U64"
2821
4168
  ]
2822
4169
  },
2823
4170
  "sqrt": {
@@ -2825,10 +4172,10 @@
2825
4172
  "isEntry": false,
2826
4173
  "typeParameters": [],
2827
4174
  "parameters": [
2828
- "U32"
4175
+ "U64"
2829
4176
  ],
2830
4177
  "return": [
2831
- "U32"
4178
+ "U64"
2832
4179
  ]
2833
4180
  },
2834
4181
  "to_string": {
@@ -2836,7 +4183,7 @@
2836
4183
  "isEntry": false,
2837
4184
  "typeParameters": [],
2838
4185
  "parameters": [
2839
- "U32"
4186
+ "U64"
2840
4187
  ],
2841
4188
  "return": [
2842
4189
  {
@@ -2854,7 +4201,7 @@
2854
4201
  "isEntry": false,
2855
4202
  "typeParameters": [],
2856
4203
  "parameters": [
2857
- "U32"
4204
+ "U64"
2858
4205
  ],
2859
4206
  "return": [
2860
4207
  {
@@ -2869,12 +4216,32 @@
2869
4216
  }
2870
4217
  ]
2871
4218
  },
4219
+ "try_as_u32": {
4220
+ "visibility": "Public",
4221
+ "isEntry": false,
4222
+ "typeParameters": [],
4223
+ "parameters": [
4224
+ "U64"
4225
+ ],
4226
+ "return": [
4227
+ {
4228
+ "Struct": {
4229
+ "address": "0x1",
4230
+ "module": "option",
4231
+ "name": "Option",
4232
+ "typeArguments": [
4233
+ "U32"
4234
+ ]
4235
+ }
4236
+ }
4237
+ ]
4238
+ },
2872
4239
  "try_as_u8": {
2873
4240
  "visibility": "Public",
2874
4241
  "isEntry": false,
2875
4242
  "typeParameters": [],
2876
4243
  "parameters": [
2877
- "U32"
4244
+ "U64"
2878
4245
  ],
2879
4246
  "return": [
2880
4247
  {
@@ -2891,10 +4258,10 @@
2891
4258
  }
2892
4259
  }
2893
4260
  },
2894
- "u64": {
4261
+ "u8": {
2895
4262
  "fileFormatVersion": 6,
2896
4263
  "address": "0x1",
2897
- "name": "u64",
4264
+ "name": "u8",
2898
4265
  "friends": [],
2899
4266
  "structs": {},
2900
4267
  "exposedFunctions": {
@@ -2903,107 +4270,169 @@
2903
4270
  "isEntry": false,
2904
4271
  "typeParameters": [],
2905
4272
  "parameters": [
2906
- "U64"
4273
+ "U8"
2907
4274
  ],
2908
4275
  "return": [
2909
- "U64"
4276
+ "U8"
2910
4277
  ]
2911
4278
  },
2912
- "diff": {
4279
+ "checked_add": {
2913
4280
  "visibility": "Public",
2914
4281
  "isEntry": false,
2915
4282
  "typeParameters": [],
2916
4283
  "parameters": [
2917
- "U64",
2918
- "U64"
4284
+ "U8",
4285
+ "U8"
2919
4286
  ],
2920
4287
  "return": [
2921
- "U64"
4288
+ {
4289
+ "Struct": {
4290
+ "address": "0x1",
4291
+ "module": "option",
4292
+ "name": "Option",
4293
+ "typeArguments": [
4294
+ "U8"
4295
+ ]
4296
+ }
4297
+ }
2922
4298
  ]
2923
4299
  },
2924
- "divide_and_round_up": {
4300
+ "checked_div": {
2925
4301
  "visibility": "Public",
2926
4302
  "isEntry": false,
2927
4303
  "typeParameters": [],
2928
4304
  "parameters": [
2929
- "U64",
2930
- "U64"
4305
+ "U8",
4306
+ "U8"
2931
4307
  ],
2932
4308
  "return": [
2933
- "U64"
4309
+ {
4310
+ "Struct": {
4311
+ "address": "0x1",
4312
+ "module": "option",
4313
+ "name": "Option",
4314
+ "typeArguments": [
4315
+ "U8"
4316
+ ]
4317
+ }
4318
+ }
2934
4319
  ]
2935
4320
  },
2936
- "max": {
4321
+ "checked_mul": {
2937
4322
  "visibility": "Public",
2938
4323
  "isEntry": false,
2939
4324
  "typeParameters": [],
2940
4325
  "parameters": [
2941
- "U64",
2942
- "U64"
4326
+ "U8",
4327
+ "U8"
2943
4328
  ],
2944
4329
  "return": [
2945
- "U64"
4330
+ {
4331
+ "Struct": {
4332
+ "address": "0x1",
4333
+ "module": "option",
4334
+ "name": "Option",
4335
+ "typeArguments": [
4336
+ "U8"
4337
+ ]
4338
+ }
4339
+ }
2946
4340
  ]
2947
4341
  },
2948
- "min": {
4342
+ "checked_shl": {
2949
4343
  "visibility": "Public",
2950
4344
  "isEntry": false,
2951
4345
  "typeParameters": [],
2952
4346
  "parameters": [
2953
- "U64",
2954
- "U64"
4347
+ "U8",
4348
+ "U8"
2955
4349
  ],
2956
4350
  "return": [
2957
- "U64"
4351
+ {
4352
+ "Struct": {
4353
+ "address": "0x1",
4354
+ "module": "option",
4355
+ "name": "Option",
4356
+ "typeArguments": [
4357
+ "U8"
4358
+ ]
4359
+ }
4360
+ }
2958
4361
  ]
2959
4362
  },
2960
- "pow": {
4363
+ "checked_shr": {
2961
4364
  "visibility": "Public",
2962
4365
  "isEntry": false,
2963
4366
  "typeParameters": [],
2964
4367
  "parameters": [
2965
- "U64",
4368
+ "U8",
2966
4369
  "U8"
2967
4370
  ],
2968
4371
  "return": [
2969
- "U64"
4372
+ {
4373
+ "Struct": {
4374
+ "address": "0x1",
4375
+ "module": "option",
4376
+ "name": "Option",
4377
+ "typeArguments": [
4378
+ "U8"
4379
+ ]
4380
+ }
4381
+ }
2970
4382
  ]
2971
4383
  },
2972
- "sqrt": {
4384
+ "checked_sub": {
2973
4385
  "visibility": "Public",
2974
4386
  "isEntry": false,
2975
4387
  "typeParameters": [],
2976
4388
  "parameters": [
2977
- "U64"
4389
+ "U8",
4390
+ "U8"
2978
4391
  ],
2979
4392
  "return": [
2980
- "U64"
4393
+ {
4394
+ "Struct": {
4395
+ "address": "0x1",
4396
+ "module": "option",
4397
+ "name": "Option",
4398
+ "typeArguments": [
4399
+ "U8"
4400
+ ]
4401
+ }
4402
+ }
2981
4403
  ]
2982
4404
  },
2983
- "to_string": {
4405
+ "diff": {
2984
4406
  "visibility": "Public",
2985
4407
  "isEntry": false,
2986
4408
  "typeParameters": [],
2987
4409
  "parameters": [
2988
- "U64"
4410
+ "U8",
4411
+ "U8"
2989
4412
  ],
2990
4413
  "return": [
2991
- {
2992
- "Struct": {
2993
- "address": "0x1",
2994
- "module": "string",
2995
- "name": "String",
2996
- "typeArguments": []
2997
- }
2998
- }
4414
+ "U8"
2999
4415
  ]
3000
4416
  },
3001
- "try_as_u16": {
4417
+ "divide_and_round_up": {
3002
4418
  "visibility": "Public",
3003
4419
  "isEntry": false,
3004
4420
  "typeParameters": [],
3005
4421
  "parameters": [
3006
- "U64"
4422
+ "U8",
4423
+ "U8"
4424
+ ],
4425
+ "return": [
4426
+ "U8"
4427
+ ]
4428
+ },
4429
+ "lossless_div": {
4430
+ "visibility": "Public",
4431
+ "isEntry": false,
4432
+ "typeParameters": [],
4433
+ "parameters": [
4434
+ "U8",
4435
+ "U8"
3007
4436
  ],
3008
4437
  "return": [
3009
4438
  {
@@ -3012,18 +4441,19 @@
3012
4441
  "module": "option",
3013
4442
  "name": "Option",
3014
4443
  "typeArguments": [
3015
- "U16"
4444
+ "U8"
3016
4445
  ]
3017
4446
  }
3018
4447
  }
3019
4448
  ]
3020
4449
  },
3021
- "try_as_u32": {
4450
+ "lossless_shl": {
3022
4451
  "visibility": "Public",
3023
4452
  "isEntry": false,
3024
4453
  "typeParameters": [],
3025
4454
  "parameters": [
3026
- "U64"
4455
+ "U8",
4456
+ "U8"
3027
4457
  ],
3028
4458
  "return": [
3029
4459
  {
@@ -3032,18 +4462,19 @@
3032
4462
  "module": "option",
3033
4463
  "name": "Option",
3034
4464
  "typeArguments": [
3035
- "U32"
4465
+ "U8"
3036
4466
  ]
3037
4467
  }
3038
4468
  }
3039
4469
  ]
3040
4470
  },
3041
- "try_as_u8": {
4471
+ "lossless_shr": {
3042
4472
  "visibility": "Public",
3043
4473
  "isEntry": false,
3044
4474
  "typeParameters": [],
3045
4475
  "parameters": [
3046
- "U64"
4476
+ "U8",
4477
+ "U8"
3047
4478
  ],
3048
4479
  "return": [
3049
4480
  {
@@ -3057,28 +4488,20 @@
3057
4488
  }
3058
4489
  }
3059
4490
  ]
3060
- }
3061
- }
3062
- },
3063
- "u8": {
3064
- "fileFormatVersion": 6,
3065
- "address": "0x1",
3066
- "name": "u8",
3067
- "friends": [],
3068
- "structs": {},
3069
- "exposedFunctions": {
3070
- "bitwise_not": {
4491
+ },
4492
+ "max": {
3071
4493
  "visibility": "Public",
3072
4494
  "isEntry": false,
3073
4495
  "typeParameters": [],
3074
4496
  "parameters": [
4497
+ "U8",
3075
4498
  "U8"
3076
4499
  ],
3077
4500
  "return": [
3078
4501
  "U8"
3079
4502
  ]
3080
4503
  },
3081
- "diff": {
4504
+ "min": {
3082
4505
  "visibility": "Public",
3083
4506
  "isEntry": false,
3084
4507
  "typeParameters": [],
@@ -3090,7 +4513,7 @@
3090
4513
  "U8"
3091
4514
  ]
3092
4515
  },
3093
- "divide_and_round_up": {
4516
+ "pow": {
3094
4517
  "visibility": "Public",
3095
4518
  "isEntry": false,
3096
4519
  "typeParameters": [],
@@ -3102,7 +4525,7 @@
3102
4525
  "U8"
3103
4526
  ]
3104
4527
  },
3105
- "max": {
4528
+ "saturating_add": {
3106
4529
  "visibility": "Public",
3107
4530
  "isEntry": false,
3108
4531
  "typeParameters": [],
@@ -3114,7 +4537,7 @@
3114
4537
  "U8"
3115
4538
  ]
3116
4539
  },
3117
- "min": {
4540
+ "saturating_mul": {
3118
4541
  "visibility": "Public",
3119
4542
  "isEntry": false,
3120
4543
  "typeParameters": [],
@@ -3126,7 +4549,7 @@
3126
4549
  "U8"
3127
4550
  ]
3128
4551
  },
3129
- "pow": {
4552
+ "saturating_sub": {
3130
4553
  "visibility": "Public",
3131
4554
  "isEntry": false,
3132
4555
  "typeParameters": [],