@shipload/sdk 1.0.0-next.45 → 1.0.0-next.46

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 (41) hide show
  1. package/lib/shipload.d.ts +235 -39
  2. package/lib/shipload.js +1399 -157
  3. package/lib/shipload.js.map +1 -1
  4. package/lib/shipload.m.js +1385 -158
  5. package/lib/shipload.m.js.map +1 -1
  6. package/lib/testing.d.ts +81 -15
  7. package/lib/testing.js +374 -41
  8. package/lib/testing.js.map +1 -1
  9. package/lib/testing.m.js +375 -42
  10. package/lib/testing.m.js.map +1 -1
  11. package/package.json +1 -1
  12. package/src/capabilities/gathering.test.ts +14 -1
  13. package/src/capabilities/gathering.ts +6 -5
  14. package/src/capabilities/modules.ts +4 -0
  15. package/src/contracts/server.ts +242 -28
  16. package/src/data/entities.json +93 -19
  17. package/src/data/item-ids.ts +12 -0
  18. package/src/data/items.json +76 -2
  19. package/src/data/kind-registry.json +10 -0
  20. package/src/data/metadata.ts +68 -0
  21. package/src/data/recipes-runtime.ts +1 -0
  22. package/src/data/recipes.json +720 -0
  23. package/src/derivation/capabilities.test.ts +11 -11
  24. package/src/derivation/capabilities.ts +42 -27
  25. package/src/derivation/index.ts +2 -0
  26. package/src/derivation/recipe-usage.test.ts +11 -7
  27. package/src/derivation/stars.test.ts +16 -0
  28. package/src/derivation/stars.ts +10 -0
  29. package/src/derivation/stratum.ts +11 -4
  30. package/src/entities/makers.ts +8 -1
  31. package/src/index-module.ts +5 -1
  32. package/src/managers/actions.ts +10 -0
  33. package/src/nft/buildImmutableData.ts +1 -1
  34. package/src/nft/description.ts +20 -11
  35. package/src/resolution/describe-module.ts +21 -8
  36. package/src/resolution/resolve-item.ts +31 -33
  37. package/src/scheduling/projection.ts +8 -1
  38. package/src/subscriptions/manager.cluster.test.ts +7 -2
  39. package/src/subscriptions/types.ts +1 -0
  40. package/src/utils/cargo.test.ts +14 -0
  41. package/src/utils/cargo.ts +2 -0
@@ -1026,5 +1026,725 @@
1026
1026
  }
1027
1027
  ],
1028
1028
  "blendWeights": []
