@sentio/sdk 2.28.0-rc.2 → 2.28.0-rc.3

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.
@@ -416,7 +416,7 @@
416
416
  },
417
417
  "StakedSui": {
418
418
  "abilities": {
419
- "abilities": ["Key"]
419
+ "abilities": ["Store", "Key"]
420
420
  },
421
421
  "typeParameters": [],
422
422
  "fields": [
@@ -656,6 +656,45 @@
656
656
  ],
657
657
  "return": []
658
658
  },
659
+ "exchange_rates": {
660
+ "visibility": "Friend",
661
+ "isEntry": false,
662
+ "typeParameters": [],
663
+ "parameters": [
664
+ {
665
+ "Reference": {
666
+ "Struct": {
667
+ "address": "0x3",
668
+ "module": "staking_pool",
669
+ "name": "StakingPool",
670
+ "typeArguments": []
671
+ }
672
+ }
673
+ }
674
+ ],
675
+ "return": [
676
+ {
677
+ "Reference": {
678
+ "Struct": {
679
+ "address": "0x2",
680
+ "module": "table",
681
+ "name": "Table",
682
+ "typeArguments": [
683
+ "U64",
684
+ {
685
+ "Struct": {
686
+ "address": "0x3",
687
+ "module": "staking_pool",
688
+ "name": "PoolTokenExchangeRate",
689
+ "typeArguments": []
690
+ }
691
+ }
692
+ ]
693
+ }
694
+ }
695
+ }
696
+ ]
697
+ },
659
698
  "is_equal_staking_metadata": {
660
699
  "visibility": "Public",
661
700
  "isEntry": false,
@@ -836,6 +875,24 @@
836
875
  }
837
876
  ]
838
877
  },
878
+ "pool_token_amount": {
879
+ "visibility": "Public",
880
+ "isEntry": false,
881
+ "typeParameters": [],
882
+ "parameters": [
883
+ {
884
+ "Reference": {
885
+ "Struct": {
886
+ "address": "0x3",
887
+ "module": "staking_pool",
888
+ "name": "PoolTokenExchangeRate",
889
+ "typeArguments": []
890
+ }
891
+ }
892
+ }
893
+ ],
894
+ "return": ["U64"]
895
+ },
839
896
  "pool_token_exchange_rate_at_epoch": {
840
897
  "visibility": "Public",
841
898
  "isEntry": false,
@@ -942,7 +999,6 @@
942
999
  ]
943
1000
  }
944
1001
  },
945
- "Address",
946
1002
  "U64",
947
1003
  {
948
1004
  "MutableReference": {
@@ -955,23 +1011,7 @@
955
1011
  }
956
1012
  }
957
1013
  ],
958
- "return": []
959
- },
960
- "request_withdraw_stake": {
961
- "visibility": "Friend",
962
- "isEntry": false,
963
- "typeParameters": [],
964
- "parameters": [
965
- {
966
- "MutableReference": {
967
- "Struct": {
968
- "address": "0x3",
969
- "module": "staking_pool",
970
- "name": "StakingPool",
971
- "typeArguments": []
972
- }
973
- }
974
- },
1014
+ "return": [
975
1015
  {
976
1016
  "Struct": {
977
1017
  "address": "0x3",
@@ -979,21 +1019,10 @@
979
1019
  "name": "StakedSui",
980
1020
  "typeArguments": []
981
1021
  }
982
- },
983
- {
984
- "MutableReference": {
985
- "Struct": {
986
- "address": "0x2",
987
- "module": "tx_context",
988
- "name": "TxContext",
989
- "typeArguments": []
990
- }
991
- }
992
1022
  }
993
- ],
994
- "return": ["U64"]
1023
+ ]
995
1024
  },
996
- "request_withdraw_stake_preactive": {
1025
+ "request_withdraw_stake": {
997
1026
  "visibility": "Friend",
998
1027
  "isEntry": false,
999
1028
  "typeParameters": [],
@@ -1027,7 +1056,25 @@
1027
1056
  }
1028
1057
  }
1029
1058
  ],
1030
- "return": ["U64"]
1059
+ "return": [
1060
+ {
1061
+ "Struct": {
1062
+ "address": "0x2",
1063
+ "module": "balance",
1064
+ "name": "Balance",
1065
+ "typeArguments": [
1066
+ {
1067
+ "Struct": {
1068
+ "address": "0x2",
1069
+ "module": "sui",
1070
+ "name": "SUI",
1071
+ "typeArguments": []
1072
+ }
1073
+ }
1074
+ ]
1075
+ }
1076
+ }
1077
+ ]
1031
1078
  },
