@super-protocol/sdk-js 0.13.0-beta.0 → 0.13.0-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.
@@ -2503,12 +2503,7 @@
2503
2503
  },
2504
2504
  {
2505
2505
  "internalType": "uint64",
2506
- "name": "hdd",
2507
- "type": "uint64"
2508
- },
2509
- {
2510
- "internalType": "uint64",
2511
- "name": "ssd",
2506
+ "name": "diskUsage",
2512
2507
  "type": "uint64"
2513
2508
  }
2514
2509
  ],
@@ -2654,6 +2649,11 @@
2654
2649
  "internalType": "string",
2655
2650
  "name": "hash",
2656
2651
  "type": "string"
2652
+ },
2653
+ {
2654
+ "internalType": "string",
2655
+ "name": "metadata",
2656
+ "type": "string"
2657
2657
  }
2658
2658
  ],
2659
2659
  "internalType": "struct ValueOfferInfo",
@@ -2779,12 +2779,7 @@
2779
2779
  },
2780
2780
  {
2781
2781
  "internalType": "uint64",
2782
- "name": "hdd",
2783
- "type": "uint64"
2784
- },
2785
- {
2786
- "internalType": "uint64",
2787
- "name": "ssd",
2782
+ "name": "diskUsage",
2788
2783
  "type": "uint64"
2789
2784
  }
2790
2785
  ],
@@ -2880,12 +2875,7 @@
2880
2875
  },
2881
2876
  {
2882
2877
  "internalType": "uint64",
2883
- "name": "hdd",
2884
- "type": "uint64"
2885
- },
2886
- {
2887
- "internalType": "uint64",
2888
- "name": "ssd",
2878
+ "name": "diskUsage",
2889
2879
  "type": "uint64"
2890
2880
  }
2891
2881
  ],
@@ -3039,6 +3029,11 @@
3039
3029
  "internalType": "string",
3040
3030
  "name": "hash",
3041
3031
  "type": "string"
3032
+ },
3033
+ {
3034
+ "internalType": "string",
3035
+ "name": "metadata",
3036
+ "type": "string"
3042
3037
  }
3043
3038
  ],
3044
3039
  "internalType": "struct ValueOfferInfo",
@@ -3126,12 +3121,7 @@
3126
3121
  },
3127
3122
  {
3128
3123
  "internalType": "uint64",
3129
- "name": "hdd",
3130
- "type": "uint64"
3131
- },
3132
- {
3133
- "internalType": "uint64",
3134
- "name": "ssd",
3124
+ "name": "diskUsage",
3135
3125
  "type": "uint64"
3136
3126
  }
3137
3127
  ],
@@ -3300,6 +3290,11 @@
3300
3290
  "internalType": "string",
3301
3291
  "name": "hash",
3302
3292
  "type": "string"
3293
+ },
3294
+ {
3295
+ "internalType": "string",
3296
+ "name": "metadata",
3297
+ "type": "string"
3303
3298
  }
3304
3299
  ],
3305
3300
  "internalType": "struct ValueOfferInfo",
@@ -3578,12 +3573,7 @@
3578
3573
  },
3579
3574
  {
3580
3575
  "internalType": "uint64",
3581
- "name": "hdd",
3582
- "type": "uint64"
3583
- },
3584
- {
3585
- "internalType": "uint64",
3586
- "name": "ssd",
3576
+ "name": "diskUsage",
3587
3577
  "type": "uint64"
3588
3578
  }
3589
3579
  ],
@@ -3663,12 +3653,7 @@
3663
3653
  },
3664
3654
  {
3665
3655
  "internalType": "uint64",
3666
- "name": "hdd",
3667
- "type": "uint64"
3668
- },
3669
- {
3670
- "internalType": "uint64",
3671
- "name": "ssd",
3656
+ "name": "diskUsage",
3672
3657
  "type": "uint64"
3673
3658
  }
3674
3659
  ],
@@ -3831,6 +3816,11 @@
3831
3816
  "internalType": "string",
3832
3817
  "name": "hash",
3833
3818
  "type": "string"
3819
+ },
3820
+ {
3821
+ "internalType": "string",
3822
+ "name": "metadata",
3823
+ "type": "string"
3834
3824
  }
3835
3825
  ],
3836
3826
  "internalType": "struct ValueOfferInfo",
@@ -4217,11 +4207,6 @@
4217
4207
  },
