@super-protocol/sdk-js 0.13.5 → 0.14.0-beta.0

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.
@@ -1648,7 +1648,7 @@
1648
1648
  },
1649
1649
  {
1650
1650
  "internalType": "bool",
1651
- "name": "assignedToEpoch",
1651
+ "name": "assignedToEpoch_DEPRECATED",
1652
1652
  "type": "bool"
1653
1653
  },
1654
1654
  {
@@ -4276,6 +4276,16 @@
4276
4276
  "internalType": "bytes32",
4277
4277
  "name": "externalId",
4278
4278
  "type": "bytes32"
4279
+ },
4280
+ {
4281
+ "internalType": "uint256",
4282
+ "name": "expectedPrice",
4283
+ "type": "uint256"
4284
+ },
4285
+ {
4286
+ "internalType": "uint256",
4287
+ "name": "maxPriceSlippage",
4288
+ "type": "uint256"
4279
4289
  }
4280
4290
  ],
4281
4291
  "internalType": "struct OrderInfo",
@@ -4386,6 +4396,16 @@
4386
4396
  "internalType": "bytes32",
4387
4397
  "name": "externalId",
4388
4398
  "type": "bytes32"
4399
+ },
4400
+ {
4401
+ "internalType": "uint256",
4402
+ "name": "expectedPrice",
4403
+ "type": "uint256"
4404
+ },
4405
+ {
4406
+ "internalType": "uint256",
4407
+ "name": "maxPriceSlippage",
4408
+ "type": "uint256"
4389
4409
  }
4390
4410
  ],
4391
4411
  "internalType": "struct OrderInfo",
@@ -4496,6 +4516,16 @@
4496
4516
  "internalType": "bytes32",
4497
4517
  "name": "externalId",
4498
4518
  "type": "bytes32"
4519
+ },
4520
+ {
4521
+ "internalType": "uint256",
4522
+ "name": "expectedPrice",
4523
+ "type": "uint256"
4524
+ },
4525
+ {
4526
+ "internalType": "uint256",
4527
+ "name": "maxPriceSlippage",
4528
+ "type": "uint256"
4499
4529
  }
4500
4530
  ],
4501
4531
  "internalType": "struct OrderInfo",
@@ -4618,6 +4648,16 @@
4618
4648
  "internalType": "bytes32",
4619
4649
  "name": "externalId",
4620
4650
  "type": "bytes32"
4651
+ },
4652
+ {
4653
+ "internalType": "uint256",
4654
+ "name": "expectedPrice",
4655
+ "type": "uint256"
4656
+ },
4657
+ {
4658
+ "internalType": "uint256",
4659
+ "name": "maxPriceSlippage",
4660
+ "type": "uint256"
4621
4661
  }
4622
4662
  ],
4623
4663
  "internalType": "struct OrderInfo",
@@ -4844,6 +4884,25 @@
4844
4884
  "stateMutability": "nonpayable",
4845
4885
  "type": "function"
4846
4886
  },
4887
+ {
4888
+ "inputs": [
4889
+ {
4890
+ "internalType": "uint256[]",
4891
+ "name": "orderIds",
4892
+ "type": "uint256[]"
4893
+ }
4894
+ ],
4895
+ "name": "unlockProfitByList",
4896
+ "outputs": [
4897
+ {
4898
+ "internalType": "uint256",
4899
+ "name": "ulockedIndex",
4900
+ "type": "uint256"
4901
+ }
4902
+ ],
4903
+ "stateMutability": "nonpayable",
4904
+ "type": "function"
4905
+ },
4847
4906
  {
4848
4907
  "anonymous": false,
4849
4908
  "inputs": [
@@ -5361,6 +5420,16 @@
5361
5420
  "internalType": "bytes32",
5362
5421
  "name": "externalId",
5363
5422
  "type": "bytes32"
5423
+ },
5424
+ {
5425
+ "internalType": "uint256",
5426
+ "name": "expectedPrice",
5427
+ "type": "uint256"
5428
+ },
5429
+ {
5430
+ "internalType": "uint256",
5431
+ "name": "maxPriceSlippage",
5432
+ "type": "uint256"
5364
5433
  }
5365
5434
  ],
5366
5435
  "internalType": "struct OrderInfo",
@@ -6165,6 +6234,154 @@
6165
6234
  "stateMutability": "nonpayable",
6166
6235
  "type": "function"
6167
6236
  },
