@sentio/sdk 4.5.0 → 4.5.1-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.
@@ -2379,11 +2379,6 @@
2379
2379
  "isEntry": false,
2380
2380
  "typeParameters": [],
2381
2381
  "parameters": [
2382
- "U64",
2383
- "U64",
2384
- "U64",
2385
- "U64",
2386
- "U64",
2387
2382
  "U64",
2388
2383
  {
2389
2384
  "MutableReference": {
@@ -2591,13 +2586,11 @@
2591
2586
  }
2592
2587
  },
2593
2588
  {
2594
- "Reference": {
2595
- "Struct": {
2596
- "address": "0x2",
2597
- "module": "object",
2598
- "name": "ID",
2599
- "typeArguments": []
2600
- }
2589
+ "Struct": {
2590
+ "address": "0x2",
2591
+ "module": "object",
2592
+ "name": "ID",
2593
+ "typeArguments": []
2601
2594
  }
2602
2595
  }
2603
2596
  ],
@@ -3778,6 +3771,56 @@
3778
3771
  }
3779
3772
  }
3780
3773
  },
3774
+ "protocol_config": {
3775
+ "fileFormatVersion": 6,
3776
+ "address": "0x3",
3777
+ "name": "protocol_config",
3778
+ "friends": [
3779
+ {
3780
+ "address": "0x3",
3781
+ "name": "iota_system_state_inner"
3782
+ }
3783
+ ],
3784
+ "structs": {},
3785
+ "exposedFunctions": {
3786
+ "get_attr": {
3787
+ "visibility": "Friend",
3788
+ "isEntry": false,
3789
+ "typeParameters": [
3790
+ {
3791
+ "abilities": [
3792
+ "Copy",
3793
+ "Drop",
3794
+ "Store"
3795
+ ]
3796
+ }
3797
+ ],
3798
+ "parameters": [
3799
+ {
3800
+ "Vector": "U8"
3801
+ }
3802
+ ],
3803
+ "return": [
3804
+ {
3805
+ "TypeParameter": 0
3806
+ }
3807
+ ]
3808
+ },
3809
+ "is_feature_enabled": {
3810
+ "visibility": "Friend",
3811
+ "isEntry": false,
3812
+ "typeParameters": [],
3813
+ "parameters": [
3814
+ {
3815
+ "Vector": "U8"
3816
+ }
3817
+ ],
3818
+ "return": [
3819
+ "Bool"
3820
+ ]
3821
+ }
3822
+ }
3823
+ },
3781
3824
  "staking_pool": {
3782
3825
  "fileFormatVersion": 6,
3783
3826
  "address": "0x3",
@@ -4907,12 +4950,7 @@
4907
4950
  "fileFormatVersion": 6,
4908
4951
  "address": "0x3",
4909
4952
  "name": "timelocked_staking",
4910
- "friends": [
4911
- {
4912
- "address": "0x3",
4913
- "name": "genesis"
4914
- }
4915
- ],
4953
+ "friends": [],
4916
4954
  "structs": {
4917
4955
  "TimelockedStakedIota": {
4918
4956
  "abilities": {
@@ -5190,70 +5228,6 @@
5190
5228
  ],
5191
5229
  "return": []
5192
5230
  },
5193
- "request_add_stake_at_genesis": {
5194
- "visibility": "Friend",
5195
- "isEntry": false,
5196
- "typeParameters": [],
5197
- "parameters": [
5198
- {
5199
- "MutableReference": {
5200
- "Struct": {
5201
- "address": "0x3",
5202
- "module": "validator",
5203
- "name": "ValidatorV1",
5204
- "typeArguments": []
5205
- }
5206
- }
5207
- },
5208
- {
5209
- "Struct": {
5210
- "address": "0x2",
5211
- "module": "balance",
5212
- "name": "Balance",
5213
- "typeArguments": [
5214
- {
5215
- "Struct": {
5216
- "address": "0x2",
5217
- "module": "iota",
5218
- "name": "IOTA",
5219
- "typeArguments": []
5220
- }
5221
- }
5222
- ]
5223
- }
5224
- },
5225
- "Address",
5226
- "U64",
5227
- {
5228
- "Struct": {
5229
- "address": "0x1",
5230
- "module": "option",
5231
- "name": "Option",
5232
- "typeArguments": [
5233
- {
5234
- "Struct": {
5235
- "address": "0x1",
5236
- "module": "string",
5237
- "name": "String",
5238
- "typeArguments": []
5239
- }
5240
- }
5241
- ]
5242
- }
5243
- },
5244
- {
5245
- "MutableReference": {
5246
- "Struct": {
5247
- "address": "0x2",
5248
- "module": "tx_context",
5249
- "name": "TxContext",
5250
- "typeArguments": []
5251
- }
5252
- }
5253
- }
5254
- ],
5255
- "return": []
5256
- },
5257
5231
  "request_add_stake_mul_bal": {
5258
5232
  "visibility": "Public",
5259
5233
  "isEntry": true,
@@ -5805,10 +5779,6 @@
5805
5779
  "address": "0x3",
5806
5780
  "name": "iota_system_state_inner"
5807
5781
  },
5808
- {
5809
- "address": "0x3",
5810
- "name": "timelocked_staking"
5811
- },
5812
5782
  {
5813
5783
  "address": "0x3",
5814
5784
  "name": "validator_set"
@@ -8310,9 +8280,7 @@
8310
8280
  }
8311
8281
  ],
8312
8282
  "return": [
8313
- {
8314
- "Reference": "Address"
8315
- }
8283
+ "Address"
8316
8284
  ]
8317
8285
  },