1032
1079
  "split": {
1033
1080
  "visibility": "Public",
@@ -1132,6 +1179,24 @@
1132
1179
  ],
1133
1180
  "return": ["U64"]
1134
1181
  },
1182
+ "sui_amount": {
1183
+ "visibility": "Public",
1184
+ "isEntry": false,
1185
+ "typeParameters": [],
1186
+ "parameters": [
1187
+ {
1188
+ "Reference": {
1189
+ "Struct": {
1190
+ "address": "0x3",
1191
+ "module": "staking_pool",
1192
+ "name": "PoolTokenExchangeRate",
1193
+ "typeArguments": []
1194
+ }
1195
+ }
1196
+ }
1197
+ ],
1198
+ "return": ["U64"]
1199
+ },
1135
1200
  "sui_balance": {
1136
1201
  "visibility": "Public",
1137
1202
  "isEntry": false,
@@ -1455,6 +1520,28 @@
1455
1520
  }
1456
1521
  },
1457
1522
  "exposedFunctions": {
1523
+ "active_validator_addresses": {
1524
+ "visibility": "Public",
1525
+ "isEntry": false,
1526
+ "typeParameters": [],
1527
+ "parameters": [
1528
+ {
1529
+ "MutableReference": {
1530
+ "Struct": {
1531
+ "address": "0x3",
1532
+ "module": "sui_system",
1533
+ "name": "SuiSystemState",
1534
+ "typeArguments": []
1535
+ }
1536
+ }
1537
+ }
1538
+ ],
1539
+ "return": [
1540
+ {
1541
+ "Vector": "Address"
1542
+ }
1543
+ ]
1544
+ },
1458
1545
  "create": {
1459
1546
  "visibility": "Friend",
1460
1547
  "isEntry": false,
@@ -1526,6 +1613,55 @@
1526
1613
  ],
1527
1614
  "return": []
1528
1615
  },
1616
+ "pool_exchange_rates": {
1617
+ "visibility": "Public",
1618
+ "isEntry": false,
1619
+ "typeParameters": [],
1620
+ "parameters": [
1621
+ {
1622
+ "MutableReference": {
1623
+ "Struct": {
1624
+ "address": "0x3",
1625
+ "module": "sui_system",
1626
+ "name": "SuiSystemState",
1627
+ "typeArguments": []
1628
+ }
1629
+ }
1630
+ },
1631
+ {
1632
+ "Reference": {
1633
+ "Struct": {
1634
+ "address": "0x2",
1635
+ "module": "object",
1636
+ "name": "ID",
1637
+ "typeArguments": []
1638
+ }
1639
+ }
1640
+ }
1641
+ ],
1642
+ "return": [
1643
+ {
1644
+ "Reference": {
1645
+ "Struct": {
1646
+ "address": "0x2",
1647
+ "module": "table",
1648
+ "name": "Table",
1649
+ "typeArguments": [
1650
+ "U64",
1651
+ {
1652
+ "Struct": {
1653
+ "address": "0x3",
1654
+ "module": "staking_pool",
1655
+ "name": "PoolTokenExchangeRate",
1656
+ "typeArguments": []
1657
+ }
1658
+ }
1659
+ ]
1660
+ }
1661
+ }
1662
+ }
1663
+ ]
1664
+ },
1529
1665
  "report_validator": {
1530
1666
  "visibility": "Public",
1531
1667
  "isEntry": true,
@@ -1657,6 +1793,61 @@
1657
1793
  ],
1658
1794
  "return": []
1659
1795
  },
