@super-protocol/sdk-js 0.15.0 → 0.15.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.
- package/build/TIIGenerator.js +129 -239
- package/build/connectors/BaseConnector.js +17 -47
- package/build/connectors/BlockchainConnector.js +222 -348
- package/build/connectors/BlockchainEventsListener.js +38 -92
- package/build/contracts/app.json +466 -35
- package/build/crypto/Crypto.js +63 -135
- package/build/crypto/index.js +1 -1
- package/build/crypto/nodejs/AES.js +62 -119
- package/build/crypto/nodejs/ARIA.js +61 -118
- package/build/crypto/nodejs/ECIES.js +51 -87
- package/build/crypto/nodejs/NativeCrypto.js +64 -118
- package/build/crypto/nodejs/RSA-Hybrid.js +54 -113
- package/build/index.d.ts +5 -0
- package/build/index.js +14 -2
- package/build/logger.d.ts +3 -1
- package/build/logger.js +2 -2
- package/build/models/EtlModel.js +65 -114
- package/build/models/Offer.js +227 -462
- package/build/models/Order.d.ts +4 -0
- package/build/models/Order.js +326 -559
- package/build/models/Provider.d.ts +2 -0
- package/build/models/Provider.js +74 -153
- package/build/models/TCB.js +67 -171
- package/build/models/TeeOffer.d.ts +1 -0
- package/build/models/TeeOffer.js +389 -731
- package/build/proto/Compression.js +20 -21
- package/build/proto/TRI.js +46 -50
- package/build/proto/TeeProperties.js +60 -66
- package/build/providers/storage/ChunksDownloadDecorator.js +125 -235
- package/build/providers/storage/S3StorageProvider.js +173 -298
- package/build/providers/storage/StorageAdapter.d.ts +60 -0
- package/build/providers/storage/StorageAdapter.js +317 -0
- package/build/providers/storage/StorageContentWriter.d.ts +39 -0
- package/build/providers/storage/StorageContentWriter.js +181 -0
- package/build/providers/storage/StorageKeyValueAdapter.d.ts +20 -0
- package/build/providers/storage/StorageKeyValueAdapter.js +152 -0
- package/build/providers/storage/StorageMetadataReader.d.ts +19 -0
- package/build/providers/storage/StorageMetadataReader.js +65 -0
- package/build/providers/storage/StorjAdapter.d.ts +19 -0
- package/build/providers/storage/StorjAdapter.js +62 -0
- package/build/providers/storage/StorjStorageProvider.js +138 -315
- package/build/providers/storage/getStorageProvider.js +7 -7
- package/build/providers/storage/types.d.ts +7 -0
- package/build/providers/storage/types.js +2 -0
- package/build/staticModels/ActiveOffers.js +32 -100
- package/build/staticModels/ActiveOrders.js +42 -120
- package/build/staticModels/BaseStaticModel.js +7 -10
- package/build/staticModels/Consensus.d.ts +4 -1
- package/build/staticModels/Consensus.js +164 -220
- package/build/staticModels/Deposits.js +109 -201
- package/build/staticModels/Marks.js +21 -82
- package/build/staticModels/ModelPackager.js +34 -84
- package/build/staticModels/Offers.js +140 -266
- package/build/staticModels/Orders.d.ts +1 -0
- package/build/staticModels/Orders.js +286 -429
- package/build/staticModels/ProviderRegistry.js +114 -225
- package/build/staticModels/Superpro.js +17 -63
- package/build/staticModels/SuperproToken.js +90 -169
- package/build/staticModels/TeeOffers.js +220 -416
- package/build/store.js +2 -2
- package/build/types/HardwareInfo.js +2 -2
- package/build/types/Order.js +4 -4
- package/build/types/Provider.js +1 -1
- package/build/types/TeeOfferInfo.js +1 -1
- package/build/types/TeeOfferOption.js +2 -2
- package/build/types/TeeOfferSlot.js +2 -2
- package/build/types/ValueOfferSlot.js +3 -3
- package/build/utils/Monitoring.js +24 -28
- package/build/utils/NonceTracker.js +56 -121
- package/build/utils/PubSub.d.ts +9 -0
- package/build/utils/PubSub.js +36 -0
- package/build/utils/TxManager.js +121 -215
- package/build/utils/compressors/GzipCompressor.js +13 -50
- package/build/utils/compressors/UncompressedCompressor.js +10 -13
- package/build/utils/helpers/tryWithInterval.js +34 -78
- package/build/utils/resourceLoaders/BaseResourceLoader.js +26 -78
- package/build/utils/resourceLoaders/StorageProviderLoader.js +33 -97
- package/build/utils/resourceLoaders/UrlResourceLoader.js +29 -93
- package/build/utils/resourceLoaders/getResourceLoader.js +6 -6
- package/build/utils.js +60 -105
- package/package.json +4 -1
package/build/contracts/app.json
CHANGED
|
@@ -1648,7 +1648,7 @@
|
|
|
1648
1648
|
},
|
|
1649
1649
|
{
|
|
1650
1650
|
"internalType": "bool",
|
|
1651
|
-
"name": "
|
|
1651
|
+
"name": "assignedToEpoch_DEPRECATED",
|
|
1652
1652
|
"type": "bool"
|
|
1653
1653
|
},
|
|
1654
1654
|
{
|
|
@@ -2224,6 +2224,29 @@
|
|
|
2224
2224
|
"stateMutability": "nonpayable",
|
|
2225
2225
|
"type": "function"
|
|
2226
2226
|
},
|
|
2227
|
+
{
|
|
2228
|
+
"inputs": [
|
|
2229
|
+
{
|
|
2230
|
+
"internalType": "address",
|
|
2231
|
+
"name": "funder",
|
|
2232
|
+
"type": "address"
|
|
2233
|
+
},
|
|
2234
|
+
{
|
|
2235
|
+
"internalType": "address",
|
|
2236
|
+
"name": "beneficiary",
|
|
2237
|
+
"type": "address"
|
|
2238
|
+
},
|
|
2239
|
+
{
|
|
2240
|
+
"internalType": "uint256",
|
|
2241
|
+
"name": "amount",
|
|
2242
|
+
"type": "uint256"
|
|
2243
|
+
}
|
|
2244
|
+
],
|
|
2245
|
+
"name": "replenishForByApp",
|
|
2246
|
+
"outputs": [],
|
|
2247
|
+
"stateMutability": "nonpayable",
|
|
2248
|
+
"type": "function"
|
|
2249
|
+
},
|
|
2227
2250
|
{
|
|
2228
2251
|
"inputs": [
|
|
2229
2252
|
{
|
|
@@ -4730,6 +4753,30 @@
|
|
|
4730
4753
|
"name": "OrderProfitUnlocked",
|
|
4731
4754
|
"type": "event"
|
|
4732
4755
|
},
|
|
4756
|
+
{
|
|
4757
|
+
"inputs": [
|
|
4758
|
+
{
|
|
4759
|
+
"internalType": "uint256",
|
|
4760
|
+
"name": "orderId",
|
|
4761
|
+
"type": "uint256"
|
|
4762
|
+
}
|
|
4763
|
+
],
|
|
4764
|
+
"name": "isOrderProfitAvailable",
|
|
4765
|
+
"outputs": [
|
|
4766
|
+
{
|
|
4767
|
+
"internalType": "bool",
|
|
4768
|
+
"name": "available",
|
|
4769
|
+
"type": "bool"
|
|
4770
|
+
},
|
|
4771
|
+
{
|
|
4772
|
+
"internalType": "uint256",
|
|
4773
|
+
"name": "profit",
|
|
4774
|
+
"type": "uint256"
|
|
4775
|
+
}
|
|
4776
|
+
],
|
|
4777
|
+
"stateMutability": "view",
|
|
4778
|
+
"type": "function"
|
|
4779
|
+
},
|
|
4733
4780
|
{
|
|
4734
4781
|
"inputs": [
|
|
4735
4782
|
{
|
|
@@ -4797,6 +4844,25 @@
|
|
|
4797
4844
|
"stateMutability": "nonpayable",
|
|
4798
4845
|
"type": "function"
|
|
4799
4846
|
},
|
|
4847
|
+
{
|
|
4848
|
+
"inputs": [
|
|
4849
|
+
{
|
|
4850
|
+
"internalType": "uint256[]",
|
|
4851
|
+
"name": "orderIds",
|
|
4852
|
+
"type": "uint256[]"
|
|
4853
|
+
}
|
|
4854
|
+
],
|
|
4855
|
+
"name": "unlockProfitByList",
|
|
4856
|
+
"outputs": [
|
|
4857
|
+
{
|
|
4858
|
+
"internalType": "uint256",
|
|
4859
|
+
"name": "ulockedIndex",
|
|
4860
|
+
"type": "uint256"
|
|
4861
|
+
}
|
|
4862
|
+
],
|
|
4863
|
+
"stateMutability": "nonpayable",
|
|
4864
|
+
"type": "function"
|
|
4865
|
+
},
|
|
4800
4866
|
{
|
|
4801
4867
|
"anonymous": false,
|
|
4802
4868
|
"inputs": [
|
|
@@ -6047,6 +6113,24 @@
|
|
|
6047
6113
|
"stateMutability": "nonpayable",
|
|
6048
6114
|
"type": "function"
|
|
6049
6115
|
},
|
|
6116
|
+
{
|
|
6117
|
+
"inputs": [
|
|
6118
|
+
{
|
|
6119
|
+
"internalType": "address",
|
|
6120
|
+
"name": "providerAuth",
|
|
6121
|
+
"type": "address"
|
|
6122
|
+
},
|
|
6123
|
+
{
|
|
6124
|
+
"internalType": "uint256",
|
|
6125
|
+
"name": "amount",
|
|
6126
|
+
"type": "uint256"
|
|
6127
|
+
}
|
|
6128
|
+
],
|
|
6129
|
+
"name": "refillProviderSecurityDepoFor",
|
|
6130
|
+
"outputs": [],
|
|
6131
|
+
"stateMutability": "nonpayable",
|
|
6132
|
+
"type": "function"
|
|
6133
|
+
},
|
|
6050
6134
|
{
|
|
6051
6135
|
"inputs": [
|
|
6052
6136
|
{
|
|
@@ -6100,6 +6184,154 @@
|
|
|
6100
6184
|
"stateMutability": "nonpayable",
|
|
6101
6185
|
"type": "function"
|
|
6102
6186
|
},
|
|
6187
|
+
{
|
|
6188
|
+
"inputs": [
|
|
6189
|
+
{
|
|
6190
|
+
"internalType": "address",
|
|
6191
|
+
"name": "authority",
|
|
6192
|
+
"type": "address"
|
|
6193
|
+
},
|
|
6194
|
+
{
|
|
6195
|
+
"internalType": "uint256",
|
|
6196
|
+
"name": "orderId",
|
|
6197
|
+
"type": "uint256"
|
|
6198
|
+
}
|
|
6199
|
+
],
|
|
6200
|
+
"name": "addLockedOrder",
|
|
6201
|
+
"outputs": [],
|
|
6202
|
+
"stateMutability": "nonpayable",
|
|
6203
|
+
"type": "function"
|
|
6204
|
+
},
|
|
6205
|
+
{
|
|
6206
|
+
"inputs": [
|
|
6207
|
+
{
|
|
6208
|
+
"internalType": "address",
|
|
6209
|
+
"name": "authority",
|
|
6210
|
+
"type": "address"
|
|
6211
|
+
},
|
|
6212
|
+
{
|
|
6213
|
+
"internalType": "uint256",
|
|
6214
|
+
"name": "tcbId",
|
|
6215
|
+
"type": "uint256"
|
|
6216
|
+
}
|
|
6217
|
+
],
|
|
6218
|
+
"name": "addLockedTcb",
|
|
6219
|
+
"outputs": [],
|
|
6220
|
+
"stateMutability": "nonpayable",
|
|
6221
|
+
"type": "function"
|
|
6222
|
+
},
|
|
6223
|
+
{
|
|
6224
|
+
"inputs": [
|
|
6225
|
+
{
|
|
6226
|
+
"internalType": "uint256[]",
|
|
6227
|
+
"name": "orderIds",
|
|
6228
|
+
"type": "uint256[]"
|
|
6229
|
+
}
|
|
6230
|
+
],
|
|
6231
|
+
"name": "getAvaliableOrderRewardsAmount",
|
|
6232
|
+
"outputs": [
|
|
6233
|
+
{
|
|
6234
|
+
"internalType": "uint256",
|
|
6235
|
+
"name": "amount",
|
|
6236
|
+
"type": "uint256"
|
|
6237
|
+
}
|
|
6238
|
+
],
|
|
6239
|
+
"stateMutability": "view",
|
|
6240
|
+
"type": "function"
|
|
6241
|
+
},
|
|
6242
|
+
{
|
|
6243
|
+
"inputs": [
|
|
6244
|
+
{
|
|
6245
|
+
"internalType": "uint256[]",
|
|
6246
|
+
"name": "tcbIds",
|
|
6247
|
+
"type": "uint256[]"
|
|
6248
|
+
}
|
|
6249
|
+
],
|
|
6250
|
+
"name": "getAvaliableTcbRewardsAmount",
|
|
6251
|
+
"outputs": [
|
|
6252
|
+
{
|
|
6253
|
+
"internalType": "uint256",
|
|
6254
|
+
"name": "amount",
|
|
6255
|
+
"type": "uint256"
|
|
6256
|
+
}
|
|
6257
|
+
],
|
|
6258
|
+
"stateMutability": "view",
|
|
6259
|
+
"type": "function"
|
|
6260
|
+
},
|
|
6261
|
+
{
|
|
6262
|
+
"inputs": [
|
|
6263
|
+
{
|
|
6264
|
+
"internalType": "address",
|
|
6265
|
+
"name": "authority",
|
|
6266
|
+
"type": "address"
|
|
6267
|
+
}
|
|
6268
|
+
],
|
|
6269
|
+
"name": "getOrdersLockedProfitList",
|
|
6270
|
+
"outputs": [
|
|
6271
|
+
{
|
|
6272
|
+
"internalType": "uint256[]",
|
|
6273
|
+
"name": "",
|
|
6274
|
+
"type": "uint256[]"
|
|
6275
|
+
}
|
|
6276
|
+
],
|
|
6277
|
+
"stateMutability": "view",
|
|
6278
|
+
"type": "function"
|
|
6279
|
+
},
|
|
6280
|
+
{
|
|
6281
|
+
"inputs": [
|
|
6282
|
+
{
|
|
6283
|
+
"internalType": "address",
|
|
6284
|
+
"name": "authority",
|
|
6285
|
+
"type": "address"
|
|
6286
|
+
}
|
|
6287
|
+
],
|
|
6288
|
+
"name": "getTcbLockedProfitList",
|
|
6289
|
+
"outputs": [
|
|
6290
|
+
{
|
|
6291
|
+
"internalType": "uint256[]",
|
|
6292
|
+
"name": "",
|
|
6293
|
+
"type": "uint256[]"
|
|
6294
|
+
}
|
|
6295
|
+
],
|
|
6296
|
+
"stateMutability": "view",
|
|
6297
|
+
"type": "function"
|
|
6298
|
+
},
|
|
6299
|
+
{
|
|
6300
|
+
"inputs": [
|
|
6301
|
+
{
|
|
6302
|
+
"internalType": "address",
|
|
6303
|
+
"name": "authority",
|
|
6304
|
+
"type": "address"
|
|
6305
|
+
},
|
|
6306
|
+
{
|
|
6307
|
+
"internalType": "uint256",
|
|
6308
|
+
"name": "orderId",
|
|
6309
|
+
"type": "uint256"
|
|
6310
|
+
}
|
|
6311
|
+
],
|
|
6312
|
+
"name": "removeLockedOrder",
|
|
6313
|
+
"outputs": [],
|
|
6314
|
+
"stateMutability": "nonpayable",
|
|
6315
|
+
"type": "function"
|
|
6316
|
+
},
|
|
6317
|
+
{
|
|
6318
|
+
"inputs": [
|
|
6319
|
+
{
|
|
6320
|
+
"internalType": "address",
|
|
6321
|
+
"name": "authority",
|
|
6322
|
+
"type": "address"
|
|
6323
|
+
},
|
|
6324
|
+
{
|
|
6325
|
+
"internalType": "uint256",
|
|
6326
|
+
"name": "tcbId",
|
|
6327
|
+
"type": "uint256"
|
|
6328
|
+
}
|
|
6329
|
+
],
|
|
6330
|
+
"name": "removeLockedTcb",
|
|
6331
|
+
"outputs": [],
|
|
6332
|
+
"stateMutability": "nonpayable",
|
|
6333
|
+
"type": "function"
|
|
6334
|
+
},
|
|
6103
6335
|
{
|
|
6104
6336
|
"inputs": [
|
|
6105
6337
|
{
|
|
@@ -6835,6 +7067,25 @@
|
|
|
6835
7067
|
"stateMutability": "view",
|
|
6836
7068
|
"type": "function"
|
|
6837
7069
|
},
|
|
7070
|
+
{
|
|
7071
|
+
"inputs": [
|
|
7072
|
+
{
|
|
7073
|
+
"internalType": "uint256",
|
|
7074
|
+
"name": "teeOfferId",
|
|
7075
|
+
"type": "uint256"
|
|
7076
|
+
}
|
|
7077
|
+
],
|
|
7078
|
+
"name": "getTeeOfferOptionsCount",
|
|
7079
|
+
"outputs": [
|
|
7080
|
+
{
|
|
7081
|
+
"internalType": "uint256",
|
|
7082
|
+
"name": "",
|
|
7083
|
+
"type": "uint256"
|
|
7084
|
+
}
|
|
7085
|
+
],
|
|
7086
|
+
"stateMutability": "view",
|
|
7087
|
+
"type": "function"
|
|
7088
|
+
},
|
|
6838
7089
|
{
|
|
6839
7090
|
"inputs": [
|
|
6840
7091
|
{
|
|
@@ -7376,6 +7627,25 @@
|
|
|
7376
7627
|
"stateMutability": "nonpayable",
|
|
7377
7628
|
"type": "function"
|
|
7378
7629
|
},
|
|
7630
|
+
{
|
|
7631
|
+
"anonymous": false,
|
|
7632
|
+
"inputs": [
|
|
7633
|
+
{
|
|
7634
|
+
"indexed": false,
|
|
7635
|
+
"internalType": "uint256",
|
|
7636
|
+
"name": "tcbId",
|
|
7637
|
+
"type": "uint256"
|
|
7638
|
+
},
|
|
7639
|
+
{
|
|
7640
|
+
"indexed": false,
|
|
7641
|
+
"internalType": "uint256",
|
|
7642
|
+
"name": "rewards",
|
|
7643
|
+
"type": "uint256"
|
|
7644
|
+
}
|
|
7645
|
+
],
|
|
7646
|
+
"name": "TcbRewardUnlocked",
|
|
7647
|
+
"type": "event"
|
|
7648
|
+
},
|
|
7379
7649
|
{
|
|
7380
7650
|
"anonymous": false,
|
|
7381
7651
|
"inputs": [
|
|
@@ -7420,6 +7690,19 @@
|
|
|
7420
7690
|
"name": "WarningMessage",
|
|
7421
7691
|
"type": "event"
|
|
7422
7692
|
},
|
|
7693
|
+
{
|
|
7694
|
+
"inputs": [
|
|
7695
|
+
{
|
|
7696
|
+
"internalType": "uint256",
|
|
7697
|
+
"name": "tcbId",
|
|
7698
|
+
"type": "uint256"
|
|
7699
|
+
}
|
|
7700
|
+
],
|
|
7701
|
+
"name": "_unlockTcbReward",
|
|
7702
|
+
"outputs": [],
|
|
7703
|
+
"stateMutability": "nonpayable",
|
|
7704
|
+
"type": "function"
|
|
7705
|
+
},
|
|
7423
7706
|
{
|
|
7424
7707
|
"inputs": [
|
|
7425
7708
|
{
|
|
@@ -7515,7 +7798,7 @@
|
|
|
7515
7798
|
"type": "uint256"
|
|
7516
7799
|
}
|
|
7517
7800
|
],
|
|
7518
|
-
"name": "
|
|
7801
|
+
"name": "getTeeOfferViolationRate",
|
|
7519
7802
|
"outputs": [
|
|
7520
7803
|
{
|
|
7521
7804
|
"internalType": "uint256",
|
|
@@ -7534,7 +7817,7 @@
|
|
|
7534
7817
|
"type": "uint256"
|
|
7535
7818
|
}
|
|
7536
7819
|
],
|
|
7537
|
-
"name": "
|
|
7820
|
+
"name": "getTeeVerifiedBenchmark",
|
|
7538
7821
|
"outputs": [
|
|
7539
7822
|
{
|
|
7540
7823
|
"internalType": "uint256",
|
|
@@ -7553,28 +7836,33 @@
|
|
|
7553
7836
|
"type": "uint256"
|
|
7554
7837
|
}
|
|
7555
7838
|
],
|
|
7556
|
-
"name": "
|
|
7557
|
-
"outputs": [
|
|
7839
|
+
"name": "incrTeeOfferViolationRate",
|
|
7840
|
+
"outputs": [],
|
|
7841
|
+
"stateMutability": "nonpayable",
|
|
7842
|
+
"type": "function"
|
|
7843
|
+
},
|
|
7844
|
+
{
|
|
7845
|
+
"inputs": [
|
|
7558
7846
|
{
|
|
7559
7847
|
"internalType": "uint256",
|
|
7560
|
-
"name": "",
|
|
7848
|
+
"name": "tcbId",
|
|
7561
7849
|
"type": "uint256"
|
|
7562
7850
|
}
|
|
7563
7851
|
],
|
|
7564
|
-
"
|
|
7565
|
-
"
|
|
7566
|
-
|
|
7567
|
-
|
|
7568
|
-
|
|
7852
|
+
"name": "isTcbProfitAvailable",
|
|
7853
|
+
"outputs": [
|
|
7854
|
+
{
|
|
7855
|
+
"internalType": "bool",
|
|
7856
|
+
"name": "available",
|
|
7857
|
+
"type": "bool"
|
|
7858
|
+
},
|
|
7569
7859
|
{
|
|
7570
7860
|
"internalType": "uint256",
|
|
7571
|
-
"name": "
|
|
7861
|
+
"name": "amount",
|
|
7572
7862
|
"type": "uint256"
|
|
7573
7863
|
}
|
|
7574
7864
|
],
|
|
7575
|
-
"
|
|
7576
|
-
"outputs": [],
|
|
7577
|
-
"stateMutability": "nonpayable",
|
|
7865
|
+
"stateMutability": "view",
|
|
7578
7866
|
"type": "function"
|
|
7579
7867
|
},
|
|
7580
7868
|
{
|
|
@@ -7631,6 +7919,25 @@
|
|
|
7631
7919
|
"stateMutability": "nonpayable",
|
|
7632
7920
|
"type": "function"
|
|
7633
7921
|
},
|
|
7922
|
+
{
|
|
7923
|
+
"inputs": [
|
|
7924
|
+
{
|
|
7925
|
+
"internalType": "uint256[]",
|
|
7926
|
+
"name": "tcbIds",
|
|
7927
|
+
"type": "uint256[]"
|
|
7928
|
+
}
|
|
7929
|
+
],
|
|
7930
|
+
"name": "unlockTcbRewardByList",
|
|
7931
|
+
"outputs": [
|
|
7932
|
+
{
|
|
7933
|
+
"internalType": "uint256",
|
|
7934
|
+
"name": "ulockedIndex",
|
|
7935
|
+
"type": "uint256"
|
|
7936
|
+
}
|
|
7937
|
+
],
|
|
7938
|
+
"stateMutability": "nonpayable",
|
|
7939
|
+
"type": "function"
|
|
7940
|
+
},
|
|
7634
7941
|
{
|
|
7635
7942
|
"inputs": [
|
|
7636
7943
|
{
|
|
@@ -9210,7 +9517,7 @@
|
|
|
9210
9517
|
},
|
|
9211
9518
|
{
|
|
9212
9519
|
"internalType": "bool",
|
|
9213
|
-
"name": "
|
|
9520
|
+
"name": "assignedToEpoch_DEPRECATED",
|
|
9214
9521
|
"type": "bool"
|
|
9215
9522
|
},
|
|
9216
9523
|
{
|
|
@@ -9280,6 +9587,30 @@
|
|
|
9280
9587
|
"stateMutability": "view",
|
|
9281
9588
|
"type": "function"
|
|
9282
9589
|
},
|
|
9590
|
+
{
|
|
9591
|
+
"inputs": [
|
|
9592
|
+
{
|
|
9593
|
+
"internalType": "uint256",
|
|
9594
|
+
"name": "tcbId",
|
|
9595
|
+
"type": "uint256"
|
|
9596
|
+
}
|
|
9597
|
+
],
|
|
9598
|
+
"name": "isTcbProfitAvailable",
|
|
9599
|
+
"outputs": [
|
|
9600
|
+
{
|
|
9601
|
+
"internalType": "bool",
|
|
9602
|
+
"name": "",
|
|
9603
|
+
"type": "bool"
|
|
9604
|
+
},
|
|
9605
|
+
{
|
|
9606
|
+
"internalType": "uint256",
|
|
9607
|
+
"name": "",
|
|
9608
|
+
"type": "uint256"
|
|
9609
|
+
}
|
|
9610
|
+
],
|
|
9611
|
+
"stateMutability": "view",
|
|
9612
|
+
"type": "function"
|
|
9613
|
+
},
|
|
9283
9614
|
{
|
|
9284
9615
|
"inputs": [
|
|
9285
9616
|
{
|
|
@@ -9530,6 +9861,29 @@
|
|
|
9530
9861
|
"stateMutability": "nonpayable",
|
|
9531
9862
|
"type": "function"
|
|
9532
9863
|
},
|
|
9864
|
+
{
|
|
9865
|
+
"inputs": [
|
|
9866
|
+
{
|
|
9867
|
+
"internalType": "address",
|
|
9868
|
+
"name": "funder",
|
|
9869
|
+
"type": "address"
|
|
9870
|
+
},
|
|
9871
|
+
{
|
|
9872
|
+
"internalType": "address",
|
|
9873
|
+
"name": "depositOwner",
|
|
9874
|
+
"type": "address"
|
|
9875
|
+
},
|
|
9876
|
+
{
|
|
9877
|
+
"internalType": "uint256",
|
|
9878
|
+
"name": "amount",
|
|
9879
|
+
"type": "uint256"
|
|
9880
|
+
}
|
|
9881
|
+
],
|
|
9882
|
+
"name": "replenishForByApp",
|
|
9883
|
+
"outputs": [],
|
|
9884
|
+
"stateMutability": "nonpayable",
|
|
9885
|
+
"type": "function"
|
|
9886
|
+
},
|
|
9533
9887
|
{
|
|
9534
9888
|
"inputs": [
|
|
9535
9889
|
{
|
|
@@ -11028,6 +11382,30 @@
|
|
|
11028
11382
|
"stateMutability": "view",
|
|
11029
11383
|
"type": "function"
|
|
11030
11384
|
},
|
|
11385
|
+
{
|
|
11386
|
+
"inputs": [
|
|
11387
|
+
{
|
|
11388
|
+
"internalType": "uint256",
|
|
11389
|
+
"name": "",
|
|
11390
|
+
"type": "uint256"
|
|
11391
|
+
}
|
|
11392
|
+
],
|
|
11393
|
+
"name": "isOrderProfitAvailable",
|
|
11394
|
+
"outputs": [
|
|
11395
|
+
{
|
|
11396
|
+
"internalType": "bool",
|
|
11397
|
+
"name": "",
|
|
11398
|
+
"type": "bool"
|
|
11399
|
+
},
|
|
11400
|
+
{
|
|
11401
|
+
"internalType": "uint256",
|
|
11402
|
+
"name": "",
|
|
11403
|
+
"type": "uint256"
|
|
11404
|
+
}
|
|
11405
|
+
],
|
|
11406
|
+
"stateMutability": "view",
|
|
11407
|
+
"type": "function"
|
|
11408
|
+
},
|
|
11031
11409
|
{
|
|
11032
11410
|
"inputs": [
|
|
11033
11411
|
{
|
|
@@ -11192,6 +11570,78 @@
|
|
|
11192
11570
|
"stateMutability": "view",
|
|
11193
11571
|
"type": "function"
|
|
11194
11572
|
},
|
|
11573
|
+
{
|
|
11574
|
+
"inputs": [
|
|
11575
|
+
{
|
|
11576
|
+
"internalType": "address",
|
|
11577
|
+
"name": "authority",
|
|
11578
|
+
"type": "address"
|
|
11579
|
+
},
|
|
11580
|
+
{
|
|
11581
|
+
"internalType": "uint256",
|
|
11582
|
+
"name": "orderId",
|
|
11583
|
+
"type": "uint256"
|
|
11584
|
+
}
|
|
11585
|
+
],
|
|
11586
|
+
"name": "addLockedOrder",
|
|
11587
|
+
"outputs": [],
|
|
11588
|
+
"stateMutability": "nonpayable",
|
|
11589
|
+
"type": "function"
|
|
11590
|
+
},
|
|
11591
|
+
{
|
|
11592
|
+
"inputs": [
|
|
11593
|
+
{
|
|
11594
|
+
"internalType": "address",
|
|
11595
|
+
"name": "authority",
|
|
11596
|
+
"type": "address"
|
|
11597
|
+
},
|
|
11598
|
+
{
|
|
11599
|
+
"internalType": "uint256",
|
|
11600
|
+
"name": "tcbId",
|
|
11601
|
+
"type": "uint256"
|
|
11602
|
+
}
|
|
11603
|
+
],
|
|
11604
|
+
"name": "addLockedTcb",
|
|
11605
|
+
"outputs": [],
|
|
11606
|
+
"stateMutability": "nonpayable",
|
|
11607
|
+
"type": "function"
|
|
11608
|
+
},
|
|
11609
|
+
{
|
|
11610
|
+
"inputs": [
|
|
11611
|
+
{
|
|
11612
|
+
"internalType": "address",
|
|
11613
|
+
"name": "authority",
|
|
11614
|
+
"type": "address"
|
|
11615
|
+
},
|
|
11616
|
+
{
|
|
11617
|
+
"internalType": "uint256",
|
|
11618
|
+
"name": "orderId",
|
|
11619
|
+
"type": "uint256"
|
|
11620
|
+
}
|
|
11621
|
+
],
|
|
11622
|
+
"name": "removeLockedOrder",
|
|
11623
|
+
"outputs": [],
|
|
11624
|
+
"stateMutability": "nonpayable",
|
|
11625
|
+
"type": "function"
|
|
11626
|
+
},
|
|
11627
|
+
{
|
|
11628
|
+
"inputs": [
|
|
11629
|
+
{
|
|
11630
|
+
"internalType": "address",
|
|
11631
|
+
"name": "authority",
|
|
11632
|
+
"type": "address"
|
|
11633
|
+
},
|
|
11634
|
+
{
|
|
11635
|
+
"internalType": "uint256",
|
|
11636
|
+
"name": "tcbId",
|
|
11637
|
+
"type": "uint256"
|
|
11638
|
+
}
|
|
11639
|
+
],
|
|
11640
|
+
"name": "removeLockedTcb",
|
|
11641
|
+
"outputs": [],
|
|
11642
|
+
"stateMutability": "nonpayable",
|
|
11643
|
+
"type": "function"
|
|
11644
|
+
},
|
|
11195
11645
|
{
|
|
11196
11646
|
"inputs": [
|
|
11197
11647
|
{
|
|
@@ -11889,25 +12339,6 @@
|
|
|
11889
12339
|
"stateMutability": "nonpayable",
|
|
11890
12340
|
"type": "function"
|
|
11891
12341
|
},
|
|
11892
|
-
{
|
|
11893
|
-
"inputs": [
|
|
11894
|
-
{
|
|
11895
|
-
"internalType": "uint256",
|
|
11896
|
-
"name": "offerId",
|
|
11897
|
-
"type": "uint256"
|
|
11898
|
-
}
|
|
11899
|
-
],
|
|
11900
|
-
"name": "getTeeOfferLastTcbReward",
|
|
11901
|
-
"outputs": [
|
|
11902
|
-
{
|
|
11903
|
-
"internalType": "uint256",
|
|
11904
|
-
"name": "",
|
|
11905
|
-
"type": "uint256"
|
|
11906
|
-
}
|
|
11907
|
-
],
|
|
11908
|
-
"stateMutability": "view",
|
|
11909
|
-
"type": "function"
|
|
11910
|
-
},
|
|
11911
12342
|
{
|
|
11912
12343
|
"inputs": [
|
|
11913
12344
|
{
|