6237
+ {
6238
+ "inputs": [
6239
+ {
6240
+ "internalType": "address",
6241
+ "name": "authority",
6242
+ "type": "address"
6243
+ },
6244
+ {
6245
+ "internalType": "uint256",
6246
+ "name": "orderId",
6247
+ "type": "uint256"
6248
+ }
6249
+ ],
6250
+ "name": "addLockedOrder",
6251
+ "outputs": [],
6252
+ "stateMutability": "nonpayable",
6253
+ "type": "function"
6254
+ },
6255
+ {
6256
+ "inputs": [
6257
+ {
6258
+ "internalType": "address",
6259
+ "name": "authority",
6260
+ "type": "address"
6261
+ },
6262
+ {
6263
+ "internalType": "uint256",
6264
+ "name": "tcbId",
6265
+ "type": "uint256"
6266
+ }
6267
+ ],
6268
+ "name": "addLockedTcb",
6269
+ "outputs": [],
6270
+ "stateMutability": "nonpayable",
6271
+ "type": "function"
6272
+ },
6273
+ {
6274
+ "inputs": [
6275
+ {
6276
+ "internalType": "uint256[]",
6277
+ "name": "orderIds",
6278
+ "type": "uint256[]"
6279
+ }
6280
+ ],
6281
+ "name": "getAvaliableOrderRewardsAmount",
6282
+ "outputs": [
6283
+ {
6284
+ "internalType": "uint256",
6285
+ "name": "amount",
6286
+ "type": "uint256"
6287
+ }
6288
+ ],
6289
+ "stateMutability": "view",
6290
+ "type": "function"
6291
+ },
6292
+ {
6293
+ "inputs": [
6294
+ {
6295
+ "internalType": "uint256[]",
6296
+ "name": "tcbIds",
6297
+ "type": "uint256[]"
6298
+ }
6299
+ ],
6300
+ "name": "getAvaliableTcbRewardsAmount",
6301
+ "outputs": [
6302
+ {
6303
+ "internalType": "uint256",
6304
+ "name": "amount",
6305
+ "type": "uint256"
6306
+ }
6307
+ ],
6308
+ "stateMutability": "view",
6309
+ "type": "function"
6310
+ },
6311
+ {
6312
+ "inputs": [
6313
+ {
6314
+ "internalType": "address",
6315
+ "name": "authority",
6316
+ "type": "address"
6317
+ }
6318
+ ],
6319
+ "name": "getOrdersLockedProfitList",
6320
+ "outputs": [
6321
+ {
6322
+ "internalType": "uint256[]",
6323
+ "name": "",
6324
+ "type": "uint256[]"
6325
+ }
6326
+ ],
6327
+ "stateMutability": "view",
6328
+ "type": "function"
6329
+ },
6330
+ {
6331
+ "inputs": [
6332
+ {
6333
+ "internalType": "address",
6334
+ "name": "authority",
6335
+ "type": "address"
6336
+ }
6337
+ ],
6338
+ "name": "getTcbLockedProfitList",
6339
+ "outputs": [
6340
+ {
6341
+ "internalType": "uint256[]",
6342
+ "name": "",
6343
+ "type": "uint256[]"
6344
+ }
6345
+ ],
6346
+ "stateMutability": "view",
6347
+ "type": "function"
6348
+ },
6349
+ {
6350
+ "inputs": [
6351
+ {
6352
+ "internalType": "address",
6353
+ "name": "authority",
6354
+ "type": "address"
6355
+ },
6356
+ {
6357
+ "internalType": "uint256",
6358
+ "name": "orderId",
6359
+ "type": "uint256"
6360
+ }
6361
+ ],
6362
+ "name": "removeLockedOrder",
6363
+ "outputs": [],
6364
+ "stateMutability": "nonpayable",
6365
+ "type": "function"
6366
+ },
6367
+ {
6368
+ "inputs": [
6369
+ {
6370
+ "internalType": "address",
6371
+ "name": "authority",
6372
+ "type": "address"
6373
+ },
6374
+ {
6375
+ "internalType": "uint256",
6376
+ "name": "tcbId",
6377
+ "type": "uint256"
6378
+ }
6379
+ ],
6380
+ "name": "removeLockedTcb",
6381
+ "outputs": [],
6382
+ "stateMutability": "nonpayable",
6383
+ "type": "function"
6384
+ },
6168
6385
  {
6169
6386
  "inputs": [
6170
6387
  {
@@ -6900,6 +7117,25 @@
6900
7117
  "stateMutability": "view",
6901
7118
  "type": "function"
6902
7119
  },
7120
+ {
7121
+ "inputs": [
7122
+ {
7123
+ "internalType": "uint256",
7124
+ "name": "teeOfferId",
7125
+ "type": "uint256"
7126
+ }
7127
+ ],
7128
+ "name": "getTeeOfferOptionsCount",
7129
+ "outputs": [
7130
+ {
7131
+ "internalType": "uint256",
7132
+ "name": "",
7133
+ "type": "uint256"
7134
+ }
7135
+ ],
7136
+ "stateMutability": "view",
7137
+ "type": "function"
7138
+ },
6903
7139
  {
6904
7140
  "inputs": [
6905
7141
  {
@@ -7441,6 +7677,25 @@
7441
7677
  "stateMutability": "nonpayable",
7442
7678
  "type": "function"
7443
7679
  },
7680
+ {
7681
+ "anonymous": false,
7682
+ "inputs": [
7683
+ {
7684
+ "indexed": false,
7685
+ "internalType": "uint256",
7686
+ "name": "tcbId",
7687
+ "type": "uint256"
7688
+ },
7689
+ {
7690
+ "indexed": false,
7691
+ "internalType": "uint256",
7692
+ "name": "rewards",
7693
+ "type": "uint256"
7694
+ }
7695
+ ],
7696
+ "name": "TcbRewardUnlocked",
7697
+ "type": "event"
7698
+ },
7444
7699
  {
7445
7700
  "anonymous": false,
7446
7701
  "inputs": [
@@ -7485,6 +7740,19 @@
7485
7740
  "name": "WarningMessage",
7486
7741
  "type": "event"
7487
7742
  },
7743
+ {
7744
+ "inputs": [
7745
+ {
7746
+ "internalType": "uint256",
7747
+ "name": "tcbId",
7748
+ "type": "uint256"
7749
+ }
7750
+ ],
7751
+ "name": "_unlockTcbReward",
7752
+ "outputs": [],
7753
+ "stateMutability": "nonpayable",
7754
+ "type": "function"
7755
+ },
7488
7756
  {
7489
7757
  "inputs": [
7490
7758
  {
@@ -7580,7 +7848,7 @@
7580
7848
  "type": "uint256"
7581
7849
  }
7582
7850
  ],
7583
- "name": "getTeeOfferLastTcbReward",
7851
+ "name": "getTeeOfferViolationRate",
7584
7852
  "outputs": [
7585
7853
  {
7586
7854
  "internalType": "uint256",
@@ -7599,7 +7867,7 @@
7599
7867
  "type": "uint256"
7600
7868
  }
7601
7869
  ],
7602
- "name": "getTeeOfferViolationRate",
7870
+ "name": "getTeeVerifiedBenchmark",
7603
7871
  "outputs": [
7604
7872
  {
7605
7873
  "internalType": "uint256",
@@ -7618,28 +7886,33 @@
7618
7886
  "type": "uint256"
7619
7887
  }
7620
7888
  ],
7621
- "name": "getTeeVerifiedBenchmark",
7622
- "outputs": [
7889
+ "name": "incrTeeOfferViolationRate",
7890
+ "outputs": [],
7891
+ "stateMutability": "nonpayable",
7892
+ "type": "function"
7893
+ },
7894
+ {
7895
+ "inputs": [
7623
7896
  {
7624
7897
  "internalType": "uint256",
7625
- "name": "",
7898
+ "name": "tcbId",
7626
7899
  "type": "uint256"
7627
7900
  }
7628
7901
  ],
7629
- "stateMutability": "view",
7630
- "type": "function"
7631
- },
7632
- {
7633
- "inputs": [
7902
+ "name": "isTcbProfitAvailable",
7903
+ "outputs": [
7904
+ {
7905
+ "internalType": "bool",
7906
+ "name": "available",
7907
+ "type": "bool"
7908
+ },
7634
7909
  {
7635
7910
  "internalType": "uint256",
7636
- "name": "teeOfferId",
7911
+ "name": "amount",
7637
7912
  "type": "uint256"
7638
7913
  }
7639
7914
  ],
7640
- "name": "incrTeeOfferViolationRate",
7641
- "outputs": [],
7642
- "stateMutability": "nonpayable",
7915
+ "stateMutability": "view",
7643
7916
  "type": "function"
7644
7917
  },
7645
7918
  {
@@ -7696,6 +7969,25 @@
7696
7969
  "stateMutability": "nonpayable",
7697
7970
  "type": "function"
7698
7971
  },
7972
+ {
7973
+ "inputs": [
7974
+ {
7975
+ "internalType": "uint256[]",
7976
+ "name": "tcbIds",
7977
+ "type": "uint256[]"
7978
+ }
7979
+ ],
7980
+ "name": "unlockTcbRewardByList",
7981
+ "outputs": [
7982
+ {
7983
+ "internalType": "uint256",
7984
+ "name": "ulockedIndex",
7985
+ "type": "uint256"
7986
+ }
7987
+ ],
7988
+ "stateMutability": "nonpayable",
7989
+ "type": "function"
7990
+ },
7699
7991
  {
7700
7992
  "inputs": [
7701
7993
  {
@@ -8390,6 +8682,16 @@
8390
8682
  "internalType": "bytes32",
8391
8683
  "name": "externalId",
8392
8684
  "type": "bytes32"
8685
+ },
8686
+ {
8687
+ "internalType": "uint256",
8688
+ "name": "expectedPrice",
8689
+ "type": "uint256"
8690
+ },
8691
+ {
8692
+ "internalType": "uint256",
8693
+ "name": "maxPriceSlippage",
8694
+ "type": "uint256"
8393
8695
  }
8394
8696
  ],
8395
8697
  "internalType": "struct OrderInfo",
@@ -8476,6 +8778,16 @@
8476
8778
  "internalType": "bytes32",
8477
8779
  "name": "externalId",
8478
8780
  "type": "bytes32"
8781
+ },
8782
+ {
8783
+ "internalType": "uint256",
8784
+ "name": "expectedPrice",
8785
+ "type": "uint256"
8786
+ },
8787
+ {
8788
+ "internalType": "uint256",
8789
+ "name": "maxPriceSlippage",
8790
+ "type": "uint256"
8479
8791
  }
8480
8792
  ],
8481
8793
  "internalType": "struct OrderInfo[]",
@@ -9275,7 +9587,7 @@
9275
9587
  },
9276
9588
  {
9277
9589
  "internalType": "bool",
9278
- "name": "assignedToEpoch",
9590
+ "name": "assignedToEpoch_DEPRECATED",
9279
9591
  "type": "bool"
9280
9592
  },
9281
9593
  {
@@ -9345,6 +9657,30 @@
9345
9657
  "stateMutability": "view",
9346
9658
  "type": "function"
9347
9659
  },
9660
+ {
9661
+ "inputs": [
9662
+ {
9663
+ "internalType": "uint256",
9664
+ "name": "tcbId",
9665
+ "type": "uint256"
9666
+ }
9667
+ ],
9668
+ "name": "isTcbProfitAvailable",
9669
+ "outputs": [
9670
+ {
9671
+ "internalType": "bool",
9672
+ "name": "",
9673
+ "type": "bool"
9674
+ },
9675
+ {
9676
+ "internalType": "uint256",
9677
+ "name": "",
9678
+ "type": "uint256"
9679
+ }
9680
+ ],
9681
+ "stateMutability": "view",
9682
+ "type": "function"
9683
+ },
9348
9684
  {
9349
9685
  "inputs": [
9350
9686
  {
@@ -10406,6 +10742,16 @@
10406
10742
  "internalType": "bytes32",
10407
10743
  "name": "externalId",
10408
10744
  "type": "bytes32"
10745
+ },
10746
+ {
10747
+ "internalType": "uint256",
10748
+ "name": "expectedPrice",
10749
+ "type": "uint256"
10750
+ },
10751
+ {
10752
+ "internalType": "uint256",
10753
+ "name": "maxPriceSlippage",
10754
+ "type": "uint256"
10409
10755
  }
10410
10756
  ],
10411
10757
  "internalType": "struct OrderInfo",
@@ -10521,6 +10867,16 @@
10521
10867
  "internalType": "bytes32",
10522
10868
  "name": "externalId",
10523
10869
  "type": "bytes32"
10870
+ },
10871
+ {
10872
+ "internalType": "uint256",
10873
+ "name": "expectedPrice",
10874
+ "type": "uint256"
10875
+ },
10876
+ {
10877
+ "internalType": "uint256",
10878
+ "name": "maxPriceSlippage",
10879
+ "type": "uint256"
10524
10880
  }
10525
10881
  ],
10526
10882
  "internalType": "struct OrderInfo",
@@ -10646,6 +11002,16 @@
10646
11002
  "internalType": "bytes32",
10647
11003
  "name": "externalId",
10648
11004
  "type": "bytes32"
11005
+ },
11006
+ {
11007
+ "internalType": "uint256",
11008
+ "name": "expectedPrice",
11009
+ "type": "uint256"
11010
+ },
11011
+ {
11012
+ "internalType": "uint256",
11013
+ "name": "maxPriceSlippage",
11014
+ "type": "uint256"
10649
11015
  }
10650
11016
  ],
10651
11017
  "internalType": "struct OrderInfo",
@@ -10902,6 +11268,16 @@
10902
11268
  "internalType": "bytes32",
10903
11269
  "name": "externalId",
10904
11270
  "type": "bytes32"
11271
+ },
11272
+ {
11273
+ "internalType": "uint256",
11274
+ "name": "expectedPrice",
11275
+ "type": "uint256"
11276
+ },
11277
+ {
11278
+ "internalType": "uint256",
11279
+ "name": "maxPriceSlippage",
11280
+ "type": "uint256"
10905
11281
  }
10906
11282
  ],