4218
4208
  {
4219
4209
  "components": [
4220
- {
4221
- "internalType": "uint256",
4222
- "name": "slots_DEPRECATED",
4223
- "type": "uint256"
4224
- },
4225
4210
  {
4226
4211
  "internalType": "uint256[]",
4227
4212
  "name": "inputOffers",
@@ -4325,11 +4310,6 @@
4325
4310
  },
4326
4311
  {
4327
4312
  "components": [
4328
- {
4329
- "internalType": "uint256",
4330
- "name": "slots_DEPRECATED",
4331
- "type": "uint256"
4332
- },
4333
4313
  {
4334
4314
  "internalType": "uint256[]",
4335
4315
  "name": "inputOffers",
@@ -4433,11 +4413,6 @@
4433
4413
  },
4434
4414
  {
4435
4415
  "components": [
4436
- {
4437
- "internalType": "uint256",
4438
- "name": "slots_DEPRECATED",
4439
- "type": "uint256"
4440
- },
4441
4416
  {
4442
4417
  "internalType": "uint256[]",
4443
4418
  "name": "inputOffers",
@@ -4553,11 +4528,6 @@
4553
4528
  },
4554
4529
  {
4555
4530
  "components": [
4556
- {
4557
- "internalType": "uint256",
4558
- "name": "slots_DEPRECATED",
4559
- "type": "uint256"
4560
- },
4561
4531
  {
4562
4532
  "internalType": "uint256[]",
4563
4533
  "name": "inputOffers",
@@ -4682,31 +4652,6 @@
4682
4652
  "name": "OrderDepositRefilled",
4683
4653
  "type": "event"
4684
4654
  },
4685
- {
4686
- "anonymous": false,
4687
- "inputs": [
4688
- {
4689
- "indexed": true,
4690
- "internalType": "address",
4691
- "name": "consumer",
4692
- "type": "address"
4693
- },
4694
- {
4695
- "indexed": true,
4696
- "internalType": "uint256",
4697
- "name": "orderId",
4698
- "type": "uint256"
4699
- },
4700
- {
4701
- "indexed": false,
4702
- "internalType": "uint256",
4703
- "name": "value",
4704
- "type": "uint256"
4705
- }
4706
- ],
4707
- "name": "OrderDepositSpentChanged",
4708
- "type": "event"
4709
- },
4710
4655
  {
4711
4656
  "anonymous": false,
4712
4657
  "inputs": [
@@ -4732,25 +4677,6 @@
4732
4677
  "name": "OrderOptionsDepositSpentChanged",
4733
4678
  "type": "event"
4734
4679
  },
4735
- {
4736
- "anonymous": false,
4737
- "inputs": [
4738
- {
4739
- "indexed": true,
4740
- "internalType": "uint256",
4741
- "name": "orderId",
4742
- "type": "uint256"
4743
- },
4744
- {
4745
- "indexed": false,
4746
- "internalType": "uint256",
4747
- "name": "price",
4748
- "type": "uint256"
4749
- }
4750
- ],
4751
- "name": "OrderPriceUpdated",
4752
- "type": "event"
4753
- },
4754
4680
  {
4755
4681
  "anonymous": false,
4756
4682
  "inputs": [
@@ -4812,24 +4738,6 @@
4812
4738
  "stateMutability": "nonpayable",
4813
4739
  "type": "function"
4814
4740
  },
4815
- {
4816
- "inputs": [
4817
- {
4818
- "internalType": "uint256",
4819
- "name": "orderId",
4820
- "type": "uint256"
4821
- },
4822
- {
4823
- "internalType": "uint256",
4824
- "name": "value",
4825
- "type": "uint256"
4826
- }
4827
- ],
4828
- "name": "setDepositSpent",
4829
- "outputs": [],
4830
- "stateMutability": "nonpayable",
4831
- "type": "function"
4832
- },
4833
4741
  {
4834
4742
  "inputs": [
4835
4743
  {
@@ -4861,24 +4769,6 @@
4861
4769
  "stateMutability": "nonpayable",
4862
4770
  "type": "function"
4863
4771
  },
4864
- {
4865
- "inputs": [
4866
- {
4867
- "internalType": "uint256",
4868
- "name": "orderId",
4869
- "type": "uint256"
4870
- },
4871
- {
4872
- "internalType": "uint256",
4873
- "name": "orderPrice",
4874
- "type": "uint256"
4875
- }
4876
- ],
4877
- "name": "updateOrderPrice",
4878
- "outputs": [],
4879
- "stateMutability": "nonpayable",
4880
- "type": "function"
4881
- },
4882
4772
  {
4883
4773
  "anonymous": false,
4884
4774
  "inputs": [
@@ -4992,6 +4882,25 @@
4992
4882
  "name": "OrderStatusUpdated",
4993
4883
  "type": "event"
4994
4884
  },
4885
+ {
4886
+ "inputs": [
4887
+ {
4888
+ "internalType": "uint256",
4889
+ "name": "orderId",
4890
+ "type": "uint256"
4891
+ }
4892
+ ],
4893
+ "name": "calculateOrderCurrentPrice",
4894
+ "outputs": [
4895
+ {
4896
+ "internalType": "uint256",
4897
+ "name": "resultedPrice",
4898
+ "type": "uint256"
4899
+ }
4900
+ ],
4901
+ "stateMutability": "view",
4902
+ "type": "function"
4903
+ },
4995
4904
  {
4996
4905
  "inputs": [
4997
4906
  {
@@ -5268,25 +5177,6 @@
5268
5177
  "stateMutability": "view",
5269
5178
  "type": "function"
5270
5179
  },
5271
- {
5272
- "inputs": [
5273
- {
5274
- "internalType": "uint256",
5275
- "name": "orderId",
5276
- "type": "uint256"
5277
- }
5278
- ],
5279
- "name": "getDepositSpent",
5280
- "outputs": [
5281
- {
5282
- "internalType": "uint256",
5283
- "name": "",
5284
- "type": "uint256"
5285
- }
5286
- ],
5287
- "stateMutability": "view",
5288
- "type": "function"
5289
- },
5290
5180
  {
5291
5181
  "inputs": [
5292
5182
  {
@@ -5350,11 +5240,6 @@
5350
5240
  },
5351
5241
  {
5352
5242
  "components": [
5353
- {
5354
- "internalType": "uint256",
5355
- "name": "slots_DEPRECATED",
5356
- "type": "uint256"
5357
- },
5358
5243
  {
5359
5244
  "internalType": "uint256[]",
5360
5245
  "name": "inputOffers",
@@ -5440,25 +5325,6 @@
5440
5325
  "stateMutability": "view",
5441
5326
  "type": "function"
5442
5327
  },
5443
- {
5444
- "inputs": [
5445
- {
5446
- "internalType": "uint256",
5447
- "name": "orderId",
5448
- "type": "uint256"
5449
- }
5450
- ],
5451
- "name": "getOrderDepositSpent",
5452
- "outputs": [
5453
- {
5454
- "internalType": "uint256",
5455
- "name": "",
5456
- "type": "uint256"
5457
- }
5458
- ],
5459
- "stateMutability": "view",
5460
- "type": "function"
5461
- },
5462
5328
  {
5463
5329
  "inputs": [
5464
5330
  {
@@ -7032,12 +6898,7 @@
7032
6898
  },
7033
6899
  {
7034
6900
  "internalType": "uint64",
7035
- "name": "hdd",
7036
- "type": "uint64"
7037
- },
7038
- {
7039
- "internalType": "uint64",
7040
- "name": "ssd",
6901
+ "name": "diskUsage",
7041
6902
  "type": "uint64"
7042
6903
  }
7043
6904
  ],
@@ -7096,6 +6957,19 @@
7096
6957
  "stateMutability": "nonpayable",
7097
6958
  "type": "function"
7098
6959
  },
6960
+ {
6961
+ "inputs": [],
6962
+ "name": "getCpuDenominator",
6963
+ "outputs": [
6964
+ {
6965
+ "internalType": "uint16",
6966
+ "name": "",
6967
+ "type": "uint16"
6968
+ }
6969
+ ],
6970
+ "stateMutability": "pure",
6971
+ "type": "function"
6972
+ },
7099
6973
  {
7100
6974
  "inputs": [
7101
6975
  {
@@ -7132,12 +7006,7 @@
7132
7006
  },
7133
7007
  {
7134
7008
  "internalType": "uint64",
7135
- "name": "hdd",
7136
- "type": "uint64"
7137
- },
7138
- {
7139
- "internalType": "uint64",
7140
- "name": "ssd",
7009
+ "name": "diskUsage",
7141
7010
  "type": "uint64"
7142
7011
  }
7143
7012
  ],
@@ -7222,12 +7091,7 @@
7222
7091
  },
7223
7092
  {
7224
7093
  "internalType": "uint64",
7225
- "name": "hdd",
7226
- "type": "uint64"
7227
- },
7228
- {
7229
- "internalType": "uint64",
7230
- "name": "ssd",
7094
+ "name": "diskUsage",
7231
7095
  "type": "uint64"
7232
7096
  }
7233
7097
  ],
@@ -7334,12 +7198,7 @@
7334
7198
  },
7335
7199
  {
7336
7200
  "internalType": "uint64",
7337
- "name": "hdd",
7338
- "type": "uint64"
7339
- },
7340
- {
7341
- "internalType": "uint64",
7342
- "name": "ssd",
7201
+ "name": "diskUsage",
7343
7202
  "type": "uint64"
7344
7203
  }
7345
7204
  ],
@@ -7748,12 +7607,7 @@
7748
7607
  },
7749
7608
  {
7750
7609
  "internalType": "uint64",
7751
- "name": "hdd",
7752
- "type": "uint64"
7753
- },
7754
- {
7755
- "internalType": "uint64",
7756
- "name": "ssd",
7610
+ "name": "diskUsage",
7757
7611
  "type": "uint64"
7758
7612
  }
7759
7613
  ],
@@ -7889,12 +7743,7 @@
7889
7743
  },
7890
7744
  {
7891
7745
  "internalType": "uint64",
7892
- "name": "hdd",
7893
- "type": "uint64"
7894
- },
7895
- {
7896
- "internalType": "uint64",
7897
- "name": "ssd",
7746
+ "name": "diskUsage",
7898
7747
  "type": "uint64"
7899
7748
  }
7900
7749
  ],
@@ -8001,12 +7850,7 @@
8001
7850
  },
8002
7851
  {
8003
7852
  "internalType": "uint64",
8004
- "name": "hdd",
8005
- "type": "uint64"
8006
- },
8007
- {
8008
- "internalType": "uint64",
8009
- "name": "ssd",
7853
+ "name": "diskUsage",
8010
7854
  "type": "uint64"
8011
7855
  }
8012
7856
  ],
@@ -8135,12 +7979,7 @@
8135
7979
  },
8136
7980
  {
8137
7981
  "internalType": "uint64",
8138
- "name": "hdd",
8139
- "type": "uint64"
8140
- },
8141
- {
8142
- "internalType": "uint64",
8143
- "name": "ssd",
7982
+ "name": "diskUsage",
8144
7983
  "type": "uint64"
8145
7984
  }
8146
7985
  ],
@@ -8284,11 +8123,6 @@
8284
8123
  },
8285
8124
  {
8286
8125
  "components": [
8287
- {
8288
- "internalType": "uint256",
8289
- "name": "slots_DEPRECATED",
8290
- "type": "uint256"
8291
- },
8292
8126
  {
8293
8127
  "internalType": "uint256[]",
8294
8128
  "name": "inputOffers",
@@ -8368,11 +8202,6 @@
8368
8202
  },
8369
8203
  {
8370
8204
  "components": [
8371
- {
8372
- "internalType": "uint256",
8373
- "name": "slots_DEPRECATED",
8374
- "type": "uint256"
8375
- },
8376
8205
  {
8377
8206
  "internalType": "uint256[]",
8378
8207
  "name": "inputOffers",
@@ -9784,12 +9613,7 @@
9784
9613
  },
9785
9614
  {
9786
9615
  "internalType": "uint64",
9787
- "name": "hdd",
9788
- "type": "uint64"
9789
- },
9790
- {
9791
- "internalType": "uint64",
9792
- "name": "ssd",
9616
+ "name": "diskUsage",
9793
9617
  "type": "uint64"
9794
9618
  }
9795
9619
  ],
@@ -9869,12 +9693,7 @@
9869
9693
  },
9870
9694
  {
9871
9695
  "internalType": "uint64",
9872
- "name": "hdd",
9873
- "type": "uint64"
9874
- },
9875
- {
9876
- "internalType": "uint64",
9877
- "name": "ssd",
9696
+ "name": "diskUsage",
9878
9697
  "type": "uint64"
9879
9698
  }
9880
9699
  ],
@@ -10018,6 +9837,11 @@
10018
9837
  "internalType": "string",
10019
9838
  "name": "hash",
10020
9839
  "type": "string"
9840
+ },
9841
+ {
9842
+ "internalType": "string",
9843
+ "name": "metadata",
9844
+ "type": "string"
10021
9845
  }
10022
9846
  ],
10023
9847
  "internalType": "struct ValueOfferInfo",
@@ -10205,6 +10029,25 @@
10205
10029
  "stateMutability": "view",
10206
10030
  "type": "function"
10207
10031
  },
10032
+ {
10033
+ "inputs": [
10034
+ {
10035
+ "internalType": "uint256",
10036
+ "name": "orderId",
10037
+ "type": "uint256"
10038
+ }
10039
+ ],
10040
+ "name": "calculateOrderCurrentPrice",
10041
+ "outputs": [
10042
+ {
10043
+ "internalType": "uint256",
10044
+ "name": "",
10045
+ "type": "uint256"
10046
+ }
10047
+ ],
10048
+ "stateMutability": "view",
10049
+ "type": "function"
10050
+ },
10208
10051
  {
10209
10052
  "inputs": [
10210
10053
  {
@@ -10259,11 +10102,6 @@
10259
10102
  },
10260
10103
  {
10261
10104
  "components": [
10262
- {
10263
- "internalType": "uint256",
10264
- "name": "slots_DEPRECATED",
10265
- "type": "uint256"
10266
- },
10267
10105
  {
10268
10106
  "internalType": "uint256[]",
10269
10107
  "name": "inputOffers",
@@ -10372,11 +10210,6 @@
10372
10210
  },
10373
10211
  {
10374
10212
  "components": [
10375
- {
10376
- "internalType": "uint256",
10377
- "name": "slots_DEPRECATED",
10378
- "type": "uint256"
10379
- },
10380
10213
  {
10381
10214
  "internalType": "uint256[]",
10382
10215
  "name": "inputOffers",
@@ -10495,11 +10328,6 @@
10495
10328
  },
10496
10329
  {
10497
10330
  "components": [
10498
- {
10499
- "internalType": "uint256",
10500
- "name": "slots_DEPRECATED",
10501
- "type": "uint256"
10502
- },
10503
10331
  {
10504
10332
  "internalType": "uint256[]",
10505
10333
  "name": "inputOffers",
@@ -10602,25 +10430,6 @@
10602
10430
  "stateMutability": "nonpayable",
10603
10431
  "type": "function"
10604
10432
  },
10605
- {
10606
- "inputs": [
10607
- {
10608
- "internalType": "uint256",
10609
- "name": "orderId",
10610
- "type": "uint256"
10611
- }
10612
- ],
10613
- "name": "calculateOrderFinalPrice",
10614
- "outputs": [
10615
- {
10616
- "internalType": "uint256",
10617
- "name": "",
10618
- "type": "uint256"
10619
- }
10620
- ],
10621
- "stateMutability": "view",
10622
- "type": "function"
10623
- },
10624
10433
  {
10625
10434
  "inputs": [
10626
10435
  {
@@ -10724,25 +10533,6 @@
10724
10533
  "stateMutability": "view",
10725
10534
  "type": "function"
10726
10535
  },
10727
- {
10728
- "inputs": [
10729
- {
10730
- "internalType": "uint256",
10731
- "name": "orderId",
10732
- "type": "uint256"
10733
- }
10734
- ],
10735
- "name": "getDepositSpent",
10736
- "outputs": [
10737
- {
10738
- "internalType": "uint256",
10739
- "name": "",
10740
- "type": "uint256"
10741
- }
10742
- ],
10743
- "stateMutability": "view",
10744
- "type": "function"
10745
- },
10746
10536
  {
10747
10537
  "inputs": [
10748
10538
  {
@@ -10787,11 +10577,6 @@
10787
10577
  },
10788
10578
  {
10789
10579
  "components": [
10790
- {
10791
- "internalType": "uint256",
10792
- "name": "slots_DEPRECATED",
10793
- "type": "uint256"
10794
- },
10795
10580
  {
10796
10581
  "internalType": "uint256[]",
10797
10582
  "name": "inputOffers",
@@ -11442,12 +11227,7 @@
11442
11227
  },
11443
11228
  {
11444
11229
  "internalType": "uint64",
11445
- "name": "hdd",
11446
- "type": "uint64"
11447
- },
11448
- {
11449
- "internalType": "uint64",
11450
- "name": "ssd",
11230
+ "name": "diskUsage",
11451
11231
  "type": "uint64"
11452
11232
  }
11453
11233
  ],
@@ -11527,12 +11307,7 @@
11527
11307
  },
11528
11308
  {
11529
11309
  "internalType": "uint64",
11530
- "name": "hdd",
11531
- "type": "uint64"
11532
- },
11533
- {
11534
- "internalType": "uint64",
11535
- "name": "ssd",
11310
+ "name": "diskUsage",
11536
11311
  "type": "uint64"
11537
11312
  }
11538
11313
  ],