8318
8286
  "verified_operation_cap_address": {
@@ -8332,9 +8300,7 @@
8332
8300
  }
8333
8301
  ],
8334
8302
  "return": [
8335
- {
8336
- "Reference": "Address"
8337
- }
8303
+ "Address"
8338
8304
  ]
8339
8305
  }
8340
8306
  }
@@ -8842,6 +8808,36 @@
8842
8808
  }
8843
8809
  },
8844
8810
  "exposedFunctions": {
8811
+ "active_validator": {
8812
+ "visibility": "Friend",
8813
+ "isEntry": false,
8814
+ "typeParameters": [],
8815
+ "parameters": [
8816
+ {
8817
+ "Reference": {
8818
+ "Struct": {
8819
+ "address": "0x3",
8820
+ "module": "validator_set",
8821
+ "name": "ValidatorSetV2",
8822
+ "typeArguments": []
8823
+ }
8824
+ }
8825
+ },
8826
+ "Address"
8827
+ ],
8828
+ "return": [
8829
+ {
8830
+ "Reference": {
8831
+ "Struct": {
8832
+ "address": "0x3",
8833
+ "module": "validator",
8834
+ "name": "ValidatorV1",
8835
+ "typeArguments": []
8836
+ }
8837
+ }
8838
+ }
8839
+ ]
8840
+ },
8845
8841
  "active_validator_addresses": {
8846
8842
  "visibility": "Friend",
8847
8843
  "isEntry": false,
@@ -8864,6 +8860,36 @@
8864
8860
  }
8865
8861
  ]
8866
8862
  },
8863
+ "active_validator_mut": {
8864
+ "visibility": "Friend",
8865
+ "isEntry": false,
8866
+ "typeParameters": [],
8867
+ "parameters": [
8868
+ {
8869
+ "MutableReference": {
8870
+ "Struct": {
8871
+ "address": "0x3",
8872
+ "module": "validator_set",
8873
+ "name": "ValidatorSetV2",
8874
+ "typeArguments": []
8875
+ }
8876
+ }
8877
+ },
8878
+ "Address"
8879
+ ],
8880
+ "return": [
8881
+ {
8882
+ "MutableReference": {
8883
+ "Struct": {
8884
+ "address": "0x3",
8885
+ "module": "validator",
8886
+ "name": "ValidatorV1",
8887
+ "typeArguments": []
8888
+ }
8889
+ }
8890
+ }
8891
+ ]
8892
+ },
8867
8893
  "active_validators": {
8868
8894
  "visibility": "Public",
8869
8895
  "isEntry": false,
@@ -9007,13 +9033,13 @@
9007
9033
  ],