1796
+ "request_add_stake_non_entry": {
1797
+ "visibility": "Public",
1798
+ "isEntry": false,
1799
+ "typeParameters": [],
1800
+ "parameters": [
1801
+ {
1802
+ "MutableReference": {
1803
+ "Struct": {
1804
+ "address": "0x3",
1805
+ "module": "sui_system",
1806
+ "name": "SuiSystemState",
1807
+ "typeArguments": []
1808
+ }
1809
+ }
1810
+ },
1811
+ {
1812
+ "Struct": {
1813
+ "address": "0x2",
1814
+ "module": "coin",
1815
+ "name": "Coin",
1816
+ "typeArguments": [
1817
+ {
1818
+ "Struct": {
1819
+ "address": "0x2",
1820
+ "module": "sui",
1821
+ "name": "SUI",
1822
+ "typeArguments": []
1823
+ }
1824
+ }
1825
+ ]
1826
+ }
1827
+ },
1828
+ "Address",
1829
+ {
1830
+ "MutableReference": {
1831
+ "Struct": {
1832
+ "address": "0x2",
1833
+ "module": "tx_context",
1834
+ "name": "TxContext",
1835
+ "typeArguments": []
1836
+ }
1837
+ }
1838
+ }
1839
+ ],
1840
+ "return": [
1841
+ {
1842
+ "Struct": {
1843
+ "address": "0x3",
1844
+ "module": "staking_pool",
1845
+ "name": "StakedSui",
1846
+ "typeArguments": []
1847
+ }
1848
+ }
1849
+ ]
1850
+ },
1660
1851
  "request_add_validator": {
1661
1852
  "visibility": "Public",
1662
1853
  "isEntry": true,
@@ -1901,6 +2092,60 @@
1901
2092
  ],
1902
2093
  "return": []
1903
2094
  },
2095
+ "request_withdraw_stake_non_entry": {
2096
+ "visibility": "Public",
2097
+ "isEntry": false,
2098
+ "typeParameters": [],
2099
+ "parameters": [
2100
+ {
2101
+ "MutableReference": {
2102
+ "Struct": {
2103
+ "address": "0x3",
2104
+ "module": "sui_system",
2105
+ "name": "SuiSystemState",
2106
+ "typeArguments": []
2107
+ }
2108
+ }
2109
+ },
2110
+ {
2111
+ "Struct": {
2112
+ "address": "0x3",
2113
+ "module": "staking_pool",
2114
+ "name": "StakedSui",
2115
+ "typeArguments": []
2116
+ }
2117
+ },
2118
+ {
2119
+ "MutableReference": {
2120
+ "Struct": {
2121
+ "address": "0x2",
2122
+ "module": "tx_context",
2123
+ "name": "TxContext",
2124
+ "typeArguments": []
2125
+ }
2126
+ }
2127
+ }
2128
+ ],
2129
+ "return": [
2130
+ {
2131
+ "Struct": {
2132
+ "address": "0x2",
2133
+ "module": "balance",
2134
+ "name": "Balance",
2135
+ "typeArguments": [
2136
+ {
2137
+ "Struct": {
2138
+ "address": "0x2",
2139
+ "module": "sui",
2140
+ "name": "SUI",
2141
+ "typeArguments": []
2142
+ }
2143
+ }
2144
+ ]
2145
+ }
2146
+ }
2147
+ ]
2148
+ },
1904
2149
  "rotate_operation_cap": {
1905
2150
  "visibility": "Public",
1906
2151
  "isEntry": true,
@@ -3062,9 +3307,31 @@
3062
3307
  }
3063
3308
  }
3064
3309
  ]
3065
- }
3066
- },
3067
- "exposedFunctions": {
3310
+ }
3311
+ },
3312
+ "exposedFunctions": {
3313
+ "active_validator_addresses": {
3314
+ "visibility": "Friend",
3315
+ "isEntry": false,
3316
+ "typeParameters": [],
3317
+ "parameters": [
3318
+ {
3319
+ "Reference": {
3320
+ "Struct": {
3321
+ "address": "0x3",
3322
+ "module": "sui_system_state_inner",
3323
+ "name": "SuiSystemStateInnerV2",
3324
+ "typeArguments": []
3325
+ }
3326
+ }
3327
+ }
3328
+ ],
3329
+ "return": [
3330
+ {
3331
+ "Vector": "Address"
3332
+ }
3333
+ ]
3334
+ },
3068
3335
  "advance_epoch": {
3069
3336
  "visibility": "Friend",
3070
3337
  "isEntry": false,
@@ -3365,6 +3632,55 @@
3365
3632
  ],
3366
3633
  "return": ["U64"]
3367
3634
  },
