@super-protocol/sdk-js 3.13.1 → 3.14.0-beta.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.
Files changed (57) hide show
  1. package/dist/cjs/RIGenerator.d.ts +3 -2
  2. package/dist/cjs/RIGenerator.js +7 -6
  3. package/dist/cjs/TeeInputGeneratorBase.d.ts +2 -2
  4. package/dist/cjs/TeeInputGeneratorBase.js +1 -1
  5. package/dist/cjs/certificates/binary-splitter.d.ts +0 -1
  6. package/dist/cjs/certificates/binary-splitter.js +2 -12
  7. package/dist/cjs/certificates/ocsp.js +7 -3
  8. package/dist/cjs/certificates/serializer.d.ts +0 -1
  9. package/dist/cjs/certificates/serializer.js +3 -9
  10. package/dist/cjs/certificates/setup-crypto.d.ts +1 -1
  11. package/dist/cjs/certificates/setup-crypto.js +6 -3
  12. package/dist/cjs/contracts/abi.d.ts +48 -38
  13. package/dist/cjs/contracts/abi.js +59 -45
  14. package/dist/cjs/crypto/Crypto.d.ts +10 -13
  15. package/dist/cjs/crypto/Crypto.js +14 -17
  16. package/dist/cjs/crypto/nodejs/AES.d.ts +1 -1
  17. package/dist/cjs/crypto/nodejs/AES.js +2 -2
  18. package/dist/cjs/crypto/nodejs/ARIA.d.ts +1 -1
  19. package/dist/cjs/crypto/nodejs/ARIA.js +2 -2
  20. package/dist/cjs/models/Order.d.ts +1 -1
  21. package/dist/cjs/models/Order.js +10 -13
  22. package/dist/cjs/providers/storage/StorageKeyValueAdapter.d.ts +1 -1
  23. package/dist/cjs/providers/storage/parseStorageCredentials.d.ts +1 -2
  24. package/dist/cjs/types/Order.d.ts +11 -7
  25. package/dist/cjs/types/Order.js +21 -13
  26. package/dist/cjs/utils/helpers/OrderArgsHelper.d.ts +2 -2
  27. package/dist/cjs/utils/helpers/OrderArgsHelper.js +5 -5
  28. package/dist/cjs/utils/order/versify.js +1 -7
  29. package/dist/mjs/RIGenerator.d.ts +3 -2
  30. package/dist/mjs/RIGenerator.js +8 -7
  31. package/dist/mjs/TeeInputGeneratorBase.d.ts +2 -2
  32. package/dist/mjs/TeeInputGeneratorBase.js +1 -1
  33. package/dist/mjs/certificates/binary-splitter.d.ts +0 -1
  34. package/dist/mjs/certificates/binary-splitter.js +2 -12
  35. package/dist/mjs/certificates/ocsp.js +7 -3
  36. package/dist/mjs/certificates/serializer.d.ts +0 -1
  37. package/dist/mjs/certificates/serializer.js +3 -9
  38. package/dist/mjs/certificates/setup-crypto.d.ts +1 -1
  39. package/dist/mjs/certificates/setup-crypto.js +2 -2
  40. package/dist/mjs/contracts/abi.d.ts +48 -38
  41. package/dist/mjs/contracts/abi.js +59 -45
  42. package/dist/mjs/crypto/Crypto.d.ts +10 -13
  43. package/dist/mjs/crypto/Crypto.js +14 -17
  44. package/dist/mjs/crypto/nodejs/AES.d.ts +1 -1
  45. package/dist/mjs/crypto/nodejs/AES.js +2 -2
  46. package/dist/mjs/crypto/nodejs/ARIA.d.ts +1 -1
  47. package/dist/mjs/crypto/nodejs/ARIA.js +2 -2
  48. package/dist/mjs/models/Order.d.ts +1 -1
  49. package/dist/mjs/models/Order.js +10 -13
  50. package/dist/mjs/providers/storage/StorageKeyValueAdapter.d.ts +1 -1
  51. package/dist/mjs/providers/storage/parseStorageCredentials.d.ts +1 -2
  52. package/dist/mjs/types/Order.d.ts +11 -7
  53. package/dist/mjs/types/Order.js +18 -13
  54. package/dist/mjs/utils/helpers/OrderArgsHelper.d.ts +2 -2
  55. package/dist/mjs/utils/helpers/OrderArgsHelper.js +5 -5
  56. package/dist/mjs/utils/order/versify.js +1 -7
  57. package/package.json +3 -2
