@super-protocol/sdk-js 0.11.9-beta.0 → 0.11.9-beta.10

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.
@@ -1428,6 +1428,44 @@
1428
1428
  "stateMutability": "view",
1429
1429
  "type": "function"
1430
1430
  },
1431
+ {
1432
+ "inputs": [],
1433
+ "name": "getConsensusConstants",
1434
+ "outputs": [
1435
+ {
1436
+ "internalType": "uint8",
1437
+ "name": "",
1438
+ "type": "uint8"
1439
+ },
1440
+ {
1441
+ "internalType": "uint8",
1442
+ "name": "",
1443
+ "type": "uint8"
1444
+ },
1445
+ {
1446
+ "internalType": "uint8",
1447
+ "name": "",
1448
+ "type": "uint8"
1449
+ },
1450
+ {
1451
+ "internalType": "uint8",
1452
+ "name": "",
1453
+ "type": "uint8"
1454
+ },
1455
+ {
1456
+ "internalType": "uint8",
1457
+ "name": "",
1458
+ "type": "uint8"
1459
+ },
1460
+ {
1461
+ "internalType": "uint32",
1462
+ "name": "",
1463
+ "type": "uint32"
1464
+ }
1465
+ ],
1466
+ "stateMutability": "pure",
1467
+ "type": "function"
1468
+ },
1431
1469
  {
1432
1470
  "inputs": [
1433
1471
  {
@@ -1440,16 +1478,6 @@
1440
1478
  "outputs": [
1441
1479
  {
1442
1480
  "components": [
1443
- {
1444
- "internalType": "uint256",
1445
- "name": "startDate",
1446
- "type": "uint256"
1447
- },
1448
- {
1449
- "internalType": "uint256",
1450
- "name": "endDate",
1451
- "type": "uint256"
1452
- },
1453
1481
  {
1454
1482
  "internalType": "uint256",
1455
1483
  "name": "reward",
@@ -1475,12 +1503,28 @@
1475
1503
  "type": "function"
1476
1504
  },
1477
1505
  {
1478
- "inputs": [],
1479
- "name": "getEpochIndex",
1506
+ "inputs": [
1507
+ {
1508
+ "internalType": "uint256",
1509
+ "name": "tcbTime",
1510
+ "type": "uint256"
1511
+ }
1512
+ ],
1513
+ "name": "getEpochTime",
1480
1514
  "outputs": [
1481
1515
  {
1482
1516
  "internalType": "uint256",
1483
- "name": "",
1517
+ "name": "epochStart",
1518
+ "type": "uint256"
1519
+ },
1520
+ {
1521
+ "internalType": "uint256",
1522
+ "name": "epochEnd",
1523
+ "type": "uint256"
1524
+ },
1525
+ {
1526
+ "internalType": "uint256",
1527
+ "name": "epochIndex",
1484
1528
  "type": "uint256"
1485
1529
  }
1486
1530
  ],
@@ -1634,21 +1678,6 @@
1634
1678
  "name": "suspiciousBlocksTakenAmount",
1635
1679
  "type": "uint256"
1636
1680
  },
1637
- {
1638
- "internalType": "bool",
1639
- "name": "lastBlocksTaken",
1640
- "type": "bool"
1641
- },
1642
- {
1643
- "internalType": "bool",
1644
- "name": "suspiciousBlocksTaken",
1645
- "type": "bool"
1646
- },
1647
- {
1648
- "internalType": "bool",
1649
- "name": "rewardClaimed",
1650
- "type": "bool"
1651
- },
1652
1681
  {
1653
1682
  "internalType": "uint16",
1654
1683
  "name": "negative",
@@ -1664,10 +1693,30 @@
1664
1693
  "name": "previousTcb",
1665
1694
  "type": "uint256"
1666
1695
  },
1696
+ {
1697
+ "internalType": "bool",
1698
+ "name": "lastBlocksTaken",
1699
+ "type": "bool"
1700
+ },
1701
+ {
1702
+ "internalType": "bool",
1703
+ "name": "suspiciousBlocksTaken",
1704
+ "type": "bool"
1705
+ },
1706
+ {
1707
+ "internalType": "bool",
1708
+ "name": "assignedToEpoch",
1709
+ "type": "bool"
1710
+ },
1667
1711
  {
1668
1712
  "internalType": "bool",
1669
1713
  "name": "checked",
1670
1714
  "type": "bool"
1715
+ },
1716
+ {
1717
+ "internalType": "bool",
1718
+ "name": "rewardClaimed",
1719
+ "type": "bool"
1671
1720
  }
1672
1721
  ],
1673
1722
  "internalType": "struct TcbUtilityData",
@@ -1678,23 +1727,6 @@
1678
1727
  "internalType": "enum TcbStatus",
1679
1728
  "name": "status",
1680
1729
  "type": "uint8"
1681
- },
1682
- {
1683
- "components": [
1684
- {
1685
- "internalType": "uint256",
1686
- "name": "index",
1687
- "type": "uint256"
1688
- },
1689
- {
1690
- "internalType": "bool",
1691
- "name": "valid",
1692
- "type": "bool"
1693
- }
1694
- ],
1695
- "internalType": "struct TcbEpochInfo",
1696
- "name": "epoch",
1697
- "type": "tuple"
1698
1730
  }
1699
1731
  ],
1700
1732
  "internalType": "struct Tcb",
@@ -1756,6 +1788,40 @@
1756
1788
  "stateMutability": "view",
1757
1789
  "type": "function"
1758
1790
  },
1791
+ {
1792
+ "inputs": [
1793
+ {
1794
+ "internalType": "uint256",
1795
+ "name": "teeOfferId",
1796
+ "type": "uint256"
1797
+ }
1798
+ ],
1799
+ "name": "isTcbCreationAvailable",
1800
+ "outputs": [
1801
+ {
1802
+ "internalType": "bool",
1803
+ "name": "offerNotBlocked",
1804
+ "type": "bool"
1805
+ },
1806
+ {
1807
+ "internalType": "bool",
1808
+ "name": "newEpochStarted",
1809
+ "type": "bool"
1810
+ },
1811
+ {
1812
+ "internalType": "bool",
1813
+ "name": "halfEpochPassed",
1814
+ "type": "bool"
1815
+ },
1816
+ {
1817
+ "internalType": "bool",
1818
+ "name": "benchmarkVerified",
1819
+ "type": "bool"
1820
+ }
1821
+ ],
1822
+ "stateMutability": "view",
1823
+ "type": "function"
1824
+ },
1759
1825
  {
1760
1826
  "inputs": [
1761
1827
  {
@@ -2358,6 +2424,11 @@
2358
2424
  "internalType": "bytes32",
2359
2425
  "name": "externalId",
2360
2426
  "type": "bytes32"
2427
+ },
2428
+ {
2429
+ "internalType": "bool",
2430
+ "name": "suspended",
2431
+ "type": "bool"
2361
2432
  }
2362
2433
  ],
2363
2434
  "name": "createValueOffer",
@@ -2988,6 +3059,57 @@
2988
3059
  "stateMutability": "view",
2989
3060
  "type": "function"
2990
3061
  },
3062
+ {
3063
+ "inputs": [
3064
+ {
3065
+ "internalType": "uint256",
3066
+ "name": "offerId",
3067
+ "type": "uint256"
3068
+ }
3069
+ ],
3070
+ "name": "isOfferSuspended",
3071
+ "outputs": [
3072
+ {
3073
+ "internalType": "bool",
3074
+ "name": "",
3075
+ "type": "bool"
3076
+ }
3077
+ ],
3078
+ "stateMutability": "view",
3079
+ "type": "function"
3080
+ },
3081
+ {
3082
+ "inputs": [
3083
+ {
3084
+ "internalType": "uint256",
3085
+ "name": "offerId",
3086
+ "type": "uint256"
3087
+ }
3088
+ ],
3089
+ "name": "isTeeOfferBanned",
3090
+ "outputs": [
3091
+ {
3092
+ "internalType": "bool",
3093
+ "name": "",
3094
+ "type": "bool"
3095
+ }
3096
+ ],
3097
+ "stateMutability": "view",
3098
+ "type": "function"
3099
+ },
3100
+ {
3101
+ "inputs": [
3102
+ {
3103
+ "internalType": "uint256",
3104
+ "name": "offerId",
3105
+ "type": "uint256"
3106
+ }
3107
+ ],
3108
+ "name": "resumeOffer",
3109
+ "outputs": [],
3110
+ "stateMutability": "nonpayable",
3111
+ "type": "function"
3112
+ },
2991
3113
  {
2992
3114
  "inputs": [
2993
3115
  {
@@ -3050,12 +3172,64 @@
3050
3172
  "type": "uint256"
3051
3173
  },
3052
3174
  {
3053
- "internalType": "string",
3054
- "name": "tlb",
3055
- "type": "string"
3175
+ "components": [
3176
+ {
3177
+ "internalType": "string",
3178
+ "name": "name",
3179
+ "type": "string"
3180
+ },
3181
+ {
3182
+ "internalType": "string",
3183
+ "name": "description",
3184
+ "type": "string"
3185
+ },
3186
+ {
3187
+ "internalType": "string",
3188
+ "name": "teeType",
3189
+ "type": "string"
3190
+ },
3191
+ {
3192
+ "internalType": "uint32",
3193
+ "name": "slots",
3194
+ "type": "uint32"
3195
+ },
3196
+ {
3197
+ "internalType": "uint64",
3198
+ "name": "minTimeMinutes",
3199
+ "type": "uint64"
3200
+ },
3201
+ {
3202
+ "internalType": "string",
3203
+ "name": "properties",
3204
+ "type": "string"
3205
+ },
3206
+ {
3207
+ "internalType": "address",
3208
+ "name": "tcb",
3209
+ "type": "address"
3210
+ },
3211
+ {
3212
+ "internalType": "string",
3213
+ "name": "tlb",
3214
+ "type": "string"
3215
+ },
3216
+ {
3217
+ "internalType": "string",
3218
+ "name": "argsPublicKey",
3219
+ "type": "string"
3220
+ },
3221
+ {
3222
+ "internalType": "uint256",
3223
+ "name": "maxDurationTimeMinutes",
3224
+ "type": "uint256"
3225
+ }
3226
+ ],
3227
+ "internalType": "struct TeeOfferInfo",
3228
+ "name": "newInfo",
3229
+ "type": "tuple"
3056
3230
  }
3057
3231
  ],
3058
- "name": "setTeeOfferTlb",
3232
+ "name": "setTeeOfferInfo",
3059
3233
  "outputs": [],
3060
3234
  "stateMutability": "nonpayable",
3061
3235
  "type": "function"
@@ -3064,17 +3238,165 @@
3064
3238
  "inputs": [
3065
3239
  {
3066
3240
  "internalType": "uint256",
3067
- "name": "begin",
3241
+ "name": "offerId",
3068
3242
  "type": "uint256"
3069
3243
  },
3070
3244
  {
3071
- "internalType": "uint256",
3072
- "name": "end",
3073
- "type": "uint256"
3245
+ "internalType": "string",
3246
+ "name": "tlb",
3247
+ "type": "string"
3074
3248
  }
3075
3249
  ],
3076
- "name": "getTeeOffersRange",
3077
- "outputs": [
3250
+ "name": "setTeeOfferTlb",
3251
+ "outputs": [],
3252
+ "stateMutability": "nonpayable",
3253
+ "type": "function"
3254
+ },
3255
+ {
3256
+ "inputs": [
3257
+ {
3258
+ "internalType": "uint256",
3259
+ "name": "offerId",
3260
+ "type": "uint256"
3261
+ },
3262
+ {
3263
+ "components": [
3264
+ {
3265
+ "internalType": "string",
3266
+ "name": "name",
3267
+ "type": "string"
3268
+ },
3269
+ {
3270
+ "internalType": "enum OfferGroup",
3271
+ "name": "group",
3272
+ "type": "uint8"
3273
+ },
3274
+ {
3275
+ "internalType": "enum OfferType",
3276
+ "name": "offerType",
3277
+ "type": "uint8"
3278
+ },
3279
+ {
3280
+ "internalType": "bool",
3281
+ "name": "cancelable",
3282
+ "type": "bool"
3283
+ },
3284
+ {
3285
+ "internalType": "string",
3286
+ "name": "description",
3287
+ "type": "string"
3288
+ },
3289
+ {
3290
+ "internalType": "uint256",
3291
+ "name": "holdSum",
3292
+ "type": "uint256"
3293
+ },
3294
+ {
3295
+ "components": [
3296
+ {
3297
+ "internalType": "uint256[]",
3298
+ "name": "offers",
3299
+ "type": "uint256[]"
3300
+ },
3301
+ {
3302
+ "internalType": "enum OfferType[]",
3303
+ "name": "types",
3304
+ "type": "uint8[]"
3305
+ }
3306
+ ],
3307
+ "internalType": "struct OfferRestrictions",
3308
+ "name": "restrictions",
3309
+ "type": "tuple"
3310
+ },
3311
+ {
3312
+ "internalType": "string",
3313
+ "name": "properties",
3314
+ "type": "string"
3315
+ },
3316
+ {
3317
+ "internalType": "uint256",
3318
+ "name": "maxDurationTimeMinutes",
3319
+ "type": "uint256"
3320
+ },
3321
+ {
3322
+ "internalType": "string",
3323
+ "name": "input",
3324
+ "type": "string"
3325
+ },
3326
+ {
3327
+ "internalType": "string",
3328
+ "name": "output",
3329
+ "type": "string"
3330
+ },
3331
+ {
3332
+ "internalType": "string",
3333
+ "name": "allowedArgs",
3334
+ "type": "string"
3335
+ },
3336
+ {
3337
+ "internalType": "address[]",
3338
+ "name": "allowedAccounts",
3339
+ "type": "address[]"
3340
+ },
3341
+ {
3342
+ "internalType": "string",
3343
+ "name": "argsPublicKey",
3344
+ "type": "string"
3345
+ },
3346
+ {
3347
+ "internalType": "string",
3348
+ "name": "resultResource",
3349
+ "type": "string"
3350
+ },
3351
+ {
3352
+ "internalType": "string",
3353
+ "name": "linkage",
3354
+ "type": "string"
3355
+ },
3356
+ {
3357
+ "internalType": "string",
3358
+ "name": "hash",
3359
+ "type": "string"
3360
+ }
3361
+ ],
3362
+ "internalType": "struct ValueOfferInfo",
3363
+ "name": "newInfo",
3364
+ "type": "tuple"
3365
+ }
3366
+ ],
3367
+ "name": "setValueOfferInfo",
3368
+ "outputs": [],
3369
+ "stateMutability": "nonpayable",
3370
+ "type": "function"
3371
+ },
3372
+ {
3373
+ "inputs": [
3374
+ {
3375
+ "internalType": "uint256",
3376
+ "name": "offerId",
3377
+ "type": "uint256"
3378
+ }
3379
+ ],
3380
+ "name": "suspendOffer",
3381
+ "outputs": [],
3382
+ "stateMutability": "nonpayable",
3383
+ "type": "function"
3384
+ },
3385
+ {
3386
+ "inputs": [
3387
+ {
3388
+ "internalType": "uint256",
3389
+ "name": "begin",
3390
+ "type": "uint256"
3391
+ },
3392
+ {
3393
+ "internalType": "uint256",
3394
+ "name": "end",
3395
+ "type": "uint256"
3396
+ }
3397
+ ],
3398
+ "name": "getTeeOffersRange",
3399
+ "outputs": [
3078
3400
  {
3079
3401
  "components": [
3080
3402
  {
@@ -5188,21 +5510,377 @@
5188
5510
  "components": [
5189
5511
  {
5190
5512
  "internalType": "uint256",
5191
- "name": "teeEnabled",
5513
+ "name": "teeEnabled",
5514
+ "type": "uint256"
5515
+ },
5516
+ {
5517
+ "internalType": "uint256",
5518
+ "name": "valueEnabled",
5519
+ "type": "uint256"
5520
+ },
5521
+ {
5522
+ "internalType": "uint256",
5523
+ "name": "lastDisabledAfter",
5524
+ "type": "uint256"
5525
+ }
5526
+ ],
5527
+ "internalType": "struct ProviderOffersState",
5528
+ "name": "",
5529
+ "type": "tuple"
5530
+ }
5531
+ ],
5532
+ "stateMutability": "view",
5533
+ "type": "function"
5534
+ },
5535
+ {
5536
+ "inputs": [
5537
+ {
5538
+ "internalType": "address",
5539
+ "name": "providerAuth",
5540
+ "type": "address"
5541
+ }
5542
+ ],
5543
+ "name": "getProviderRecentlyEnabledTeeOffersCount",
5544
+ "outputs": [
5545
+ {
5546
+ "internalType": "uint256",
5547
+ "name": "",
5548
+ "type": "uint256"
5549
+ }
5550
+ ],
5551
+ "stateMutability": "view",
5552
+ "type": "function"
5553
+ },
5554
+ {
5555
+ "inputs": [
5556
+ {
5557
+ "internalType": "address",
5558
+ "name": "providerAuth",
5559
+ "type": "address"
5560
+ }
5561
+ ],
5562
+ "name": "getProviderRecentlyEnabledValueOffersCount",
5563
+ "outputs": [
5564
+ {
5565
+ "internalType": "uint256",
5566
+ "name": "",
5567
+ "type": "uint256"
5568
+ }
5569
+ ],
5570
+ "stateMutability": "view",
5571
+ "type": "function"
5572
+ },
5573
+ {
5574
+ "inputs": [
5575
+ {
5576
+ "internalType": "address",
5577
+ "name": "providerAuth",
5578
+ "type": "address"
5579
+ },
5580
+ {
5581
+ "internalType": "uint256",
5582
+ "name": "additional",
5583
+ "type": "uint256"
5584
+ }
5585
+ ],
5586
+ "name": "getProviderRequiredSecDepo",
5587
+ "outputs": [
5588
+ {
5589
+ "internalType": "uint256",
5590
+ "name": "",
5591
+ "type": "uint256"
5592
+ }
5593
+ ],
5594
+ "stateMutability": "view",
5595
+ "type": "function"
5596
+ },
5597
+ {
5598
+ "inputs": [
5599
+ {
5600
+ "internalType": "address",
5601
+ "name": "providerAuth",
5602
+ "type": "address"
5603
+ }
5604
+ ],
5605
+ "name": "getProviderTeeOffers",
5606
+ "outputs": [
5607
+ {
5608
+ "internalType": "uint256[]",
5609
+ "name": "",
5610
+ "type": "uint256[]"
5611
+ }
5612
+ ],
5613
+ "stateMutability": "view",
5614
+ "type": "function"
5615
+ },
5616
+ {
5617
+ "inputs": [
5618
+ {
5619
+ "internalType": "address",
5620
+ "name": "providerAuth",
5621
+ "type": "address"
5622
+ }
5623
+ ],
5624
+ "name": "getProviderValueOffers",
5625
+ "outputs": [
5626
+ {
5627
+ "internalType": "uint256[]",
5628
+ "name": "",
5629
+ "type": "uint256[]"
5630
+ }
5631
+ ],
5632
+ "stateMutability": "view",
5633
+ "type": "function"
5634
+ },
5635
+ {
5636
+ "inputs": [
5637
+ {
5638
+ "internalType": "address",
5639
+ "name": "providerAuth",
5640
+ "type": "address"
5641
+ }
5642
+ ],
5643
+ "name": "isProviderHasEnabledOffers",
5644
+ "outputs": [
5645
+ {
5646
+ "internalType": "bool",
5647
+ "name": "",
5648
+ "type": "bool"
5649
+ }
5650
+ ],
5651
+ "stateMutability": "view",
5652
+ "type": "function"
5653
+ },
5654
+ {
5655
+ "inputs": [
5656
+ {
5657
+ "internalType": "address",
5658
+ "name": "providerAuth",
5659
+ "type": "address"
5660
+ }
5661
+ ],
5662
+ "name": "isProviderHasEnoughSecurityDeposit",
5663
+ "outputs": [
5664
+ {
5665
+ "internalType": "bool",
5666
+ "name": "",
5667
+ "type": "bool"
5668
+ }
5669
+ ],
5670
+ "stateMutability": "view",
5671
+ "type": "function"
5672
+ },
5673
+ {
5674
+ "inputs": [
5675
+ {
5676
+ "internalType": "address",
5677
+ "name": "providerAuth",
5678
+ "type": "address"
5679
+ },
5680
+ {
5681
+ "internalType": "uint256",
5682
+ "name": "offerId",
5683
+ "type": "uint256"
5684
+ },
5685
+ {
5686
+ "internalType": "enum OfferType",
5687
+ "name": "offerType",
5688
+ "type": "uint8"
5689
+ },
5690
+ {
5691
+ "internalType": "bool",
5692
+ "name": "enabled",
5693
+ "type": "bool"
5694
+ },
5695
+ {
5696
+ "internalType": "uint256",
5697
+ "name": "disabledAfter",
5698
+ "type": "uint256"
5699
+ }
5700
+ ],
5701
+ "name": "setProviderOfferState",
5702
+ "outputs": [],
5703
+ "stateMutability": "nonpayable",
5704
+ "type": "function"
5705
+ },
5706
+ {
5707
+ "anonymous": false,
5708
+ "inputs": [
5709
+ {
5710
+ "indexed": true,
5711
+ "internalType": "address",
5712
+ "name": "creator",
5713
+ "type": "address"
5714
+ },
5715
+ {
5716
+ "indexed": true,
5717
+ "internalType": "uint256",
5718
+ "name": "slotId",
5719
+ "type": "uint256"
5720
+ }
5721
+ ],
5722
+ "name": "SlotCreated",
5723
+ "type": "event"
5724
+ },
5725
+ {
5726
+ "anonymous": false,
5727
+ "inputs": [
5728
+ {
5729
+ "indexed": true,
5730
+ "internalType": "uint256",
5731
+ "name": "slotId",
5732
+ "type": "uint256"
5733
+ }
5734
+ ],
5735
+ "name": "SlotRemoved",
5736
+ "type": "event"
5737
+ },
5738
+ {
5739
+ "anonymous": false,
5740
+ "inputs": [
5741
+ {
5742
+ "indexed": true,
5743
+ "internalType": "uint256",
5744
+ "name": "slotId",
5745
+ "type": "uint256"
5746
+ }
5747
+ ],
5748
+ "name": "SlotUpdated",
5749
+ "type": "event"
5750
+ },
5751
+ {
5752
+ "inputs": [
5753
+ {
5754
+ "components": [
5755
+ {
5756
+ "internalType": "string",
5757
+ "name": "name",
5758
+ "type": "string"
5759
+ },
5760
+ {
5761
+ "internalType": "string",
5762
+ "name": "description",
5763
+ "type": "string"
5764
+ },
5765
+ {
5766
+ "internalType": "uint256",
5767
+ "name": "cpu",
5768
+ "type": "uint256"
5769
+ },
5770
+ {
5771
+ "internalType": "uint256",
5772
+ "name": "ram",
5773
+ "type": "uint256"
5774
+ },
5775
+ {
5776
+ "internalType": "uint256",
5777
+ "name": "ssd",
5778
+ "type": "uint256"
5779
+ },
5780
+ {
5781
+ "internalType": "uint256",
5782
+ "name": "hdd",
5783
+ "type": "uint256"
5784
+ },
5785
+ {
5786
+ "internalType": "uint256",
5787
+ "name": "bandwidth",
5788
+ "type": "uint256"
5789
+ },
5790
+ {
5791
+ "internalType": "uint256",
5792
+ "name": "traffic",
5793
+ "type": "uint256"
5794
+ }
5795
+ ],
5796
+ "internalType": "struct SlotInfo",
5797
+ "name": "info",
5798
+ "type": "tuple"
5799
+ }
5800
+ ],
5801
+ "name": "createSlot",
5802
+ "outputs": [],
5803
+ "stateMutability": "nonpayable",
5804
+ "type": "function"
5805
+ },
5806
+ {
5807
+ "inputs": [
5808
+ {
5809
+ "internalType": "uint256",
5810
+ "name": "begin",
5811
+ "type": "uint256"
5812
+ },
5813
+ {
5814
+ "internalType": "uint256",
5815
+ "name": "end",
5816
+ "type": "uint256"
5817
+ }
5818
+ ],
5819
+ "name": "getRangeOfSlots",
5820
+ "outputs": [
5821
+ {
5822
+ "internalType": "uint256[]",
5823
+ "name": "",
5824
+ "type": "uint256[]"
5825
+ }
5826
+ ],
5827
+ "stateMutability": "view",
5828
+ "type": "function"
5829
+ },
5830
+ {
5831
+ "inputs": [
5832
+ {
5833
+ "internalType": "uint256",
5834
+ "name": "slotId",
5835
+ "type": "uint256"
5836
+ }
5837
+ ],
5838
+ "name": "getSlotInfo",
5839
+ "outputs": [
5840
+ {
5841
+ "components": [
5842
+ {
5843
+ "internalType": "string",
5844
+ "name": "name",
5845
+ "type": "string"
5846
+ },
5847
+ {
5848
+ "internalType": "string",
5849
+ "name": "description",
5850
+ "type": "string"
5851
+ },
5852
+ {
5853
+ "internalType": "uint256",
5854
+ "name": "cpu",
5855
+ "type": "uint256"
5856
+ },
5857
+ {
5858
+ "internalType": "uint256",
5859
+ "name": "ram",
5860
+ "type": "uint256"
5861
+ },
5862
+ {
5863
+ "internalType": "uint256",
5864
+ "name": "ssd",
5192
5865
  "type": "uint256"
5193
5866
  },
5194
5867
  {
5195
5868
  "internalType": "uint256",
5196
- "name": "valueEnabled",
5869
+ "name": "hdd",
5197
5870
  "type": "uint256"
5198
5871
  },
5199
5872
  {
5200
5873
  "internalType": "uint256",
5201
- "name": "lastDisabledAfter",
5874
+ "name": "bandwidth",
5875
+ "type": "uint256"
5876
+ },
5877
+ {
5878
+ "internalType": "uint256",
5879
+ "name": "traffic",
5202
5880
  "type": "uint256"
5203
5881
  }
5204
5882
  ],
5205
- "internalType": "struct ProviderOffersState",
5883
+ "internalType": "struct SlotInfo",
5206
5884
  "name": "",
5207
5885
  "type": "tuple"
5208
5886
  }
@@ -5211,14 +5889,8 @@
5211
5889
  "type": "function"
5212
5890
  },
5213
5891
  {
5214
- "inputs": [
5215
- {
5216
- "internalType": "address",
5217
- "name": "providerAuth",
5218
- "type": "address"
5219
- }
5220
- ],
5221
- "name": "getProviderRecentlyEnabledTeeOffersCount",
5892
+ "inputs": [],
5893
+ "name": "getSlotsCount",
5222
5894
  "outputs": [
5223
5895
  {
5224
5896
  "internalType": "uint256",
@@ -5232,17 +5904,17 @@
5232
5904
  {
5233
5905
  "inputs": [
5234
5906
  {
5235
- "internalType": "address",
5236
- "name": "providerAuth",
5237
- "type": "address"
5907
+ "internalType": "uint256",
5908
+ "name": "slotId",
5909
+ "type": "uint256"
5238
5910
  }
5239
5911
  ],
5240
- "name": "getProviderRecentlyEnabledValueOffersCount",
5912
+ "name": "isSlotValid",
5241
5913
  "outputs": [
5242
5914
  {
5243
- "internalType": "uint256",
5915
+ "internalType": "bool",
5244
5916
  "name": "",
5245
- "type": "uint256"
5917
+ "type": "bool"
5246
5918
  }
5247
5919
  ],
5248
5920
  "stateMutability": "view",
@@ -5250,56 +5922,80 @@
5250
5922
  },
5251
5923
  {
5252
5924
  "inputs": [
5253
- {
5254
- "internalType": "address",
5255
- "name": "providerAuth",
5256
- "type": "address"
5257
- },
5258
5925
  {
5259
5926
  "internalType": "uint256",
5260
- "name": "additional",
5927
+ "name": "slotId",
5261
5928
  "type": "uint256"
5262
- }
5263
- ],
5264
- "name": "getProviderRequiredSecDepo",
5265
- "outputs": [
5929
+ },
5266
5930
  {
5267
- "internalType": "uint256",
5268
- "name": "",
5269
- "type": "uint256"
5931
+ "components": [
5932
+ {
5933
+ "internalType": "string",
5934
+ "name": "name",
5935
+ "type": "string"
5936
+ },
5937
+ {
5938
+ "internalType": "string",
5939
+ "name": "description",
5940
+ "type": "string"
5941
+ },
5942
+ {
5943
+ "internalType": "uint256",
5944
+ "name": "cpu",
5945
+ "type": "uint256"
5946
+ },
5947
+ {
5948
+ "internalType": "uint256",
5949
+ "name": "ram",
5950
+ "type": "uint256"
5951
+ },
5952
+ {
5953
+ "internalType": "uint256",
5954
+ "name": "ssd",
5955
+ "type": "uint256"
5956
+ },
5957
+ {
5958
+ "internalType": "uint256",
5959
+ "name": "hdd",
5960
+ "type": "uint256"
5961
+ },
5962
+ {
5963
+ "internalType": "uint256",
5964
+ "name": "bandwidth",
5965
+ "type": "uint256"
5966
+ },
5967
+ {
5968
+ "internalType": "uint256",
5969
+ "name": "traffic",
5970
+ "type": "uint256"
5971
+ }
5972
+ ],
5973
+ "internalType": "struct SlotInfo",
5974
+ "name": "info",
5975
+ "type": "tuple"
5270
5976
  }
5271
5977
  ],
5272
- "stateMutability": "view",
5978
+ "name": "modifySlot",
5979
+ "outputs": [],
5980
+ "stateMutability": "nonpayable",
5273
5981
  "type": "function"
5274
5982
  },
5275
5983
  {
5276
5984
  "inputs": [
5277
5985
  {
5278
- "internalType": "address",
5279
- "name": "providerAuth",
5280
- "type": "address"
5281
- }
5282
- ],
5283
- "name": "getProviderTeeOffers",
5284
- "outputs": [
5285
- {
5286
- "internalType": "uint256[]",
5287
- "name": "",
5288
- "type": "uint256[]"
5986
+ "internalType": "uint256",
5987
+ "name": "slotId",
5988
+ "type": "uint256"
5289
5989
  }
5290
5990
  ],
5291
- "stateMutability": "view",
5991
+ "name": "removeSlot",
5992
+ "outputs": [],
5993
+ "stateMutability": "nonpayable",
5292
5994
  "type": "function"
5293
5995
  },
5294
5996
  {
5295
- "inputs": [
5296
- {
5297
- "internalType": "address",
5298
- "name": "providerAuth",
5299
- "type": "address"
5300
- }
5301
- ],
5302
- "name": "getProviderValueOffers",
5997
+ "inputs": [],
5998
+ "name": "getSlotManagers",
5303
5999
  "outputs": [
5304
6000
  {
5305
6001
  "internalType": "uint256[]",
@@ -5314,30 +6010,24 @@
5314
6010
  "inputs": [
5315
6011
  {
5316
6012
  "internalType": "address",
5317
- "name": "providerAuth",
6013
+ "name": "user",
5318
6014
  "type": "address"
5319
6015
  }
5320
6016
  ],
5321
- "name": "isProviderHasEnabledOffers",
5322
- "outputs": [
5323
- {
5324
- "internalType": "bool",
5325
- "name": "",
5326
- "type": "bool"
5327
- }
5328
- ],
5329
- "stateMutability": "view",
6017
+ "name": "grantAccessToSlots",
6018
+ "outputs": [],
6019
+ "stateMutability": "nonpayable",
5330
6020
  "type": "function"
5331
6021
  },
5332
6022
  {
5333
6023
  "inputs": [
5334
6024
  {
5335
6025
  "internalType": "address",
5336
- "name": "providerAuth",
6026
+ "name": "user",
5337
6027
  "type": "address"
5338
6028
  }
5339
6029
  ],
5340
- "name": "isProviderHasEnoughSecurityDeposit",
6030
+ "name": "hasSlotsAccess",
5341
6031
  "outputs": [
5342
6032
  {
5343
6033
  "internalType": "bool",
@@ -5352,31 +6042,11 @@
5352
6042
  "inputs": [
5353
6043
  {
5354
6044
  "internalType": "address",
5355
- "name": "providerAuth",
6045
+ "name": "user",
5356
6046
  "type": "address"
5357
- },
5358
- {
5359
- "internalType": "uint256",
5360
- "name": "offerId",
5361
- "type": "uint256"
5362
- },
5363
- {
5364
- "internalType": "enum OfferType",
5365
- "name": "offerType",
5366
- "type": "uint8"
5367
- },
5368
- {
5369
- "internalType": "bool",
5370
- "name": "enabled",
5371
- "type": "bool"
5372
- },
5373
- {
5374
- "internalType": "uint256",
5375
- "name": "disabledAfter",
5376
- "type": "uint256"
5377
6047
  }
5378
6048
  ],
5379
- "name": "setProviderOfferState",
6049
+ "name": "revokeAccessToSlots",
5380
6050
  "outputs": [],
5381
6051
  "stateMutability": "nonpayable",
5382
6052
  "type": "function"
@@ -6924,6 +7594,35 @@
6924
7594
  "stateMutability": "view",
6925
7595
  "type": "function"
6926
7596
  },
7597
+ {
7598
+ "inputs": [
7599
+ {
7600
+ "internalType": "uint256",
7601
+ "name": "tcbInitiedTime",
7602
+ "type": "uint256"
7603
+ }
7604
+ ],
7605
+ "name": "getEpochTime",
7606
+ "outputs": [
7607
+ {
7608
+ "internalType": "uint256",
7609
+ "name": "",
7610
+ "type": "uint256"
7611
+ },
7612
+ {
7613
+ "internalType": "uint256",
7614
+ "name": "",
7615
+ "type": "uint256"
7616
+ },
7617
+ {
7618
+ "internalType": "uint256",
7619
+ "name": "",
7620
+ "type": "uint256"
7621
+ }
7622
+ ],
7623
+ "stateMutability": "view",
7624
+ "type": "function"
7625
+ },
6927
7626
  {
6928
7627
  "inputs": [
6929
7628
  {
@@ -7000,21 +7699,6 @@
7000
7699
  "name": "suspiciousBlocksTakenAmount",
7001
7700
  "type": "uint256"
7002
7701
  },
7003
- {
7004
- "internalType": "bool",
7005
- "name": "lastBlocksTaken",
7006
- "type": "bool"
7007
- },
7008
- {
7009
- "internalType": "bool",
7010
- "name": "suspiciousBlocksTaken",
7011
- "type": "bool"
7012
- },
7013
- {
7014
- "internalType": "bool",
7015
- "name": "rewardClaimed",
7016
- "type": "bool"
7017
- },
7018
7702
  {
7019
7703
  "internalType": "uint16",
7020
7704
  "name": "negative",
@@ -7030,10 +7714,30 @@
7030
7714
  "name": "previousTcb",
7031
7715
  "type": "uint256"
7032
7716
  },
7717
+ {
7718
+ "internalType": "bool",
7719
+ "name": "lastBlocksTaken",
7720
+ "type": "bool"
7721
+ },
7722
+ {
7723
+ "internalType": "bool",
7724
+ "name": "suspiciousBlocksTaken",
7725
+ "type": "bool"
7726
+ },
7727
+ {
7728
+ "internalType": "bool",
7729
+ "name": "assignedToEpoch",
7730
+ "type": "bool"
7731
+ },
7033
7732
  {
7034
7733
  "internalType": "bool",
7035
7734
  "name": "checked",
7036
7735
  "type": "bool"
7736
+ },
7737
+ {
7738
+ "internalType": "bool",
7739
+ "name": "rewardClaimed",
7740
+ "type": "bool"
7037
7741
  }
7038
7742
  ],
7039
7743
  "internalType": "struct TcbUtilityData",
@@ -7044,23 +7748,6 @@
7044
7748
  "internalType": "enum TcbStatus",
7045
7749
  "name": "status",
7046
7750
  "type": "uint8"
7047
- },
7048
- {
7049
- "components": [
7050
- {
7051
- "internalType": "uint256",
7052
- "name": "index",
7053
- "type": "uint256"
7054
- },
7055
- {
7056
- "internalType": "bool",
7057
- "name": "valid",
7058
- "type": "bool"
7059
- }
7060
- ],
7061
- "internalType": "struct TcbEpochInfo",
7062
- "name": "epoch",
7063
- "type": "tuple"
7064
7751
  }
7065
7752
  ],
7066
7753
  "internalType": "struct Tcb",
@@ -7784,6 +8471,25 @@
7784
8471
  "stateMutability": "view",
7785
8472
  "type": "function"
7786
8473
  },
8474
+ {
8475
+ "inputs": [
8476
+ {
8477
+ "internalType": "uint256",
8478
+ "name": "offerId",
8479
+ "type": "uint256"
8480
+ }
8481
+ ],
8482
+ "name": "isTeeOfferBanned",
8483
+ "outputs": [
8484
+ {
8485
+ "internalType": "bool",
8486
+ "name": "",
8487
+ "type": "bool"
8488
+ }
8489
+ ],
8490
+ "stateMutability": "view",
8491
+ "type": "function"
8492
+ },
7787
8493
  {
7788
8494
  "inputs": [
7789
8495
  {
@@ -8695,6 +9401,25 @@
8695
9401
  "stateMutability": "view",
8696
9402
  "type": "function"
8697
9403
  },
9404
+ {
9405
+ "inputs": [
9406
+ {
9407
+ "internalType": "address",
9408
+ "name": "user",
9409
+ "type": "address"
9410
+ }
9411
+ ],
9412
+ "name": "hasSlotsAccess",
9413
+ "outputs": [
9414
+ {
9415
+ "internalType": "bool",
9416
+ "name": "",
9417
+ "type": "bool"
9418
+ }
9419
+ ],
9420
+ "stateMutability": "view",
9421
+ "type": "function"
9422
+ },
8698
9423
  {
8699
9424
  "inputs": [
8700
9425
  {
@@ -9175,9 +9900,9 @@
9175
9900
  "name": "getTeeOfferViolationRate",
9176
9901
  "outputs": [
9177
9902
  {
9178
- "internalType": "uint8",
9903
+ "internalType": "uint256",
9179
9904
  "name": "",
9180
- "type": "uint8"
9905
+ "type": "uint256"
9181
9906
  }
9182
9907
  ],
9183
9908
  "stateMutability": "view",