10907
11283
  "internalType": "struct OrderInfo",
@@ -11116,6 +11492,30 @@
11116
11492
  "stateMutability": "view",
11117
11493
  "type": "function"
11118
11494
  },
11495
+ {
11496
+ "inputs": [
11497
+ {
11498
+ "internalType": "uint256",
11499
+ "name": "",
11500
+ "type": "uint256"
11501
+ }
11502
+ ],
11503
+ "name": "isOrderProfitAvailable",
11504
+ "outputs": [
11505
+ {
11506
+ "internalType": "bool",
11507
+ "name": "",
11508
+ "type": "bool"
11509
+ },
11510
+ {
11511
+ "internalType": "uint256",
11512
+ "name": "",
11513
+ "type": "uint256"
11514
+ }
11515
+ ],
11516
+ "stateMutability": "view",
11517
+ "type": "function"
11518
+ },
11119
11519
  {
11120
11520
  "inputs": [
11121
11521
  {
@@ -11280,6 +11680,78 @@
11280
11680
  "stateMutability": "view",
11281
11681
  "type": "function"
11282
11682
  },
11683
+ {
11684
+ "inputs": [
11685
+ {
11686
+ "internalType": "address",
11687
+ "name": "authority",
11688
+ "type": "address"
11689
+ },
11690
+ {
11691
+ "internalType": "uint256",
11692
+ "name": "orderId",
11693
+ "type": "uint256"
11694
+ }
11695
+ ],
11696
+ "name": "addLockedOrder",
11697
+ "outputs": [],
11698
+ "stateMutability": "nonpayable",
11699
+ "type": "function"
11700
+ },
11701
+ {
11702
+ "inputs": [
11703
+ {
11704
+ "internalType": "address",
11705
+ "name": "authority",
11706
+ "type": "address"
11707
+ },
11708
+ {
11709
+ "internalType": "uint256",
11710
+ "name": "tcbId",
11711
+ "type": "uint256"
11712
+ }
11713
+ ],
11714
+ "name": "addLockedTcb",
11715
+ "outputs": [],
11716
+ "stateMutability": "nonpayable",
11717
+ "type": "function"
11718
+ },
11719
+ {
11720
+ "inputs": [
11721
+ {
11722
+ "internalType": "address",
11723
+ "name": "authority",
11724
+ "type": "address"
11725
+ },
11726
+ {
11727
+ "internalType": "uint256",
11728
+ "name": "orderId",
11729
+ "type": "uint256"
11730
+ }
11731
+ ],
11732
+ "name": "removeLockedOrder",
11733
+ "outputs": [],
11734
+ "stateMutability": "nonpayable",
11735
+ "type": "function"
11736
+ },
11737
+ {
11738
+ "inputs": [
11739
+ {
11740
+ "internalType": "address",
11741
+ "name": "authority",
11742
+ "type": "address"
11743
+ },
11744
+ {
11745
+ "internalType": "uint256",
11746
+ "name": "tcbId",
11747
+ "type": "uint256"
11748
+ }
11749
+ ],
11750
+ "name": "removeLockedTcb",
11751
+ "outputs": [],
11752
+ "stateMutability": "nonpayable",
11753
+ "type": "function"
11754
+ },
11283
11755
  {
11284
11756
  "inputs": [
11285
11757
  {
@@ -11977,25 +12449,6 @@
11977
12449
  "stateMutability": "nonpayable",
11978
12450
  "type": "function"
11979
12451
  },
11980
- {
11981
- "inputs": [
11982
- {
11983
- "internalType": "uint256",
11984
- "name": "offerId",
11985
- "type": "uint256"
11986
- }
11987
- ],
11988
- "name": "getTeeOfferLastTcbReward",
11989
- "outputs": [
11990
- {
11991
- "internalType": "uint256",
11992
- "name": "",
11993
- "type": "uint256"
11994
- }
11995
- ],
11996
- "stateMutability": "view",
11997
- "type": "function"
11998
- },
11999
12452
  {
12000
12453
  "inputs": [
12001
12454
  {