9008
9034
  "return": []
9009
9035
  },
9010
- "assert_no_pending_or_active_duplicates": {
9036
+ "any_validator": {
9011
9037
  "visibility": "Friend",
9012
9038
  "isEntry": false,
9013
9039
  "typeParameters": [],
9014
9040
  "parameters": [
9015
9041
  {
9016
- "Reference": {
9042
+ "MutableReference": {
9017
9043
  "Struct": {
9018
9044
  "address": "0x3",
9019
9045
  "module": "validator_set",
@@ -9022,62 +9048,22 @@
9022
9048
  }
9023
9049
  }
9024
9050
  },
9025
- {
9026
- "Reference": {
9027
- "Struct": {
9028
- "address": "0x3",
9029
- "module": "validator",
9030
- "name": "ValidatorV1",
9031
- "typeArguments": []
9032
- }
9033
- }
9034
- }
9035
- ],
9036
- "return": []
9037
- },
9038
- "committee_validator_addresses": {
9039
- "visibility": "Friend",
9040
- "isEntry": false,
9041
- "typeParameters": [],
9042
- "parameters": [
9043
- {
9044
- "Reference": {
9045
- "Struct": {
9046
- "address": "0x3",
9047
- "module": "validator_set",
9048
- "name": "ValidatorSetV2",
9049
- "typeArguments": []
9050
- }
9051
- }
9052
- }
9051
+ "Address"
9053
9052
  ],
9054
9053
  "return": [
9055
- {
9056
- "Vector": "Address"
9057
- }
9058
- ]
9059
- },
9060
- "derive_reference_gas_price": {
9061
- "visibility": "Public",
9062
- "isEntry": false,
9063
- "typeParameters": [],
9064
- "parameters": [
9065
9054
  {
9066
9055
  "Reference": {
9067
9056
  "Struct": {
9068
9057
  "address": "0x3",
9069
- "module": "validator_set",
9070
- "name": "ValidatorSetV1",
9058
+ "module": "validator",
9059
+ "name": "ValidatorV1",
9071
9060
  "typeArguments": []
9072
9061
  }
9073
9062
  }
9074
9063
  }
9075
- ],
9076
- "return": [
9077
- "U64"
9078
9064
  ]
9079
9065
  },
9080
- "get_active_or_pending_or_candidate_validator_ref": {
9066
+ "any_validator_mut": {
9081
9067
  "visibility": "Friend",
9082
9068
  "isEntry": false,
9083
9069
  "typeParameters": [],
@@ -9092,12 +9078,11 @@
9092
9078
  }
9093
9079
  }
9094
9080
  },
9095
- "Address",
9096
- "U8"
9081
+ "Address"
9097
9082
  ],
9098
9083
  "return": [
9099
9084
  {
9100
- "Reference": {
9085
+ "MutableReference": {
9101
9086
  "Struct": {
9102
9087
  "address": "0x3",
9103
9088
  "module": "validator",
@@ -9108,8 +9093,8 @@
9108
9093
  }
9109
9094
  ]
9110
9095
  },
9111
- "get_active_validator_ref": {
9112
- "visibility": "Public",
9096
+ "assert_no_pending_or_active_duplicates": {
9097
+ "visibility": "Friend",
9113
9098
  "isEntry": false,
9114
9099
  "typeParameters": [],
9115
9100
  "parameters": [
@@ -9118,14 +9103,11 @@
9118
9103
  "Struct": {
9119
9104
  "address": "0x3",
9120
9105
  "module": "validator_set",
9121
- "name": "ValidatorSetV1",
9106
+ "name": "ValidatorSetV2",
9122
9107
  "typeArguments": []
9123
9108
  }
9124
9109
  }
9125
9110
  },
9126
- "Address"
9127
- ],
9128
- "return": [
9129
9111
  {
9130
9112
  "Reference": {
9131
9113
  "Struct": {
@@ -9136,15 +9118,16 @@
9136
9118
  }
9137
9119
  }
9138
9120
  }
9139
- ]
9121
+ ],
9122
+ "return": []
9140
9123
  },
