@shipload/sdk 1.0.0-next.74 → 1.0.0-next.76
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/lib/scan.js +1 -1
- package/lib/scan.js.map +1 -1
- package/lib/scan.m.js +1 -1
- package/lib/scan.m.js.map +1 -1
- package/lib/shipload.d.ts +81 -35
- package/lib/shipload.js +13576 -11311
- package/lib/shipload.js.map +1 -1
- package/lib/shipload.m.js +13554 -11311
- package/lib/shipload.m.js.map +1 -1
- package/lib/testing.d.ts +20 -16
- package/lib/testing.js +229 -53
- package/lib/testing.js.map +1 -1
- package/lib/testing.m.js +229 -53
- package/lib/testing.m.js.map +1 -1
- package/package.json +6 -6
- package/src/capabilities/storage.ts +45 -10
- package/src/contracts/server.ts +49 -41
- package/src/data/component-process.test.ts +119 -0
- package/src/data/component-process.ts +33 -0
- package/src/data/entities.json +367 -2
- package/src/data/item-ids.ts +15 -0
- package/src/data/items.json +90 -0
- package/src/data/kind-registry.json +97 -7
- package/src/data/metadata.ts +83 -5
- package/src/data/recipes-runtime.ts +1 -1
- package/src/data/recipes.json +1476 -10
- package/src/data/task-types.json +9 -0
- package/src/derivation/capabilities.test.ts +25 -2
- package/src/derivation/capabilities.ts +16 -3
- package/src/derivation/capacity-fn-registry.ts +8 -1
- package/src/derivation/reserve-regen.ts +5 -9
- package/src/derivation/stratum.ts +1 -1
- package/src/derivation/tiers.ts +1 -1
- package/src/derivation/upgrades.ts +5 -4
- package/src/index-module.ts +10 -1
- package/src/influence/influence.test.ts +1 -1
- package/src/managers/actions.ts +12 -19
- package/src/managers/entities.test.ts +23 -0
- package/src/managers/entities.ts +8 -1
- package/src/managers/shuttle.test.ts +67 -0
- package/src/managers/shuttle.ts +17 -0
- package/src/nft/description.ts +6 -0
- package/src/resolution/resolve-item.test.ts +6 -6
- package/src/resolution/resolve-item.ts +4 -0
- package/src/scan/scan-wasm.base64.ts +1 -1
- package/src/scheduling/availability.test.ts +3 -3
- package/src/scheduling/availability.ts +3 -4
- package/src/scheduling/lanes.ts +1 -1
- package/src/scheduling/projection.ts +15 -13
- package/src/scheduling/schedule.test.ts +24 -0
- package/src/scheduling/schedule.ts +11 -4
- package/src/scheduling/task-effects.ts +3 -1
- package/src/scheduling/unwrap.test.ts +25 -6
- package/src/scheduling/unwrap.ts +19 -3
- package/src/travel/travel.ts +4 -0
- package/src/types.ts +2 -0
package/lib/testing.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Struct, UInt64, UInt16, UInt8,
|
|
1
|
+
import { Struct, UInt64, UInt16, UInt8, Int64, Name, TimePoint, UInt32, Int8, Checksum256, Bytes, Int32, BlockTimestamp, Int64Type } from '@wharfkit/antelope';
|
|
2
2
|
|
|
3
3
|
declare const CATALOG_FILES_REL: readonly ["items.json", "recipes.json", "entities.json", "kind-registry.json", "item-ids.ts"];
|
|
4
4
|
declare function computeCatalogHash(filePaths: ReadonlyArray<string>): string;
|
|
@@ -15,20 +15,6 @@ declare namespace Types {
|
|
|
15
15
|
type: UInt8;
|
|
16
16
|
installed?: packed_module;
|
|
17
17
|
}
|
|
18
|
-
class cargo_item extends Struct {
|
|
19
|
-
item_id: UInt16;
|
|
20
|
-
stats: UInt64;
|
|
21
|
-
modules: module_entry[];
|
|
22
|
-
quantity: UInt32;
|
|
23
|
-
entity_id?: UInt64;
|
|
24
|
-
}
|
|
25
|
-
class addcontrib extends Struct {
|
|
26
|
-
player: Name;
|
|
27
|
-
entity_id: UInt64;
|
|
28
|
-
x: Int64;
|
|
29
|
-
y: Int64;
|
|
30
|
-
bundle: cargo_item[];
|
|
31
|
-
}
|
|
32
18
|
class cargo_ref extends Struct {
|
|
33
19
|
item_id: UInt16;
|
|
34
20
|
stats: UInt64;
|
|
@@ -60,6 +46,13 @@ declare namespace Types {
|
|
|
60
46
|
y: Int64;
|
|
61
47
|
z?: UInt16;
|
|
62
48
|
}
|
|
49
|
+
class cargo_item extends Struct {
|
|
50
|
+
item_id: UInt16;
|
|
51
|
+
stats: UInt64;
|
|
52
|
+
modules: module_entry[];
|
|
53
|
+
quantity: UInt32;
|
|
54
|
+
entity_id?: UInt64;
|
|
55
|
+
}
|
|
63
56
|
class entity_ref extends Struct {
|
|
64
57
|
entity_type: Name;
|
|
65
58
|
entity_id: UInt64;
|
|
@@ -346,7 +339,9 @@ declare namespace Types {
|
|
|
346
339
|
max_rows?: UInt64;
|
|
347
340
|
}
|
|
348
341
|
class closeepoch extends Struct {
|
|
342
|
+
oracle_id: Name;
|
|
349
343
|
epoch: UInt64;
|
|
344
|
+
entropy: Checksum256;
|
|
350
345
|
}
|
|
351
346
|
class cluster_cell extends Struct {
|
|
352
347
|
gx: Int8;
|
|
@@ -399,6 +394,13 @@ declare namespace Types {
|
|
|
399
394
|
class configlog extends Struct {
|
|
400
395
|
config: game_config;
|
|
401
396
|
}
|
|
397
|
+
class contribute extends Struct {
|
|
398
|
+
player: Name;
|
|
399
|
+
entity_id: UInt64;
|
|
400
|
+
x: Int64;
|
|
401
|
+
y: Int64;
|
|
402
|
+
bundle: cargo_item[];
|
|
403
|
+
}
|
|
402
404
|
class craft extends Struct {
|
|
403
405
|
id: UInt64;
|
|
404
406
|
recipe_id: UInt16;
|
|
@@ -1120,7 +1122,7 @@ declare namespace Types {
|
|
|
1120
1122
|
blend_weights: Bytes;
|
|
1121
1123
|
output_item: recipe_item_info;
|
|
1122
1124
|
input_items: recipe_item_info[];
|
|
1123
|
-
|
|
1125
|
+
source_subclasses: UInt16[];
|
|
1124
1126
|
}
|
|
1125
1127
|
class recipes_result extends Struct {
|
|
1126
1128
|
recipes: recipe_response[];
|
|
@@ -1501,6 +1503,7 @@ declare namespace Types {
|
|
|
1501
1503
|
need?: UInt64;
|
|
1502
1504
|
cap?: UInt64;
|
|
1503
1505
|
task_type?: UInt8;
|
|
1506
|
+
missing: cargo_item[];
|
|
1504
1507
|
}
|
|
1505
1508
|
class shuttle_option extends Struct {
|
|
1506
1509
|
shuttled_by?: UInt64;
|
|
@@ -1777,6 +1780,7 @@ interface CargoStack {
|
|
|
1777
1780
|
quantity: UInt32;
|
|
1778
1781
|
stats: UInt64;
|
|
1779
1782
|
modules: Types.module_entry[];
|
|
1783
|
+
entity_id?: UInt64;
|
|
1780
1784
|
}
|
|
1781
1785
|
|
|
1782
1786
|
interface ProjectedEntity {
|