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

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,49 @@
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": "uint8",
1462
+ "name": "",
1463
+ "type": "uint8"
1464
+ },
1465
+ {
1466
+ "internalType": "uint32",
1467
+ "name": "",
1468
+ "type": "uint32"
1469
+ }
1470
+ ],
1471
+ "stateMutability": "pure",
1472
+ "type": "function"
1473
+ },
1431
1474
  {
1432
1475
  "inputs": [
1433
1476
  {
@@ -1440,16 +1483,6 @@
1440
1483
  "outputs": [
1441
1484
  {
1442
1485
  "components": [
1443
- {
1444
- "internalType": "uint256",
1445
- "name": "startDate",
1446
- "type": "uint256"
1447
- },
1448
- {
1449
- "internalType": "uint256",
1450
- "name": "endDate",
1451
- "type": "uint256"
1452
- },
1453
1486
  {
1454
1487
  "internalType": "uint256",
1455
1488
  "name": "reward",
@@ -1475,12 +1508,28 @@
1475
1508
  "type": "function"
1476
1509
  },
1477
1510
  {
1478
- "inputs": [],
1479
- "name": "getEpochIndex",
1511
+ "inputs": [
1512
+ {
1513
+ "internalType": "uint256",
1514
+ "name": "tcbTime",
1515
+ "type": "uint256"
1516
+ }
1517
+ ],
1518
+ "name": "getEpochTime",
1480
1519
  "outputs": [
1481
1520
  {
1482
1521
  "internalType": "uint256",
1483
- "name": "",
1522
+ "name": "epochStart",
1523
+ "type": "uint256"
1524
+ },
1525
+ {
1526
+ "internalType": "uint256",
1527
+ "name": "epochEnd",
1528
+ "type": "uint256"
1529
+ },
1530
+ {
1531
+ "internalType": "uint256",
1532
+ "name": "epochIndex",
1484
1533
  "type": "uint256"
1485
1534
  }
1486
1535
  ],
@@ -1634,21 +1683,6 @@
1634
1683
  "name": "suspiciousBlocksTakenAmount",
1635
1684
  "type": "uint256"
1636
1685
  },
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
1686
  {
1653
1687
  "internalType": "uint16",
1654
1688
  "name": "negative",
@@ -1664,10 +1698,30 @@
1664
1698
  "name": "previousTcb",
1665
1699
  "type": "uint256"
1666
1700
  },
1701
+ {
1702
+ "internalType": "bool",
1703
+ "name": "lastBlocksTaken",
1704
+ "type": "bool"
1705
+ },
1706
+ {
1707
+ "internalType": "bool",
1708
+ "name": "suspiciousBlocksTaken",
1709
+ "type": "bool"
1710
+ },
1711
+ {
1712
+ "internalType": "bool",
1713
+ "name": "assignedToEpoch",
1714
+ "type": "bool"
1715
+ },
1667
1716
  {
1668
1717
  "internalType": "bool",
1669
1718
  "name": "checked",
1670
1719
  "type": "bool"
1720
+ },
1721
+ {
1722
+ "internalType": "bool",
1723
+ "name": "rewardClaimed",
1724
+ "type": "bool"
1671
1725
  }
1672
1726
  ],
1673
1727
  "internalType": "struct TcbUtilityData",
@@ -1678,23 +1732,6 @@
1678
1732
  "internalType": "enum TcbStatus",
1679
1733
  "name": "status",
1680
1734
  "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
1735
  }
1699
1736
  ],
1700
1737
  "internalType": "struct Tcb",
@@ -2358,6 +2395,11 @@
2358
2395
  "internalType": "bytes32",
2359
2396
  "name": "externalId",
2360
2397
  "type": "bytes32"
2398
+ },
2399
+ {
2400
+ "internalType": "bool",
2401
+ "name": "suspended",
2402
+ "type": "bool"
2361
2403
  }
2362
2404
  ],
2363
2405
  "name": "createValueOffer",
@@ -2988,6 +3030,57 @@
2988
3030
  "stateMutability": "view",
2989
3031
  "type": "function"
2990
3032
  },
