@super-protocol/sdk-js 2.0.2-beta.0 → 2.0.2-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.
- package/build/contracts/abi.d.ts +164 -182
- package/build/contracts/abi.js +201 -226
- package/build/models/TCB.d.ts +7 -5
- package/build/models/TCB.js +23 -24
- package/build/models/TeeOffer.js +15 -11
- package/build/providers/storage/S3StorageProvider.d.ts +1 -0
- package/build/providers/storage/S3StorageProvider.js +55 -60
- package/build/staticModels/Consensus.d.ts +1 -7
- package/build/staticModels/Consensus.js +1 -31
- package/build/types/Consensus.d.ts +14 -14
- package/build/types/Consensus.js +1 -1
- package/package.json +5 -5
package/build/contracts/abi.d.ts
CHANGED
|
@@ -1187,21 +1187,9 @@ export declare const abi: readonly [{
|
|
|
1187
1187
|
readonly name: "getTcbById";
|
|
1188
1188
|
readonly outputs: readonly [{
|
|
1189
1189
|
readonly components: readonly [{
|
|
1190
|
-
readonly internalType: "
|
|
1191
|
-
readonly name: "
|
|
1192
|
-
readonly type: "
|
|
1193
|
-
}, {
|
|
1194
|
-
readonly internalType: "uint256";
|
|
1195
|
-
readonly name: "utilityDataId";
|
|
1196
|
-
readonly type: "uint256";
|
|
1197
|
-
}, {
|
|
1198
|
-
readonly internalType: "enum TcbStatus";
|
|
1199
|
-
readonly name: "status";
|
|
1200
|
-
readonly type: "uint8";
|
|
1201
|
-
}, {
|
|
1202
|
-
readonly internalType: "uint256";
|
|
1203
|
-
readonly name: "previousTcb";
|
|
1204
|
-
readonly type: "uint256";
|
|
1190
|
+
readonly internalType: "string";
|
|
1191
|
+
readonly name: "quote";
|
|
1192
|
+
readonly type: "string";
|
|
1205
1193
|
}, {
|
|
1206
1194
|
readonly internalType: "uint256";
|
|
1207
1195
|
readonly name: "timeInitialized";
|
|
@@ -1211,37 +1199,83 @@ export declare const abi: readonly [{
|
|
|
1211
1199
|
readonly name: "timeAdded";
|
|
1212
1200
|
readonly type: "uint256";
|
|
1213
1201
|
}, {
|
|
1214
|
-
readonly
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
readonly
|
|
1232
|
-
readonly
|
|
1233
|
-
|
|
1234
|
-
readonly internalType: "bool";
|
|
1235
|
-
readonly name: "suspiciousBlocksTaken";
|
|
1236
|
-
readonly type: "bool";
|
|
1202
|
+
readonly components: readonly [{
|
|
1203
|
+
readonly internalType: "uint256";
|
|
1204
|
+
readonly name: "teeOfferId";
|
|
1205
|
+
readonly type: "uint256";
|
|
1206
|
+
}, {
|
|
1207
|
+
readonly internalType: "bytes32";
|
|
1208
|
+
readonly name: "deviceID";
|
|
1209
|
+
readonly type: "bytes32";
|
|
1210
|
+
}, {
|
|
1211
|
+
readonly internalType: "uint256";
|
|
1212
|
+
readonly name: "benchmark";
|
|
1213
|
+
readonly type: "uint256";
|
|
1214
|
+
}, {
|
|
1215
|
+
readonly internalType: "string";
|
|
1216
|
+
readonly name: "properties";
|
|
1217
|
+
readonly type: "string";
|
|
1218
|
+
}];
|
|
1219
|
+
readonly internalType: "struct TcbPublicData";
|
|
1220
|
+
readonly name: "publicData";
|
|
1221
|
+
readonly type: "tuple";
|
|
1237
1222
|
}, {
|
|
1238
|
-
readonly
|
|
1239
|
-
|
|
1240
|
-
|
|
1223
|
+
readonly components: readonly [{
|
|
1224
|
+
readonly internalType: "uint256[]";
|
|
1225
|
+
readonly name: "checkingBlocks";
|
|
1226
|
+
readonly type: "uint256[]";
|
|
1227
|
+
}, {
|
|
1228
|
+
readonly internalType: "enum TcbVerifiedStatus[]";
|
|
1229
|
+
readonly name: "checkingBlockMarks";
|
|
1230
|
+
readonly type: "uint8[]";
|
|
1231
|
+
}, {
|
|
1232
|
+
readonly internalType: "uint256";
|
|
1233
|
+
readonly name: "lastBlocksTakenAmount";
|
|
1234
|
+
readonly type: "uint256";
|
|
1235
|
+
}, {
|
|
1236
|
+
readonly internalType: "uint256";
|
|
1237
|
+
readonly name: "suspiciousBlocksTakenAmount";
|
|
1238
|
+
readonly type: "uint256";
|
|
1239
|
+
}, {
|
|
1240
|
+
readonly internalType: "uint16";
|
|
1241
|
+
readonly name: "negative";
|
|
1242
|
+
readonly type: "uint16";
|
|
1243
|
+
}, {
|
|
1244
|
+
readonly internalType: "uint16";
|
|
1245
|
+
readonly name: "positive";
|
|
1246
|
+
readonly type: "uint16";
|
|
1247
|
+
}, {
|
|
1248
|
+
readonly internalType: "uint256";
|
|
1249
|
+
readonly name: "previousTcb";
|
|
1250
|
+
readonly type: "uint256";
|
|
1251
|
+
}, {
|
|
1252
|
+
readonly internalType: "bool";
|
|
1253
|
+
readonly name: "lastBlocksTaken";
|
|
1254
|
+
readonly type: "bool";
|
|
1255
|
+
}, {
|
|
1256
|
+
readonly internalType: "bool";
|
|
1257
|
+
readonly name: "suspiciousBlocksTaken";
|
|
1258
|
+
readonly type: "bool";
|
|
1259
|
+
}, {
|
|
1260
|
+
readonly internalType: "bool";
|
|
1261
|
+
readonly name: "assignedToEpoch_DEPRECATED";
|
|
1262
|
+
readonly type: "bool";
|
|
1263
|
+
}, {
|
|
1264
|
+
readonly internalType: "bool";
|
|
1265
|
+
readonly name: "checked";
|
|
1266
|
+
readonly type: "bool";
|
|
1267
|
+
}, {
|
|
1268
|
+
readonly internalType: "bool";
|
|
1269
|
+
readonly name: "rewardClaimed";
|
|
1270
|
+
readonly type: "bool";
|
|
1271
|
+
}];
|
|
1272
|
+
readonly internalType: "struct TcbUtilityData";
|
|
1273
|
+
readonly name: "utilData";
|
|
1274
|
+
readonly type: "tuple";
|
|
1241
1275
|
}, {
|
|
1242
|
-
readonly internalType: "
|
|
1243
|
-
readonly name: "
|
|
1244
|
-
readonly type: "
|
|
1276
|
+
readonly internalType: "enum TcbStatus";
|
|
1277
|
+
readonly name: "status";
|
|
1278
|
+
readonly type: "uint8";
|
|
1245
1279
|
}];
|
|
1246
1280
|
readonly internalType: "struct Tcb";
|
|
1247
1281
|
readonly name: "";
|
|
@@ -1263,68 +1297,6 @@ export declare const abi: readonly [{
|
|
|
1263
1297
|
}];
|
|
1264
1298
|
readonly stateMutability: "view";
|
|
1265
1299
|
readonly type: "function";
|
|
1266
|
-
}, {
|
|
1267
|
-
readonly inputs: readonly [{
|
|
1268
|
-
readonly internalType: "uint256[]";
|
|
1269
|
-
readonly name: "tcbIds";
|
|
1270
|
-
readonly type: "uint256[]";
|
|
1271
|
-
}];
|
|
1272
|
-
readonly name: "getTcbsPublicData";
|
|
1273
|
-
readonly outputs: readonly [{
|
|
1274
|
-
readonly components: readonly [{
|
|
1275
|
-
readonly internalType: "uint256[]";
|
|
1276
|
-
readonly name: "checkingTcbIds";
|
|
1277
|
-
readonly type: "uint256[]";
|
|
1278
|
-
}, {
|
|
1279
|
-
readonly internalType: "enum TcbVerifiedStatus[]";
|
|
1280
|
-
readonly name: "checkingTcbMarks";
|
|
1281
|
-
readonly type: "uint8[]";
|
|
1282
|
-
}, {
|
|
1283
|
-
readonly internalType: "bytes32";
|
|
1284
|
-
readonly name: "deviceId";
|
|
1285
|
-
readonly type: "bytes32";
|
|
1286
|
-
}, {
|
|
1287
|
-
readonly internalType: "uint256";
|
|
1288
|
-
readonly name: "benchmark";
|
|
1289
|
-
readonly type: "uint256";
|
|
1290
|
-
}, {
|
|
1291
|
-
readonly internalType: "string";
|
|
1292
|
-
readonly name: "properties";
|
|
1293
|
-
readonly type: "string";
|
|
1294
|
-
}];
|
|
1295
|
-
readonly internalType: "struct TcbPublicData[]";
|
|
1296
|
-
readonly name: "";
|
|
1297
|
-
readonly type: "tuple[]";
|
|
1298
|
-
}];
|
|
1299
|
-
readonly stateMutability: "view";
|
|
1300
|
-
readonly type: "function";
|
|
1301
|
-
}, {
|
|
1302
|
-
readonly inputs: readonly [{
|
|
1303
|
-
readonly internalType: "uint256[]";
|
|
1304
|
-
readonly name: "tcbIds";
|
|
1305
|
-
readonly type: "uint256[]";
|
|
1306
|
-
}];
|
|
1307
|
-
readonly name: "getTcbsUtilityData";
|
|
1308
|
-
readonly outputs: readonly [{
|
|
1309
|
-
readonly components: readonly [{
|
|
1310
|
-
readonly internalType: "uint256";
|
|
1311
|
-
readonly name: "teeOfferId";
|
|
1312
|
-
readonly type: "uint256";
|
|
1313
|
-
}, {
|
|
1314
|
-
readonly internalType: "string";
|
|
1315
|
-
readonly name: "pubKey";
|
|
1316
|
-
readonly type: "string";
|
|
1317
|
-
}, {
|
|
1318
|
-
readonly internalType: "string";
|
|
1319
|
-
readonly name: "quote";
|
|
1320
|
-
readonly type: "string";
|
|
1321
|
-
}];
|
|
1322
|
-
readonly internalType: "struct TcbUtilityData[]";
|
|
1323
|
-
readonly name: "";
|
|
1324
|
-
readonly type: "tuple[]";
|
|
1325
|
-
}];
|
|
1326
|
-
readonly stateMutability: "view";
|
|
1327
|
-
readonly type: "function";
|
|
1328
1300
|
}, {
|
|
1329
1301
|
readonly inputs: readonly [{
|
|
1330
1302
|
readonly internalType: "uint256";
|
|
@@ -1404,16 +1376,12 @@ export declare const abi: readonly [{
|
|
|
1404
1376
|
readonly type: "string";
|
|
1405
1377
|
}, {
|
|
1406
1378
|
readonly internalType: "bytes32";
|
|
1407
|
-
readonly name: "
|
|
1379
|
+
readonly name: "deviceID";
|
|
1408
1380
|
readonly type: "bytes32";
|
|
1409
1381
|
}, {
|
|
1410
1382
|
readonly internalType: "string";
|
|
1411
1383
|
readonly name: "quote";
|
|
1412
1384
|
readonly type: "string";
|
|
1413
|
-
}, {
|
|
1414
|
-
readonly internalType: "string";
|
|
1415
|
-
readonly name: "pubKey";
|
|
1416
|
-
readonly type: "string";
|
|
1417
1385
|
}];
|
|
1418
1386
|
readonly name: "setTcbData";
|
|
1419
1387
|
readonly outputs: readonly [];
|
|
@@ -5944,7 +5912,7 @@ export declare const abi: readonly [{
|
|
|
5944
5912
|
readonly type: "uint256";
|
|
5945
5913
|
}, {
|
|
5946
5914
|
readonly internalType: "bytes32";
|
|
5947
|
-
readonly name: "
|
|
5915
|
+
readonly name: "deviceID";
|
|
5948
5916
|
readonly type: "bytes32";
|
|
5949
5917
|
}];
|
|
5950
5918
|
readonly name: "banTeeOffer";
|
|
@@ -5958,7 +5926,7 @@ export declare const abi: readonly [{
|
|
|
5958
5926
|
readonly type: "uint256";
|
|
5959
5927
|
}, {
|
|
5960
5928
|
readonly internalType: "bytes32";
|
|
5961
|
-
readonly name: "
|
|
5929
|
+
readonly name: "deviceID";
|
|
5962
5930
|
readonly type: "bytes32";
|
|
5963
5931
|
}];
|
|
5964
5932
|
readonly name: "blockTeeOffer";
|
|
@@ -5992,7 +5960,7 @@ export declare const abi: readonly [{
|
|
|
5992
5960
|
}, {
|
|
5993
5961
|
readonly inputs: readonly [{
|
|
5994
5962
|
readonly internalType: "bytes32";
|
|
5995
|
-
readonly name: "
|
|
5963
|
+
readonly name: "deviceID";
|
|
5996
5964
|
readonly type: "bytes32";
|
|
5997
5965
|
}];
|
|
5998
5966
|
readonly name: "getTeeOfferByDeviceId";
|
|
@@ -6084,7 +6052,7 @@ export declare const abi: readonly [{
|
|
|
6084
6052
|
readonly type: "uint256";
|
|
6085
6053
|
}, {
|
|
6086
6054
|
readonly internalType: "bytes32";
|
|
6087
|
-
readonly name: "
|
|
6055
|
+
readonly name: "deviceID";
|
|
6088
6056
|
readonly type: "bytes32";
|
|
6089
6057
|
}];
|
|
6090
6058
|
readonly name: "setTeeDeviceId";
|
|
@@ -6712,26 +6680,6 @@ export declare const abi: readonly [{
|
|
|
6712
6680
|
readonly outputs: readonly [];
|
|
6713
6681
|
readonly stateMutability: "nonpayable";
|
|
6714
6682
|
readonly type: "function";
|
|
6715
|
-
}, {
|
|
6716
|
-
readonly inputs: readonly [];
|
|
6717
|
-
readonly name: "deployer";
|
|
6718
|
-
readonly outputs: readonly [{
|
|
6719
|
-
readonly internalType: "address";
|
|
6720
|
-
readonly name: "";
|
|
6721
|
-
readonly type: "address";
|
|
6722
|
-
}];
|
|
6723
|
-
readonly stateMutability: "view";
|
|
6724
|
-
readonly type: "function";
|
|
6725
|
-
}, {
|
|
6726
|
-
readonly inputs: readonly [];
|
|
6727
|
-
readonly name: "deploymentBlockNumber";
|
|
6728
|
-
readonly outputs: readonly [{
|
|
6729
|
-
readonly internalType: "uint64";
|
|
6730
|
-
readonly name: "";
|
|
6731
|
-
readonly type: "uint64";
|
|
6732
|
-
}];
|
|
6733
|
-
readonly stateMutability: "view";
|
|
6734
|
-
readonly type: "function";
|
|
6735
6683
|
}, {
|
|
6736
6684
|
readonly anonymous: false;
|
|
6737
6685
|
readonly inputs: readonly [{
|
|
@@ -7267,21 +7215,9 @@ export declare const abi: readonly [{
|
|
|
7267
7215
|
readonly name: "getTcbById";
|
|
7268
7216
|
readonly outputs: readonly [{
|
|
7269
7217
|
readonly components: readonly [{
|
|
7270
|
-
readonly internalType: "
|
|
7271
|
-
readonly name: "
|
|
7272
|
-
readonly type: "
|
|
7273
|
-
}, {
|
|
7274
|
-
readonly internalType: "uint256";
|
|
7275
|
-
readonly name: "utilityDataId";
|
|
7276
|
-
readonly type: "uint256";
|
|
7277
|
-
}, {
|
|
7278
|
-
readonly internalType: "enum TcbStatus";
|
|
7279
|
-
readonly name: "status";
|
|
7280
|
-
readonly type: "uint8";
|
|
7281
|
-
}, {
|
|
7282
|
-
readonly internalType: "uint256";
|
|
7283
|
-
readonly name: "previousTcb";
|
|
7284
|
-
readonly type: "uint256";
|
|
7218
|
+
readonly internalType: "string";
|
|
7219
|
+
readonly name: "quote";
|
|
7220
|
+
readonly type: "string";
|
|
7285
7221
|
}, {
|
|
7286
7222
|
readonly internalType: "uint256";
|
|
7287
7223
|
readonly name: "timeInitialized";
|
|
@@ -7291,37 +7227,83 @@ export declare const abi: readonly [{
|
|
|
7291
7227
|
readonly name: "timeAdded";
|
|
7292
7228
|
readonly type: "uint256";
|
|
7293
7229
|
}, {
|
|
7294
|
-
readonly
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
|
|
7306
|
-
|
|
7307
|
-
|
|
7308
|
-
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
readonly
|
|
7312
|
-
readonly
|
|
7313
|
-
|
|
7314
|
-
readonly internalType: "bool";
|
|
7315
|
-
readonly name: "suspiciousBlocksTaken";
|
|
7316
|
-
readonly type: "bool";
|
|
7230
|
+
readonly components: readonly [{
|
|
7231
|
+
readonly internalType: "uint256";
|
|
7232
|
+
readonly name: "teeOfferId";
|
|
7233
|
+
readonly type: "uint256";
|
|
7234
|
+
}, {
|
|
7235
|
+
readonly internalType: "bytes32";
|
|
7236
|
+
readonly name: "deviceID";
|
|
7237
|
+
readonly type: "bytes32";
|
|
7238
|
+
}, {
|
|
7239
|
+
readonly internalType: "uint256";
|
|
7240
|
+
readonly name: "benchmark";
|
|
7241
|
+
readonly type: "uint256";
|
|
7242
|
+
}, {
|
|
7243
|
+
readonly internalType: "string";
|
|
7244
|
+
readonly name: "properties";
|
|
7245
|
+
readonly type: "string";
|
|
7246
|
+
}];
|
|
7247
|
+
readonly internalType: "struct TcbPublicData";
|
|
7248
|
+
readonly name: "publicData";
|
|
7249
|
+
readonly type: "tuple";
|
|
7317
7250
|
}, {
|
|
7318
|
-
readonly
|
|
7319
|
-
|
|
7320
|
-
|
|
7251
|
+
readonly components: readonly [{
|
|
7252
|
+
readonly internalType: "uint256[]";
|
|
7253
|
+
readonly name: "checkingBlocks";
|
|
7254
|
+
readonly type: "uint256[]";
|
|
7255
|
+
}, {
|
|
7256
|
+
readonly internalType: "enum TcbVerifiedStatus[]";
|
|
7257
|
+
readonly name: "checkingBlockMarks";
|
|
7258
|
+
readonly type: "uint8[]";
|
|
7259
|
+
}, {
|
|
7260
|
+
readonly internalType: "uint256";
|
|
7261
|
+
readonly name: "lastBlocksTakenAmount";
|
|
7262
|
+
readonly type: "uint256";
|
|
7263
|
+
}, {
|
|
7264
|
+
readonly internalType: "uint256";
|
|
7265
|
+
readonly name: "suspiciousBlocksTakenAmount";
|
|
7266
|
+
readonly type: "uint256";
|
|
7267
|
+
}, {
|
|
7268
|
+
readonly internalType: "uint16";
|
|
7269
|
+
readonly name: "negative";
|
|
7270
|
+
readonly type: "uint16";
|
|
7271
|
+
}, {
|
|
7272
|
+
readonly internalType: "uint16";
|
|
7273
|
+
readonly name: "positive";
|
|
7274
|
+
readonly type: "uint16";
|
|
7275
|
+
}, {
|
|
7276
|
+
readonly internalType: "uint256";
|
|
7277
|
+
readonly name: "previousTcb";
|
|
7278
|
+
readonly type: "uint256";
|
|
7279
|
+
}, {
|
|
7280
|
+
readonly internalType: "bool";
|
|
7281
|
+
readonly name: "lastBlocksTaken";
|
|
7282
|
+
readonly type: "bool";
|
|
7283
|
+
}, {
|
|
7284
|
+
readonly internalType: "bool";
|
|
7285
|
+
readonly name: "suspiciousBlocksTaken";
|
|
7286
|
+
readonly type: "bool";
|
|
7287
|
+
}, {
|
|
7288
|
+
readonly internalType: "bool";
|
|
7289
|
+
readonly name: "assignedToEpoch_DEPRECATED";
|
|
7290
|
+
readonly type: "bool";
|
|
7291
|
+
}, {
|
|
7292
|
+
readonly internalType: "bool";
|
|
7293
|
+
readonly name: "checked";
|
|
7294
|
+
readonly type: "bool";
|
|
7295
|
+
}, {
|
|
7296
|
+
readonly internalType: "bool";
|
|
7297
|
+
readonly name: "rewardClaimed";
|
|
7298
|
+
readonly type: "bool";
|
|
7299
|
+
}];
|
|
7300
|
+
readonly internalType: "struct TcbUtilityData";
|
|
7301
|
+
readonly name: "utilData";
|
|
7302
|
+
readonly type: "tuple";
|
|
7321
7303
|
}, {
|
|
7322
|
-
readonly internalType: "
|
|
7323
|
-
readonly name: "
|
|
7324
|
-
readonly type: "
|
|
7304
|
+
readonly internalType: "enum TcbStatus";
|
|
7305
|
+
readonly name: "status";
|
|
7306
|
+
readonly type: "uint8";
|
|
7325
7307
|
}];
|
|
7326
7308
|
readonly internalType: "struct Tcb";
|
|
7327
7309
|
readonly name: "";
|
|
@@ -9411,7 +9393,7 @@ export declare const abi: readonly [{
|
|
|
9411
9393
|
readonly type: "uint256";
|
|
9412
9394
|
}, {
|
|
9413
9395
|
readonly internalType: "bytes32";
|
|
9414
|
-
readonly name: "
|
|
9396
|
+
readonly name: "deviceID";
|
|
9415
9397
|
readonly type: "bytes32";
|
|
9416
9398
|
}];
|
|
9417
9399
|
readonly name: "banTeeOffer";
|
|
@@ -9425,7 +9407,7 @@ export declare const abi: readonly [{
|
|
|
9425
9407
|
readonly type: "uint256";
|
|
9426
9408
|
}, {
|
|
9427
9409
|
readonly internalType: "bytes32";
|
|
9428
|
-
readonly name: "
|
|
9410
|
+
readonly name: "deviceID";
|
|
9429
9411
|
readonly type: "bytes32";
|
|
9430
9412
|
}];
|
|
9431
9413
|
readonly name: "blockTeeOffer";
|
|
@@ -9505,7 +9487,7 @@ export declare const abi: readonly [{
|
|
|
9505
9487
|
readonly type: "uint256";
|
|
9506
9488
|
}, {
|
|
9507
9489
|
readonly internalType: "bytes32";
|
|
9508
|
-
readonly name: "
|
|
9490
|
+
readonly name: "deviceID";
|
|
9509
9491
|
readonly type: "bytes32";
|
|
9510
9492
|
}];
|
|
9511
9493
|
readonly name: "setTeeDeviceId";
|