@@ -3668,7 +3668,7 @@ export declare const abi: readonly [{
3668
3668
  readonly type: "uint256[]";
3669
3669
  }, {
3670
3670
  readonly internalType: "uint256";
3671
- readonly name: "outputOfferId";
3671
+ readonly name: "outputOfferId_DEPRECATED";
3672
3672
  readonly type: "uint256";
3673
3673
  }, {
3674
3674
  readonly internalType: "uint64[]";
@@ -3676,7 +3676,7 @@ export declare const abi: readonly [{
3676
3676
  readonly type: "uint64[]";
3677
3677
  }, {
3678
3678
  readonly internalType: "uint64";
3679
- readonly name: "outputOfferVersion";
3679
+ readonly name: "outputOfferVersion_DEPRECATED";
3680
3680
  readonly type: "uint64";
3681
3681
  }];
3682
3682
  readonly internalType: "struct OrderArgs";
@@ -3769,7 +3769,7 @@ export declare const abi: readonly [{
3769
3769
  readonly type: "uint256[]";
3770
3770
  }, {
3771
3771
  readonly internalType: "uint256";
3772
- readonly name: "outputOfferId";
3772
+ readonly name: "outputOfferId_DEPRECATED";
3773
3773
  readonly type: "uint256";
3774
3774
  }, {
3775
3775
  readonly internalType: "uint64[]";
@@ -3777,7 +3777,7 @@ export declare const abi: readonly [{
3777
3777
  readonly type: "uint64[]";
3778
3778
  }, {
3779
3779
  readonly internalType: "uint64";
3780
- readonly name: "outputOfferVersion";
3780
+ readonly name: "outputOfferVersion_DEPRECATED";
3781
3781
  readonly type: "uint64";
3782
3782
  }];
3783
3783
  readonly internalType: "struct OrderArgs";
@@ -3870,7 +3870,7 @@ export declare const abi: readonly [{
3870
3870
  readonly type: "uint256[]";
3871
3871
  }, {
3872
3872
  readonly internalType: "uint256";
3873
- readonly name: "outputOfferId";
3873
+ readonly name: "outputOfferId_DEPRECATED";
3874
3874
  readonly type: "uint256";
3875
3875
  }, {
3876
3876
  readonly internalType: "uint64[]";
@@ -3878,7 +3878,7 @@ export declare const abi: readonly [{
3878
3878
  readonly type: "uint64[]";
3879
3879
  }, {
3880
3880
  readonly internalType: "uint64";
3881
- readonly name: "outputOfferVersion";
3881
+ readonly name: "outputOfferVersion_DEPRECATED";
3882
3882
  readonly type: "uint64";
3883
3883
  }];
3884
3884
  readonly internalType: "struct OrderArgs";
@@ -3976,7 +3976,7 @@ export declare const abi: readonly [{
3976
3976
  readonly type: "uint256[]";
3977
3977
  }, {
3978
3978
  readonly internalType: "uint256";
3979
- readonly name: "outputOfferId";
3979
+ readonly name: "outputOfferId_DEPRECATED";
3980
3980
  readonly type: "uint256";
3981
3981
  }, {
3982
3982
  readonly internalType: "uint64[]";
@@ -3984,7 +3984,7 @@ export declare const abi: readonly [{
3984
3984
  readonly type: "uint64[]";
3985
3985
  }, {
3986
3986
  readonly internalType: "uint64";
3987
- readonly name: "outputOfferVersion";
3987
+ readonly name: "outputOfferVersion_DEPRECATED";
3988
3988
  readonly type: "uint64";
3989
3989
  }];
3990
3990
  readonly internalType: "struct OrderArgs";
@@ -4682,20 +4682,6 @@ export declare const abi: readonly [{
4682
4682
  }];
4683
4683
  readonly stateMutability: "view";
4684
4684
  readonly type: "function";
4685
- }, {
4686
- readonly inputs: readonly [{
4687
- readonly internalType: "uint256";
4688
- readonly name: "orderId";
4689
- readonly type: "uint256";
4690
- }];
4691
- readonly name: "calculateOrderOutputReserve";
4692
- readonly outputs: readonly [{
4693
- readonly internalType: "uint256";
4694
- readonly name: "";
4695
- readonly type: "uint256";
4696
- }];
4697
- readonly stateMutability: "view";
4698
- readonly type: "function";
4699
4685
  }, {
4700
4686
  readonly inputs: readonly [{
4701
4687
  readonly internalType: "uint256";
@@ -4881,6 +4867,20 @@ export declare const abi: readonly [{
4881
4867
  }];
4882
4868
  readonly stateMutability: "view";
4883
4869
  readonly type: "function";
4870
+ }, {
4871
+ readonly inputs: readonly [{
4872
+ readonly internalType: "uint256";
4873
+ readonly name: "orderId";
4874
+ readonly type: "uint256";
4875
+ }];
4876
+ readonly name: "getBillingStartDate";
4877
+ readonly outputs: readonly [{
4878
+ readonly internalType: "uint256";
4879
+ readonly name: "";
4880
+ readonly type: "uint256";
4881
+ }];
4882
+ readonly stateMutability: "view";
4883
+ readonly type: "function";
4884
4884
  }, {
4885
4885
  readonly inputs: readonly [{
4886
4886
  readonly internalType: "uint256";
@@ -4984,10 +4984,6 @@ export declare const abi: readonly [{
4984
4984
  readonly internalType: "uint256";
4985
4985
  readonly name: "currentCost";
4986
4986
  readonly type: "uint256";
4987
- }, {
4988
- readonly internalType: "uint256";
4989
- readonly name: "orderOutputReserve";
4990
- readonly type: "uint256";
4991
4987
  }, {
4992
4988
  readonly internalType: "uint256";
4993
4989
  readonly name: "totalDepositSpent";
@@ -5052,7 +5048,7 @@ export declare const abi: readonly [{
5052
5048
  readonly type: "uint256[]";
5053
5049
  }, {
5054
5050
  readonly internalType: "uint256";
5055
- readonly name: "outputOfferId";
5051
+ readonly name: "outputOfferId_DEPRECATED";
5056
5052
  readonly type: "uint256";
5057
5053
  }, {
5058
5054
  readonly internalType: "uint64[]";
@@ -5060,7 +5056,7 @@ export declare const abi: readonly [{
5060
5056
  readonly type: "uint64[]";
5061
5057
  }, {
5062
5058
  readonly internalType: "uint64";
5063
- readonly name: "outputOfferVersion";
5059
+ readonly name: "outputOfferVersion_DEPRECATED";
5064
5060
  readonly type: "uint64";
5065
5061
  }];
5066
5062
  readonly internalType: "struct OrderArgs";
@@ -5226,7 +5222,7 @@ export declare const abi: readonly [{
5226
5222
  readonly type: "uint256[]";
5227
5223
  }, {
5228
5224
  readonly internalType: "uint256";
5229
- readonly name: "outputOfferId";
5225
+ readonly name: "outputOfferId_DEPRECATED";
5230
5226
  readonly type: "uint256";
5231
5227
  }, {
5232
5228
  readonly internalType: "uint64[]";
@@ -5234,7 +5230,7 @@ export declare const abi: readonly [{
5234
5230
  readonly type: "uint64[]";
5235
5231
  }, {
5236
5232
  readonly internalType: "uint64";
5237
- readonly name: "outputOfferVersion";
5233
+ readonly name: "outputOfferVersion_DEPRECATED";
5238
5234
  readonly type: "uint64";
5239
5235
  }];
5240
5236
  readonly internalType: "struct OrderArgs";
@@ -5592,6 +5588,20 @@ export declare const abi: readonly [{
5592
5588
  }];
5593
5589
  readonly stateMutability: "view";
5594
5590
  readonly type: "function";
5591
+ }, {
5592
+ readonly inputs: readonly [{
5593
+ readonly internalType: "uint256";
5594
+ readonly name: "orderId";
5595
+ readonly type: "uint256";
5596
+ }];
5597
+ readonly name: "isBlockingSuborder";
5598
+ readonly outputs: readonly [{
5599
+ readonly internalType: "bool";
5600
+ readonly name: "";
5601
+ readonly type: "bool";
5602
+ }];
5603
+ readonly stateMutability: "view";
5604
+ readonly type: "function";
5595
5605
  }, {
5596
5606
  readonly inputs: readonly [{
5597
5607
  readonly internalType: "uint256";
@@ -9457,7 +9467,7 @@ export declare const abi: readonly [{
9457
9467
  readonly type: "uint256[]";
9458
9468
  }, {
9459
9469
  readonly internalType: "uint256";
9460
- readonly name: "outputOfferId";
9470
+ readonly name: "outputOfferId_DEPRECATED";
9461
9471
  readonly type: "uint256";
9462
9472
  }, {
9463
9473
  readonly internalType: "uint64[]";
@@ -9465,7 +9475,7 @@ export declare const abi: readonly [{
9465
9475
  readonly type: "uint64[]";
9466
9476
  }, {
9467
9477
  readonly internalType: "uint64";
9468
- readonly name: "outputOfferVersion";
9478
+ readonly name: "outputOfferVersion_DEPRECATED";
9469
9479
  readonly type: "uint64";
9470
9480
  }];
9471
9481
  readonly internalType: "struct OrderArgs";
@@ -9545,7 +9555,7 @@ export declare const abi: readonly [{
9545
9555
  readonly type: "uint256[]";
9546
9556
  }, {
9547
9557
  readonly internalType: "uint256";
9548
- readonly name: "outputOfferId";
9558
+ readonly name: "outputOfferId_DEPRECATED";
9549
9559
  readonly type: "uint256";
9550
9560
  }, {
9551
9561
  readonly internalType: "uint64[]";
@@ -9553,7 +9563,7 @@ export declare const abi: readonly [{
9553
9563
  readonly type: "uint64[]";
9554
9564
  }, {
9555
9565
  readonly internalType: "uint64";
9556
- readonly name: "outputOfferVersion";
9566
+ readonly name: "outputOfferVersion_DEPRECATED";
9557
9567
  readonly type: "uint64";
9558
9568
  }];
9559
9569
  readonly internalType: "struct OrderArgs";
@@ -9640,7 +9650,7 @@ export declare const abi: readonly [{
9640
9650
  readonly type: "uint256[]";
9641
9651
  }, {
9642
9652
  readonly internalType: "uint256";
9643
- readonly name: "outputOfferId";
9653
+ readonly name: "outputOfferId_DEPRECATED";
9644
9654
  readonly type: "uint256";
9645
9655
  }, {
9646
9656
  readonly internalType: "uint64[]";
@@ -9648,7 +9658,7 @@ export declare const abi: readonly [{
9648
9658
  readonly type: "uint64[]";
9649
9659
  }, {
9650
9660
  readonly internalType: "uint64";
9651
- readonly name: "outputOfferVersion";
9661
+ readonly name: "outputOfferVersion_DEPRECATED";
9652
9662
  readonly type: "uint64";
9653
9663
  }];
9654
9664
  readonly internalType: "struct OrderArgs";
@@ -9728,7 +9738,7 @@ export declare const abi: readonly [{
9728
9738
  readonly type: "uint256[]";
9729
9739
  }, {
9730
9740
  readonly internalType: "uint256";
9731
- readonly name: "outputOfferId";
9741
+ readonly name: "outputOfferId_DEPRECATED";
9732
9742
  readonly type: "uint256";
9733
9743
  }, {
9734
9744
  readonly internalType: "uint64[]";
@@ -9736,7 +9746,7 @@ export declare const abi: readonly [{
9736
9746
  readonly type: "uint64[]";
9737
9747
  }, {
9738
9748
  readonly internalType: "uint64";
9739
- readonly name: "outputOfferVersion";
9749
+ readonly name: "outputOfferVersion_DEPRECATED";
9740
9750
  readonly type: "uint64";
9741
9751
  }];
9742
9752
  readonly internalType: "struct OrderArgs";