3033
+ {
3034
+ "inputs": [
3035
+ {
3036
+ "internalType": "uint256",
3037
+ "name": "offerId",
3038
+ "type": "uint256"
3039
+ }
3040
+ ],
3041
+ "name": "isOfferSuspended",
3042
+ "outputs": [
3043
+ {
3044
+ "internalType": "bool",
3045
+ "name": "",
3046
+ "type": "bool"
3047
+ }
3048
+ ],
3049
+ "stateMutability": "view",
3050
+ "type": "function"
3051
+ },
3052
+ {
3053
+ "inputs": [
3054
+ {
3055
+ "internalType": "uint256",
3056
+ "name": "offerId",
3057
+ "type": "uint256"
3058
+ }
3059
+ ],
3060
+ "name": "isTeeOfferBanned",
3061
+ "outputs": [
3062
+ {
3063
+ "internalType": "bool",
3064
+ "name": "",
3065
+ "type": "bool"
3066
+ }
3067
+ ],
3068
+ "stateMutability": "view",
3069
+ "type": "function"
3070
+ },
3071
+ {
3072
+ "inputs": [
3073
+ {
3074
+ "internalType": "uint256",
3075
+ "name": "offerId",
3076
+ "type": "uint256"
3077
+ }
3078
+ ],
3079
+ "name": "resumeOffer",
3080
+ "outputs": [],
3081
+ "stateMutability": "nonpayable",
3082
+ "type": "function"
3083
+ },
2991
3084
  {
2992
3085
  "inputs": [
2993
3086
  {
@@ -3042,6 +3135,76 @@
3042
3135
  "stateMutability": "nonpayable",
3043
3136
  "type": "function"
3044
3137
  },
3138
+ {
3139
+ "inputs": [
3140
+ {
3141
+ "internalType": "uint256",
3142
+ "name": "offerId",
3143
+ "type": "uint256"
3144
+ },
3145
+ {
3146
+ "components": [
3147
+ {
3148
+ "internalType": "string",
3149
+ "name": "name",
3150
+ "type": "string"
3151
+ },
3152
+ {
3153
+ "internalType": "string",
3154
+ "name": "description",
3155
+ "type": "string"
3156
+ },
3157
+ {
3158
+ "internalType": "string",
3159
+ "name": "teeType",
3160
+ "type": "string"
3161
+ },
3162
+ {
3163
+ "internalType": "uint32",
3164
+ "name": "slots",
3165
+ "type": "uint32"
3166
+ },
3167
+ {
3168
+ "internalType": "uint64",
3169
+ "name": "minTimeMinutes",
3170
+ "type": "uint64"
3171
+ },
3172
+ {
3173
+ "internalType": "string",
3174
+ "name": "properties",
3175
+ "type": "string"
3176
+ },
3177
+ {
3178
+ "internalType": "address",
3179
+ "name": "tcb",
3180
+ "type": "address"
3181
+ },
3182
+ {
3183
+ "internalType": "string",
3184
+ "name": "tlb",
3185
+ "type": "string"
3186
+ },
3187
+ {
3188
+ "internalType": "string",
3189
+ "name": "argsPublicKey",
3190
+ "type": "string"
3191
+ },
3192
+ {
3193
+ "internalType": "uint256",
3194
+ "name": "maxDurationTimeMinutes",
3195
+ "type": "uint256"
3196
+ }
3197
+ ],
3198
+ "internalType": "struct TeeOfferInfo",
3199
+ "name": "newInfo",
3200
+ "type": "tuple"
3201
+ }
3202
+ ],
3203
+ "name": "setTeeOfferInfo",
3204
+ "outputs": [],
3205
+ "stateMutability": "nonpayable",
3206
+ "type": "function"
3207
+ },
3045
3208
  {
3046
3209
  "inputs": [
3047
3210
  {
@@ -3064,32 +3227,162 @@
3064
3227
  "inputs": [
3065
3228
  {
3066
3229
  "internalType": "uint256",
3067
- "name": "begin",
3230
+ "name": "offerId",
3068
3231
  "type": "uint256"
3069
3232
  },
3070
- {
3071
- "internalType": "uint256",
3072
- "name": "end",
3073
- "type": "uint256"
3074
- }
3075
- ],
3076
- "name": "getTeeOffersRange",
3077
- "outputs": [
3078
3233
  {
3079
3234
  "components": [
3080
3235
  {
3081
- "internalType": "uint256",
3082
- "name": "id",
3083
- "type": "uint256"
3236
+ "internalType": "string",
3237
+ "name": "name",
3238
+ "type": "string"
3084
3239
  },
3085
3240
  {
3086
- "internalType": "address",
3087
- "name": "providerAuth",
3088
- "type": "address"
3241
+ "internalType": "enum OfferGroup",
3242
+ "name": "group",
3243
+ "type": "uint8"
3089
3244
  },
3090
3245
  {
3091
- "components": [
3092
- {
3246
+ "internalType": "enum OfferType",
3247
+ "name": "offerType",
3248
+ "type": "uint8"
3249
+ },
3250
+ {
3251
+ "internalType": "bool",
3252
+ "name": "cancelable",
3253
+ "type": "bool"
3254
+ },
3255
+ {
3256
+ "internalType": "string",
3257
+ "name": "description",
3258
+ "type": "string"
3259
+ },
3260
+ {
3261
+ "internalType": "uint256",
3262
+ "name": "holdSum",
3263
+ "type": "uint256"
3264
+ },
3265
+ {
3266
+ "components": [
3267
+ {
3268
+ "internalType": "uint256[]",
3269
+ "name": "offers",
3270
+ "type": "uint256[]"
3271
+ },
3272
+ {
3273
+ "internalType": "enum OfferType[]",
3274
+ "name": "types",
3275
+ "type": "uint8[]"
3276
+ }
3277
+ ],
3278
+ "internalType": "struct OfferRestrictions",
3279
+ "name": "restrictions",
3280
+ "type": "tuple"
3281
+ },
3282
+ {
3283
+ "internalType": "string",
3284
+ "name": "properties",
3285
+ "type": "string"
3286
+ },
3287
+ {
3288
+ "internalType": "uint256",
3289
+ "name": "maxDurationTimeMinutes",
3290
+ "type": "uint256"
3291
+ },
3292
+ {
3293
+ "internalType": "string",
3294
+ "name": "input",
3295
+ "type": "string"
3296
+ },
3297
+ {
3298
+ "internalType": "string",
3299
+ "name": "output",
3300
+ "type": "string"
3301
+ },
3302
+ {
3303
+ "internalType": "string",
3304
+ "name": "allowedArgs",
3305
+ "type": "string"
3306
+ },
3307
+ {
3308
+ "internalType": "address[]",
3309
+ "name": "allowedAccounts",
3310
+ "type": "address[]"
3311
+ },
3312
+ {
3313
+ "internalType": "string",
3314
+ "name": "argsPublicKey",
3315
+ "type": "string"
3316
+ },
3317
+ {
3318
+ "internalType": "string",
3319
+ "name": "resultResource",
3320
+ "type": "string"
3321
+ },
3322
+ {
3323
+ "internalType": "string",
3324
+ "name": "linkage",
3325
+ "type": "string"
3326
+ },
3327
+ {
3328
+ "internalType": "string",
3329
+ "name": "hash",
3330
+ "type": "string"
3331
+ }
3332
+ ],
3333
+ "internalType": "struct ValueOfferInfo",
3334
+ "name": "newInfo",
3335
+ "type": "tuple"
3336
+ }
3337
+ ],
3338
+ "name": "setValueOfferInfo",
3339
+ "outputs": [],
3340
+ "stateMutability": "nonpayable",
3341
+ "type": "function"
3342
+ },
3343
+ {
3344
+ "inputs": [
3345
+ {
3346
+ "internalType": "uint256",
3347
+ "name": "offerId",
3348
+ "type": "uint256"
3349
+ }
3350
+ ],
3351
+ "name": "suspendOffer",
3352
+ "outputs": [],
3353
+ "stateMutability": "nonpayable",
3354
+ "type": "function"
3355
+ },
3356
+ {
3357
+ "inputs": [
3358
+ {
3359
+ "internalType": "uint256",
3360
+ "name": "begin",
3361
+ "type": "uint256"
3362
+ },
3363
+ {
3364
+ "internalType": "uint256",
3365
+ "name": "end",
3366
+ "type": "uint256"
3367
+ }
3368
+ ],
3369
+ "name": "getTeeOffersRange",
3370
+ "outputs": [
3371
+ {
3372
+ "components": [
3373
+ {
3374
+ "internalType": "uint256",
3375
+ "name": "id",
3376
+ "type": "uint256"
3377
+ },
3378
+ {
3379
+ "internalType": "address",
3380
+ "name": "providerAuth",
3381
+ "type": "address"
3382
+ },
3383
+ {
3384
+ "components": [
3385
+ {
3093
3386
  "internalType": "string",
3094
3387
  "name": "name",
3095
3388
  "type": "string"
@@ -5188,21 +5481,377 @@
5188
5481
  "components": [
5189
5482
  {
5190
5483
  "internalType": "uint256",
5191
- "name": "teeEnabled",
5484
+ "name": "teeEnabled",
5485
+ "type": "uint256"
5486
+ },
5487
+ {
5488
+ "internalType": "uint256",
5489
+ "name": "valueEnabled",
5490
+ "type": "uint256"
5491
+ },
5492
+ {
5493
+ "internalType": "uint256",
5494
+ "name": "lastDisabledAfter",
5495
+ "type": "uint256"
5496
+ }
5497
+ ],
5498
+ "internalType": "struct ProviderOffersState",
5499
+ "name": "",
5500
+ "type": "tuple"
5501
+ }
5502
+ ],
5503
+ "stateMutability": "view",
5504
+ "type": "function"
5505
+ },
5506
+ {
5507
+ "inputs": [
5508
+ {
5509
+ "internalType": "address",
5510
+ "name": "providerAuth",
5511
+ "type": "address"
5512
+ }
5513
+ ],
5514
+ "name": "getProviderRecentlyEnabledTeeOffersCount",
5515
+ "outputs": [
5516
+ {
5517
+ "internalType": "uint256",
5518
+ "name": "",
5519
+ "type": "uint256"
5520
+ }
5521
+ ],
5522
+ "stateMutability": "view",
5523
+ "type": "function"
5524
+ },
5525
+ {
5526
+ "inputs": [
5527
+ {
5528
+ "internalType": "address",
5529
+ "name": "providerAuth",
5530
+ "type": "address"
5531
+ }
5532
+ ],
5533
+ "name": "getProviderRecentlyEnabledValueOffersCount",
5534
+ "outputs": [
5535
+ {
5536
+ "internalType": "uint256",
5537
+ "name": "",
5538
+ "type": "uint256"
5539
+ }
5540
+ ],
5541
+ "stateMutability": "view",
5542
+ "type": "function"
5543
+ },
5544
+ {
5545
+ "inputs": [
5546
+ {
5547
+ "internalType": "address",
5548
+ "name": "providerAuth",
5549
+ "type": "address"
5550
+ },
5551
+ {
5552
+ "internalType": "uint256",
5553
+ "name": "additional",
5554
+ "type": "uint256"
5555
+ }
5556
+ ],
5557
+ "name": "getProviderRequiredSecDepo",
5558
+ "outputs": [
5559
+ {
5560
+ "internalType": "uint256",
5561
+ "name": "",
5562
+ "type": "uint256"
5563
+ }
5564
+ ],
5565
+ "stateMutability": "view",
5566
+ "type": "function"
5567
+ },
5568
+ {
5569
+ "inputs": [
5570
+ {
5571
+ "internalType": "address",
5572
+ "name": "providerAuth",
5573
+ "type": "address"
5574
+ }
5575
+ ],
5576
+ "name": "getProviderTeeOffers",
5577
+ "outputs": [
5578
+ {
5579
+ "internalType": "uint256[]",
5580
+ "name": "",
5581
+ "type": "uint256[]"
5582
+ }
5583
+ ],
5584
+ "stateMutability": "view",
5585
+ "type": "function"
5586
+ },
5587
+ {
5588
+ "inputs": [
5589
+ {
5590
+ "internalType": "address",
5591
+ "name": "providerAuth",
5592
+ "type": "address"
5593
+ }
5594
+ ],
5595
+ "name": "getProviderValueOffers",
5596
+ "outputs": [
5597
+ {
5598
+ "internalType": "uint256[]",
5599
+ "name": "",
5600
+ "type": "uint256[]"
5601
+ }
5602
+ ],
5603
+ "stateMutability": "view",
5604
+ "type": "function"
5605
+ },
5606
+ {
5607
+ "inputs": [
5608
+ {
5609
+ "internalType": "address",
5610
+ "name": "providerAuth",
5611
+ "type": "address"
5612
+ }
5613
+ ],
5614
+ "name": "isProviderHasEnabledOffers",
5615
+ "outputs": [
5616
+ {
5617
+ "internalType": "bool",
5618
+ "name": "",
5619
+ "type": "bool"
5620
+ }
5621
+ ],
5622
+ "stateMutability": "view",
5623
+ "type": "function"
5624
+ },
5625
+ {
5626
+ "inputs": [
5627
+ {
5628
+ "internalType": "address",
5629
+ "name": "providerAuth",
5630
+ "type": "address"
5631
+ }
5632
+ ],
5633
+ "name": "isProviderHasEnoughSecurityDeposit",
5634
+ "outputs": [
5635
+ {
5636
+ "internalType": "bool",
5637
+ "name": "",
5638
+ "type": "bool"
5639
+ }
5640
+ ],
5641
+ "stateMutability": "view",
5642
+ "type": "function"
5643
+ },
5644
+ {
5645
+ "inputs": [
5646
+ {
5647
+ "internalType": "address",
5648
+ "name": "providerAuth",
5649
+ "type": "address"
5650
+ },
5651
+ {
5652
+ "internalType": "uint256",
5653
+ "name": "offerId",
5654
+ "type": "uint256"
5655
+ },
5656
+ {
5657
+ "internalType": "enum OfferType",
5658
+ "name": "offerType",
5659
+ "type": "uint8"
5660
+ },
5661
+ {
5662
+ "internalType": "bool",
5663
+ "name": "enabled",
5664
+ "type": "bool"
5665
+ },
5666
+ {
5667
+ "internalType": "uint256",
5668
+ "name": "disabledAfter",
5669
+ "type": "uint256"
5670
+ }
5671
+ ],
5672
+ "name": "setProviderOfferState",
5673
+ "outputs": [],
5674
+ "stateMutability": "nonpayable",
5675
+ "type": "function"
5676
+ },
5677
+ {
5678
+ "anonymous": false,
5679
+ "inputs": [
5680
+ {
5681
+ "indexed": true,
5682
+ "internalType": "address",
5683
+ "name": "creator",
5684
+ "type": "address"
5685
+ },
5686
+ {
5687
+ "indexed": true,
5688
+ "internalType": "uint256",
5689
+ "name": "slotId",
5690
+ "type": "uint256"
5691
+ }
5692
+ ],
5693
+ "name": "SlotCreated",
5694
+ "type": "event"
5695
+ },
5696
+ {
5697
+ "anonymous": false,
5698
+ "inputs": [
5699
+ {
5700
+ "indexed": true,
5701
+ "internalType": "uint256",
5702
+ "name": "slotId",
5703
+ "type": "uint256"
5704
+ }
5705
+ ],
5706
+ "name": "SlotRemoved",
5707
+ "type": "event"
5708
+ },
5709
+ {
5710
+ "anonymous": false,
5711
+ "inputs": [
5712
+ {
5713
+ "indexed": true,
5714
+ "internalType": "uint256",
5715
+ "name": "slotId",
5716
+ "type": "uint256"
5717
+ }
5718
+ ],
5719
+ "name": "SlotUpdated",
5720
+ "type": "event"
5721
+ },
5722
+ {
5723
+ "inputs": [
5724
+ {
5725
+ "components": [
5726
+ {
5727
+ "internalType": "string",
5728
+ "name": "name",
5729
+ "type": "string"
5730
+ },
5731
+ {
5732
+ "internalType": "string",
5733
+ "name": "description",
5734
+ "type": "string"
5735
+ },
5736
+ {
5737
+ "internalType": "uint256",
5738
+ "name": "cpu",
5739
+ "type": "uint256"
5740
+ },
5741
+ {
5742
+ "internalType": "uint256",
5743
+ "name": "ram",
5744
+ "type": "uint256"
5745
+ },
5746
+ {
5747
+ "internalType": "uint256",
5748
+ "name": "ssd",
5749
+ "type": "uint256"
5750
+ },
5751
+ {
5752
+ "internalType": "uint256",
5753
+ "name": "hdd",
5754
+ "type": "uint256"
5755
+ },
5756
+ {
5757
+ "internalType": "uint256",
5758
+ "name": "bandwidth",
5759
+ "type": "uint256"
5760
+ },
5761
+ {
5762
+ "internalType": "uint256",
5763
+ "name": "traffic",
5764
+ "type": "uint256"
5765
+ }
5766
+ ],
5767
+ "internalType": "struct SlotInfo",
5768
+ "name": "info",
5769
+ "type": "tuple"
5770
+ }
5771
+ ],
5772
+ "name": "createSlot",
5773
+ "outputs": [],
5774
+ "stateMutability": "nonpayable",
5775
+ "type": "function"
5776
+ },
5777
+ {
5778
+ "inputs": [
5779
+ {
5780
+ "internalType": "uint256",
5781
+ "name": "begin",
5782
+ "type": "uint256"
5783
+ },
5784
+ {
5785
+ "internalType": "uint256",
5786
+ "name": "end",
5787
+ "type": "uint256"
5788
+ }
5789
+ ],
5790
+ "name": "getRangeOfSlots",
5791
+ "outputs": [
5792
+ {
5793
+ "internalType": "uint256[]",
5794
+ "name": "",
5795
+ "type": "uint256[]"
5796
+ }
5797
+ ],
5798
+ "stateMutability": "view",
5799
+ "type": "function"
5800
+ },
5801
+ {
5802
+ "inputs": [
5803
+ {
5804
+ "internalType": "uint256",
5805
+ "name": "slotId",
5806
+ "type": "uint256"
5807
+ }
5808
+ ],
5809
+ "name": "getSlotInfo",
5810
+ "outputs": [
5811
+ {
5812
+ "components": [
5813
+ {
5814
+ "internalType": "string",
5815
+ "name": "name",
5816
+ "type": "string"
5817
+ },
5818
+ {
5819
+ "internalType": "string",
5820
+ "name": "description",
5821
+ "type": "string"
5822
+ },
5823
+ {
5824
+ "internalType": "uint256",
5825
+ "name": "cpu",
5826
+ "type": "uint256"
5827
+ },
5828
+ {
5829
+ "internalType": "uint256",
5830
+ "name": "ram",
5831
+ "type": "uint256"
5832
+ },
5833
+ {
5834
+ "internalType": "uint256",
5835
+ "name": "ssd",
5192
5836
  "type": "uint256"
5193
5837
  },
5194
5838
  {
5195
5839
  "internalType": "uint256",
5196
- "name": "valueEnabled",
5840
+ "name": "hdd",
5197
5841
  "type": "uint256"
5198
5842
  },
5199
5843
  {
5200
5844
  "internalType": "uint256",
5201
- "name": "lastDisabledAfter",
5845
+ "name": "bandwidth",
5846
+ "type": "uint256"
5847
+ },
5848
+ {
5849
+ "internalType": "uint256",
5850
+ "name": "traffic",
5202
5851
  "type": "uint256"
5203
5852
  }
5204
5853
  ],
5205
- "internalType": "struct ProviderOffersState",
5854
+ "internalType": "struct SlotInfo",
5206
5855
  "name": "",
5207
5856
  "type": "tuple"
5208
5857
  }
@@ -5211,14 +5860,8 @@
5211
5860
  "type": "function"
5212
5861
  },
5213
5862
  {
5214
- "inputs": [
5215
- {
5216
- "internalType": "address",
5217
- "name": "providerAuth",
5218
- "type": "address"
5219
- }
5220
- ],
5221
- "name": "getProviderRecentlyEnabledTeeOffersCount",
5863
+ "inputs": [],
5864
+ "name": "getSlotsCount",
5222
5865
  "outputs": [
5223
5866
  {
5224
5867
  "internalType": "uint256",
@@ -5232,17 +5875,17 @@
5232
5875
  {
5233
5876
  "inputs": [
5234
5877
  {
5235
- "internalType": "address",
5236
- "name": "providerAuth",
5237
- "type": "address"
5878
+ "internalType": "uint256",
5879
+ "name": "slotId",
5880
+ "type": "uint256"
5238
5881
  }
5239
5882
  ],
5240
- "name": "getProviderRecentlyEnabledValueOffersCount",
5883
+ "name": "isSlotValid",
5241
5884
  "outputs": [
5242
5885
  {
5243
- "internalType": "uint256",
5886
+ "internalType": "bool",
5244
5887
  "name": "",
5245
- "type": "uint256"
5888
+ "type": "bool"
5246
5889
  }
5247
5890
  ],
5248
5891
  "stateMutability": "view",
@@ -5250,56 +5893,80 @@
5250
5893
  },
5251
5894
  {
5252
5895
  "inputs": [
5253
- {
5254
- "internalType": "address",
5255
- "name": "providerAuth",
5256
- "type": "address"
5257
- },
5258
5896
  {
5259
5897
  "internalType": "uint256",
5260
- "name": "additional",
5898
+ "name": "slotId",
5261
5899
  "type": "uint256"
5262
- }
5263
- ],
5264
- "name": "getProviderRequiredSecDepo",
5265
- "outputs": [
5900
+ },
5266
5901
  {
5267
- "internalType": "uint256",
5268
- "name": "",
5269
- "type": "uint256"
5902
+ "components": [
5903
+ {
5904
+ "internalType": "string",
5905
+ "name": "name",
5906
+ "type": "string"
5907
+ },
5908
+ {
5909
+ "internalType": "string",
5910
+ "name": "description",
5911
+ "type": "string"
5912
+ },
5913
+ {
5914
+ "internalType": "uint256",
5915
+ "name": "cpu",
5916
+ "type": "uint256"
5917
+ },
5918
+ {
5919
+ "internalType": "uint256",
5920
+ "name": "ram",
5921
+ "type": "uint256"
5922
+ },
5923
+ {
5924
+ "internalType": "uint256",
5925
+ "name": "ssd",
5926
+ "type": "uint256"
5927
+ },
5928
+ {
5929
+ "internalType": "uint256",
5930
+ "name": "hdd",
5931
+ "type": "uint256"
5932
+ },
5933
+ {
5934
+ "internalType": "uint256",
5935
+ "name": "bandwidth",
5936
+ "type": "uint256"
5937
+ },
5938
+ {
5939
+ "internalType": "uint256",
5940
+ "name": "traffic",
5941
+ "type": "uint256"
5942
+ }
5943
+ ],
5944
+ "internalType": "struct SlotInfo",
5945
+ "name": "info",
5946
+ "type": "tuple"
5270
5947
  }
5271
5948
  ],
5272
- "stateMutability": "view",
5949
+ "name": "modifySlot",
5950
+ "outputs": [],
5951
+ "stateMutability": "nonpayable",
5273
5952
  "type": "function"
5274
5953
  },
5275
5954
  {
5276
5955
  "inputs": [
5277
5956
  {
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[]"
5957
+ "internalType": "uint256",
5958
+ "name": "slotId",
5959
+ "type": "uint256"
5289
5960
  }
5290
5961
  ],
5291
- "stateMutability": "view",
5962
+ "name": "removeSlot",
5963
+ "outputs": [],
5964
+ "stateMutability": "nonpayable",
5292
5965
  "type": "function"
5293
5966
  },
5294
5967
  {
5295
- "inputs": [
5296
- {
5297
- "internalType": "address",
5298
- "name": "providerAuth",
5299
- "type": "address"
5300
- }
5301
- ],
5302
- "name": "getProviderValueOffers",
5968
+ "inputs": [],
5969
+ "name": "getSlotManagers",
5303
5970
  "outputs": [
5304
5971
  {
5305
5972
  "internalType": "uint256[]",
@@ -5314,30 +5981,24 @@
5314
5981
  "inputs": [
5315
5982
  {
5316
5983
  "internalType": "address",
5317
- "name": "providerAuth",
5984
+ "name": "user",
5318
5985
  "type": "address"
5319
5986
  }
5320
5987
  ],
5321
- "name": "isProviderHasEnabledOffers",
5322
- "outputs": [
5323
- {
5324
- "internalType": "bool",
5325
- "name": "",
5326
- "type": "bool"
5327
- }
5328
- ],
5329
- "stateMutability": "view",
5988
+ "name": "grantAccessToSlots",
5989
+ "outputs": [],
5990
+ "stateMutability": "nonpayable",
5330
5991
  "type": "function"
5331
5992
  },
5332
5993
  {
5333
5994
  "inputs": [
5334
5995
  {
5335
5996
  "internalType": "address",
5336
- "name": "providerAuth",
5997
+ "name": "user",
5337
5998
  "type": "address"
5338
5999
  }
5339
6000
  ],
5340
- "name": "isProviderHasEnoughSecurityDeposit",
6001
+ "name": "hasSlotsAccess",
5341
6002
  "outputs": [
5342
6003
  {
5343
6004
  "internalType": "bool",
@@ -5352,31 +6013,11 @@
5352
6013
  "inputs": [
5353
6014
  {
5354
6015
  "internalType": "address",
5355
- "name": "providerAuth",
6016
+ "name": "user",
5356
6017
  "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
6018
  }
5378
6019
  ],
5379
- "name": "setProviderOfferState",
6020
+ "name": "revokeAccessToSlots",
5380
6021
  "outputs": [],
5381
6022
  "stateMutability": "nonpayable",
5382
6023
  "type": "function"
@@ -6924,6 +7565,35 @@
6924
7565
  "stateMutability": "view",
6925
7566
  "type": "function"
6926
7567
  },
7568
+ {
7569
+ "inputs": [
7570
+ {
7571
+ "internalType": "uint256",
7572
+ "name": "tcbInitiedTime",
7573
+ "type": "uint256"
7574
+ }
7575
+ ],
7576
+ "name": "getEpochTime",
7577
+ "outputs": [
7578
+ {
7579
+ "internalType": "uint256",
7580
+ "name": "",
7581
+ "type": "uint256"
7582
+ },
7583
+ {
7584
+ "internalType": "uint256",
7585
+ "name": "",
7586
+ "type": "uint256"
7587
+ },
7588
+ {
7589
+ "internalType": "uint256",
7590
+ "name": "",
7591
+ "type": "uint256"
7592
+ }
7593
+ ],
7594
+ "stateMutability": "view",
7595
+ "type": "function"
7596
+ },
6927
7597
  {
6928
7598
  "inputs": [
6929
7599
  {
@@ -7000,21 +7670,6 @@
7000
7670
  "name": "suspiciousBlocksTakenAmount",
7001
7671
  "type": "uint256"
7002
7672
  },
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
7673
  {
7019
7674
  "internalType": "uint16",
7020
7675
  "name": "negative",
@@ -7030,10 +7685,30 @@
7030
7685
  "name": "previousTcb",
7031
7686
  "type": "uint256"
7032
7687
  },
7688
+ {
7689
+ "internalType": "bool",
7690
+ "name": "lastBlocksTaken",
7691
+ "type": "bool"
7692
+ },
7693
+ {
7694
+ "internalType": "bool",
7695
+ "name": "suspiciousBlocksTaken",
7696
+ "type": "bool"
7697
+ },
7698
+ {
7699
+ "internalType": "bool",
7700
+ "name": "assignedToEpoch",
7701
+ "type": "bool"
7702
+ },
7033
7703
  {
7034
7704
  "internalType": "bool",
7035
7705
  "name": "checked",
7036
7706
  "type": "bool"
7707
+ },
7708
+ {
7709
+ "internalType": "bool",
7710
+ "name": "rewardClaimed",
7711
+ "type": "bool"
7037
7712
  }
7038
7713
  ],
7039
7714
  "internalType": "struct TcbUtilityData",
@@ -7044,23 +7719,6 @@
7044
7719
  "internalType": "enum TcbStatus",
7045
7720
  "name": "status",
7046
7721
  "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
7722
  }
7065
7723
  ],
7066
7724
  "internalType": "struct Tcb",
@@ -7784,6 +8442,25 @@
7784
8442
  "stateMutability": "view",
7785
8443
  "type": "function"
7786
8444
  },
8445
+ {
8446
+ "inputs": [
8447
+ {
8448
+ "internalType": "uint256",
8449
+ "name": "offerId",
8450
+ "type": "uint256"
8451
+ }
8452
+ ],
8453
+ "name": "isTeeOfferBanned",
8454
+ "outputs": [
8455
+ {
8456
+ "internalType": "bool",
8457
+ "name": "",
8458
+ "type": "bool"
8459
+ }
8460
+ ],
8461
+ "stateMutability": "view",
8462
+ "type": "function"
8463
+ },
7787
8464
  {
7788
8465
  "inputs": [
7789
8466
  {
@@ -8695,6 +9372,25 @@
8695
9372
  "stateMutability": "view",
8696
9373
  "type": "function"
8697
9374
  },
9375
+ {
9376
+ "inputs": [
9377
+ {
9378
+ "internalType": "address",
9379
+ "name": "user",
9380
+ "type": "address"
9381
+ }
9382
+ ],
9383
+ "name": "hasSlotsAccess",
9384
+ "outputs": [
9385
+ {
9386
+ "internalType": "bool",
9387
+ "name": "",
9388
+ "type": "bool"
9389
+ }
9390
+ ],
9391
+ "stateMutability": "view",
9392
+ "type": "function"
9393
+ },
8698
9394
  {
8699
9395
  "inputs": [
8700
9396
  {
@@ -9175,9 +9871,9 @@
9175
9871
  "name": "getTeeOfferViolationRate",
9176
9872
  "outputs": [
9177
9873
  {
9178
- "internalType": "uint8",
9874
+ "internalType": "uint256",
9179
9875
  "name": "",
9180
- "type": "uint8"
9876
+ "type": "uint256"
9181
9877
  }
9182
9878
  ],
9183
9879
  "stateMutability": "view",