3635
+ "pool_exchange_rates": {
3636
+ "visibility": "Friend",
3637
+ "isEntry": false,
3638
+ "typeParameters": [],
3639
+ "parameters": [
3640
+ {
3641
+ "MutableReference": {
3642
+ "Struct": {
3643
+ "address": "0x3",
3644
+ "module": "sui_system_state_inner",
3645
+ "name": "SuiSystemStateInnerV2",
3646
+ "typeArguments": []
3647
+ }
3648
+ }
3649
+ },
3650
+ {
3651
+ "Reference": {
3652
+ "Struct": {
3653
+ "address": "0x2",
3654
+ "module": "object",
3655
+ "name": "ID",
3656
+ "typeArguments": []
3657
+ }
3658
+ }
3659
+ }
3660
+ ],
3661
+ "return": [
3662
+ {
3663
+ "Reference": {
3664
+ "Struct": {
3665
+ "address": "0x2",
3666
+ "module": "table",
3667
+ "name": "Table",
3668
+ "typeArguments": [
3669
+ "U64",
3670
+ {
3671
+ "Struct": {
3672
+ "address": "0x3",
3673
+ "module": "staking_pool",
3674
+ "name": "PoolTokenExchangeRate",
3675
+ "typeArguments": []
3676
+ }
3677
+ }
3678
+ ]
3679
+ }
3680
+ }
3681
+ }
3682
+ ]
3683
+ },
3368
3684
  "protocol_version": {
3369
3685
  "visibility": "Friend",
3370
3686
  "isEntry": false,
@@ -3456,7 +3772,16 @@
3456
3772
  }
3457
3773
  }
3458
3774
  ],
3459
- "return": []
3775
+ "return": [
3776
+ {
3777
+ "Struct": {
3778
+ "address": "0x3",
3779
+ "module": "staking_pool",
3780
+ "name": "StakedSui",
3781
+ "typeArguments": []
3782
+ }
3783
+ }
3784
+ ]
3460
3785
  },
3461
3786
  "request_add_stake_mul_coin": {
3462
3787
  "visibility": "Friend",
@@ -3512,7 +3837,16 @@
3512
3837
  }
3513
3838
  }
3514
3839
  ],
3515
- "return": []
3840
+ "return": [
3841
+ {
3842
+ "Struct": {
3843
+ "address": "0x3",
3844
+ "module": "staking_pool",
3845
+ "name": "StakedSui",
3846
+ "typeArguments": []
3847
+ }
3848
+ }
3849
+ ]
3516
3850
  },
3517
3851
  "request_add_validator": {
3518
3852
  "visibility": "Friend",
@@ -3756,7 +4090,25 @@
3756
4090
  }
3757
4091
  }
3758
4092
  ],
3759
- "return": []
4093
+ "return": [
4094
+ {
4095
+ "Struct": {
4096
+ "address": "0x2",
4097
+ "module": "balance",
4098
+ "name": "Balance",
4099
+ "typeArguments": [
4100
+ {
4101
+ "Struct": {
4102
+ "address": "0x2",
4103
+ "module": "sui",
4104
+ "name": "SUI",
4105
+ "typeArguments": []
4106
+ }
4107
+ }
4108
+ ]
4109
+ }
4110
+ }
4111
+ ]
3760
4112
  },
3761
4113
  "rotate_operation_cap": {
3762
4114
  "visibility": "Friend",
@@ -5200,6 +5552,35 @@
5200
5552
  ],
5201
5553
  "return": ["U64"]
5202
5554
  },
5555
+ "get_staking_pool_ref": {
5556
+ "visibility": "Friend",
5557
+ "isEntry": false,
5558
+ "typeParameters": [],
5559
+ "parameters": [
5560
+ {
5561
+ "Reference": {
5562
+ "Struct": {
5563
+ "address": "0x3",
5564
+ "module": "validator",
5565
+ "name": "Validator",
5566
+ "typeArguments": []
5567
+ }
5568
+ }
5569
+ }
5570
+ ],
5571
+ "return": [
5572
+ {
5573
+ "Reference": {
5574
+ "Struct": {
5575
+ "address": "0x3",
5576
+ "module": "staking_pool",
5577
+ "name": "StakingPool",
5578
+ "typeArguments": []
5579
+ }
5580
+ }
5581
+ }
5582
+ ]
5583
+ },
5203
5584
  "image_url": {
5204
5585
  "visibility": "Public",
5205
5586
  "isEntry": false,
@@ -6184,7 +6565,16 @@
6184
6565
  }
6185
6566
  }
6186
6567
  ],
6187
- "return": []
6568
+ "return": [
6569
+ {
6570
+ "Struct": {
6571
+ "address": "0x3",
6572
+ "module": "staking_pool",
6573
+ "name": "StakedSui",
6574
+ "typeArguments": []
6575
+ }
6576
+ }
6577
+ ]
6188
6578
  },
6189
6579
  "request_add_stake_at_genesis": {
6190
6580
  "visibility": "Friend",
@@ -6312,7 +6702,25 @@
6312
6702
  }
6313
6703
  }
6314
6704
  ],