9141
- "get_active_validator_ref_inner": {
9124
+ "candidate_validator": {
9142
9125
  "visibility": "Friend",
9143
9126
  "isEntry": false,
9144
9127
  "typeParameters": [],
9145
9128
  "parameters": [
9146
9129
  {
9147
- "Reference": {
9130
+ "MutableReference": {
9148
9131
  "Struct": {
9149
9132
  "address": "0x3",
9150
9133
  "module": "validator_set",
@@ -9168,13 +9151,13 @@
9168
9151
  }
9169
9152
  ]
9170
9153
  },
9171
- "get_committee_validator_ref_inner": {
9154
+ "candidate_validator_mut": {
9172
9155
  "visibility": "Friend",
9173
9156
  "isEntry": false,
9174
9157
  "typeParameters": [],
9175
9158
  "parameters": [
9176
9159
  {
9177
- "Reference": {
9160
+ "MutableReference": {
9178
9161
  "Struct": {
9179
9162
  "address": "0x3",
9180
9163
  "module": "validator_set",
@@ -9187,7 +9170,7 @@
9187
9170
  ],
9188
9171
  "return": [
9189
9172
  {
9190
- "Reference": {
9173
+ "MutableReference": {
9191
9174
  "Struct": {
9192
9175
  "address": "0x3",
9193
9176
  "module": "validator",
@@ -9198,8 +9181,8 @@
9198
9181
  }
9199
9182
  ]
9200
9183
  },
9201
- "get_pending_validator_ref": {
9202
- "visibility": "Public",
9184
+ "committee_validator": {
9185
+ "visibility": "Friend",
9203
9186
  "isEntry": false,
9204
9187
  "typeParameters": [],
9205
9188
  "parameters": [
@@ -9208,7 +9191,7 @@
9208
9191
  "Struct": {
9209
9192
  "address": "0x3",
9210
9193
  "module": "validator_set",
9211
- "name": "ValidatorSetV1",
9194
+ "name": "ValidatorSetV2",
9212
9195
  "typeArguments": []
9213
9196
  }
9214
9197
  }
@@ -9228,7 +9211,7 @@
9228
9211
  }
9229
9212
  ]
9230
9213
  },
9231
- "get_pending_validator_ref_inner": {
9214
+ "committee_validator_addresses": {
9232
9215
  "visibility": "Friend",
9233
9216
  "isEntry": false,
9234
9217
  "typeParameters": [],
@@ -9242,55 +9225,35 @@
9242
9225
  "typeArguments": []
9243
9226
  }
9244
9227
  }
9245
- },
9246
- "Address"
9228
+ }
9247
9229
  ],
9248
9230
  "return": [
9249
9231
  {
9250
- "Reference": {
9251
- "Struct": {
9252
- "address": "0x3",
9253
- "module": "validator",
9254
- "name": "ValidatorV1",
9255
- "typeArguments": []
9256
- }
9257
- }
9232
+ "Vector": "Address"
9258
9233
  }
9259
9234
  ]
9260
9235
  },
9261
- "get_validator_mut": {
9262
- "visibility": "Friend",
9236
+ "derive_reference_gas_price": {
9237
+ "visibility": "Public",
9263
9238
  "isEntry": false,
9264
9239
  "typeParameters": [],
9265
9240
  "parameters": [
9266
9241
  {
9267
- "MutableReference": {
9268
- "Vector": {
9269
- "Struct": {
9270
- "address": "0x3",
9271
- "module": "validator",
9272
- "name": "ValidatorV1",
9273
- "typeArguments": []
9274
- }
9275
- }
9276
- }
9277
- },
9278
- "Address"
9279
- ],
9280
- "return": [
9281
- {
9282
- "MutableReference": {
9242
+ "Reference": {
9283
9243
  "Struct": {
9284
9244
  "address": "0x3",
9285
- "module": "validator",
9286
- "name": "ValidatorV1",
9245
+ "module": "validator_set",
9246
+ "name": "ValidatorSetV1",
9287
9247
  "typeArguments": []
9288
9248
  }
9289
9249
  }
9290
9250
  }
9251
+ ],
9252
+ "return": [
9253
+ "U64"
9291
9254
  ]
9292
9255
  },
9293
- "get_validator_mut_with_ctx": {
9256
+ "get_active_or_pending_or_candidate_validator_ref": {
9294
9257
  "visibility": "Friend",
9295
9258
  "isEntry": false,
9296
9259
  "typeParameters": [],
@@ -9305,20 +9268,12 @@
9305
9268
  }
9306
9269
  }
9307
9270
  },
9308
- {
9309
- "Reference": {
9310
- "Struct": {
9311
- "address": "0x2",
9312
- "module": "tx_context",
9313
- "name": "TxContext",
9314
- "typeArguments": []
9315
- }
9316
- }
9317
- }
9271
+ "Address",
9272
+ "U8"
9318
9273
  ],
9319
9274
  "return": [
9320
9275
  {
9321
- "MutableReference": {
9276
+ "Reference": {
9322
9277
  "Struct": {
9323
9278
  "address": "0x3",
9324
9279
  "module": "validator",
@@ -9329,35 +9284,26 @@
9329
9284
  }
9330
9285
  ]
9331
9286
  },
9332
- "get_validator_mut_with_ctx_including_candidates": {
9333
- "visibility": "Friend",
9287
+ "get_active_validator_ref": {
9288
+ "visibility": "Public",
9334
9289
  "isEntry": false,
9335
9290
  "typeParameters": [],
9336
9291
  "parameters": [
9337
9292
  {
9338
- "MutableReference": {
9293
+ "Reference": {
9339
9294
  "Struct": {
9340
9295
  "address": "0x3",
9341
9296
  "module": "validator_set",
9342
- "name": "ValidatorSetV2",
9297
+ "name": "ValidatorSetV1",
9343
9298
  "typeArguments": []
9344
9299
  }
9345
9300
  }
9346
9301
  },
9347
- {
9348
- "Reference": {
9349
- "Struct": {
9350
- "address": "0x2",
9351
- "module": "tx_context",
9352
- "name": "TxContext",
9353
- "typeArguments": []
9354
- }
9355
- }
9356
- }
9302
+ "Address"
9357
9303
  ],
9358
9304
  "return": [
9359
9305
  {
9360
- "MutableReference": {
9306
+ "Reference": {
9361
9307
  "Struct": {
9362
9308
  "address": "0x3",
9363
9309
  "module": "validator",
@@ -9368,36 +9314,26 @@
9368
9314
  }
9369
9315
  ]
9370
9316
  },
9371
- "get_validator_mut_with_verified_cap": {
9372
- "visibility": "Friend",
9317
+ "get_pending_validator_ref": {
9318
+ "visibility": "Public",
9373
9319
  "isEntry": false,
9374
9320
  "typeParameters": [],
9375
9321
  "parameters": [
9376
- {
9377
- "MutableReference": {
9378
- "Struct": {
9379
- "address": "0x3",
9380
- "module": "validator_set",
9381
- "name": "ValidatorSetV2",
9382
- "typeArguments": []
9383
- }
9384
- }
9385
- },
9386
9322
  {
9387
9323
  "Reference": {
9388
9324
  "Struct": {
9389
9325
  "address": "0x3",
9390
- "module": "validator_cap",
9391
- "name": "ValidatorOperationCap",
9326
+ "module": "validator_set",
9327
+ "name": "ValidatorSetV1",
9392
9328
  "typeArguments": []
9393
9329
  }
9394
9330
  }
9395
9331
  },
9396
- "Bool"
9332
+ "Address"
9397
9333
  ],
9398
9334
  "return": [
9399
9335
  {
9400
- "MutableReference": {
9336
+ "Reference": {
9401
9337
  "Struct": {
9402
9338
  "address": "0x3",
9403
9339
  "module": "validator",
@@ -9637,13 +9573,13 @@
9637
9573
  "U64"
9638
9574
  ]
9639
9575
  },
9640
- "pool_exchange_rates": {
9576
+ "pending_validator": {
9641
9577
  "visibility": "Friend",
9642
9578
  "isEntry": false,
9643
9579
  "typeParameters": [],
9644
9580
  "parameters": [
9645
9581
  {
9646
- "MutableReference": {
9582
+ "Reference": {
9647
9583
  "Struct": {
9648
9584
  "address": "0x3",
9649
9585
  "module": "validator_set",
@@ -9652,16 +9588,74 @@
9652
9588
  }
9653
9589
  }
9654
9590
  },
9591
+ "Address"
9592
+ ],
9593
+ "return": [
9655
9594
  {
9656
9595
  "Reference": {
9657
9596
  "Struct": {
9658
- "address": "0x2",
9659
- "module": "object",
9660
- "name": "ID",
9597
+ "address": "0x3",
9598
+ "module": "validator",
9599
+ "name": "ValidatorV1",
9600
+ "typeArguments": []
9601
+ }
9602
+ }
9603
+ }
9604
+ ]
9605
+ },
9606
+ "pending_validator_mut": {
9607
+ "visibility": "Friend",
9608
+ "isEntry": false,
9609
+ "typeParameters": [],
9610
+ "parameters": [
9611
+ {
9612
+ "MutableReference": {
9613
+ "Struct": {
9614
+ "address": "0x3",
9615
+ "module": "validator_set",
9616
+ "name": "ValidatorSetV2",
9617
+ "typeArguments": []
9618
+ }
9619
+ }
9620
+ },
9621
+ "Address"
9622
+ ],
9623
+ "return": [
9624
+ {
9625
+ "MutableReference": {
9626
+ "Struct": {
9627
+ "address": "0x3",
9628
+ "module": "validator",
9629
+ "name": "ValidatorV1",
9661
9630
  "typeArguments": []
9662
9631
  }
9663
9632
  }
9664
9633
  }
9634
+ ]
9635
+ },
9636
+ "pool_exchange_rates": {
9637
+ "visibility": "Friend",
9638
+ "isEntry": false,
9639
+ "typeParameters": [],
9640
+ "parameters": [
9641
+ {
9642
+ "MutableReference": {
9643
+ "Struct": {
9644
+ "address": "0x3",
9645
+ "module": "validator_set",
9646
+ "name": "ValidatorSetV2",
9647
+ "typeArguments": []
9648
+ }
9649
+ }
9650
+ },
9651
+ {
9652
+ "Struct": {
9653
+ "address": "0x2",
9654
+ "module": "object",
9655
+ "name": "ID",
9656
+ "typeArguments": []
9657
+ }
9658
+ }
9665
9659
  ],
9666
9660
  "return": [
9667
9661
  {
@@ -9900,35 +9894,6 @@
9900
9894
  ],
9901
9895
  "return": []
9902
9896
  },
9903
- "request_set_commission_rate": {
9904
- "visibility": "Friend",
9905
- "isEntry": false,
9906
- "typeParameters": [],
9907
- "parameters": [
9908
- {
9909
- "MutableReference": {
9910
- "Struct": {
9911
- "address": "0x3",
9912
- "module": "validator_set",
9913
- "name": "ValidatorSetV2",
9914
- "typeArguments": []
9915
- }
9916
- }
9917
- },
9918
- "U64",
9919
- {
9920
- "Reference": {
9921
- "Struct": {
9922
- "address": "0x2",
9923
- "module": "tx_context",
9924
- "name": "TxContext",
9925
- "typeArguments": []
9926
- }
9927
- }
9928
- }
9929
- ],
9930
- "return": []
9931
- },
9932
9897
  "request_withdraw_stake": {
9933
9898
  "visibility": "Friend",
9934
9899
  "isEntry": false,