1029
+ },
1030
+ {
1031
+ "outputItemId": 20001,
1032
+ "outputMass": 6400,
1033
+ "inputs": [
1034
+ {
1035
+ "itemId": 10001,
1036
+ "quantity": 1
1037
+ },
1038
+ {
1039
+ "itemId": 102,
1040
+ "quantity": 12
1041
+ }
1042
+ ],
1043
+ "statSlots": [
1044
+ {
1045
+ "sources": [
1046
+ {
1047
+ "inputIndex": 0,
1048
+ "statIndex": 0
1049
+ },
1050
+ {
1051
+ "inputIndex": 1,
1052
+ "statIndex": 0
1053
+ }
1054
+ ]
1055
+ },
1056
+ {
1057
+ "sources": [
1058
+ {
1059
+ "inputIndex": 0,
1060
+ "statIndex": 1
1061
+ },
1062
+ {
1063
+ "inputIndex": 1,
1064
+ "statIndex": 2
1065
+ }
1066
+ ]
1067
+ },
1068
+ {
1069
+ "sources": [
1070
+ {
1071
+ "inputIndex": 0,
1072
+ "statIndex": 2
1073
+ },
1074
+ {
1075
+ "inputIndex": 1,
1076
+ "statIndex": 1
1077
+ }
1078
+ ]
1079
+ }
1080
+ ],
1081
+ "blendWeights": []
1082
+ },
1083
+ {
1084
+ "outputItemId": 20002,
1085
+ "outputMass": 6400,
1086
+ "inputs": [
1087
+ {
1088
+ "itemId": 10002,
1089
+ "quantity": 1
1090
+ },
1091
+ {
1092
+ "itemId": 402,
1093
+ "quantity": 6
1094
+ },
1095
+ {
1096
+ "itemId": 502,
1097
+ "quantity": 6
1098
+ }
1099
+ ],
1100
+ "statSlots": [
1101
+ {
1102
+ "sources": [
1103
+ {
1104
+ "inputIndex": 0,
1105
+ "statIndex": 0
1106
+ },
1107
+ {
1108
+ "inputIndex": 1,
1109
+ "statIndex": 1
1110
+ }
1111
+ ]
1112
+ },
1113
+ {
1114
+ "sources": [
1115
+ {
1116
+ "inputIndex": 0,
1117
+ "statIndex": 1
1118
+ },
1119
+ {
1120
+ "inputIndex": 1,
1121
+ "statIndex": 0
1122
+ }
1123
+ ]
1124
+ },
1125
+ {
1126
+ "sources": [
1127
+ {
1128
+ "inputIndex": 0,
1129
+ "statIndex": 2
1130
+ },
1131
+ {
1132
+ "inputIndex": 1,
1133
+ "statIndex": 2
1134
+ }
1135
+ ]
1136
+ },
1137
+ {
1138
+ "sources": [
1139
+ {
1140
+ "inputIndex": 0,
1141
+ "statIndex": 3
1142
+ },
1143
+ {
1144
+ "inputIndex": 2,
1145
+ "statIndex": 2
1146
+ }
1147
+ ]
1148
+ }
1149
+ ],
1150
+ "blendWeights": []
1151
+ },
1152
+ {
1153
+ "outputItemId": 20003,
1154
+ "outputMass": 6400,
1155
+ "inputs": [
1156
+ {
1157
+ "itemId": 10003,
1158
+ "quantity": 1
1159
+ },
1160
+ {
1161
+ "itemId": 302,
1162
+ "quantity": 12
1163
+ }
1164
+ ],
1165
+ "statSlots": [
1166
+ {
1167
+ "sources": [
1168
+ {
1169
+ "inputIndex": 0,
1170
+ "statIndex": 0
1171
+ },
1172
+ {
1173
+ "inputIndex": 1,
1174
+ "statIndex": 0
1175
+ }
1176
+ ]
1177
+ },
1178
+ {
1179
+ "sources": [
1180
+ {
1181
+ "inputIndex": 0,
1182
+ "statIndex": 1
1183
+ },
1184
+ {
1185
+ "inputIndex": 1,
1186
+ "statIndex": 2
1187
+ }
1188
+ ]
1189
+ },
1190
+ {
1191
+ "sources": [
1192
+ {
1193
+ "inputIndex": 0,
1194
+ "statIndex": 2
1195
+ },
1196
+ {
1197
+ "inputIndex": 1,
1198
+ "statIndex": 1
1199
+ }
1200
+ ]
1201
+ }
1202
+ ],
1203
+ "blendWeights": []
1204
+ },
1205
+ {
1206
+ "outputItemId": 20004,
1207
+ "outputMass": 6400,
1208
+ "inputs": [
1209
+ {
1210
+ "itemId": 10004,
1211
+ "quantity": 1
1212
+ },
1213
+ {
1214
+ "itemId": 202,
1215
+ "quantity": 6
1216
+ },
1217
+ {
1218
+ "itemId": 102,
1219
+ "quantity": 6
1220
+ }
1221
+ ],
1222
+ "statSlots": [
1223
+ {
1224
+ "sources": [
1225
+ {
1226
+ "inputIndex": 0,
1227
+ "statIndex": 0
1228
+ },
1229
+ {
1230
+ "inputIndex": 1,
1231
+ "statIndex": 1
1232
+ }
1233
+ ]
1234
+ },
1235
+ {
1236
+ "sources": [
1237
+ {
1238
+ "inputIndex": 0,
1239
+ "statIndex": 1
1240
+ },
1241
+ {
1242
+ "inputIndex": 1,
1243
+ "statIndex": 2
1244
+ }
1245
+ ]
1246
+ },
1247
+ {
1248
+ "sources": [
1249
+ {
1250
+ "inputIndex": 0,
1251
+ "statIndex": 2
1252
+ },
1253
+ {
1254
+ "inputIndex": 1,
1255
+ "statIndex": 0
1256
+ }
1257
+ ]
1258
+ }
1259
+ ],
1260
+ "blendWeights": []
1261
+ },
1262
+ {
1263
+ "outputItemId": 20005,
1264
+ "outputMass": 6400,
1265
+ "inputs": [
1266
+ {
1267
+ "itemId": 10005,
1268
+ "quantity": 1
1269
+ },
1270
+ {
1271
+ "itemId": 102,
1272
+ "quantity": 6
1273
+ },
1274
+ {
1275
+ "itemId": 302,
1276
+ "quantity": 6
1277
+ }
1278
+ ],
1279
+ "statSlots": [
1280
+ {
1281
+ "sources": [
1282
+ {
1283
+ "inputIndex": 0,
1284
+ "statIndex": 0
1285
+ },
1286
+ {
1287
+ "inputIndex": 1,
1288
+ "statIndex": 0
1289
+ }
1290
+ ]
1291
+ },
1292
+ {
1293
+ "sources": [
1294
+ {
1295
+ "inputIndex": 0,
1296
+ "statIndex": 1
1297
+ },
1298
+ {
1299
+ "inputIndex": 1,
1300
+ "statIndex": 1
1301
+ }
1302
+ ]
1303
+ },
1304
+ {
1305
+ "sources": [
1306
+ {
1307
+ "inputIndex": 0,
1308
+ "statIndex": 2
1309
+ },
1310
+ {
1311
+ "inputIndex": 1,
1312
+ "statIndex": 2
1313
+ }
1314
+ ]
1315
+ }
1316
+ ],
1317
+ "blendWeights": []
1318
+ },
1319
+ {
1320
+ "outputItemId": 20006,
1321
+ "outputMass": 6400,
1322
+ "inputs": [
1323
+ {
1324
+ "itemId": 10006,
1325
+ "quantity": 1
1326
+ },
1327
+ {
1328
+ "itemId": 202,
1329
+ "quantity": 12
1330
+ }
1331
+ ],
1332
+ "statSlots": [
1333
+ {
1334
+ "sources": [
1335
+ {
1336
+ "inputIndex": 0,
1337
+ "statIndex": 0
1338
+ },
1339
+ {
1340
+ "inputIndex": 1,
1341
+ "statIndex": 0
1342
+ }
1343
+ ]
1344
+ },
1345
+ {
1346
+ "sources": [
1347
+ {
1348
+ "inputIndex": 0,
1349
+ "statIndex": 1
1350
+ },
1351
+ {
1352
+ "inputIndex": 1,
1353
+ "statIndex": 2
1354
+ }
1355
+ ]
1356
+ },
1357
+ {
1358
+ "sources": [
1359
+ {
1360
+ "inputIndex": 0,
1361
+ "statIndex": 2
1362
+ },
1363
+ {
1364
+ "inputIndex": 1,
1365
+ "statIndex": 1
1366
+ }
1367
+ ]
1368
+ }
1369
+ ],
1370
+ "blendWeights": []
1371
+ },
1372
+ {
1373
+ "outputItemId": 20007,
1374
+ "outputMass": 6400,
1375
+ "inputs": [
1376
+ {
1377
+ "itemId": 10007,
1378
+ "quantity": 1
1379
+ },
1380
+ {
1381
+ "itemId": 502,
1382
+ "quantity": 12
1383
+ }
1384
+ ],
1385
+ "statSlots": [
1386
+ {
1387
+ "sources": [
1388
+ {
1389
+ "inputIndex": 0,
1390
+ "statIndex": 0
1391
+ },
1392
+ {
1393
+ "inputIndex": 1,
1394
+ "statIndex": 0
1395
+ }
1396
+ ]
1397
+ },
1398
+ {
1399
+ "sources": [
1400
+ {
1401
+ "inputIndex": 0,
1402
+ "statIndex": 1
1403
+ },
1404
+ {
1405
+ "inputIndex": 1,
1406
+ "statIndex": 1
1407
+ }
1408
+ ]
1409
+ },
1410
+ {
1411
+ "sources": [
1412
+ {
1413
+ "inputIndex": 0,
1414
+ "statIndex": 2
1415
+ },
1416
+ {
1417
+ "inputIndex": 1,
1418
+ "statIndex": 2
1419
+ }
1420
+ ]
1421
+ }
1422
+ ],
1423
+ "blendWeights": []
1424
+ },
1425
+ {
1426
+ "outputItemId": 20008,
1427
+ "outputMass": 6400,
1428
+ "inputs": [
1429
+ {
1430
+ "itemId": 10008,
1431
+ "quantity": 1
1432
+ },
1433
+ {
1434
+ "itemId": 402,
1435
+ "quantity": 12
1436
+ }
1437
+ ],
1438
+ "statSlots": [
1439
+ {
1440
+ "sources": [
1441
+ {
1442
+ "inputIndex": 0,
1443
+ "statIndex": 0
1444
+ },
1445
+ {
1446
+ "inputIndex": 1,
1447
+ "statIndex": 1
1448
+ }
1449
+ ]
1450
+ },
1451
+ {
1452
+ "sources": [
1453
+ {
1454
+ "inputIndex": 0,
1455
+ "statIndex": 1
1456
+ },
1457
+ {
1458
+ "inputIndex": 1,
1459
+ "statIndex": 2
1460
+ }
1461
+ ]
1462
+ }
1463
+ ],
1464
+ "blendWeights": []
1465
+ },
1466
+ {
1467
+ "outputItemId": 20009,
1468
+ "outputMass": 6400,
1469
+ "inputs": [
1470
+ {
1471
+ "itemId": 10009,
1472
+ "quantity": 1
1473
+ },
1474
+ {
1475
+ "itemId": 302,
1476
+ "quantity": 6
1477
+ },
1478
+ {
1479
+ "itemId": 402,
1480
+ "quantity": 6
1481
+ }
1482
+ ],
1483
+ "statSlots": [
1484
+ {
1485
+ "sources": [
1486
+ {
1487
+ "inputIndex": 0,
1488
+ "statIndex": 0
1489
+ },
1490
+ {
1491
+ "inputIndex": 1,
1492
+ "statIndex": 1
1493
+ }
1494
+ ]
1495
+ },
1496
+ {
1497
+ "sources": [
1498
+ {
1499
+ "inputIndex": 0,
1500
+ "statIndex": 1
1501
+ },
1502
+ {
1503
+ "inputIndex": 1,
1504
+ "statIndex": 2
1505
+ }
1506
+ ]
1507
+ },
1508
+ {
1509
+ "sources": [
1510
+ {
1511
+ "inputIndex": 0,
1512
+ "statIndex": 2
1513
+ },
1514
+ {
1515
+ "inputIndex": 2,
1516
+ "statIndex": 2
1517
+ }
1518
+ ]
1519
+ },
1520
+ {
1521
+ "sources": [
1522
+ {
1523
+ "inputIndex": 0,
1524
+ "statIndex": 3
1525
+ },
1526
+ {
1527
+ "inputIndex": 2,
1528
+ "statIndex": 0
1529
+ }
1530
+ ]
1531
+ }
1532
+ ],
1533
+ "blendWeights": []
1534
+ },
1535
+ {
1536
+ "outputItemId": 20010,
1537
+ "outputMass": 6400,
1538
+ "inputs": [
1539
+ {
1540
+ "itemId": 10010,
1541
+ "quantity": 1
1542
+ },
1543
+ {
1544
+ "itemId": 502,
1545
+ "quantity": 6
1546
+ },
1547
+ {
1548
+ "itemId": 202,
1549
+ "quantity": 6
1550
+ }
1551
+ ],
1552
+ "statSlots": [
1553
+ {
1554
+ "sources": [
1555
+ {
1556
+ "inputIndex": 0,
1557
+ "statIndex": 0
1558
+ },
1559
+ {
1560
+ "inputIndex": 1,
1561
+ "statIndex": 2
1562
+ }
1563
+ ]
1564
+ },
1565
+ {
1566
+ "sources": [
1567
+ {
1568
+ "inputIndex": 0,
1569
+ "statIndex": 1
1570
+ },
1571
+ {
1572
+ "inputIndex": 1,
1573
+ "statIndex": 0
1574
+ }
1575
+ ]
1576
+ },
1577
+ {
1578
+ "sources": [
1579
+ {
1580
+ "inputIndex": 0,
1581
+ "statIndex": 2
1582
+ },
1583
+ {
1584
+ "inputIndex": 1,
1585
+ "statIndex": 1
1586
+ }
1587
+ ]
1588
+ }
1589
+ ],
1590
+ "blendWeights": []
1591
+ },
1592
+ {
1593
+ "outputItemId": 20106,
1594
+ "outputMass": 1536000,
1595
+ "inputs": [
1596
+ {
1597
+ "itemId": 20004,
1598
+ "quantity": 300
1599
+ },
1600
+ {
1601
+ "itemId": 20010,
1602
+ "quantity": 300
1603
+ }
1604
+ ],
1605
+ "statSlots": [
1606
+ {
1607
+ "sources": [
1608
+ {
1609
+ "inputIndex": 0,
1610
+ "statIndex": 0
1611
+ },
1612
+ {
1613
+ "inputIndex": 0,
1614
+ "statIndex": 1
1615
+ }
1616
+ ]
1617
+ },
1618
+ {
1619
+ "sources": [
1620
+ {
1621
+ "inputIndex": 1,
1622
+ "statIndex": 1
1623
+ }
1624
+ ]
1625
+ },
1626
+ {
1627
+ "sources": [
1628
+ {
1629
+ "inputIndex": 0,
1630
+ "statIndex": 2
1631
+ }
1632
+ ]
1633
+ }
1634
+ ],
1635
+ "blendWeights": [
1636
+ 1,
1637
+ 1
1638
+ ]
1639
+ },
1640
+ {
1641
+ "outputItemId": 20210,
1642
+ "outputMass": 3840000,
1643
+ "inputs": [
1644
+ {
1645
+ "itemId": 20001,
1646
+ "quantity": 300
1647
+ },
1648
+ {
1649
+ "itemId": 20008,
1650
+ "quantity": 300
1651
+ },
1652
+ {
1653
+ "itemId": 20007,
1654
+ "quantity": 300
1655
+ },
1656
+ {
1657
+ "itemId": 20003,
1658
+ "quantity": 300
1659
+ },
1660
+ {
1661
+ "itemId": 20006,
1662
+ "quantity": 300
1663
+ },
1664
+ {
1665
+ "itemId": 10201,
1666
+ "quantity": 1
1667
+ }
1668
+ ],
1669
+ "statSlots": [
1670
+ {
1671
+ "sources": [
1672
+ {
1673
+ "inputIndex": 0,
1674
+ "statIndex": 0
1675
+ }
1676
+ ]
1677
+ },
1678
+ {
1679
+ "sources": [
1680
+ {
1681
+ "inputIndex": 0,
1682
+ "statIndex": 1
1683
+ }
1684
+ ]
1685
+ },
1686
+ {
1687
+ "sources": []
1688
+ },
1689
+ {
1690
+ "sources": []
1691
+ }
1692
+ ],
1693
+ "blendWeights": []
1694
+ },
1695
+ {
1696
+ "outputItemId": 20211,
1697
+ "outputMass": 3840000,
1698
+ "inputs": [
1699
+ {
1700
+ "itemId": 20001,
1701
+ "quantity": 300
1702
+ },
1703
+ {
1704
+ "itemId": 20002,
1705
+ "quantity": 300
1706
+ },
1707
+ {
1708
+ "itemId": 20008,
1709
+ "quantity": 300
1710
+ },
1711
+ {
1712
+ "itemId": 20010,
1713
+ "quantity": 300
1714
+ },
1715
+ {
1716
+ "itemId": 20004,
1717
+ "quantity": 300
1718
+ },
1719
+ {
1720
+ "itemId": 10201,
1721
+ "quantity": 1
1722
+ }
1723
+ ],
1724
+ "statSlots": [
1725
+ {
1726
+ "sources": [
1727
+ {
1728
+ "inputIndex": 0,
1729
+ "statIndex": 0
1730
+ }
1731
+ ]
1732
+ },
1733
+ {
1734
+ "sources": [
1735
+ {
1736
+ "inputIndex": 0,
1737
+ "statIndex": 1
1738
+ }
1739
+ ]
1740
+ },
1741
+ {
1742
+ "sources": []
1743
+ },
1744
+ {
1745
+ "sources": []
1746
+ }
1747
+ ],
1748
+ "blendWeights": []
1029
1749
  }
1030
1750
  ]