6315
- "return": []
6705
+ "return": [
6706
+ {
6707
+ "Struct": {
6708
+ "address": "0x2",
6709
+ "module": "balance",
6710
+ "name": "Balance",
6711
+ "typeArguments": [
6712
+ {
6713
+ "Struct": {
6714
+ "address": "0x2",
6715
+ "module": "sui",
6716
+ "name": "SUI",
6717
+ "typeArguments": []
6718
+ }
6719
+ }
6720
+ ]
6721
+ }
6722
+ }
6723
+ ]
6316
6724
  },
6317
6725
  "set_candidate_commission_rate": {
6318
6726
  "visibility": "Friend",
@@ -7457,6 +7865,28 @@
7457
7865
  }
7458
7866
  },
7459
7867
  "exposedFunctions": {
7868
+ "active_validator_addresses": {
7869
+ "visibility": "Friend",
7870
+ "isEntry": false,
7871
+ "typeParameters": [],
7872
+ "parameters": [
7873
+ {
7874
+ "Reference": {
7875
+ "Struct": {
7876
+ "address": "0x3",
7877
+ "module": "validator_set",
7878
+ "name": "ValidatorSet",
7879
+ "typeArguments": []
7880
+ }
7881
+ }
7882
+ }
7883
+ ],
7884
+ "return": [
7885
+ {
7886
+ "Vector": "Address"
7887
+ }
7888
+ ]
7889
+ },
7460
7890
  "active_validators": {
7461
7891
  "visibility": "Public",
7462
7892
  "isEntry": false,
@@ -8014,6 +8444,55 @@
8014
8444
  ],
8015
8445
  "return": ["U64"]
8016
8446
  },
8447
+ "pool_exchange_rates": {
8448
+ "visibility": "Friend",
8449
+ "isEntry": false,
8450
+ "typeParameters": [],
8451
+ "parameters": [
8452
+ {
8453
+ "MutableReference": {
8454
+ "Struct": {
8455
+ "address": "0x3",
8456
+ "module": "validator_set",
8457
+ "name": "ValidatorSet",
8458
+ "typeArguments": []
8459
+ }
8460
+ }
8461
+ },
8462
+ {
8463
+ "Reference": {
8464
+ "Struct": {
8465
+ "address": "0x2",
8466
+ "module": "object",
8467
+ "name": "ID",
8468
+ "typeArguments": []
8469
+ }
8470
+ }
8471
+ }
8472
+ ],
8473
+ "return": [
8474
+ {
8475
+ "Reference": {
8476
+ "Struct": {
8477
+ "address": "0x2",
8478
+ "module": "table",
8479
+ "name": "Table",
8480
+ "typeArguments": [
8481
+ "U64",
8482
+ {
8483
+ "Struct": {
8484
+ "address": "0x3",
8485
+ "module": "staking_pool",
8486
+ "name": "PoolTokenExchangeRate",
8487
+ "typeArguments": []
8488
+ }
8489
+ }
8490
+ ]
8491
+ }
8492
+ }
8493
+ }
8494
+ ]
8495
+ },
8017
8496
  "request_add_stake": {
8018
8497
  "visibility": "Friend",
8019
8498
  "isEntry": false,
@@ -8058,7 +8537,16 @@
8058
8537
  }
8059
8538
  }
8060
8539
  ],
8061
- "return": []
8540
+ "return": [
8541
+ {
8542
+ "Struct": {
8543
+ "address": "0x3",
8544
+ "module": "staking_pool",
8545
+ "name": "StakedSui",
8546
+ "typeArguments": []
8547
+ }
8548
+ }
8549
+ ]
8062
8550
  },
8063
8551
  "request_add_validator": {
8064
8552
  "visibility": "Friend",
@@ -8244,7 +8732,25 @@
8244
8732
  }
8245
8733
  }
8246
8734
  ],
8247
- "return": []
8735
+ "return": [
8736
+ {
8737
+ "Struct": {
8738
+ "address": "0x2",
8739
+ "module": "balance",
8740
+ "name": "Balance",
8741
+ "typeArguments": [
8742
+ {
8743
+ "Struct": {
8744
+ "address": "0x2",
8745
+ "module": "sui",
8746
+ "name": "SUI",
8747
+ "typeArguments": []
8748
+ }
8749
+ }
8750
+ ]
8751
+ }
8752
+ }
8753
+ ]
8248
8754
  },
8249
8755
  "staking_pool_mappings": {
8250
8756
  "visibility": "Public",